Class StringValue
java.lang.Object
de.uzl.its.swat.symbolic.value.Value<T,K>
de.uzl.its.swat.symbolic.value.reference.ObjectValue<org.sosy_lab.java_smt.api.StringFormula,String>
de.uzl.its.swat.symbolic.value.reference.lang.StringValue
-
Field Summary
Fields inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
address, ADDRESS_UNKNOWN, className -
Constructor Summary
ConstructorsConstructorDescriptionStringValue(org.sosy_lab.java_smt.api.SolverContext context, String concrete, int address) StringValue(org.sosy_lab.java_smt.api.SolverContext context, String concrete, org.sosy_lab.java_smt.api.StringFormula formula, int address) -
Method Summary
Modifier and TypeMethodDescriptionorg.sosy_lab.java_smt.api.BooleanFormulagetBounds(boolean upper) Creates a formula that asserts that this symbolic value is withing the bounds of this typeorg.sosy_lab.java_smt.api.BooleanFormulaIF_ACMPEQ(ObjectValue o2) Compares if two references are identicalorg.sosy_lab.java_smt.api.BooleanFormulaIF_ACMPNE(ObjectValue o2) Compares if two references are not identicalValue<?,?> invokeMethod(String name, org.objectweb.asm.Type[] desc, Value<?, ?>[] args) Handles method invocation for Java's String (Java 16).MAKE_SYMBOLIC(long idx) Turns this IntValue into a symbolic variableMAKE_SYMBOLIC(String namePrefix) toString()Returns the string representation of the value.Methods inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
asArrayValue, asFloatValue, asIntValue, asObjectArrayValue, equals, getAddress, getField, getFields, getnFields, IFNONNULL, IFNULL, setAddress, setField, setFieldsMethods inherited from class de.uzl.its.swat.symbolic.value.Value
asBooleanValue, asByteValue, asCharValue, asDoubleValue, asLongValue, asNumericalValue, asShortValue, getName, getType, initSymbolic, initSymbolic, reset
-
Constructor Details
-
StringValue
-
StringValue
public StringValue(org.sosy_lab.java_smt.api.SolverContext context, String concrete, org.sosy_lab.java_smt.api.StringFormula formula, int address)
-
-
Method Details
-
IF_ACMPNE
Compares if two references are not identical- Overrides:
IF_ACMPNEin classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String> - Parameters:
o2- The other string- Returns:
- A BooleanFormula representing the result
-
IF_ACMPEQ
Compares if two references are identical- Overrides:
IF_ACMPEQin classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String> - Parameters:
o2- The other string- Returns:
- A BooleanFormula representing the result
-
getConcrete
- Overrides:
getConcretein classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String>
-
MAKE_SYMBOLIC
- Overrides:
MAKE_SYMBOLICin classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String>
-
MAKE_SYMBOLIC
- Overrides:
MAKE_SYMBOLICin classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String>
-
MAKE_SYMBOLIC
Turns this IntValue into a symbolic variable- Overrides:
MAKE_SYMBOLICin classValue<org.sosy_lab.java_smt.api.StringFormula,String> - Parameters:
idx-- Returns:
- The numerical identifier of this symbolic variable
-
getBounds
public org.sosy_lab.java_smt.api.BooleanFormula getBounds(boolean upper) Creates a formula that asserts that this symbolic value is withing the bounds of this type -
invokeMethod
Handles method invocation for Java's String (Java 16).- Overrides:
invokeMethodin classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String> - Parameters:
name- The name of the method that is calleddesc- The Type descriptions for all Argumentsargs- The Value's representing the arguments- Returns:
- The return Value of the Method, or a PlaceHolder::instance if the Method is not implemented or void should be returned
-
getConcreteEncoded
- Overrides:
getConcreteEncodedin classValue<org.sosy_lab.java_smt.api.StringFormula,String>
-
asStringValue
- Overrides:
asStringValuein classValue<org.sosy_lab.java_smt.api.StringFormula,String>
-
asObjectValue
- Overrides:
asObjectValuein classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String>
-
toString
Description copied from class:ValueReturns the string representation of the value. Should be implemented by each inheriting class.- Overrides:
toStringin classObjectValue<org.sosy_lab.java_smt.api.StringFormula,String> - Returns:
- the string representation of the value
-