52 std::string arg_string;
53 for(
const auto&
arg : argv)
64 if(
arg.find(
"--test-single-non-deterministic-flow") == std::string::npos and
65 arg.find(
"--test-multiple-non-deterministic-flows") == std::string::npos)
71 arg_string +=
" --test-single-non-deterministic-flow=" +
STR(seed);
79 const auto temp_directory =
parameters->getOption<std::string>(OPT_output_temporary_directory);
80 const auto new_directory = temp_directory +
"/" +
STR(seed);
81 if(std::filesystem::exists(new_directory))
83 std::filesystem::remove_all(new_directory);
85 std::filesystem::create_directory(new_directory);
87 new_directory +
"/tool_execution_output");
110 const auto initial_seed =
parameters->getOption<
size_t>(OPT_seed);
111 const auto number_of_runs =
parameters->getOption<
size_t>(OPT_test_multiple_non_deterministic_flows);
112 for(
size_t run = 0; run < number_of_runs; run++)
#define DEBUG_LEVEL_VERY_PEDANTIC
extremely verbose debugging print is performed.
#define INDENT_DBG_MEX(dbgLevel, curDbgLevel, mex)
We are producing a debug version of the program, so the message is printed;.
DesignFlowStep_Status Exec() override
Execute the flow.
File containing functions and utilities to support the printing of debug messagges.
Design flow to check different non deterministic flows.
exceptions managed by PandA
#define STR(s)
Macro which performs a lexical_cast to a string.
Auxiliary methods for manipulating string.
bool IsError(const int error_value)
Utility include.
~NonDeterministicFlows() override
Destructor.
NonDeterministicFlows(const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters)
Constructor.
utility function used to read files.
bool ExecuteTool(const size_t seed) const
Execute tool with non deterministic flow.
const ParameterConstRef parameters
Set of input parameters.
DesignFlowStep_Status
The status of a step.
int PandaSystem(const ParameterConstRef Param, const std::string &system_command, bool host_exec, const std::string &output, const unsigned int type, const bool background, const size_t timeout)
System call forcing execution with bash.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
this class is used to manage the command-line or XML options.
int debug_level
The debug level.
const std::string ComputeArgString(const size_t seed) const
Compute the arg list string of the tool.
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...