mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 14:55:45 +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
52
lib/spc_der.h
Normal file
52
lib/spc_der.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
spc_der.h
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2008-02-17.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _SPC_DER_H_
|
||||
#define _SPC_DER_H_
|
||||
|
||||
#include"spc_clause.h"
|
||||
|
||||
namespace spc {
|
||||
|
||||
/**
|
||||
\brief Functor for applying destructive equality resolution.
|
||||
This is similar to the Functor in der.h, but this one applies
|
||||
the simplification on clauses instead of ast's.
|
||||
|
||||
x != s or R
|
||||
==>
|
||||
sigma(R)
|
||||
|
||||
where
|
||||
sigma = mgu(x, s)
|
||||
*/
|
||||
class der {
|
||||
ast_manager & m_manager;
|
||||
substitution m_subst;
|
||||
unsigned_vector m_to_keep;
|
||||
family_id m_spc_fid;
|
||||
void apply(clause * cls, unsigned j, expr * lhs, expr * rhs);
|
||||
bool apply(clause * cls);
|
||||
public:
|
||||
der(ast_manager & m);
|
||||
void operator()(clause * cls);
|
||||
};
|
||||
};
|
||||
|
||||
#endif /* _SPC_DER_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue