github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/src/cmd/compile/internal/ssa/testdata/hist.dlv-opt.nexts (about)

     1    ./testdata/hist.go
     2  55:	func test() {
     3  57:		l := line{point{1 + zero, 2 + zero}, point{3 + zero, 4 + zero}}
     4  58:		tinycall()                // this forces l etc to stack
     5  59:		dx := l.end.x - l.begin.x //gdb-dbg=(l.begin.x,l.end.y)//gdb-opt=(l,dx/O,dy/O)
     6  60:		dy := l.end.y - l.begin.y //gdb-opt=(dx,dy/O)
     7  61:		sink = dx + dy            //gdb-opt=(dx,dy)
     8  63:		hist := make([]int, 7)                                //gdb-opt=(dx/O,dy/O) // TODO sink is missing if this code is in 'test' instead of 'main'
     9  64:		var reader io.Reader = strings.NewReader(cannedInput) //gdb-dbg=(hist/A) // TODO cannedInput/A is missing if this code is in 'test' instead of 'main'
    10  65:		if len(os.Args) > 1 {
    11  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    12  76:			i, err := strconv.ParseInt(s, 10, 64)
    13  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    14  81:			hist = ensure(int(i), hist)
    15  82:			hist[int(i)]++
    16  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    17  76:			i, err := strconv.ParseInt(s, 10, 64)
    18  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    19  81:			hist = ensure(int(i), hist)
    20  82:			hist[int(i)]++
    21  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    22  76:			i, err := strconv.ParseInt(s, 10, 64)
    23  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    24  81:			hist = ensure(int(i), hist)
    25  82:			hist[int(i)]++
    26  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    27  76:			i, err := strconv.ParseInt(s, 10, 64)
    28  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    29  81:			hist = ensure(int(i), hist)
    30  82:			hist[int(i)]++
    31  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    32  76:			i, err := strconv.ParseInt(s, 10, 64)
    33  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    34  81:			hist = ensure(int(i), hist)
    35  82:			hist[int(i)]++
    36  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    37  76:			i, err := strconv.ParseInt(s, 10, 64)
    38  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    39  81:			hist = ensure(int(i), hist)
    40  82:			hist[int(i)]++
    41  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    42  76:			i, err := strconv.ParseInt(s, 10, 64)
    43  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    44  81:			hist = ensure(int(i), hist)
    45  82:			hist[int(i)]++
    46  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    47  76:			i, err := strconv.ParseInt(s, 10, 64)
    48  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    49  81:			hist = ensure(int(i), hist)
    50  82:			hist[int(i)]++
    51  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    52  76:			i, err := strconv.ParseInt(s, 10, 64)
    53  77:			if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i)
    54  81:			hist = ensure(int(i), hist)
    55  82:			hist[int(i)]++
    56  74:		for scanner.Scan() { //gdb-opt=(scanner/A)
    57  86:		for i, a := range hist {
    58  87:			if a == 0 { //gdb-opt=(a,n,t)
    59  86:		for i, a := range hist {
    60  87:			if a == 0 { //gdb-opt=(a,n,t)
    61  91:			n += a
    62  90:			t += i * a
    63  92:			fmt.Fprintf(os.Stderr, "%d\t%d\t%d\t%d\t%d\n", i, a, n, i*a, t) //gdb-dbg=(n,i,t)
    64  86:		for i, a := range hist {
    65  87:			if a == 0 { //gdb-opt=(a,n,t)
    66  91:			n += a
    67  90:			t += i * a
    68  92:			fmt.Fprintf(os.Stderr, "%d\t%d\t%d\t%d\t%d\n", i, a, n, i*a, t) //gdb-dbg=(n,i,t)
    69  86:		for i, a := range hist {
    70  87:			if a == 0 { //gdb-opt=(a,n,t)
    71  86:		for i, a := range hist {
    72  87:			if a == 0 { //gdb-opt=(a,n,t)
    73  91:			n += a
    74  90:			t += i * a
    75  92:			fmt.Fprintf(os.Stderr, "%d\t%d\t%d\t%d\t%d\n", i, a, n, i*a, t) //gdb-dbg=(n,i,t)
    76  86:		for i, a := range hist {
    77  87:			if a == 0 { //gdb-opt=(a,n,t)
    78  91:			n += a
    79  90:			t += i * a
    80  92:			fmt.Fprintf(os.Stderr, "%d\t%d\t%d\t%d\t%d\n", i, a, n, i*a, t) //gdb-dbg=(n,i,t)
    81  86:		for i, a := range hist {
    82  87:			if a == 0 { //gdb-opt=(a,n,t)
    83  86:		for i, a := range hist {
    84  99:	}