Skip to content

Commit b357ced

Browse files
authored
Merge pull request #1475 from diffblue/smv-netlist-iff
smv-netlist: convert iff
2 parents 0ebcb54 + 66fd4f8 commit b357ced

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

regression/ebmc/smv-netlist/smv1.desc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ smv1.smv
55
^VAR smv\.main\.var\.x: boolean;$
66
^ASSIGN next\(smv\.main\.var\.x\):=\!smv\.main\.var\.x;$
77
^INIT !smv\.main\.var\.x$
8+
^LTLSPEC G F smv\.main\.var\.x$
9+
^CTLSPEC smv\.main\.var\.x <-> \!AX smv\.main\.var\.x$
810
^EXIT=0$
911
^SIGNAL=0$
1012
--

regression/ebmc/smv-netlist/smv1.smv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ ASSIGN init(x):=FALSE;
77

88
LTLSPEC G F x
99

10+
CTLSPEC x <-> ! AX x

src/trans-netlist/trans_to_netlist.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ convert_trans_to_netlistt::convert_property(const exprt &expr)
444444
}
445445
else if(
446446
expr.id() == ID_and || expr.id() == ID_or || expr.id() == ID_not ||
447-
expr.id() == ID_implies || expr.id() == ID_xor || expr.id() == ID_xnor)
447+
expr.id() == ID_implies || expr.id() == ID_xor || expr.id() == ID_xnor ||
448+
(expr.id() == ID_equal && to_equal_expr(expr).lhs().type().id() == ID_bool))
448449
{
449450
exprt copy = expr;
450451
for(auto &op : copy.operands())

0 commit comments

Comments
 (0)