File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed
regression/ebmc/k-induction Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ k-induction3.v
3
3
--module main --bound 9 --k-induction
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- ^\[main.property.p1] .* INCONCLUSIVE $
6
+ ^\[main.property.p1] .* REFUTED $
7
7
--
8
8
^warning: ignoring
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ initial a = 0;
6
6
7
7
always @ (posedge clock) begin
8
8
a = a+ 1 ;
9
+ // expected to be refuted with k >= 9
9
10
assert p1: a!= 10 ;
10
11
end
11
12
Original file line number Diff line number Diff line change 1
- KNOWNBUG
1
+ CORE
2
2
k-induction5.v
3
3
--module main --bound 1 --k-induction
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
6
^\[main.property.property1\] .* PROVED$
7
- ^\[main.property.property2\] .* INCONCLUSIVE $
7
+ ^\[main.property.property2\] .* REFUTED $
8
8
--
9
9
^warning: ignoring
10
10
--
11
- The result for property2 should be REFUTED.
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ k-induction5.v
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
6
^\[main.property.property1\] .* PROVED$
7
- ^\[main.property.property2\] .* PROVED $
7
+ ^\[main.property.property2\] .* REFUTED $
8
8
--
9
9
^warning: ignoring
10
10
--
11
- The result for property2 should be REFUTED.
Original file line number Diff line number Diff line change @@ -173,6 +173,12 @@ int k_inductiont::induction_step()
173
173
p_it.is_failure ())
174
174
continue ;
175
175
176
+ // Do not run the step case for properties that have
177
+ // failed the base case already. Properties may pass the step
178
+ // case, but are still false when the base case fails.
179
+ if (p_it.is_refuted ())
180
+ continue ;
181
+
176
182
auto solver_wrapper = solver_factory (ns, message.get_message_handler ());
177
183
auto &solver = solver_wrapper.decision_procedure ();
178
184
You can’t perform that action at this time.
0 commit comments