Skip to content

Commit 080e617

Browse files
committed
test struct
1 parent 73a43fb commit 080e617

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

test-out/epfl/test9-struct1.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ var x2: Int = x0
77
var x3: Double = 0.0
88
val x5 = x2
99
val x6 = x3
10-
val x9 = x5+0.0
10+
val x9 = x5 + 0.0
1111
x2 = x9
12-
val x10 = x6+x0
12+
val x10 = x6 + x0
1313
x3 = x10
1414
val x14 = x2
1515
val x15 = x3

test-out/epfl/test9-struct2.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ depends on Sym(14)
88
class Test extends ((Int)=>(Unit)) {
99
def apply(x0:Int): Unit = {
1010
val x10 = LoopArray(100) { x7 =>
11-
val x8 = 0.0-x7
11+
val x8 = 0.0 - x7
1212
x8
1313
}
1414
var x13: Array[Double] = x10
@@ -20,7 +20,7 @@ val x4 = LoopArray(100) { x1 =>
2020
x1
2121
}
2222
val x5 = LoopArray(100) { x1 =>
23-
val x2 = 0.0-x1
23+
val x2 = 0.0 - x1
2424
x2
2525
}
2626
val x16 = x0 > 7

test-out/epfl/test9-struct2b.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def apply(x0:Int): Unit = {
1313
var x10 = new Array[Double](100)
1414
var x11 = new Array[Int](100)
1515
for (x7 <- 0 until 100) {
16-
val x8 = 0.0-x7
16+
val x8 = 0.0 - x7
1717
x10(x7) = x8
1818
x11(x7) = x7
1919
}

test-out/epfl/test9-struct3.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ wtableneg: List()
22
partitions: List(TTP(List(Sym(4), Sym(5), Sym(13)),List(SimpleLoop(Const(100),Sym(1),ArrayElem(Block(Sym(1)))), SimpleLoop(Const(100),Sym(1),ArrayElem(Block(Sym(2)))), SimpleLoop(Const(100),Sym(7),ArrayElem(Block(Sym(11))))),SimpleFatLoop(Const(100),Sym(1),List(ArrayElem(Block(Sym(1))), ArrayElem(Block(Sym(2))), ArrayElem(Block(Sym(11)))))))
33
considering TP(Sym(9),ArrayIndex(Sym(5),Sym(7)))
44
replace TP(Sym(9),ArrayIndex(Sym(5),Sym(7))) at 1 within TTP(List(Sym(4), Sym(5), Sym(13)),List(SimpleLoop(Const(100),Sym(1),ArrayElem(Block(Sym(1)))), SimpleLoop(Const(100),Sym(1),ArrayElem(Block(Sym(2)))), SimpleLoop(Const(100),Sym(7),ArrayElem(Block(Sym(11))))),SimpleFatLoop(Const(100),Sym(1),List(ArrayElem(Block(Sym(1))), ArrayElem(Block(Sym(2))), ArrayElem(Block(Sym(11))))))
5-
warning: mirroring of Sym(11)=Minus(Const(0.0),Sym(9)) type Double returned Sym(1) type Int (not a subtype)
5+
warning: mirroring of Sym(11)=DoubleMinus(Const(0.0),Sym(9)) type Double returned Sym(1) type Int (not a subtype)
66
warning: mirroring of Sym(13)=SimpleLoop(Const(100),Sym(7),ArrayElem(Block(Sym(11)))) type Array[Double] returned Sym(4)=SimpleLoop(Const(100),Sym(1),ArrayElem(Block(Sym(1)))) type Array[Int] (not a subtype)
77
try once more ...
88
wtableneg: List()

test-out/epfl/test9-struct4.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def apply(x0:Int): Unit = {
1616
var x4 = new Array[Int](100)
1717
var x5 = new Array[Double](100)
1818
for (x1 <- 0 until 100) {
19-
val x2 = 0.0-x1
19+
val x2 = 0.0 - x1
2020
x4(x1) = x1
2121
x5(x1) = x2
2222
}
@@ -27,7 +27,7 @@ val x26 = if (x16) {
2727
var x23 = new Array[Double](100)
2828
for (x17 <- 0 until 100) {
2929
val x19 = x5.apply(x17)
30-
val x21 = 0.0-x19
30+
val x21 = 0.0 - x19
3131
x23(x17) = x21
3232
}
3333
x23

0 commit comments

Comments
 (0)