Class FixTrueFalse.Formula
java.lang.Object
org.variantsync.diffdetective.util.fide.FixTrueFalse.Formula
- Enclosing class:
FixTrueFalse
This class is a witness that a formula had its true and false constants eliminated
or is just such a constant (and nothing else except from perhaps negations).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FixTrueFalse.Formulaand(FixTrueFalse.Formula... formulas) org.prop4j.Nodeget()static org.prop4j.Node[]gets(FixTrueFalse.Formula[] formulas) booleanbooleanRuns the given function on this formula and assumes that the given function does not introduce the constants "true" or "false".static FixTrueFalse.Formulanot(FixTrueFalse.Formula formula) static FixTrueFalse.Formulaor(FixTrueFalse.Formula... formulas) static FixTrueFalse.Formula
-
Field Details
-
formula
private final org.prop4j.Node formula
-
-
Constructor Details
-
Formula
private Formula(org.prop4j.Node f)
-
-
Method Details
-
get
public org.prop4j.Node get() -
gets
-
mapUnsafe
Runs the given function on this formula and assumes that the given function does not introduce the constants "true" or "false". This method is side-effect free: The transformed formula will be returned but this object remains unaltered. Warning: Use at your own risk! Introducing constants here can lead to wrong SAT results.- Parameters:
f- The function to apply to this formula.- Returns:
- The converted formula.
-
var
-
not
-
and
-
or
-
isTrueConstant
public boolean isTrueConstant()- See Also:
-
isFalseConstant
public boolean isFalseConstant()- See Also:
-