Text file src/cmd/compile/internal/ssa/testdata/scopes.dlv-dbg.nexts

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

View as plain text