commit cf8da3a6142e847e014306876742ab24189a6a94
parent f0e8e335f9697a5636adbb83e2e32f95788c0694
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 3 Mar 2016 14:08:42 -0500
reduce runtime of cprime.ssa
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisc/test/cprime.ssa b/lisc/test/cprime.ssa
@@ -14,7 +14,7 @@ function w $main() {
storew 12, %v3
@L0
%v5 =w loadw %v1
- %v6 =w cnew %v5, 10001
+ %v6 =w cnew %v5, 201
jnz %v6, @L8, @L1
@L8
storew 1, %v4
@@ -61,7 +61,7 @@ function w $main() {
jmp @L0
@L1
%v25 =w loadw %v2
- %v26 =w cnew %v25, 104743
+ %v26 =w cnew %v25, 1229
jnz %v26, @L13, @L7
@L13
ret 1
@@ -79,7 +79,7 @@ function w $main() {
# n = 5;
# p = 11;
# next = 12;
-# while(n != 10001) {
+# while(n != 201) {
# isprime = 1;
# if(next % 2 == 0) {
# isprime = 0;
@@ -97,7 +97,7 @@ function w $main() {
# }
# next = next + 1;
# }
-# if(p != 104743)
+# if(p != 1229)
# return 1;
# return 0;
# }