github.com/mattn/go@v0.0.0-20171011075504-07f7db3ea99f/src/cmd/compile/internal/ssa/testdata/hist-dbg.gdb-nexts (about)

     1    src/cmd/compile/internal/ssa/testdata/hist.go
     2  35:	func main() {
     3  35:	func main() {
     4  36:		hist := make([]int, 10)
     5  37:		var reader io.Reader = strings.NewReader(cannedInput) //gdb-dbg=(hist/A,cannedInput/A)
     6  $1 =  []int = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
     7  $2 = "1\n1\n1\n1\n2\n2\n2\n4\n4\n8\n"
     8  38:		if len(os.Args) > 1 {
     9  43:				return
    10  47:		for scanner.Scan() {
    11  48:			s := scanner.Text()
    12  49:			i, err := strconv.ParseInt(s, 10, 64)
    13  50:			if err != nil { //gdb-dbg=(i)
    14  $3 = 1
    15  54:			hist = ensure(int(i), hist)
    16  55:			hist[int(i)]++
    17  47:		for scanner.Scan() {
    18  48:			s := scanner.Text()
    19  49:			i, err := strconv.ParseInt(s, 10, 64)
    20  50:			if err != nil { //gdb-dbg=(i)
    21  $4 = 1
    22  54:			hist = ensure(int(i), hist)
    23  55:			hist[int(i)]++
    24  47:		for scanner.Scan() {
    25  48:			s := scanner.Text()
    26  49:			i, err := strconv.ParseInt(s, 10, 64)
    27  50:			if err != nil { //gdb-dbg=(i)
    28  $5 = 1
    29  54:			hist = ensure(int(i), hist)
    30  55:			hist[int(i)]++
    31  47:		for scanner.Scan() {
    32  48:			s := scanner.Text()
    33  49:			i, err := strconv.ParseInt(s, 10, 64)
    34  50:			if err != nil { //gdb-dbg=(i)
    35  $6 = 1
    36  54:			hist = ensure(int(i), hist)
    37  55:			hist[int(i)]++
    38  47:		for scanner.Scan() {
    39  48:			s := scanner.Text()
    40  49:			i, err := strconv.ParseInt(s, 10, 64)
    41  50:			if err != nil { //gdb-dbg=(i)
    42  $7 = 2
    43  54:			hist = ensure(int(i), hist)
    44  55:			hist[int(i)]++
    45  47:		for scanner.Scan() {
    46  48:			s := scanner.Text()
    47  49:			i, err := strconv.ParseInt(s, 10, 64)
    48  50:			if err != nil { //gdb-dbg=(i)
    49  $8 = 2
    50  54:			hist = ensure(int(i), hist)
    51  55:			hist[int(i)]++
    52  47:		for scanner.Scan() {
    53  48:			s := scanner.Text()
    54  49:			i, err := strconv.ParseInt(s, 10, 64)
    55  50:			if err != nil { //gdb-dbg=(i)
    56  $9 = 2
    57  54:			hist = ensure(int(i), hist)
    58  55:			hist[int(i)]++
    59  47:		for scanner.Scan() {
    60  48:			s := scanner.Text()
    61  49:			i, err := strconv.ParseInt(s, 10, 64)
    62  50:			if err != nil { //gdb-dbg=(i)
    63  $10 = 4
    64  54:			hist = ensure(int(i), hist)
    65  55:			hist[int(i)]++
    66  47:		for scanner.Scan() {
    67  48:			s := scanner.Text()
    68  49:			i, err := strconv.ParseInt(s, 10, 64)
    69  50:			if err != nil { //gdb-dbg=(i)
    70  $11 = 4
    71  54:			hist = ensure(int(i), hist)
    72  55:			hist[int(i)]++
    73  47:		for scanner.Scan() {
    74  48:			s := scanner.Text()
    75  49:			i, err := strconv.ParseInt(s, 10, 64)
    76  50:			if err != nil { //gdb-dbg=(i)
    77  $12 = 8
    78  54:			hist = ensure(int(i), hist)
    79  55:			hist[int(i)]++
    80  47:		for scanner.Scan() {
    81  57:		t := 0
    82  58:		n := 0
    83  59:		for i, a := range hist {
    84  60:			if a == 0 {
    85  61:				continue
    86  59:		for i, a := range hist {
    87  60:			if a == 0 {
    88  63:			t += i * a
    89  64:			n += a
    90  65:			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)
    91  $13 = 4
    92  $14 = 1
    93  $15 = 4
    94  59:		for i, a := range hist {
    95  60:			if a == 0 {
    96  63:			t += i * a
    97  64:			n += a
    98  65:			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)
    99  $16 = 7
   100  $17 = 2
   101  $18 = 10
   102  59:		for i, a := range hist {
   103  60:			if a == 0 {
   104  61:				continue
   105  59:		for i, a := range hist {
   106  60:			if a == 0 {
   107  63:			t += i * a
   108  64:			n += a
   109  65:			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)
   110  $19 = 9
   111  $20 = 4
   112  $21 = 18
   113  59:		for i, a := range hist {
   114  60:			if a == 0 {
   115  61:				continue
   116  59:		for i, a := range hist {
   117  60:			if a == 0 {
   118  61:				continue
   119  59:		for i, a := range hist {
   120  60:			if a == 0 {
   121  61:				continue
   122  59:		for i, a := range hist {
   123  60:			if a == 0 {
   124  63:			t += i * a
   125  64:			n += a
   126  65:			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)
   127  $22 = 10
   128  $23 = 8
   129  $24 = 26
   130  59:		for i, a := range hist {
   131  60:			if a == 0 {
   132  61:				continue
   133  59:		for i, a := range hist {
   134  68:	}
   135    src/runtime/proc.go
   136  201:		if atomic.Load(&runningPanicDefers) != 0 {
   137  201:		if atomic.Load(&runningPanicDefers) != 0 {
   138  210:		if atomic.Load(&panicking) != 0 {
   139  214:		exit(0)