mirror of
https://github.com/Z3Prover/z3
synced 2025-06-05 21:53:23 +00:00
preserve model order to avoid clobbering regression tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
04a19cd1d8
commit
2d0d527fe1
2 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,6 @@ Revision History:
|
||||||
|
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include <unordered_map>
|
|
||||||
|
|
||||||
#include "ast/for_each_expr.h"
|
#include "ast/for_each_expr.h"
|
||||||
#include "ast/proofs/proof_utils.h"
|
#include "ast/proofs/proof_utils.h"
|
||||||
|
|
|
@ -131,11 +131,11 @@ public:
|
||||||
m = m_model;
|
m = m_model;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (unsigned i = m_model->get_num_constants(); i-- > 0; ) {
|
for (unsigned i = 0; i < m_model->get_num_constants(); ++i) {
|
||||||
func_decl* f = m_model->get_constant(i);
|
func_decl* f = m_model->get_constant(i);
|
||||||
m->register_decl(f, m_model->get_const_interp(f));
|
m->register_decl(f, m_model->get_const_interp(f));
|
||||||
}
|
}
|
||||||
for (unsigned i = m_model->get_num_functions(); i-- > 0; ) {
|
for (unsigned i = 0; i < m_model->get_num_functions(); ++i) {
|
||||||
func_decl* f = m_model->get_function(i);
|
func_decl* f = m_model->get_function(i);
|
||||||
m->register_decl(f, m_model->get_func_interp(f)->copy());
|
m->register_decl(f, m_model->get_func_interp(f)->copy());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue