File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
test-src/epfl/test8-effects Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class TestSpeculative extends FileDiffSuite {
17
17
18
18
val prefix = home + " test-out/epfl/test8-"
19
19
20
- trait DSL extends ArrayMutation with LiftPrimitives with PrimitiveOps
20
+ trait DSL extends ArrayMutation with PrimitiveOps with LiftPrimitives
21
21
with OrderingOps with BooleanOps with LiftVariables with IfThenElse
22
22
with While with RangeOps with Print {
23
23
def zeros (l : Rep [Int ]) = array(l) { i => 0 }
@@ -128,7 +128,7 @@ class TestSpeculative extends FileDiffSuite {
128
128
def test (x : Rep [Int ]) = {
129
129
var x = 7
130
130
var c = 0.0
131
- while (c < 10 ) {
131
+ while (c < 10.0 ) {
132
132
print(x) // should be const 7
133
133
print(c)
134
134
var z = 2 // should remove var
@@ -152,7 +152,7 @@ class TestSpeculative extends FileDiffSuite {
152
152
var x = 7
153
153
var y = 4.0 // should remove
154
154
var c = 0.0
155
- while (c < 10 ) {
155
+ while (c < 10.0 ) {
156
156
print(x) // should be const 7
157
157
print(c)
158
158
var z = 2 // should remove var
@@ -175,7 +175,7 @@ class TestSpeculative extends FileDiffSuite {
175
175
trait Prog extends DSL {
176
176
def test (x : Rep [Int ]) = {
177
177
var c = 0.0
178
- while (c > 10 ) {
178
+ while (c > 10.0 ) {
179
179
print(" booooring!" )
180
180
}
181
181
print(" done" )
@@ -193,8 +193,8 @@ class TestSpeculative extends FileDiffSuite {
193
193
def test (x : Rep [Int ]) = {
194
194
var x = 7.0
195
195
var c = 0.0
196
- while (c < 10 ) {
197
- if (x < 10 )
196
+ while (c < 10.0 ) {
197
+ if (x < 10.0 )
198
198
print(" test" )
199
199
else
200
200
x = c
You can’t perform that action at this time.
0 commit comments