1 src/cmd/compile/internal/ssa/testdata/scopes.go
2 22: func test() {
3 23: x := id(0)
4 24: y := id(0)
5 25: fmt.Println(x)
6 0:
7 27: x := i * i
8 28: y += id(x) //gdb-dbg=(x,y)//gdb-opt=(x,y)
9 x = 0
10 y = 0
11 26: for i := x; i < 3; i++ {
12 27: x := i * i
13 28: y += id(x) //gdb-dbg=(x,y)//gdb-opt=(x,y)
14 x = 1
15 y = 0
16 26: for i := x; i < 3; i++ {
17 27: x := i * i
18 28: y += id(x) //gdb-dbg=(x,y)//gdb-opt=(x,y)
19 x = 4
20 y = 1
21 26: for i := x; i < 3; i++ {
22 30: y = x + y //gdb-dbg=(x,y)//gdb-opt=(x,y)
23 x = 0
24 y = 5
25 31: fmt.Println(x, y)
26 0: 5
27 34: a := y
28 35: f1(a)
29 37: b := 0
30 38: f2(b)
31 39: if gretbool() {
32 40: c := 0
33 41: f3(c)
34 46: f5(b)
35 48: f6(a)
36 33: for x := 0; x <= 1; x++ { // From delve scopetest.go
37 34: a := y
38 35: f1(a)
39 37: b := 0
40 38: f2(b)
41 39: if gretbool() {
42 43: c := 1.1
43 44: f4(int(c))
44 46: f5(b)
45 48: f6(a)
46 33: for x := 0; x <= 1; x++ { // From delve scopetest.go
47 53: j = id(1)
48 54: f = id(2)
49 56: for i := 0; i <= 5; i++ {
50 57: j += j * (j ^ 3) / 100
51 58: if i == f {
52 62: sleepytime()
53 56: for i := 0; i <= 5; i++ {
54 57: j += j * (j ^ 3) / 100
55 58: if i == f {
56 62: sleepytime()
57 56: for i := 0; i <= 5; i++ {
58 57: j += j * (j ^ 3) / 100
59 58: if i == f {
60 59: fmt.Println("foo")
61 60: break
62 64: helloworld()
63 66: }
64 15: }
65
View as plain text