mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 19:53:34 +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
|
@ -15,7 +15,6 @@ Revision History:
|
|||
|
||||
|
||||
--*/
|
||||
#include <unordered_map>
|
||||
|
||||
#include "ast/for_each_expr.h"
|
||||
#include "ast/proofs/proof_utils.h"
|
||||
|
|
|
@ -131,11 +131,11 @@ public:
|
|||
m = m_model;
|
||||
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);
|
||||
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);
|
||||
m->register_decl(f, m_model->get_func_interp(f)->copy());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue