Skip to content

Improve performance for recursion #13

Description

@lucasccordeiro

ESBMC-Python can verify this Python program in a few milliseconds, while ESBMC-Python-CPP takes many seconds:

deffib(n:int) ->int:
ifn<=0:
return0elifn==1:
return1else:
returnfib(n-1) +fib(n-2)
n:int=10result:int=fib(n)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions