MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / fib

Function fib

examples/embed_cxx/script/fibonacci.cpp:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "fibonacci.h"
2
3auto fib(int32_t n) -> int32_t {
4 if (n < 2) {
5 return 1;
6 }
7 return fib(n - 2) + fib(n - 1);
8}

Callers 1

run_fib_nativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected