Commit 370863bab1 for golang
commit 370863bab1876735e5a267b42b1214428a85230f
Author: Mark Freeman <mark@golang.org>
Date: Wed Dec 2 18:21:45 2026 -0500
cmd/compile/internal/contraire: give trials a reasonable default
With this, running contraire is just:
go run GOROOT/src/cmd/compile/internal/contraire/main.go
Change-Id: I01d0b9acf6d16e7f4e89f4ffb144dcfb8f9162ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/869482
Auto-Submit: Mark Freeman <mark@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/src/cmd/compile/internal/contraire/main.go b/src/cmd/compile/internal/contraire/main.go
index a9619078b7..d473277850 100644
--- a/src/cmd/compile/internal/contraire/main.go
+++ b/src/cmd/compile/internal/contraire/main.go
@@ -25,11 +25,11 @@ var (
// ============================= Shared Flags =============================
- // (Required) Sets the number of programs to generate.
+ // (Optional) Sets the number of programs to generate.
//
// To a driver, this means the sum of programs across all workers.
// To a worker, this means the number of programs for this worker.
- trials = flag.Int("trials", 0, "number of trials to run")
+ trials = flag.Int("trials", 1_000_000, "number of trials to run")
// (Optional) Sets the configuration controlling program generation
// parameters.