Skip to content

Commit 498b6de

Browse files
finish parameter help
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent b169292 commit 498b6de

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

doc/mk_api_doc.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -238,24 +238,6 @@ def doc_path(path):
238238
else:
239239
print('Javascript documentation disabled')
240240

241-
if Z3OPTIONS_ENABLED:
242-
print("Z3 Options Enabled")
243-
out = subprocess.call([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
244-
modules = []
245-
if out != None:
246-
out = out.decode(sys.stdout.encoding)
247-
module_re = re.compile(r"\[module\] (.*)\,")
248-
lines = out.split("\n")
249-
for line in lines:
250-
m = module_re.search(line)
251-
if m:
252-
modules += [m.group(1)]
253-
for module in modules:
254-
out = subprocess.call([Z3_EXE, "-pmhtml:%s" % module],stdout=subprocess.PIPE).communicate()[0]
255-
if out == None:
256-
continue
257-
out = out.decode(sys.stdout.encoding)
258-
259241

260242
doxygen_config_file = temp_path('z3api.cfg')
261243
configure_file(

doc/parameterhelp.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
import subprocess
3+
import sys
4+
import re
5+
6+
Z3_EXE = "z3.exe"
7+
8+
def help():
9+
print("Z3 Options Enabled")
10+
out = subprocess.Popen([Z3_EXE, "-pm"],stdout=subprocess.PIPE).communicate()[0]
11+
modules = []
12+
if out != None:
13+
out = out.decode(sys.stdout.encoding)
14+
module_re = re.compile(r"\[module\] (.*)\,")
15+
lines = out.split("\n")
16+
for line in lines:
17+
m = module_re.search(line)
18+
if m:
19+
modules += [m.group(1)]
20+
for module in modules:
21+
out = subprocess.Popen([Z3_EXE, "-pmmd:%s" % module],stdout=subprocess.PIPE).communicate()[0]
22+
if out == None:
23+
continue
24+
out = out.decode(sys.stdout.encoding)
25+
print(out)
26+
27+
help()

0 commit comments

Comments
 (0)