summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-03 14:08:42 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-03 14:08:42 -0500
commitcf8da3a6142e847e014306876742ab24189a6a94 (patch)
treeeb43d27f0eea9347c3506117806f871efd6f6a8d
parentf0e8e335f9697a5636adbb83e2e32f95788c0694 (diff)
downloadroux-cf8da3a6142e847e014306876742ab24189a6a94.tar.gz
reduce runtime of cprime.ssa
-rw-r--r--lisc/test/cprime.ssa8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisc/test/cprime.ssa b/lisc/test/cprime.ssa
index af0f652..1ca60e1 100644
--- 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;
 # }