mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
checkpoint
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
4722fdfca5
commit
add684d8e9
377 changed files with 204 additions and 62 deletions
29
src/framework/goal_shared_occs.cpp
Normal file
29
src/framework/goal_shared_occs.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
goal_shared_occs.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
Functor for computing the set of shared occurrences in a goal.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2011-12-28
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#include"goal_shared_occs.h"
|
||||
|
||||
void goal_shared_occs::operator()(goal const & g) {
|
||||
m_occs.reset();
|
||||
shared_occs_mark visited;
|
||||
unsigned sz = g.size();
|
||||
for (unsigned i = 0; i < sz; i++) {
|
||||
expr * t = g.form(i);
|
||||
m_occs(t, visited);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue