about summary refs log tree commit diff homepage
path: root/lib/Core/Executor.cpp
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2019-03-15 19:48:20 +0000
committerMartinNowack <martin.nowack@gmail.com>2019-03-15 22:53:39 +0000
commit3ff758e69ae6e1237004b6fcdbe5eb839aac57ec (patch)
tree260d3579fc8644f700484ad555dd74b8696de9ab /lib/Core/Executor.cpp
parent4756c66f48bc67f4f845ba1be6010e89dc34974e (diff)
downloadklee-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.cpp37
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 {