mirror of
https://github.com/Z3Prover/z3
synced 2026-07-03 22:06:11 +00:00
Standardize for-loop increments to prefix form (++i) (#8199)
* Initial plan * Convert postfix to prefix increment in for loops Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix member variable increment conversion bug Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Update API generator to produce prefix increments Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
1bf463d77a
commit
2436943794
475 changed files with 3237 additions and 3237 deletions
|
|
@ -175,7 +175,7 @@ namespace smt {
|
|||
unsigned num_decls = q->get_num_decls();
|
||||
subst_args.resize(num_decls, nullptr);
|
||||
sks.resize(num_decls, nullptr);
|
||||
for (unsigned i = 0; i < num_decls; i++) {
|
||||
for (unsigned i = 0; i < num_decls; ++i) {
|
||||
sort * s = q->get_decl_sort(num_decls - i - 1);
|
||||
expr * sk = m.mk_fresh_const(nullptr, s);
|
||||
sks[num_decls - i - 1] = sk;
|
||||
|
|
@ -207,7 +207,7 @@ namespace smt {
|
|||
expr_ref def(m);
|
||||
bindings.resize(num_decls);
|
||||
unsigned max_generation = 0;
|
||||
for (unsigned i = 0; i < num_decls; i++) {
|
||||
for (unsigned i = 0; i < num_decls; ++i) {
|
||||
expr * sk = sks.get(num_decls - i - 1);
|
||||
func_decl * sk_d = to_app(sk)->get_decl();
|
||||
expr_ref sk_value(cex->get_some_const_interp(sk_d), m);
|
||||
|
|
@ -579,7 +579,7 @@ namespace smt {
|
|||
unsigned num_decls = q->get_num_decls();
|
||||
unsigned gen = inst.m_generation;
|
||||
unsigned offset = inst.m_bindings_offset;
|
||||
for (unsigned i = 0; i < num_decls; i++) {
|
||||
for (unsigned i = 0; i < num_decls; ++i) {
|
||||
expr * b = m_pinned_exprs.get(offset + i);
|
||||
if (!m_context->e_internalized(b)) {
|
||||
TRACE(model_checker, tout << "internalizing b:\n" << mk_pp(b, m) << "\n";);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue