MCPcopy Create free account
hub / github.com/LFYSec/MScan / getFibonacci

Method getFibonacci

src/test/resources/dataflow/livevar/Fibonacci.java:2–8  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

1class Fibonacci {
2 int getFibonacci(int n) {
3 if ((n == 0) || (n == 1)) {
4 return n;
5 } else {
6 return getFibonacci(n - 1) + getFibonacci(n - 2);
7 }
8 }
9
10}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected