public class Result
extends java.lang.Object
analyzeJsonResult(String). The returned instance
contains a list of NodeResult which are the results of the sub-components. It also
contains a list of Log for the logs generated by kind2. By default the returned instance
uses the names in the lustre code, and surround them with {{}}. These opening and closing symbols
can be changed using the method setOpeningSymbols(String) and
setClosingSymbols(String) respectively.| Constructor and Description |
|---|
Result()
a default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Result |
analyzeJsonResult(java.lang.String json)
Analyze the json output of kind2 verification.
|
java.util.List<Log> |
getAllKind2Logs() |
java.util.List<AstInfo> |
getAstInfos() |
static java.lang.String |
getClosingSymbols() |
java.util.Set<Property> |
getFalsifiedProperties() |
java.lang.String |
getJson() |
java.util.List<Log> |
getKind2Logs() |
NodeResult |
getNodeResult(java.lang.String nodeName) |
static java.lang.String |
getOpeningSymbols() |
Options |
getOptions() |
static int |
getRealPrecision() |
static java.math.RoundingMode |
getRealRoundingMode() |
java.util.Map<java.lang.String,NodeResult> |
getResultMap() |
NodeResult |
getRoot() |
double |
getTimeout() |
java.util.Set<Property> |
getUnknownProperties() |
java.util.Set<Property> |
getValidProperties() |
void |
initialize(java.lang.String json) |
boolean |
isInitialized() |
static boolean |
isPrintingCounterExamplesEnabled() |
static boolean |
isPrintingLineNumbersEnabled() |
static boolean |
isPrintingUnknownCounterExamplesEnabled() |
static void |
setClosingSymbols(java.lang.String symbols)
Set the opening symbols for printing lustre names
|
static void |
setOpeningSymbols(java.lang.String symbols)
Set the opening symbols for printing lustre names
|
static void |
setPrintingCounterExamplesEnabled(boolean value)
Sets the value of printingCounterExamplesEnabled
|
static void |
setPrintingLineNumbersEnabled(boolean value)
set the value of printingLineNumbersEnabled
|
static void |
setPrintingUnknownCounterExamplesEnabled(boolean value)
Sets the value of printingUnknownCounterExamplesEnabled
|
static void |
setRealPrecision(int realPrecision)
Set the precision for printing real numbers
|
static void |
setRealRoundingMode(java.math.RoundingMode realRoundingMode)
Set the rounding mode for real numbers
|
java.lang.String |
toString() |
public NodeResult getNodeResult(java.lang.String nodeName)
nodeName - the name of the nodeNodeResult which contains the analyses performed by kind2 on the given node.public java.lang.String toString()
toString in class java.lang.Objectpublic static Result analyzeJsonResult(java.lang.String json)
json - kind2 json outputResult which contains the result of analyzing kind2 output.public void initialize(java.lang.String json)
public double getTimeout()
public Options getOptions()
public java.lang.String getJson()
public NodeResult getRoot()
NodeResult for the top component in kind2 output.public java.util.Map<java.lang.String,NodeResult> getResultMap()
public java.util.Set<Property> getFalsifiedProperties()
Property for all falsified properties including the falsified
properties for the subcomponents.public java.util.Set<Property> getValidProperties()
Property for all valid properties including the valid properties for
the subcomponents.public java.util.Set<Property> getUnknownProperties()
Property for all unknown properties including the unknown properties
for the subcomponents.public static boolean isPrintingCounterExamplesEnabled()
true if printing counter examples for falsifiable properties is enabled.public static void setPrintingCounterExamplesEnabled(boolean value)
value - public static boolean isPrintingUnknownCounterExamplesEnabled()
public static void setPrintingUnknownCounterExamplesEnabled(boolean value)
value - public static boolean isPrintingLineNumbersEnabled()
public static void setPrintingLineNumbersEnabled(boolean value)
value - public static void setOpeningSymbols(java.lang.String symbols)
symbols - public static void setClosingSymbols(java.lang.String symbols)
symbols - public static int getRealPrecision()
public static void setRealPrecision(int realPrecision)
public static java.math.RoundingMode getRealRoundingMode()
public static void setRealRoundingMode(java.math.RoundingMode realRoundingMode)
realRoundingMode - see
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/RoundingMode.htmlpublic static java.lang.String getOpeningSymbols()
public static java.lang.String getClosingSymbols()
public java.util.List<Log> getKind2Logs()
Log excluding hidden logs.public java.util.List<Log> getAllKind2Logs()
Log for all kind2 logs.public boolean isInitialized()