Lines Matching defs:Smith

21 type Smith struct {  struct
22 curPackage int
23 curBlock *Block
24 curBlockPos int
25 curFunc *Func
27 packages [NPackages]*Package
29 idSeq int
30 typeDepth int
31 stmtCount int
32 exprDepth int
33 exprCount int
34 totalExprCount int
36 predefinedTypes []*Type
37 stringType *Type
38 boolType *Type
39 intType *Type
40 byteType *Type
41 efaceType *Type
42 runeType *Type
43 float32Type *Type
44 float64Type *Type
45 complex64Type *Type
46 complex128Type *Type
48 statements []func()
49 expressions []func(res *Type) string
51 rng *rand.Rand
114 func (smith *Smith) writeProgram(dir string) {
125 func (smith *Smith) initProgram() {
138 func (smith *Smith) newPackage(name string) *Package {
142 func (smith *Smith) genPackage(pi int) {
171 func (smith *Smith) line(f string, args ...interface{}) {
184 func (smith *Smith) resetContext(pi int) {
192 func (smith *Smith) genToplevFunction(pi int, f *Func) {
221 func (smith *Smith) genToplevVar(pi int, v *Var) {
229 func (smith *Smith) genBlock() {
237 func (smith *Smith) serializeProgram(dir string) {
319 func (smith *Smith) vars() []*Var {
348 func (smith *Smith) types() []*Type {
377 func (smith *Smith) defineVar(id string, t *Type) {
383 func (smith *Smith) defineType(t *Type) {
388 func (smith *Smith) materializeVar(t *Type) string {
469 func (smith *Smith) materializeFunc(rets []*Type) *Func {
511 func (smith *Smith) materializeGotoLabel() string {
549 func (smith *Smith) rnd(n int) int {
553 func (smith *Smith) rndBool() bool {
557 func (smith *Smith) choice(ch ...string) string {
561 func (smith *Smith) newId(prefix string) string {
569 func (smith *Smith) enterBlock(nonextendable bool) {
578 func (smith *Smith) leaveBlock() {