mirror of
https://github.com/Z3Prover/z3
synced 2025-08-03 09:50:23 +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
35
lib/ast_lt.h
Normal file
35
lib/ast_lt.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
ast_lt.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Total order on ASTs that does not depend on the internal ids.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2011-04-08
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _AST_LT_H_
|
||||
#define _AST_LT_H_
|
||||
|
||||
class ast;
|
||||
|
||||
bool lt(ast * n1, ast * n2);
|
||||
|
||||
struct ast_to_lt {
|
||||
bool operator()(ast * n1, ast * n2) const { return lt(n1, n2); }
|
||||
};
|
||||
|
||||
bool lex_lt(unsigned num, ast * const * n1, ast * const * n2);
|
||||
inline bool lex_lt(unsigned num, expr * const * n1, expr * const * n2) {
|
||||
return lex_lt(num, reinterpret_cast<ast*const*>(n1), reinterpret_cast<ast*const*>(n2));
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue