#include <genCBMC.hpp>
|
| CVerifGen (const std::string &prefix) |
|
| ~CVerifGen () |
|
CVar * | addInput (const std::string &name, nptr_t node, bool ms=false) |
|
CVar * | addState (const std::string &name, nptr_t node, bool ms=false) |
|
CFun * | addFun (const std::string &name, bool ms=false) |
|
CVar * | addFuncVar (const std::string &name, nptr_t node, bool ms=false) |
|
void | operator() (const Node *n) |
|
void | buildFun (CFun *f, nptr_t nptr) |
|
void | setFunReturn (CFun *f, nptr_t nptr) |
|
void | addFunUpdate (CFun *f, nptr_t lhs, nptr_t rhs) |
|
void | addFunUpdate (CFun *f, nptr_t lhs, CVar *rhs) |
|
void | endFun (CFun *f) |
|
CVar * | appFun (CFun *appFun, CFun *envFun) |
|
void | exportAllToFile (const std::string &fileName) const |
|
void | exportAllToDir (const std::string &dirName) const |
|
◆ CFunMap
◆ CVarMap
◆ CVerifGen()
ilasynth::CVerifGen::CVerifGen |
( |
const std::string & |
prefix | ) |
|
◆ ~CVerifGen()
ilasynth::CVerifGen::~CVerifGen |
( |
| ) |
|
◆ addFun()
CFun* ilasynth::CVerifGen::addFun |
( |
const std::string & |
name, |
|
|
bool |
ms = false |
|
) |
| |
◆ addFuncVar()
CVar* ilasynth::CVerifGen::addFuncVar |
( |
const std::string & |
name, |
|
|
nptr_t |
node, |
|
|
bool |
ms = false |
|
) |
| |
◆ addFunUpdate() [1/2]
◆ addFunUpdate() [2/2]
void ilasynth::CVerifGen::addFunUpdate |
( |
CFun * |
f, |
|
|
nptr_t |
lhs, |
|
|
CVar * |
rhs |
|
) |
| |
◆ addInput()
CVar* ilasynth::CVerifGen::addInput |
( |
const std::string & |
name, |
|
|
nptr_t |
node, |
|
|
bool |
ms = false |
|
) |
| |
◆ addState()
CVar* ilasynth::CVerifGen::addState |
( |
const std::string & |
name, |
|
|
nptr_t |
node, |
|
|
bool |
ms = false |
|
) |
| |
◆ appFun()
CVar* ilasynth::CVerifGen::appFun |
( |
CFun * |
appFun, |
|
|
CFun * |
envFun |
|
) |
| |
◆ buildFun()
void ilasynth::CVerifGen::buildFun |
( |
CFun * |
f, |
|
|
nptr_t |
nptr |
|
) |
| |
◆ checkAndInsert()
template<class T >
void ilasynth::CVerifGen::checkAndInsert |
( |
std::map< std::string, T *> & |
mp, |
|
|
const std::string & |
name, |
|
|
T * |
var, |
|
|
bool |
force = false |
|
) |
| |
|
private |
◆ createCommon()
void ilasynth::CVerifGen::createCommon |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ defMemClass()
void ilasynth::CVerifGen::defMemClass |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ defUnitpFunc()
void ilasynth::CVerifGen::defUnitpFunc |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ depthFirstTraverse()
void ilasynth::CVerifGen::depthFirstTraverse |
( |
nptr_t |
n | ) |
|
|
private |
◆ endFun()
void ilasynth::CVerifGen::endFun |
( |
CFun * |
f | ) |
|
◆ exportAllToDir()
void ilasynth::CVerifGen::exportAllToDir |
( |
const std::string & |
dirName | ) |
const |
◆ exportAllToFile()
void ilasynth::CVerifGen::exportAllToFile |
( |
const std::string & |
fileName | ) |
const |
◆ findVar()
CVar* ilasynth::CVerifGen::findVar |
( |
CVarMap & |
mp, |
|
|
const std::string & |
name |
|
) |
| |
|
private |
◆ genModel()
void ilasynth::CVerifGen::genModel |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ getBoolConstC()
◆ getBoolOpC()
CVar* ilasynth::CVerifGen::getBoolOpC |
( |
const BoolOp * |
n | ) |
|
|
private |
◆ getBoolVarC()
CVar* ilasynth::CVerifGen::getBoolVarC |
( |
const BoolVar * |
n | ) |
|
|
private |
◆ getBvConstC()
◆ getBvOpC()
◆ getBvVarC()
◆ getFuncVarC()
CVar* ilasynth::CVerifGen::getFuncVarC |
( |
const FuncVar * |
n | ) |
|
|
private |
◆ getMemConstC()
CVar* ilasynth::CVerifGen::getMemConstC |
( |
const MemConst * |
n | ) |
|
|
private |
◆ getMemOpC()
CVar* ilasynth::CVerifGen::getMemOpC |
( |
const MemOp * |
n | ) |
|
|
private |
◆ getMemVarC()
CVar* ilasynth::CVerifGen::getMemVarC |
( |
const MemVar * |
n | ) |
|
|
private |
◆ getSignedCCode()
std::string ilasynth::CVerifGen::getSignedCCode |
( |
CVar * |
var | ) |
|
|
private |
◆ isITE()
bool ilasynth::CVerifGen::isITE |
( |
nptr_t |
n | ) |
|
|
private |
◆ operator()()
void ilasynth::CVerifGen::operator() |
( |
const Node * |
n | ) |
|
◆ setFunReturn()
void ilasynth::CVerifGen::setFunReturn |
( |
CFun * |
f, |
|
|
nptr_t |
nptr |
|
) |
| |
◆ setMemConst()
void ilasynth::CVerifGen::setMemConst |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ _curFun
CFun* ilasynth::CVerifGen::_curFun |
|
private |
◆ _curVar
CVar* ilasynth::CVerifGen::_curVar |
|
private |
◆ _curVarMap
CVarMap* ilasynth::CVerifGen::_curVarMap |
|
private |
◆ _funMap
CFunMap ilasynth::CVerifGen::_funMap |
|
private |
◆ _inputs
CVarMap ilasynth::CVerifGen::_inputs |
|
private |
◆ _localArray
CVarMap ilasynth::CVerifGen::_localArray |
|
private |
◆ _localConstVar
CVarMap ilasynth::CVerifGen::_localConstVar |
|
private |
◆ _masks
CVarMap ilasynth::CVerifGen::_masks |
|
private |
◆ _memConst
std::map<CVar*, const MemConst*> ilasynth::CVerifGen::_memConst |
|
private |
◆ _modelName
std::string ilasynth::CVerifGen::_modelName |
|
private |
◆ _states
CVarMap ilasynth::CVerifGen::_states |
|
private |
◆ _unitpFuncMap
CFunMap ilasynth::CVerifGen::_unitpFuncMap |
|
private |
◆ _unitpFuncVarMap
CVarMap ilasynth::CVerifGen::_unitpFuncVarMap |
|
private |
◆ _varInFun
std::map<CFun*, CVarMap*> ilasynth::CVerifGen::_varInFun |
|
private |
The documentation for this class was generated from the following file: