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