Skip to content

Commit fea3945

Browse files
authored
Merge pull request #1097 from diffblue/smv-netlist-true-false
SMV netlists: use `TRUE`/`FALSE` instead of `1`/`0`
2 parents 36c791b + 1d820ee commit fea3945

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

regression/ebmc/smv-netlist/s_until1.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CORE
22
s_until1.sv
33
--smv-netlist
44
^LTLSPEC \(\!node144\) U node151$
5-
^LTLSPEC \(1\) U node158$
5+
^LTLSPEC \(TRUE\) U node158$
66
^EXIT=0$
77
^SIGNAL=0$
88
--

src/trans-netlist/smv_netlist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ void print_smv(const netlistt &netlist, std::ostream &out, literalt a)
5151
{
5252
if(a == const_literal(false))
5353
{
54-
out << "0";
54+
out << "FALSE";
5555
return;
5656
}
5757
else if(a == const_literal(true))
5858
{
59-
out << "1";
59+
out << "TRUE";
6060
return;
6161
}
6262

0 commit comments

Comments
 (0)