I am trying to call a function for testing using protostar, and up until now, I tried it with recursion, but it always limits to around 80 calls.
Can someone share an example of a loop implementation?
I tried this link, but it is not working (still in the learning phase, so not sure what to do).
My current implementation is somewhat like the below:
@view
func test_loop{bitwise_ptr: BitwiseBuiltin*, range_check_ptr}() {
tempvar n = 5;
loop_start:
test_function_to_call();
tempvar n = n - 1;
jmp loop_start if n != 0;
return ();
}
I need to call test_function_to_call()
at least n
times.