-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
- Loading branch information
1 parent
b169292
commit 498b6de
Showing
2 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |