Skip to content

Commit 0b511f7

Browse files
authored
Merge pull request #229 from diffblue/show-formula-loop
ebmc: show-formula now includes lasso constraints
2 parents bae8701 + 9e789c3 commit 0b511f7

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
lasso1.sv
3+
--bound 1 --show-formula
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\(\d+\) lasso::1-back-to-0 ⇔ \(.*counter@1 = .*counter@0 ∧ .*clock@1 ⇔ .*clock@0\)$
7+
--
8+
--

src/ebmc/ebmc_base.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ void ebmc_baset::word_level_properties(decision_proceduret &solver)
9191
{
9292
const namespacet ns(transition_system.symbol_table);
9393

94+
message.status() << "Properties" << messaget::eom;
95+
9496
for(propertyt &property : properties.properties)
9597
{
9698
if(property.is_disabled())
@@ -104,6 +106,14 @@ void ebmc_baset::word_level_properties(decision_proceduret &solver)
104106
bound + 1,
105107
ns);
106108
}
109+
110+
// lasso constraints, if needed
111+
if(property_requires_lasso_constraints())
112+
{
113+
message.status() << "Adding lasso constraints" << messaget::eom;
114+
lasso_constraints(
115+
solver, bound + 1, ns, transition_system.main_symbol->name);
116+
}
107117
}
108118

109119
/*******************************************************************\
@@ -122,14 +132,6 @@ int ebmc_baset::finish_word_level_bmc(stack_decision_proceduret &solver)
122132
{
123133
const namespacet ns(transition_system.symbol_table);
124134

125-
// lasso constraints, if needed
126-
if(property_requires_lasso_constraints())
127-
{
128-
message.status() << "Adding lasso constraints" << messaget::eom;
129-
lasso_constraints(
130-
solver, bound + 1, ns, transition_system.main_symbol->name);
131-
}
132-
133135
message.status() << "Solving with " << solver.decision_procedure_text()
134136
<< messaget::eom;
135137

@@ -367,8 +369,6 @@ int ebmc_baset::do_word_level_bmc(
367369
ns,
368370
true);
369371

370-
message.status() << "Properties" << messaget::eom;
371-
372372
// convert the properties
373373
word_level_properties(solver);
374374

0 commit comments

Comments
 (0)