3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-29 22:40:08 +00:00
z3/src/muz/base/bind_variables.h
Nikolaj Bjorner b19f94ae5b make include paths uniformly use path relative to src. #534
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-31 13:24:11 -07:00

51 lines
988 B
C++

/*++
Copyright (c) 2013 Microsoft Corporation
Module Name:
bind_variables.h
Abstract:
Utility to find constants that are declard as variables.
Author:
Nikolaj Bjorner (nbjorner) 9-24-2014
Notes:
--*/
#ifndef BIND_VARIABLES_H_
#define BIND_VARIABLES_H_
#include "ast/ast.h"
class bind_variables {
typedef obj_map<app, var*> var2bound;
typedef obj_map<expr, expr*> cache_t;
ast_manager& m;
app_ref_vector m_vars;
obj_map<expr, expr*> m_cache;
var2bound m_var2bound;
expr_ref_vector m_pinned;
ptr_vector<sort> m_bound;
svector<symbol> m_names;
ptr_vector<expr> m_todo;
ptr_vector<expr> m_args;
expr_ref abstract(expr* fml, cache_t& cache, unsigned scope);
public:
bind_variables(ast_manager & m);
~bind_variables();
expr_ref operator()(expr* fml, bool is_forall);
void add_var(app* v);
};
#endif /* BIND_VARIABLES_H_ */