mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
finish parameter help
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b169292743
commit
498b6de3a7
|
@ -238,24 +238,6 @@ try:
|
||||||
else:
|
else:
|
||||||
print('Javascript documentation disabled')
|
print('Javascript documentation disabled')
|
||||||
|
|
||||||
if Z3OPTIONS_ENABLED:
|
|
||||||
print("Z3 Options Enabled")
|
|
||||||
out = subprocess.call([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
|
|
||||||
modules = []
|
|
||||||
if out != None:
|
|
||||||
out = out.decode(sys.stdout.encoding)
|
|
||||||
module_re = re.compile(r"\[module\] (.*)\,")
|
|
||||||
lines = out.split("\n")
|
|
||||||
for line in lines:
|
|
||||||
m = module_re.search(line)
|
|
||||||
if m:
|
|
||||||
modules += [m.group(1)]
|
|
||||||
for module in modules:
|
|
||||||
out = subprocess.call([Z3_EXE, "-pmhtml:%s" % module],stdout=subprocess.PIPE).communicate()[0]
|
|
||||||
if out == None:
|
|
||||||
continue
|
|
||||||
out = out.decode(sys.stdout.encoding)
|
|
||||||
|
|
||||||
|
|
||||||
doxygen_config_file = temp_path('z3api.cfg')
|
doxygen_config_file = temp_path('z3api.cfg')
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|
27
doc/parameterhelp.py
Normal file
27
doc/parameterhelp.py
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
Z3_EXE = "z3.exe"
|
||||||
|
|
||||||
|
def help():
|
||||||
|
print("Z3 Options Enabled")
|
||||||
|
out = subprocess.Popen([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
|
||||||
|
modules = []
|
||||||
|
if out != None:
|
||||||
|
out = out.decode(sys.stdout.encoding)
|
||||||
|
module_re = re.compile(r"\[module\] (.*)\,")
|
||||||
|
lines = out.split("\n")
|
||||||
|
for line in lines:
|
||||||
|
m = module_re.search(line)
|
||||||
|
if m:
|
||||||
|
modules += [m.group(1)]
|
||||||
|
for module in modules:
|
||||||
|
out = subprocess.Popen([Z3_EXE, "-pmmd:%s" % module],stdout=subprocess.PIPE).communicate()[0]
|
||||||
|
if out == None:
|
||||||
|
continue
|
||||||
|
out = out.decode(sys.stdout.encoding)
|
||||||
|
print(out)
|
||||||
|
|
||||||
|
help()
|
Loading…
Reference in a new issue