mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +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
49
lib/lpo.h
Normal file
49
lib/lpo.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
lpo.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Lexicographical Path Ordering
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2008-02-01.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _LPO_H_
|
||||
#define _LPO_H_
|
||||
|
||||
#include"order.h"
|
||||
#include"vector.h"
|
||||
#include"map.h"
|
||||
|
||||
class lpo : public order {
|
||||
svector<expr_offset> m_todo;
|
||||
|
||||
bool occurs(expr_offset const & t1, expr_offset const & t2);
|
||||
bool greater(expr_offset s, expr_offset t, unsigned depth);
|
||||
bool dominates_args(expr_offset s, expr_offset t, unsigned depth);
|
||||
bool arg_dominates_expr(expr_offset s, expr_offset t, unsigned depth);
|
||||
result lex_compare(expr_offset s, expr_offset t, unsigned depth);
|
||||
result compare_core(expr_offset s, expr_offset t, unsigned depth);
|
||||
result compare(expr_offset s, expr_offset t, unsigned depth);
|
||||
bool max_depth(unsigned d) { /* TODO */ return false; }
|
||||
public:
|
||||
lpo(ast_manager & m, precedence * p):order(m, p) {}
|
||||
virtual ~lpo() {}
|
||||
|
||||
virtual result compare(expr_offset const & t1, expr_offset const & t2, substitution * s);
|
||||
result compare(expr * t1, expr * t2) { return compare(expr_offset(t1, 0), expr_offset(t2, 0), static_cast<substitution*>(0)); }
|
||||
|
||||
virtual bool greater(expr_offset const & t1, expr_offset const & t2, substitution * s);
|
||||
bool greater(expr_offset const & t1, expr_offset const & t2) { return greater(t1, t2); }
|
||||
virtual int compare_ge(expr_offset const & t1, expr_offset const & t2, substitution * s);
|
||||
};
|
||||
|
||||
#endif /* _LPO_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue