mirror of
https://github.com/Z3Prover/z3
synced 2026-02-22 08:17:37 +00:00
* 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>
28 lines
473 B
C++
28 lines
473 B
C++
/*++
|
|
Copyright (c) 2012 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
goal_num_occurs.cpp
|
|
|
|
Abstract:
|
|
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2012-10-20.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#include "tactic/goal_num_occurs.h"
|
|
#include "tactic/goal.h"
|
|
|
|
void goal_num_occurs::operator()(goal const & g) {
|
|
expr_fast_mark1 visited;
|
|
unsigned sz = g.size();
|
|
for (unsigned i = 0; i < sz; ++i) {
|
|
m_pinned.push_back(g.form(i));
|
|
process(g.form(i), visited);
|
|
}
|
|
}
|