PandA-2024.02
|
Class to test non deterministic flows. More...
#include <non_deterministic_flows.hpp>
Public Member Functions | |
NonDeterministicFlows (const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters) | |
Constructor. More... | |
~NonDeterministicFlows () override | |
Destructor. More... | |
DesignFlowStep_Status | Exec () override |
Execute the flow. More... | |
Public Member Functions inherited from DesignFlow | |
DesignFlow (const DesignFlowManagerConstRef design_flow_manager, const DesignFlow_Type design_flow_type, const ParameterConstRef parameters) | |
Constructor. More... | |
~DesignFlow () override | |
Destructor. More... | |
void | ComputeRelationships (DesignFlowStepSet &relationship, const DesignFlowStep::RelationshipType relationship_type) override |
Compute the relationships of a step with other steps. More... | |
std::string | GetSignature () const override |
Return the signature of this step. More... | |
std::string | GetName () const override |
Return the name of this design step. More... | |
DesignFlowStepFactoryConstRef | CGetDesignFlowStepFactory () const override |
Return the factory to create this type of steps. More... | |
bool | HasToBeExecuted () const override |
Check if this step has actually to be executed. More... | |
Public Member Functions inherited from DesignFlowStep | |
DesignFlowStep (const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters) | |
Constructor. More... | |
virtual | ~DesignFlowStep () |
Destructor. More... | |
virtual void | Initialize () |
Initialize the step (i.e., like a constructor, but executed just before exec. More... | |
DesignFlowStep_Status | GetStatus () const |
Return the status of this design step. More... | |
virtual void | WriteDot (std::ostream &out) const |
Write the label for a dot graph. More... | |
bool | IsComposed () const |
Returns if this step is composed. More... | |
int | CGetDebugLevel () const |
Return the debug level of the step. More... | |
virtual void | PrintInitialIR () const |
Dump the initial intermediate representation. More... | |
virtual void | PrintFinalIR () const |
Dump the final intermediate representation. More... | |
Private Member Functions | |
const std::string | ComputeArgString (const size_t seed) const |
Compute the arg list string of the tool. More... | |
bool | ExecuteTool (const size_t seed) const |
Execute tool with non deterministic flow. More... | |
Additional Inherited Members | |
Public Types inherited from DesignFlowStep | |
enum | RelationshipType { DEPENDENCE_RELATIONSHIP, INVALIDATION_RELATIONSHIP, PRECEDENCE_RELATIONSHIP } |
The relationship type. More... | |
Static Public Member Functions inherited from DesignFlow | |
static std::string | ComputeSignature (const DesignFlow_Type design_flow_type) |
Compute the signature of a step. More... | |
static const std::string | EnumToKindText (const DesignFlow_Type design_flow_type) |
Return the name of the type. More... | |
static DesignFlow_Type | KindTextToEnum (const std::string &name) |
Given the name of design flow, return the enum. More... | |
Protected Attributes inherited from DesignFlow | |
const DesignFlow_Type | design_flow_type |
The type of this design flow. More... | |
Protected Attributes inherited from DesignFlowStep | |
bool | composed |
True if this step represents a composition of design flow steps (e.g., a flow); must be set by specialized constructors. More... | |
const Wrefcount< const DesignFlowManager > | design_flow_manager |
The design flow manager. More... | |
const ParameterConstRef | parameters |
Set of input parameters. More... | |
int | debug_level |
The debug level. More... | |
const int | output_level |
The output level. More... | |
Class to test non deterministic flows.
Definition at line 51 of file non_deterministic_flows.hpp.
NonDeterministicFlows::NonDeterministicFlows | ( | const DesignFlowManagerConstRef | design_flow_manager, |
const ParameterConstRef | parameters | ||
) |
Constructor.
design_flow_manager | is the design flow manager |
parameters | is the set of the parameters |
Definition at line 100 of file non_deterministic_flows.cpp.
References ~NonDeterministicFlows().
|
overridedefault |
|
private |
Compute the arg list string of the tool.
seed | is the seed to be passed |
Executable
Definition at line 49 of file non_deterministic_flows.cpp.
References test_panda::arg, DesignFlowStep::parameters, STR, and THROW_ASSERT.
Referenced by ExecuteTool().
|
overridevirtual |
Execute the flow.
Implements DesignFlowStep.
Definition at line 108 of file non_deterministic_flows.cpp.
References ABORTED, ExecuteTool(), DesignFlowStep::parameters, and SUCCESS.
Execute tool with non deterministic flow.
seed | is the seed to be passed |
Definition at line 75 of file non_deterministic_flows.cpp.
References ComputeArgString(), DesignFlowStep::debug_level, DEBUG_LEVEL_VERY_PEDANTIC, INDENT_DBG_MEX, IsError(), PandaSystem(), DesignFlowStep::parameters, and STR.
Referenced by Exec().