MCPcopy Create free account
hub / github.com/Z3Prover/z3 / main

Method main

examples/java/JavaGenericExample.java:2067–2165  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2065 }
2066
2067 public static void main(String[] args)
2068 {
2069 JavaGenericExample p = new JavaGenericExample();
2070 try
2071 {
2072 Global.ToggleWarningMessages(true);
2073 Log.open("test.log");
2074
2075 System.out.print("Z3 Major Version: ");
2076 System.out.println(Version.getMajor());
2077 System.out.print("Z3 Full Version: ");
2078 System.out.println(Version.getString());
2079 System.out.print("Z3 Full Version String: ");
2080 System.out.println(Version.getFullVersion());
2081
2082 p.simpleExample();
2083
2084 { // These examples need model generation turned on.
2085 HashMap<String, String> cfg = new HashMap<>();
2086 cfg.put("model", "true");
2087 Context ctx = new Context(cfg);
2088
2089 p.optimizeExample(ctx);
2090 p.basicTests(ctx);
2091 p.sudokuExample(ctx);
2092 p.quantifierExample1(ctx);
2093 p.quantifierExample2(ctx);
2094 p.logicExample(ctx);
2095 p.parOrExample(ctx);
2096 p.findModelExample1(ctx);
2097 p.findModelExample2(ctx);
2098 p.pushPopExample1(ctx);
2099 p.arrayExample1(ctx);
2100 p.arrayExample3(ctx);
2101 p.bitvectorExample1(ctx);
2102 p.bitvectorExample2(ctx);
2103 p.parserExample1(ctx);
2104 p.parserExample2(ctx);
2105 p.parserExample5(ctx);
2106 p.iteExample(ctx);
2107 p.evalExample1(ctx);
2108 p.evalExample2(ctx);
2109 p.findSmallModelExample(ctx);
2110 p.simplifierExample(ctx);
2111 p.finiteDomainExample(ctx);
2112 p.floatingPointExample1(ctx);
2113 // core dumps: p.floatingPointExample2(ctx);
2114 }
2115
2116 { // These examples need proof generation turned on.
2117 HashMap<String, String> cfg = new HashMap<>();
2118 cfg.put("proof", "true");
2119 Context ctx = new Context(cfg);
2120 p.proveExample1(ctx);
2121 p.proveExample2(ctx);
2122 p.arrayExample2(ctx);
2123 p.tupleExample(ctx);
2124 // throws p.parserExample3(ctx);

Callers

nothing calls this directly

Calls 15

ToggleWarningMessagesMethod · 0.95
openMethod · 0.95
getMajorMethod · 0.95
getStringMethod · 0.95
getFullVersionMethod · 0.95
simpleExampleMethod · 0.95
optimizeExampleMethod · 0.95
basicTestsMethod · 0.95
sudokuExampleMethod · 0.95
quantifierExample1Method · 0.95
quantifierExample2Method · 0.95
logicExampleMethod · 0.95

Tested by

no test coverage detected