mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
whitespace
This commit is contained in:
parent
405650c183
commit
852dc6d190
3 changed files with 48 additions and 48 deletions
|
@ -25,7 +25,7 @@ Revision History:
|
|||
#include"used_symbols.h"
|
||||
#include"model_evaluator.h"
|
||||
|
||||
model::model(ast_manager & m):
|
||||
model::model(ast_manager & m):
|
||||
model_core(m) {
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ void model::copy_func_interps(model const & source) {
|
|||
register_decl(it2->m_key, it2->m_value->copy());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void model::copy_usort_interps(model const & source) {
|
||||
sort2universe::iterator it3 = source.m_usort2universe.begin();
|
||||
sort2universe::iterator end3 = source.m_usort2universe.end();
|
||||
|
@ -67,7 +67,7 @@ void model::copy_usort_interps(model const & source) {
|
|||
|
||||
model * model::copy() const {
|
||||
model * m = alloc(model, m_manager);
|
||||
|
||||
|
||||
m->copy_const_interps(*this);
|
||||
m->copy_func_interps(*this);
|
||||
m->copy_usort_interps(*this);
|
||||
|
@ -121,12 +121,12 @@ bool model::has_uninterpreted_sort(sort * s) const {
|
|||
return u != 0;
|
||||
}
|
||||
|
||||
unsigned model::get_num_uninterpreted_sorts() const {
|
||||
return m_usorts.size();
|
||||
unsigned model::get_num_uninterpreted_sorts() const {
|
||||
return m_usorts.size();
|
||||
}
|
||||
|
||||
sort * model::get_uninterpreted_sort(unsigned idx) const {
|
||||
return m_usorts[idx];
|
||||
sort * model::get_uninterpreted_sort(unsigned idx) const {
|
||||
return m_usorts[idx];
|
||||
}
|
||||
|
||||
void model::register_usort(sort * s, unsigned usize, expr * const * universe) {
|
||||
|
@ -151,7 +151,7 @@ void model::register_usort(sort * s, unsigned usize, expr * const * universe) {
|
|||
}
|
||||
|
||||
model * model::translate(ast_translation & translator) const {
|
||||
model * res = alloc(model, translator.to());
|
||||
model * res = alloc(model, translator.to());
|
||||
|
||||
// Translate const interps
|
||||
decl2expr::iterator it1 = m_interp.begin();
|
||||
|
@ -167,7 +167,7 @@ model * model::translate(ast_translation & translator) const {
|
|||
func_interp * fi = it2->m_value;
|
||||
res->register_decl(translator(it2->m_key), fi->translate(translator));
|
||||
}
|
||||
|
||||
|
||||
// Translate usort interps
|
||||
sort2universe::iterator it3 = m_usort2universe.begin();
|
||||
sort2universe::iterator end3 = m_usort2universe.end();
|
||||
|
@ -175,8 +175,8 @@ model * model::translate(ast_translation & translator) const {
|
|||
ptr_vector<expr> new_universe;
|
||||
for (unsigned i=0; i<it3->m_value->size(); i++)
|
||||
new_universe.push_back(translator(it3->m_value->get(i)));
|
||||
res->register_usort(translator(it3->m_key),
|
||||
new_universe.size(),
|
||||
res->register_usort(translator(it3->m_key),
|
||||
new_universe.size(),
|
||||
new_universe.c_ptr());
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ model_core::~model_core() {
|
|||
for (; it2 != end2; ++it2) {
|
||||
m_manager.dec_ref(it2->m_key);
|
||||
dealloc(it2->m_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool model_core::eval(func_decl* f, expr_ref & r) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue