Skip to content

Commit 3fe359e

Browse files
authored
Merge pull request #3906 from tautschnig/deprecation-conjunction
Use conjunction instead of piecewise construction of and_exprt [blocks: #3800]
2 parents 68bc98d + 23e6e37 commit 3fe359e

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/goto-symex/slice_by_trace.cpp

+4-10
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,10 @@ void symex_slice_by_tracet::compute_ts_back(
288288
pvi++;
289289
}
290290

291-
exprt val_merge=exprt(ID_and, typet(ID_bool));
292-
val_merge.operands().reserve(eq_conds.size()+1);
293-
val_merge.copy_to_operands(merge[j+1]);
294-
295-
for(const auto &eq_cond : eq_conds)
296-
{
297-
val_merge.copy_to_operands(eq_cond);
298-
}
299-
300-
u_lhs.add_to_operands(std::move(val_merge));
291+
exprt::operandst conjuncts(1, merge[j + 1]);
292+
conjuncts.reserve(eq_conds.size() + 1);
293+
conjuncts.insert(conjuncts.end(), eq_conds.begin(), eq_conds.end());
294+
u_lhs.add_to_operands(conjunction(conjuncts));
301295
}
302296
else
303297
{

0 commit comments

Comments
 (0)