public final class ProofUtil
extends java.lang.Object
Constructor and Description |
---|
ProofUtil() |
Modifier and Type | Method and Description |
---|---|
static Expression |
bind(ValueDeclIdentifier ident,
Expression value,
Expression body)
Construct expression that binds ident to value in body.
|
static java.lang.String |
hash(java.lang.String rep,
int len)
hash string representation of an object to a short word
|
static Expression |
negate(Expression formula)
return negated version of formula where negation is drawn innermost
(to atomic formulas)
|
static Formula[] |
toFormulaArray(java.util.Vector<Formula> v)
converts vector v of Formula objects to Formula array
|
static ProofState[] |
toProofStateArray(java.util.Vector<ProofState> v)
converts vector v of ProofState objects to ProofState array
|
public static Formula[] toFormulaArray(java.util.Vector<Formula> v)
v
- a vector holding Formula objectspublic static ProofState[] toProofStateArray(java.util.Vector<ProofState> v)
v
- a vector holding ProofState objectspublic static java.lang.String hash(java.lang.String rep, int len)
rep
- the string representation of the objectlen
- the length of the result wordpublic static Expression negate(Expression formula)
formula
- a formulapublic static Expression bind(ValueDeclIdentifier ident, Expression value, Expression body)
ident
- an identifier potentially referenced in body.value
- the value to bind the identifier to.body
- the body expression.