Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 22-Feb-2020 | - | ||||
LICENSE | H A D | 22-Feb-2020 | 1.4 KiB | 28 | 23 | |
README.md | H A D | 22-Feb-2020 | 1.8 KiB | 25 | 22 | |
context.go | H A D | 22-Feb-2020 | 13.3 KiB | 590 | 517 | |
expr.go | H A D | 22-Feb-2020 | 11.9 KiB | 484 | 435 | |
gosmith.go | H A D | 22-Feb-2020 | 588 | 29 | 25 | |
staticcheck.conf | H A D | 22-Feb-2020 | 31 | 2 | 1 | |
stmt.go | H A D | 22-Feb-2020 | 11.6 KiB | 455 | 421 | |
type.go | H A D | 22-Feb-2020 | 12.5 KiB | 517 | 477 |
README.md
1```GoSmith``` generates random, but legal, [Go programs](http://golang.org) to test Go compilers. 2 3Bugs found to date: 4 * [31 bugs](https://code.google.com/p/go/issues/list?can=1&q=label%3AGoSmith+-label%3ADocumentation+-status%3AInvalid&sort=-id&colspec=ID+Status+Stars+Release+Owner+Repo+Summary&cells=tiles) in gc compiler 5 * [18 bugs](https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=SUSPENDED&bug_status=WAITING&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&cf_known_to_fail_type=allwords&cf_known_to_work_type=allwords&f0=OP&f1=OP&f2=product&f3=component&f4=alias&f5=short_desc&f6=status_whiteboard&f7=content&f8=CP&f9=CP&j1=OR&list_id=97425&o2=substring&o3=substring&o4=substring&o5=substring&o6=substring&o7=matches&query_format=advanced&v2=GoSmith&v3=GoSmith&v4=GoSmith&v5=GoSmith&v6=GoSmith&v7=%22GoSmith%22) in gccgo compiler 6 * [5 bugs](https://github.com/go-llvm/llgo/issues?labels=GoSmith) in llgo compiler (+[bug 1](https://github.com/go-llvm/llgo/issues/174), +[bug 2](https://github.com/go-llvm/llgo/issues/175), +[bug 3](https://github.com/go-llvm/llgo/issues/176), +[bug 4](https://github.com/go-llvm/llgo/issues/177)) 7 * [3 bugs](https://code.google.com/p/go/issues/list?can=1&q=label%3AGoSmith+label%3ADocumentation+-status%3AInvalid&sort=-id&colspec=ID+Status+Stars+Release+Owner+Repo+Summary&cells=tiles) in the spec were uncovered due to this work 8 9Usage instructions: 10``` 11# Bootstrap Go implementation: 12./make.bash 13GOARCH=386 go tool dist bootstrap 14GOARCH=arm go tool dist bootstrap 15GOARCH=386 go install std 16GOARCH=arm go install std 17go install -race -a std 18go install -a std 19# Download binaries: 20go get -u code.google.com/p/gosmith/gosmith 21go get -u code.google.com/p/go.tools/cmd/ssadump 22# Test: 23go run driver.go -checkers=amd64,386,arm,exec 24``` 25