From 5f167edf436f1ef735e5c89f6e350d11ec7c7854 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Tue, 18 Dec 2018 14:53:46 +0000 Subject: Added test case option category --- tools/klee/main.cpp | 69 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 27 deletions(-) diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index c7a19df6..9a258fb8 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -72,56 +72,71 @@ namespace { cl::opt InputFile(cl::desc(""), cl::Positional, cl::init("-")); - cl::opt - EntryPoint("entry-point", - cl::desc("Consider the function with the given name as the entrypoint"), - cl::init("main")); - - cl::opt - RunInDir("run-in", cl::desc("Change to the given directory prior to executing")); - cl::opt - Environ("environ", cl::desc("Parse environ from given file (in \"env\" format)")); + /*** Test case options ***/ - cl::list - InputArgv(cl::ConsumeAfter, - cl::desc("...")); - - cl::opt - NoOutput("no-output", - cl::desc("Don't generate test files")); - - cl::opt - WarnAllExternals("warn-all-externals", - cl::desc("Give initial warning for all externals.")); + cl::OptionCategory TestCaseCat("Test case options", + "These options select the files to generate for each test case."); cl::opt WriteCVCs("write-cvcs", - cl::desc("Write .cvc files for each test case")); + cl::desc("Write .cvc files for each test case (default=false)"), + cl::cat(TestCaseCat)); cl::opt WriteKQueries("write-kqueries", - cl::desc("Write .kquery files for each test case")); + cl::desc("Write .kquery files for each test case (default=false)"), + cl::cat(TestCaseCat)); cl::opt WriteSMT2s("write-smt2s", - cl::desc("Write .smt2 (SMT-LIBv2) files for each test case")); + cl::desc("Write .smt2 (SMT-LIBv2) files for each test case (default=false)"), + cl::cat(TestCaseCat)); cl::opt WriteCov("write-cov", - cl::desc("Write coverage information for each test case")); + cl::desc("Write coverage information for each test case (default=false)"), + cl::cat(TestCaseCat)); cl::opt WriteTestInfo("write-test-info", - cl::desc("Write additional test case information")); + cl::desc("Write additional test case information (default=false)"), + cl::cat(TestCaseCat)); cl::opt WritePaths("write-paths", - cl::desc("Write .path files for each test case")); + cl::desc("Write .path files for each test case (default=false)"), + cl::cat(TestCaseCat)); cl::opt WriteSymPaths("write-sym-paths", - cl::desc("Write .sym.path files for each test case")); + cl::desc("Write .sym.path files for each test case (default=false)"), + cl::cat(TestCaseCat)); + + + + cl::opt + EntryPoint("entry-point", + cl::desc("Consider the function with the given name as the entrypoint"), + cl::init("main")); + + cl::opt + RunInDir("run-in", cl::desc("Change to the given directory prior to executing")); + + cl::opt + Environ("environ", cl::desc("Parse environ from given file (in \"env\" format)")); + + cl::list + InputArgv(cl::ConsumeAfter, + cl::desc("...")); + + cl::opt + NoOutput("no-output", + cl::desc("Don't generate test files")); + + cl::opt + WarnAllExternals("warn-all-externals", + cl::desc("Give initial warning for all externals.")); cl::opt OptExitOnError("exit-on-error", -- cgit 1.4.1