Skip to content

Commit 153be82

Browse files
committed
Make tests failed
1 parent a72e2ce commit 153be82

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

regression/goto-synthesizer/loop_contracts_synthesis_03/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ main.c
55
^SIGNAL=0$
66
^\[main.pointer\_dereference.\d+\] .* SUCCESS$
77
^VERIFICATION SUCCESSFUL$
8+
^DONT accept$
89
--
910
--
1011
This test shows that loop invariants using range predicates and same-object

src/goto-synthesizer/enumerative_loop_contracts_synthesizer.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
374374
// starting from 0
375375
size_t size_bound = 0;
376376

377-
// Count how many candidates are filtered out by the quick filter.
378-
size_t count_all = 0;
379-
size_t count_filtered = 0;
380-
381377
// Start to enumerate and check.
382378
while(true)
383379
{
@@ -400,13 +396,7 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
400396

401397
// Quick filter:
402398
// Rule out a candidate if its evaluation is inconsistent with examples.
403-
cegis_evaluator evaluator(strengthening_candidate, cexs, log);
404-
count_all++;
405-
if(!evaluator.evaluate())
406-
{
407-
count_filtered++;
408-
continue;
409-
}
399+
410400

411401
// The verifier we use to check current invariant candidates.
412402
cegis_verifiert verifier(
@@ -425,8 +415,6 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
425415
return_cex->violation_type !=
426416
cext::violation_typet::cex_not_preserved))
427417
{
428-
log.progress() << "Quick filter: " << count_filtered << " out of "
429-
<< count_all << " candidates were filtered out.\n";
430418
return strengthening_candidate;
431419
}
432420
}

0 commit comments

Comments
 (0)