Skip to content
Snippets Groups Projects
Commit 281a5a7c authored by Zhaolin Deng's avatar Zhaolin Deng
Browse files

update fuzzer

parent 4264a948
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){ ...@@ -226,7 +226,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){
unsigned int cyclesExecuted = 0; unsigned int cyclesExecuted = 0;
while(cycles > 0 ? cyclesExecuted < (unsigned int)cycles : true){ while(cycles > 0 ? cyclesExecuted < (unsigned int)cycles : true){
cyclesExecuted++; cyclesExecuted++;
if (pc < 0 || pc >= (int)progLength){ if (pc >= (int)progLength){
/* will cause an error but that is not a bug and /* will cause an error but that is not a bug and
* and indeed is what the VM is supposed to do if the pc becomes * and indeed is what the VM is supposed to do if the pc becomes
* negative, since in this case the program's execution finishes * negative, since in this case the program's execution finishes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment