Skip to content

Commit 110523b

Browse files
committed
Remove never-read variable seen_terms
This counter is updated but never read from. Remove it to make clang 15 happier.
1 parent 01ac963 commit 110523b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/goto-synthesizer/enumerative_loop_contracts_synthesizer.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,6 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
292292
// starting from 0
293293
size_t size_bound = 0;
294294

295-
// numbers of candidates we have seen,
296-
// used for quantitative analysis
297-
size_t seen_terms = 0;
298-
299295
// Start to enumerate and check.
300296
while(true)
301297
{
@@ -306,7 +302,6 @@ exprt enumerative_loop_contracts_synthesizert::synthesize_strengthening_clause(
306302
{
307303
log.progress() << "Verifying candidate: "
308304
<< format(strengthening_candidate) << messaget::eom;
309-
seen_terms++;
310305
invariant_mapt new_in_clauses = invariant_mapt(in_invariant_clause_map);
311306
new_in_clauses[cause_loop_id] =
312307
and_exprt(new_in_clauses[cause_loop_id], strengthening_candidate);

0 commit comments

Comments
 (0)