10 template <
typename Ntk,
typename Sim,
typename Sol>
40 template <
typename Ntk,
typename Sim,
typename Sol>
43 nVerbose(pPar->nAnalyzerVerbose),
48 template <
typename Ntk,
typename Sim,
typename Sol>
51 sim.AssignNetwork(pNtk, fReuse);
52 sol.AssignNetwork(pNtk, fReuse);
59 template <
typename Ntk,
typename Sim,
typename Sol>
61 if(sim.CheckRedundancy(
id, idx)) {
63 std::cout <<
"node " <<
id <<
" fanin " << (pNtk->GetCompl(
id, idx)?
"!":
"") << pNtk->GetFanin(
id, idx) <<
" index " << idx <<
" seems redundant" << std::endl;
65 SatResult r = sol.CheckRedundancy(
id, idx);
68 std::cout <<
"node " <<
id <<
" fanin " << (pNtk->GetCompl(
id, idx)?
"!":
"") << pNtk->GetFanin(
id, idx) <<
" index " << idx <<
" is redundant" << std::endl;
74 std::cout <<
"node " <<
id <<
" fanin " << (pNtk->GetCompl(
id, idx)?
"!":
"") << pNtk->GetFanin(
id, idx) <<
" index " << idx <<
" is NOT redundant" << std::endl;
76 sim.AddCex(sol.GetCex());
86 template <
typename Ntk,
typename Sim,
typename Sol>
88 if(sim.CheckFeasibility(
id, fi, c)) {
90 std::cout <<
"node " <<
id <<
" fanin " << (c?
"!":
"") << fi <<
" seems feasible" << std::endl;
92 SatResult r = sol.CheckFeasibility(
id, fi, c);
95 std::cout <<
"node " <<
id <<
" fanin " << (c?
"!":
"") << fi <<
" is feasible" << std::endl;
101 std::cout <<
"node " <<
id <<
" fanin " << (c?
"!":
"") << fi <<
" is NOT feasible" << std::endl;
103 sim.AddCex(sol.GetCex());
117 template <
typename Ntk,
typename Sim,
typename Sol>
123 template <
typename Ntk,
typename Sim,
typename Sol>
127 v.insert(v.end(), v2.begin(), v2.end());
131 template <
typename Ntk,
typename Sim,
typename Sol>
135 v.insert(v.end(), v2.begin(), v2.end());
#define ABC_NAMESPACE_CXX_HEADER_START
#define ABC_NAMESPACE_CXX_HEADER_END
void AssignNetwork(Ntk *pNtk_, bool fReuse)
summary< double > GetTimesSummary() const
summary< int > GetStatsSummary() const
bool CheckRedundancy(int id, int idx)
Analyzer(Parameter const *pPar)
bool CheckFeasibility(int id, int fi, bool c)
std::vector< std::pair< std::string, T > > summary