From f244db54bfc37f5cc1d831f54c74e818e69bd28c Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Tue, 1 Mar 2016 14:36:13 +0000 Subject: Documented default values for various options and improved the description of some. --- lib/Core/Executor.cpp | 64 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 44 insertions(+), 20 deletions(-) (limited to 'lib/Core/Executor.cpp') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 33cee9f9..dc9edf5f 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -136,27 +136,33 @@ namespace { cl::opt SimplifySymIndices("simplify-sym-indices", - cl::init(false)); + cl::init(false), + cl::desc("Simplify symbolic accesses using equalities from other constraints (default=off)")); cl::opt EqualitySubstitution("equality-substitution", - cl::init(true), - cl::desc("Simplify equality expressions before querying the solver (default=on).")); + cl::init(true), + cl::desc("Simplify equality expressions before querying the solver (default=on).")); cl::opt MaxSymArraySize("max-sym-array-size", cl::init(0)); cl::opt - SuppressExternalWarnings("suppress-external-warnings"); + SuppressExternalWarnings("suppress-external-warnings", + cl::init(false), + cl::desc("Supress warnings about calling external functions.")); cl::opt - AllExternalWarnings("all-external-warnings"); + AllExternalWarnings("all-external-warnings", + cl::init(false), + cl::desc("Issue an warning everytime an external call is made," + "as opposed to once per function (default=off)")); cl::opt OnlyOutputStatesCoveringNew("only-output-states-covering-new", cl::init(false), - cl::desc("Only output test cases covering new code.")); + cl::desc("Only output test cases covering new code (default=off).")); cl::opt EmitAllErrors("emit-all-errors", @@ -173,36 +179,54 @@ namespace { cl::init(true)); cl::opt - OnlyReplaySeeds("only-replay-seeds", - cl::desc("Discard states that do not have a seed.")); + OnlyReplaySeeds("only-replay-seeds", + cl::init(false), + cl::desc("Discard states that do not have a seed (default=off).")); cl::opt - OnlySeed("only-seed", - cl::desc("Stop execution after seeding is done without doing regular search.")); + OnlySeed("only-seed", + cl::init(false), + cl::desc("Stop execution after seeding is done without doing regular search (default=off).")); cl::opt - AllowSeedExtension("allow-seed-extension", - cl::desc("Allow extra (unbound) values to become symbolic during seeding.")); + AllowSeedExtension("allow-seed-extension", + cl::init(false), + cl::desc("Allow extra (unbound) values to become symbolic during seeding (default=false).")); cl::opt - ZeroSeedExtension("zero-seed-extension"); + ZeroSeedExtension("zero-seed-extension", + cl::init(false), + cl::desc("(default=off)")); cl::opt - AllowSeedTruncation("allow-seed-truncation", - cl::desc("Allow smaller buffers than in seeds.")); + AllowSeedTruncation("allow-seed-truncation", + cl::init(false), + cl::desc("Allow smaller buffers than in seeds (default=off).")); cl::opt NamedSeedMatching("named-seed-matching", - cl::desc("Use names to match symbolic objects to inputs.")); + cl::init(false), + cl::desc("Use names to match symbolic objects to inputs (default=off).")); cl::opt - MaxStaticForkPct("max-static-fork-pct", cl::init(1.)); + MaxStaticForkPct("max-static-fork-pct", + cl::init(1.), + cl::desc("(default=1.0)")); + cl::opt - MaxStaticSolvePct("max-static-solve-pct", cl::init(1.)); + MaxStaticSolvePct("max-static-solve-pct", + cl::init(1.), + cl::desc("(default=1.0)")); + cl::opt - MaxStaticCPForkPct("max-static-cpfork-pct", cl::init(1.)); + MaxStaticCPForkPct("max-static-cpfork-pct", + cl::init(1.), + cl::desc("(default=1.0)")); + cl::opt - MaxStaticCPSolvePct("max-static-cpsolve-pct", cl::init(1.)); + MaxStaticCPSolvePct("max-static-cpsolve-pct", + cl::init(1.), + cl::desc("(default=1.0)")); cl::opt MaxInstructionTime("max-instruction-time", -- cgit 1.4.1