aboutsummaryrefslogtreecommitdiffstats
path: root/prog/minimization.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-18 09:31:12 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-19 21:48:20 +0100
commitdd768bf1c623521b27d1b16ab50a7b80cbcf8b37 (patch)
treeb6f686e750447c27343bfd06e3bd7eb6172468a6 /prog/minimization.go
parent833f78c7b023badf3ac188005adaf5fb1a20f56e (diff)
prog: reorder Minimize arguments
Make the predicate the last argument. It's more common and convenient (arguments are not separated by multiple lines).
Diffstat (limited to 'prog/minimization.go')
-rw-r--r--prog/minimization.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/minimization.go b/prog/minimization.go
index 459e6265d..8a77eec03 100644
--- a/prog/minimization.go
+++ b/prog/minimization.go
@@ -11,7 +11,7 @@ import (
// predicate pred. It iteratively generates simpler programs and asks pred
// whether it is equal to the orginal program or not. If it is equivalent then
// the simplification attempt is committed and the process continues.
-func Minimize(p0 *Prog, callIndex0 int, pred0 func(*Prog, int) bool, crash bool) (*Prog, int) {
+func Minimize(p0 *Prog, callIndex0 int, crash bool, pred0 func(*Prog, int) bool) (*Prog, int) {
pred := pred0
if debug {
pred = func(p *Prog, callIndex int) bool {