mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
distribute forall cpp code
This commit is contained in:
parent
c33e58ee1a
commit
7e69dab8f6
3 changed files with 112 additions and 0 deletions
|
@ -19,12 +19,17 @@ is_doc = re.compile("Tactic Documentation")
|
|||
is_doc_end = re.compile("\-\-\*\/")
|
||||
is_tac_name = re.compile("## Tactic (.*)")
|
||||
|
||||
def is_ws(s):
|
||||
return all([0 for ch in s if ch != ' ' and ch != '\n'])
|
||||
|
||||
def extract_params(ous, tac):
|
||||
z3_exe = BUILD_DIR + "/z3"
|
||||
out = subprocess.Popen([z3_exe, f"-tacticsmd:{tac}"], stdout=subprocess.PIPE).communicate()[0]
|
||||
if not out:
|
||||
return
|
||||
out = out.decode(sys.stdout.encoding)
|
||||
if is_ws(out):
|
||||
return
|
||||
ous.write("### Parameters\n\n")
|
||||
for line in out:
|
||||
ous.write(line.replace("\r",""))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue