diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2019-03-15 19:48:20 +0000 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2019-03-15 22:53:39 +0000 |
commit | 3ff758e69ae6e1237004b6fcdbe5eb839aac57ec (patch) | |
tree | 260d3579fc8644f700484ad555dd74b8696de9ab /lib/Core/Executor.cpp | |
parent | 4756c66f48bc67f4f845ba1be6010e89dc34974e (diff) | |
download | klee-3ff758e69ae6e1237004b6fcdbe5eb839aac57ec.tar.gz |
Placed option categories in the klee namespace and options in the anonymous namespace in Executor.cpp
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r-- | lib/Core/Executor.cpp | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 3a022e9d..3a5202ac 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -92,11 +92,28 @@ using namespace llvm; using namespace klee; namespace klee { +cl::OptionCategory DebugCat("Debugging options", + "These are debugging options."); -/*** Test generation options ***/ +cl::OptionCategory ExtCallsCat("External call policy options", + "These options impact external calls."); + +cl::OptionCategory SeedingCat( + "Seeding options", + "These options are related to the use of seeds to start exploration."); + +cl::OptionCategory + TerminationCat("State and overall termination options", + "These options control termination of the overall KLEE " + "execution and of individual states."); cl::OptionCategory TestGenCat("Test generation options", "These options impact test generation."); +} // namespace klee + +namespace { + +/*** Test generation options ***/ cl::opt<bool> DumpStatesOnHalt( "dump-states-on-halt", @@ -140,10 +157,8 @@ cl::opt<bool> "querying the solver (default=true)"), cl::cat(SolvingCat)); -/*** External call policy options ***/ -cl::OptionCategory ExtCallsCat("External call policy options", - "These options impact external calls."); +/*** External call policy options ***/ enum class ExternalCallPolicy { None, // No external calls allowed @@ -183,11 +198,8 @@ cl::opt<bool> AllExternalWarnings( "as opposed to once per function (default=false)"), cl::cat(ExtCallsCat)); -/*** Seeding options ***/ -cl::OptionCategory SeedingCat( - "Seeding options", - "These options are related to the use of seeds to start exploration."); +/*** Seeding options ***/ cl::opt<bool> AlwaysOutputSeeds( "always-output-seeds", @@ -243,11 +255,6 @@ cl::opt<std::string> /*** Termination criteria options ***/ -cl::OptionCategory - TerminationCat("State and overall termination options", - "These options control termination of the overall KLEE " - "execution and of individual states."); - cl::list<Executor::TerminateReason> ExitOnErrorType( "exit-on-error-type", cl::desc( @@ -345,10 +352,8 @@ cl::opt<double> MaxStaticCPSolvePct( "instructions (default=1.0 (always))"), cl::cat(TerminationCat)); -/*** Debugging options ***/ -cl::OptionCategory DebugCat("Debugging options", - "These are debugging options."); +/*** Debugging options ***/ /// The different query logging solvers that can switched on/off enum PrintDebugInstructionsType { |