File tree 2 files changed +2
-13
lines changed
regression/goto-synthesizer/loop_contracts_synthesis_03
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 5
5
^SIGNAL=0$
6
6
^\[main.pointer\_dereference.\d+\] .* SUCCESS$
7
7
^VERIFICATION SUCCESSFUL$
8
+ ^DONT accept$
8
9
--
9
10
--
10
11
This test shows that loop invariants using range predicates and same-object
Original file line number Diff line number Diff line change @@ -374,10 +374,6 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
374
374
// starting from 0
375
375
size_t size_bound = 0 ;
376
376
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
-
381
377
// Start to enumerate and check.
382
378
while (true )
383
379
{
@@ -400,13 +396,7 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
400
396
401
397
// Quick filter:
402
398
// 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
+
410
400
411
401
// The verifier we use to check current invariant candidates.
412
402
cegis_verifiert verifier (
@@ -425,8 +415,6 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
425
415
return_cex->violation_type !=
426
416
cext::violation_typet::cex_not_preserved))
427
417
{
428
- log .progress () << " Quick filter: " << count_filtered << " out of "
429
- << count_all << " candidates were filtered out.\n " ;
430
418
return strengthening_candidate;
431
419
}
432
420
}
You can’t perform that action at this time.
0 commit comments