mirror of
https://github.com/Z3Prover/z3
synced 2025-05-09 00:35:47 +00:00
Z3 sources
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3f9edad676
commit
e9eab22e5c
1186 changed files with 381859 additions and 0 deletions
43
lib/model2expr.h
Normal file
43
lib/model2expr.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
model2expr.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Convert model to logical formula that forces it.
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2012-09-17
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _MODEL2EXPR_H_
|
||||
#define _MODEL2EXPR_H_
|
||||
|
||||
#include"model.h"
|
||||
|
||||
void model2expr(model& m, expr_ref& result);
|
||||
|
||||
inline void model2expr(model_ref& md, expr_ref& result) { model2expr(*md.get(), result); }
|
||||
|
||||
// TODO: move
|
||||
typedef hashtable<symbol, symbol_hash_proc, symbol_eq_proc> symbol_set;
|
||||
|
||||
class mk_fresh_name {
|
||||
symbol_set m_symbols;
|
||||
char m_char;
|
||||
unsigned m_num;
|
||||
public:
|
||||
mk_fresh_name(): m_char('A'), m_num(0) {}
|
||||
void add(ast* a);
|
||||
symbol next();
|
||||
};
|
||||
|
||||
|
||||
#endif /* _MODEL2EXPR_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue