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
44
lib/pattern_validation.h
Normal file
44
lib/pattern_validation.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
pattern_validation.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Code for checking whether a pattern is valid or not.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2006-12-08.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _PATTERN_VALIDATION_H_
|
||||
#define _PATTERN_VALIDATION_H_
|
||||
|
||||
#include"ast.h"
|
||||
#include"uint_set.h"
|
||||
#include"vector.h"
|
||||
|
||||
class pattern_validator {
|
||||
family_id m_bfid;
|
||||
family_id m_lfid;
|
||||
|
||||
bool process(uint_set & found_vars, unsigned num_bindings, unsigned num_new_bindings, expr * n);
|
||||
|
||||
public:
|
||||
pattern_validator(ast_manager const & m):
|
||||
m_bfid(m.get_basic_family_id()),
|
||||
m_lfid(m.get_family_id("label")) {
|
||||
}
|
||||
|
||||
bool operator()(unsigned num_bindings, unsigned num_new_bindings, expr * n);
|
||||
|
||||
bool operator()(unsigned num_new_bindings, expr * n) { return operator()(UINT_MAX, num_new_bindings, n); }
|
||||
};
|
||||
|
||||
#endif /* _PATTERN_VALIDATION_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue