Skip to content

Commit 4c4ad93

Browse files
committed
netlist output now includes AIG constraints
The output of --show-netlist now includes the AIG constraints.
1 parent ee122e1 commit 4c4ad93

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/trans-netlist/netlist.cpp

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,32 @@ void netlistt::print(std::ostream &out) const
5656

5757
out << "Initial state: " << '\n';
5858

59-
for(unsigned i=0; i<initial.size(); i++)
59+
for(auto &c : initial)
6060
{
6161
out << " ";
62-
print(out, initial[i]);
62+
print(out, c);
6363
out << '\n';
6464
}
6565

6666
out << '\n';
6767

68+
out << "State invariant constraints: " << '\n';
69+
70+
for(auto &c : constraints)
71+
{
72+
out << " ";
73+
print(out, c);
74+
out << '\n';
75+
}
76+
77+
out << '\n' << std::flush;
78+
6879
out << "Transition constraints: " << '\n';
6980

70-
for(unsigned i=0; i<transition.size(); i++)
81+
for(auto &c : transition)
7182
{
7283
out << " ";
73-
print(out, transition[i]);
84+
print(out, c);
7485
out << '\n';
7586
}
7687

0 commit comments

Comments
 (0)