3
0
Fork 0
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:
Nikolaj Bjorner 2020-03-10 16:56:49 -07:00
parent 04a19cd1d8
commit 2d0d527fe1
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,6 @@ Revision History:
--*/
#include <unordered_map>
#include "ast/for_each_expr.h"
#include "ast/proofs/proof_utils.h"

View file

@ -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());
}