3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

doc fixes

This commit is contained in:
Nikolaj Bjorner 2022-12-11 10:04:01 -08:00
parent 527fb18366
commit a9f52b0069
3 changed files with 15 additions and 6 deletions

View file

@ -53,15 +53,24 @@ def extract_tactic_doc(ous, f):
if is_doc.search(line):
generate_tactic_doc(ous, f, ins)
def presort_files():
tac_files = []
for root, dirs, files in os.walk(doc_path("../src")):
for f in files:
if f.endswith("tactic.h"):
tac_files += [(f, os.path.join(root, f))]
tac_files = sorted(tac_files, key = lambda x: x[0])
return tac_files
def help(ous):
presort_files()
ous.write("---\n")
ous.write("title: Tactics Summary\n")
ous.write("sidebar_position: 5\n")
ous.write("---\n")
for root, dirs, files in os.walk(doc_path("../src")):
for f in files:
if f.endswith("tactic.h"):
extract_tactic_doc(ous, os.path.join(root, f))
tac_files = presort_files()
for file, path in tac_files:
extract_tactic_doc(ous, path)
def mk_dir(d):
if not os.path.exists(d):

View file

@ -55,7 +55,7 @@ void card2bv::collect_statistics(statistics& st) const {
}
void card2bv::collect_param_descrs(param_descrs& r) {
r.insert("keep_cardinality_constraints", CPK_BOOL, "(default: true) retain cardinality constraints for solver");
r.insert("keep_cardinality_constraints", CPK_BOOL, "retain cardinality constraints for solver", "true");
pb2bv_rewriter rw(m, m_params);
rw.collect_param_descrs(r);
}

View file

@ -11,7 +11,7 @@ Author:
Tactic Documentation:
## Tactic car2bv
## Tactic card2bv
### Short Description