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

update fuzzer

parent 814fde8d
No related branches found
No related tags found
No related merge requests found
...@@ -31,10 +31,9 @@ public class Fuzzer { ...@@ -31,10 +31,9 @@ public class Fuzzer {
pw.println("ADD R"+(x+1)+" R"+x +" R"+x); pw.println("ADD R"+(x+1)+" R"+x +" R"+x);
}; };
pw.println("RET R31");*/ pw.println("RET R31");*/
pw.println("JZ R0 -2");
pw.println("RET R0"); pw.println("RET R0");
pw.println("RET R0");
pw.println("RET R0");
pw.println("RET R0");
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(System.err); e.printStackTrace(System.err);
System.exit(1); System.exit(1);
......
...@@ -385,7 +385,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){ ...@@ -385,7 +385,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){
/* this should never overflow given constraints on both pc and offs */ /* this should never overflow given constraints on both pc and offs */
pc = pc + offs; pc = pc + offs;
count++; count++;
continue; /* avoid default increment of pc below */ // continue; /* avoid default increment of pc below */
}else{ }else{
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment