Text file src/cmd/compile/internal/ssa/testdata/scopes.gdb-opt.nexts

     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  31:		fmt.Println(x, y)
    23  30:		y = x + y //gdb-dbg=(x,y)//gdb-opt=(x,y)
    24  x = 0
    25  y = 5
    26  31:		fmt.Println(x, y)
    27  0: 5
    28  35:			f1(a)
    29  38:				f2(b)
    30  39:				if gretbool() {
    31  41:					f3(c)
    32  46:				f5(b)
    33  48:			f6(a)
    34  33:		for x := 0; x <= 1; x++ { // From delve scopetest.go
    35  35:			f1(a)
    36  38:				f2(b)
    37  39:				if gretbool() {
    38  44:					f4(int(c))
    39  46:				f5(b)
    40  48:			f6(a)
    41  33:		for x := 0; x <= 1; x++ { // From delve scopetest.go
    42  53:				j = id(1)
    43  54:				f = id(2)
    44  56:			for i := 0; i <= 5; i++ {
    45  58:				if i == f {
    46  62:				sleepytime()
    47  56:			for i := 0; i <= 5; i++ {
    48  58:				if i == f {
    49  62:				sleepytime()
    50  56:			for i := 0; i <= 5; i++ {
    51  58:				if i == f {
    52  59:					fmt.Println("foo")
    53  64:			helloworld()
    54  66:	}
    55  15:	}
    56  

View as plain text