github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/compile/ssa/testdata/scopes.dlv-opt.nexts (about)

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