From 92fd446f72136594e6519065fbd5bca3e0aee8e3 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 11 Mar 2019 13:13:58 +0000 Subject: Consistently use "default=true" and "default=false" instead of "default=on" and "default=off" in --help --- lib/Basic/CmdLineOptions.cpp | 16 ++++++++-------- lib/Core/Executor.cpp | 28 ++++++++++++++-------------- lib/Core/MemoryManager.cpp | 4 ++-- lib/Core/StatsTracker.cpp | 8 ++++---- lib/Core/UserSearcher.cpp | 4 ++-- lib/Expr/ArrayExprOptimizer.cpp | 2 +- lib/Expr/Constraints.cpp | 2 +- lib/Expr/ExprSMTLIBPrinter.cpp | 2 +- lib/Solver/CexCachingSolver.cpp | 6 +++--- lib/Solver/QueryLoggingSolver.cpp | 4 ++-- 10 files changed, 38 insertions(+), 38 deletions(-) (limited to 'lib') diff --git a/lib/Basic/CmdLineOptions.cpp b/lib/Basic/CmdLineOptions.cpp index 9976a7ad..05ee2821 100644 --- a/lib/Basic/CmdLineOptions.cpp +++ b/lib/Basic/CmdLineOptions.cpp @@ -39,26 +39,26 @@ cl::OptionCategory SolvingCat("Constraint solving options", cl::opt UseFastCexSolver( "use-fast-cex-solver", cl::init(false), - cl::desc("Enable an experimental range-based solver (default=off)"), + cl::desc("Enable an experimental range-based solver (default=false)"), cl::cat(SolvingCat)); cl::opt UseCexCache("use-cex-cache", cl::init(true), - cl::desc("Use counterexample caching (default=on)"), + cl::desc("Use counterexample caching (default=true)"), cl::cat(SolvingCat)); cl::opt UseCache("use-cache", cl::init(true), - cl::desc("Use validity caching (default=on)"), + cl::desc("Use validity caching (default=true)"), cl::cat(SolvingCat)); cl::opt UseIndependentSolver("use-independent-solver", cl::init(true), - cl::desc("Use constraint independence (default=on)"), + cl::desc("Use constraint independence (default=true)"), cl::cat(SolvingCat)); cl::opt DebugValidateSolver( "debug-validate-solver", cl::init(false), cl::desc("Crosscheck the results of the solver chain above the core solver " - "with the results of the core solver (default=off)"), + "with the results of the core solver (default=false)"), cl::cat(SolvingCat)); cl::opt MinQueryTimeToLog( @@ -80,13 +80,13 @@ cl::opt MaxCoreSolverTime( cl::opt UseForkedCoreSolver( "use-forked-solver", - cl::desc("Run the core SMT solver in a forked process (default=on)"), + cl::desc("Run the core SMT solver in a forked process (default=true)"), cl::init(true), cl::cat(SolvingCat)); cl::opt CoreSolverOptimizeDivides( "solver-optimize-divides", cl::desc("Optimize constant divides into add/shift/multiplies before " - "passing them to the core SMT solver (default=off)"), + "passing them to the core SMT solver (default=false)"), cl::init(false), cl::cat(SolvingCat)); cl::bits QueryLoggingOptions( @@ -109,7 +109,7 @@ cl::bits QueryLoggingOptions( cl::opt UseAssignmentValidatingSolver( "debug-assignment-validating-solver", cl::init(false), - cl::desc("Debug the correctness of generated assignments (default=off)"), + cl::desc("Debug the correctness of generated assignments (default=false)"), cl::cat(SolvingCat)); void KCommandLine::HideUnrelatedOptions(cl::OptionCategory &Category) { diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 488ffa34..abb5be7d 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -103,20 +103,20 @@ namespace { cl::opt DumpStatesOnHalt("dump-states-on-halt", cl::init(true), - cl::desc("Dump test cases for all active states on exit (default=on)"), + cl::desc("Dump test cases for all active states on exit (default=true)"), cl::cat(TestGenCat)); cl::opt OnlyOutputStatesCoveringNew("only-output-states-covering-new", cl::init(false), - cl::desc("Only output test cases covering new code (default=off)."), + cl::desc("Only output test cases covering new code (default=false)."), cl::cat(TestGenCat)); cl::opt EmitAllErrors("emit-all-errors", cl::init(false), cl::desc("Generate tests cases for all errors " - "(default=off, i.e. one per (error,instruction) pair)"), + "(default=false, i.e. one per (error,instruction) pair)"), cl::cat(TestGenCat)); @@ -125,12 +125,12 @@ namespace { cl::opt SimplifySymIndices("simplify-sym-indices", cl::init(false), - cl::desc("Simplify symbolic accesses using equalities from other constraints (default=off)")); + cl::desc("Simplify symbolic accesses using equalities from other constraints (default=false)")); cl::opt EqualitySubstitution("equality-substitution", cl::init(true), - cl::desc("Simplify equality expressions before querying the solver (default=on).")); + cl::desc("Simplify equality expressions before querying the solver (default=true).")); cl::opt MaxSymArraySize("max-sym-array-size", @@ -169,7 +169,7 @@ namespace { AllExternalWarnings("all-external-warnings", cl::init(false), cl::desc("Issue a warning everytime an external call is made, " - "as opposed to once per function (default=off)"), + "as opposed to once per function (default=false)"), cl::cat(ExtCallsCat)); @@ -187,13 +187,13 @@ namespace { cl::opt OnlyReplaySeeds("only-replay-seeds", cl::init(false), - cl::desc("Discard states that do not have a seed (default=off)."), + cl::desc("Discard states that do not have a seed (default=false)."), cl::cat(SeedingCat)); cl::opt OnlySeed("only-seed", cl::init(false), - cl::desc("Stop execution after seeding is done without doing regular search (default=off)."), + cl::desc("Stop execution after seeding is done without doing regular search (default=false)."), cl::cat(SeedingCat)); cl::opt @@ -205,19 +205,19 @@ namespace { cl::opt ZeroSeedExtension("zero-seed-extension", cl::init(false), - cl::desc("Use zero-filled objects if matching seed not found (default=off)"), + cl::desc("Use zero-filled objects if matching seed not found (default=false)"), cl::cat(SeedingCat)); cl::opt AllowSeedTruncation("allow-seed-truncation", cl::init(false), - cl::desc("Allow smaller buffers than in seeds (default=off)."), + cl::desc("Allow smaller buffers than in seeds (default=false)."), cl::cat(SeedingCat)); cl::opt NamedSeedMatching("named-seed-matching", cl::init(false), - cl::desc("Use names to match symbolic objects to inputs (default=off)."), + cl::desc("Use names to match symbolic objects to inputs (default=false)."), cl::cat(SeedingCat)); cl::opt @@ -233,7 +233,7 @@ namespace { cl::list ExitOnErrorType("exit-on-error-type", - cl::desc("Stop execution after reaching a specified condition (default=off)"), + cl::desc("Stop execution after reaching a specified condition (default=false)"), cl::values( clEnumValN(Executor::Abort, "Abort", "The program crashed"), clEnumValN(Executor::Assert, "Assert", "An assertion was hit"), @@ -278,7 +278,7 @@ namespace { cl::opt MaxMemoryInhibit("max-memory-inhibit", - cl::desc("Inhibit forking at memory cap (vs. random terminate) (default=on)"), + cl::desc("Inhibit forking at memory cap (vs. random terminate) (default=true)"), cl::init(true), cl::cat(TerminationCat)); @@ -361,7 +361,7 @@ namespace { cl::opt DebugCompressInstructions("debug-compress-instructions", cl::init(false), - cl::desc("Compress the logged instructions in gzip format (default=off)."), + cl::desc("Compress the logged instructions in gzip format (default=false)."), cl::cat(DebugCat)); #endif diff --git a/lib/Core/MemoryManager.cpp b/lib/Core/MemoryManager.cpp index b8762c65..f98a8a34 100644 --- a/lib/Core/MemoryManager.cpp +++ b/lib/Core/MemoryManager.cpp @@ -29,7 +29,7 @@ llvm::cl::OptionCategory MemoryCat("Memory management options", llvm::cl::opt DeterministicAllocation( "allocate-determ", - llvm::cl::desc("Allocate memory deterministically (default=off)"), + llvm::cl::desc("Allocate memory deterministically (default=false)"), llvm::cl::init(false), llvm::cl::cat(MemoryCat)); llvm::cl::opt DeterministicAllocationSize( @@ -40,7 +40,7 @@ llvm::cl::opt DeterministicAllocationSize( llvm::cl::opt NullOnZeroMalloc( "return-null-on-zero-malloc", - llvm::cl::desc("Returns NULL if malloc(0) is called (default=off)"), + llvm::cl::desc("Returns NULL if malloc(0) is called (default=false)"), llvm::cl::init(false), llvm::cl::cat(MemoryCat)); llvm::cl::opt RedZoneSpace( diff --git a/lib/Core/StatsTracker.cpp b/lib/Core/StatsTracker.cpp index 5ad0f174..0300d1ba 100644 --- a/lib/Core/StatsTracker.cpp +++ b/lib/Core/StatsTracker.cpp @@ -58,17 +58,17 @@ namespace { cl::opt TrackInstructionTime("track-instruction-time", cl::init(false), - cl::desc("Enable tracking of time for individual instructions (default=off)")); + cl::desc("Enable tracking of time for individual instructions (default=false)")); cl::opt OutputStats("output-stats", cl::init(true), - cl::desc("Write running stats trace file (default=on)")); + cl::desc("Write running stats trace file (default=true)")); cl::opt OutputIStats("output-istats", cl::init(true), - cl::desc("Write instruction level statistics in callgrind format (default=on)")); + cl::desc("Write instruction level statistics in callgrind format (default=true)")); cl::opt StatsWriteInterval("stats-write-interval", @@ -99,7 +99,7 @@ namespace { cl::opt UseCallPaths("use-call-paths", cl::init(true), - cl::desc("Enable calltree tracking for instruction level statistics (default=on)")); + cl::desc("Enable calltree tracking for instruction level statistics (default=true)")); } diff --git a/lib/Core/UserSearcher.cpp b/lib/Core/UserSearcher.cpp index 4af732e5..754b3796 100644 --- a/lib/Core/UserSearcher.cpp +++ b/lib/Core/UserSearcher.cpp @@ -55,14 +55,14 @@ cl::list CoreSearch( cl::opt UseIterativeDeepeningTimeSearch( "use-iterative-deepening-time-search", cl::desc( - "Use iterative deepening time search (experimental) (default=off)"), + "Use iterative deepening time search (experimental) (default=false)"), cl::init(false), cl::cat(SearchCat)); cl::opt UseBatchingSearch( "use-batching-search", cl::desc("Use batching searcher (keep running selected state for N " "instructions/time, see --batch-instructions and --batch-time) " - "(default=off)"), + "(default=false)"), cl::init(false), cl::cat(SearchCat)); cl::opt diff --git a/lib/Expr/ArrayExprOptimizer.cpp b/lib/Expr/ArrayExprOptimizer.cpp index d043783a..43b289e2 100644 --- a/lib/Expr/ArrayExprOptimizer.cpp +++ b/lib/Expr/ArrayExprOptimizer.cpp @@ -42,7 +42,7 @@ llvm::cl::opt OptimizeArray( KLEE_LLVM_CL_VAL_END), llvm::cl::init(NONE), llvm::cl::desc("Optimize accesses to either concrete or concrete/symbolic " - "arrays. (default=off)"), + "arrays. (default=false)"), llvm::cl::cat(klee::SolvingCat)); llvm::cl::opt ArrayValueRatio( diff --git a/lib/Expr/Constraints.cpp b/lib/Expr/Constraints.cpp index 1b3ad983..8bf6bc58 100644 --- a/lib/Expr/Constraints.cpp +++ b/lib/Expr/Constraints.cpp @@ -24,7 +24,7 @@ namespace { llvm::cl::opt RewriteEqualities("rewrite-equalities", llvm::cl::init(true), - llvm::cl::desc("Rewrite existing constraints when an equality with a constant is added (default=on)")); + llvm::cl::desc("Rewrite existing constraints when an equality with a constant is added (default=true)")); } diff --git a/lib/Expr/ExprSMTLIBPrinter.cpp b/lib/Expr/ExprSMTLIBPrinter.cpp index fd515509..8e0810ad 100644 --- a/lib/Expr/ExprSMTLIBPrinter.cpp +++ b/lib/Expr/ExprSMTLIBPrinter.cpp @@ -32,7 +32,7 @@ argConstantDisplayMode( llvm::cl::opt humanReadableSMTLIB( "smtlib-human-readable", llvm::cl::desc( - "Enables generated SMT-LIBv2 files to be human readable (default=off)"), + "Enables generated SMT-LIBv2 files to be human readable (default=false)"), llvm::cl::init(false)); llvm::cl::opt abbreviationMode( diff --git a/lib/Solver/CexCachingSolver.cpp b/lib/Solver/CexCachingSolver.cpp index 8bf41ee6..d2e080d9 100644 --- a/lib/Solver/CexCachingSolver.cpp +++ b/lib/Solver/CexCachingSolver.cpp @@ -30,13 +30,13 @@ namespace { cl::opt DebugCexCacheCheckBinding( "debug-cex-cache-check-binding", cl::init(false), cl::desc("Debug the correctness of the counterexample " - "cache assignments (default=off)"), + "cache assignments (default=false)"), cl::cat(SolvingCat)); cl::opt CexCacheTryAll("cex-cache-try-all", cl::init(false), cl::desc("Try substituting all counterexamples before " - "asking the SMT solver (default=off)"), + "asking the SMT solver (default=false)"), cl::cat(SolvingCat)); cl::opt @@ -47,7 +47,7 @@ cl::opt cl::opt CexCacheExperimental( "cex-cache-exp", cl::init(false), - cl::desc("Optimization for validity queries (default=off)"), + cl::desc("Optimization for validity queries (default=false)"), cl::cat(SolvingCat)); } // namespace diff --git a/lib/Solver/QueryLoggingSolver.cpp b/lib/Solver/QueryLoggingSolver.cpp index 4e06d1b2..19716e84 100644 --- a/lib/Solver/QueryLoggingSolver.cpp +++ b/lib/Solver/QueryLoggingSolver.cpp @@ -18,13 +18,13 @@ namespace { llvm::cl::opt DumpPartialQueryiesEarly( "log-partial-queries-early", llvm::cl::init(false), - llvm::cl::desc("Log queries before calling the solver (default=off)"), + llvm::cl::desc("Log queries before calling the solver (default=false)"), llvm::cl::cat(klee::SolvingCat)); #ifdef HAVE_ZLIB_H llvm::cl::opt CreateCompressedQueryLog( "compress-query-log", llvm::cl::init(false), - llvm::cl::desc("Compress query log files (default=off)"), + llvm::cl::desc("Compress query log files (default=false)"), llvm::cl::cat(klee::SolvingCat)); #endif } // namespace -- cgit 1.4.1