Skip to content

Commit 3e66d13

Browse files
authored
Merge pull request #1191 from diffblue/normalize-no-nnf
`normalize_property` no longer generates NNF
2 parents 699f7df + 6728a24 commit 3e66d13

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

regression/ebmc/smv-netlist/always_with_range1.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ always_with_range1.sv
44
^LTLSPEC node275 & X node275 & X X node275 .*
55
^LTLSPEC G node275$
66
^LTLSPEC node275 & X node275 & X X node275 .*
7-
^LTLSPEC G \(\!node306 \| X node337\)$
7+
^LTLSPEC G \(node306 -> X node337\)$
88
^EXIT=0$
99
^SIGNAL=0$
1010
--

src/temporal-logic/ltl_sva_to_string.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ ltl_sva_to_stringt::rec(const exprt &expr, modet mode)
9191
{
9292
return infix(" xor ", expr, mode);
9393
}
94+
else if(
95+
expr.id() == ID_equal && to_equal_expr(expr).lhs().type().id() == ID_bool)
96+
{
97+
return infix("<->", expr, mode);
98+
}
9499
else if(expr.id() == ID_implies)
95100
{
96101
return infix("->", expr, mode);

src/temporal-logic/normalize_property.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Author: Daniel Kroening, [email protected]
1515
#include <verilog/sva_expr.h>
1616

1717
#include "ltl.h"
18-
#include "nnf.h"
1918
#include "temporal_expr.h"
2019
#include "temporal_logic.h"
2120
#include "trivial_sva.h"
@@ -112,8 +111,5 @@ exprt normalize_property(exprt expr)
112111
// now do recursion
113112
expr = normalize_property_rec(expr);
114113

115-
// NNF
116-
expr = property_nnf(expr);
117-
118114
return expr;
119115
}

0 commit comments

Comments
 (0)