diff options
Diffstat (limited to 'prog/mutation.go')
| -rw-r--r-- | prog/mutation.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/prog/mutation.go b/prog/mutation.go index 62acba586..5a1819569 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -49,9 +49,7 @@ func (p *Prog) Mutate(rs rand.Source, ncalls int, ct *ChoiceTable, corpus []*Pro ok = ctx.removeCall() } } - for _, c := range p.Calls { - p.Target.SanitizeCall(c) - } + p.sanitizeFix() p.debugValidate() if got := len(p.Calls); got < 1 || got > ncalls { panic(fmt.Sprintf("bad number of calls after mutation: %v, want [1, %v]", got, ncalls)) |
