From d973f28294d93cf54de9b2b87d4cc8524bb8a28a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 31 Jan 2018 20:21:01 +0100 Subject: prog: don't serialize default arguments This reduces size of a corpus in half. We store corpus on manager and on hub, so this will reduce their memory consumption. But also makes large programs more readable. --- prog/validation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'prog/validation.go') diff --git a/prog/validation.go b/prog/validation.go index 3ed9eabc2..400b13140 100644 --- a/prog/validation.go +++ b/prog/validation.go @@ -42,7 +42,8 @@ func (c *Call) validate(ctx *validCtx) error { return fmt.Errorf("syscall %v: nil arg", c.Meta.Name) } if ctx.args[arg] { - return fmt.Errorf("syscall %v: arg is referenced several times in the tree", c.Meta.Name) + return fmt.Errorf("syscall %v: arg %#v is referenced several times in the tree", + c.Meta.Name, arg) } ctx.args[arg] = true if used, ok := arg.(ArgUsed); ok { -- cgit mrf-deployment