MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / fib_sequential

Function fib_sequential

check/TestHighsParallel.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16const bool dev_run = false;
17
18int64_t fib_sequential(const int64_t n) {
19 if (n <= 1) return 1;
20 return fib_sequential(n - 1) + fib_sequential(n - 2);
21}
22
23int64_t fib(const int64_t n) {
24 if (n <= 20) return fib_sequential(n);

Callers 2

fibFunction · 0.85
fib_ompFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected