mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 12:07:52 +00:00
adding SMT2 log file for solver interaction #867
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b6c13340bd
commit
f6f3ca1507
9 changed files with 159 additions and 28 deletions
|
@ -113,11 +113,14 @@ void decl_collector::visit(ast* n) {
|
|||
}
|
||||
}
|
||||
|
||||
void decl_collector::order_deps() {
|
||||
void decl_collector::order_deps(unsigned n) {
|
||||
top_sort<sort> st;
|
||||
for (sort * s : m_sorts) st.insert(s, collect_deps(s));
|
||||
for (unsigned i = n; i < m_sorts.size(); ++i) {
|
||||
sort* s = m_sorts.get(i);
|
||||
st.insert(s, collect_deps(s));
|
||||
}
|
||||
st.topological_sort();
|
||||
m_sorts.reset();
|
||||
m_sorts.shrink(n);
|
||||
for (sort* s : st.top_sorted()) m_sorts.push_back(s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue