File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
test-src/epfl/test7-analysis Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ super.focusExactScopeFat with result changed from List(Sym(28)) to List(Sym(53))
28
28
*******************************************/
29
29
class Test extends ((Unit)=>(Unit)) {
30
30
def apply(x0:Unit): Unit = {
31
- var x45 = 0
32
- var x46 = 0
31
+ var x45: Double = 0
32
+ var x46: Double = 0
33
33
for (x1 <- 0 until 100) {
34
34
val x29 = 2.0*x1
35
35
val x31 = 1.0+x29
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ def apply(x0:Unit): Unit = {
35
35
val x37 = 1.0+2.0
36
36
var x3 = new Array[Double](50)
37
37
var x7 = new Array[Double](50)
38
- var x11 = 0
39
- var x38 = 0
38
+ var x11: Double = 0
39
+ var x38: Double = 0
40
40
for (x2 <- 0 until 50) {
41
41
x3(x2) = 1.0
42
42
x7(x2) = 2.0
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ for (x1 <- 0 until 100) {
37
37
val x43 = 1.0+2.0
38
38
var x3 = new Array[Double](x1)
39
39
var x29 = new Array[Double](x1)
40
- var x32 = 0
41
- var x44 = 0
40
+ var x32: Double = 0
41
+ var x44: Double = 0
42
42
for (x2 <- 0 until x1) {
43
43
x3(x2) = 1.0
44
44
x29(x2) = 2.0
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ val x5 = x4 > 50
14
14
if (x5) x6 += x4
15
15
}
16
16
val x7 = x6.length
17
- var x10 = 0
17
+ var x10: Int = 0
18
18
for (x8 <- 0 until x7) {
19
19
val x9 = x6.apply(x8)
20
20
x10 += x9
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ super.focusExactScopeFat with result changed from List(Sym(12)) to List(Sym(25))
19
19
*******************************************/
20
20
class Test extends ((Unit)=>(Unit)) {
21
21
def apply(x0:Unit): Unit = {
22
- var x23 = 0
22
+ var x23: Int = 0
23
23
for (x1 <- 0 until 100) {
24
24
val x13 = x1 > 50
25
25
if (x13) x23 += x1
Original file line number Diff line number Diff line change @@ -154,11 +154,11 @@ trait ScalaGenArrayLoopsFat extends ScalaGenArrayLoops with ScalaGenLoopsFat {
154
154
case ArrayElem (y) =>
155
155
stream.println(" var " + quote(l) + " = new Array[" + getBlockResult(y).tp + " ](" + quote(s)+ " )" )
156
156
case ReduceElem (y) =>
157
- stream.println(" var " + quote(l) + " = 0" )
157
+ stream.println(" var " + quote(l) + " : " + getBlockResult(y).tp + " = 0" )
158
158
case ArrayIfElem (c,y) =>
159
159
stream.println(" var " + quote(l) + " = new ArrayBuilder[" + getBlockResult(y).tp + " ]" )
160
160
case ReduceIfElem (c,y) =>
161
- stream.println(" var " + quote(l) + " = 0" )
161
+ stream.println(" var " + quote(l) + " : " + getBlockResult(y).tp + " = 0" )
162
162
case FlattenElem (y) =>
163
163
stream.println(" var " + quote(l) + " = new ArrayBuilder[" + getBlockResult(y).tp + " ]" )
164
164
}
You can’t perform that action at this time.
0 commit comments