X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/cmd/compile/internal/ssa/testdata
opt
/
golang
/
1.19.4
/
src
/
cmd
/
compile
/
internal
/
ssa
/
testdata
/
📁
..
📄
convertline.go
(151 B)
📄
hist.dlv-dbg.nexts
(3.81 KB)
📄
hist.dlv-opt.nexts
(3.74 KB)
📄
hist.gdb-dbg.nexts
(4.03 KB)
📄
hist.gdb-opt.nexts
(4.45 KB)
📄
hist.go
(2.4 KB)
📄
i22558.dlv-dbg.nexts
(251 B)
📄
i22558.gdb-dbg.nexts
(278 B)
📄
i22558.go
(773 B)
📄
i22600.dlv-dbg-race.nexts
(122 B)
📄
i22600.gdb-dbg-race.nexts
(149 B)
📄
i22600.go
(358 B)
📄
infloop.dlv-opt.nexts
(179 B)
📄
infloop.gdb-opt.nexts
(98 B)
📄
infloop.go
(177 B)
📄
inline-dump.go
(178 B)
📄
pushback.go
(360 B)
📄
sayhi.go
(137 B)
📄
scopes.dlv-dbg.nexts
(1.27 KB)
📄
scopes.dlv-opt.nexts
(1.11 KB)
📄
scopes.gdb-dbg.nexts
(1.27 KB)
📄
scopes.gdb-opt.nexts
(1.11 KB)
📄
scopes.go
(1.45 KB)
Editing: hist.gdb-opt.nexts
src/cmd/compile/internal/ssa/testdata/hist.go 55: func test() { 57: l := line{point{1 + zero, 2 + zero}, point{3 + zero, 4 + zero}} 58: tinycall() // this forces l etc to stack 59: dx := l.end.x - l.begin.x //gdb-dbg=(l.begin.x,l.end.y)//gdb-opt=(l,dx/O,dy/O) l = {begin = {x = 1, y = 2}, end = {x = 3, y = 4}} dx = <Optimized out, as expected> dy = <Optimized out, as expected> 60: dy := l.end.y - l.begin.y //gdb-opt=(dx,dy/O) dx = 2 dy = <Optimized out, as expected> 61: sink = dx + dy //gdb-opt=(dx,dy) dx = 2 dy = 2 63: hist := make([]int, 7) //gdb-opt=(dx/O,dy/O) // TODO sink is missing if this code is in 'test' instead of 'main' dx = 2 dy = <Optimized out, as expected> 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' 65: if len(os.Args) > 1 { 73: scanner := bufio.NewScanner(reader) 74: for scanner.Scan() { //gdb-opt=(scanner/A) scanner = (bufio.Scanner *) <A> 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 1 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 1 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 1 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 2 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 2 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 2 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 4 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 4 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 75: s := scanner.Text() 76: i, err := strconv.ParseInt(s, 10, 64) 77: if err != nil { //gdb-dbg=(i) //gdb-opt=(err,hist,i) err = {tab = 0x0, data = 0x0} hist = {array = 0xc00005ae50, len = 7, cap = 7} i = 5 81: hist = ensure(int(i), hist) 82: hist[int(i)]++ 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 0 n = 0 t = 0 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 3 n = 0 t = 0 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) 91: n += a 90: t += i * a 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 3 n = 3 t = 3 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) 91: n += a 90: t += i * a 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 0 n = 6 t = 9 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 2 n = 6 t = 9 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) 91: n += a 90: t += i * a 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 1 n = 8 t = 17 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) 91: n += a 90: t += i * a 86: for i, a := range hist { 87: if a == 0 { //gdb-opt=(a,n,t) a = 0 n = 9 t = 22 86: for i, a := range hist { 99: }
Upload File
Create Folder