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

Method main

examples/java/JavaExample.java:2280–2381  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2278 }
2279
2280 public static void main(String[] args)
2281 {
2282 JavaExample p = new JavaExample();
2283 try
2284 {
2285 com.microsoft.z3.Global.ToggleWarningMessages(true);
2286 Log.open("test.log");
2287
2288 System.out.print("Z3 Major Version: ");
2289 System.out.println(Version.getMajor());
2290 System.out.print("Z3 Full Version: ");
2291 System.out.println(Version.getString());
2292 System.out.print("Z3 Full Version String: ");
2293 System.out.println(Version.getFullVersion());
2294
2295 p.stringExample();
2296
2297 p.simpleExample();
2298
2299 { // These examples need model generation turned on.
2300 HashMap<String, String> cfg = new HashMap<String, String>();
2301 cfg.put("model", "true");
2302 Context ctx = new Context(cfg);
2303
2304
2305 p.optimizeExample(ctx);
2306 p.basicTests(ctx);
2307 p.castingTest(ctx);
2308 p.sudokuExample(ctx);
2309 p.quantifierExample1(ctx);
2310 p.quantifierExample2(ctx);
2311 p.logicExample(ctx);
2312 p.parOrExample(ctx);
2313 p.findModelExample1(ctx);
2314 p.findModelExample2(ctx);
2315 p.pushPopExample1(ctx);
2316 p.arrayExample1(ctx);
2317 p.arrayExample3(ctx);
2318 p.bitvectorExample1(ctx);
2319 p.bitvectorExample2(ctx);
2320 p.parserExample1(ctx);
2321 p.parserExample2(ctx);
2322 p.parserExample5(ctx);
2323 p.iteExample(ctx);
2324 p.evalExample1(ctx);
2325 p.evalExample2(ctx);
2326 p.findSmallModelExample(ctx);
2327 p.simplifierExample(ctx);
2328 p.finiteDomainExample(ctx);
2329 p.floatingPointExample1(ctx);
2330 // core dumps: p.floatingPointExample2(ctx);
2331 }
2332
2333 { // These examples need proof generation turned on.
2334 HashMap<String, String> cfg = new HashMap<String, String>();
2335 cfg.put("proof", "true");
2336 Context ctx = new Context(cfg);
2337 p.proveExample1(ctx);

Callers

nothing calls this directly

Calls 15

openMethod · 0.95
getMajorMethod · 0.95
getStringMethod · 0.95
getFullVersionMethod · 0.95
stringExampleMethod · 0.95
simpleExampleMethod · 0.95
optimizeExampleMethod · 0.95
basicTestsMethod · 0.95
castingTestMethod · 0.95
sudokuExampleMethod · 0.95
quantifierExample1Method · 0.95
quantifierExample2Method · 0.95

Tested by

no test coverage detected