Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit d7e8a78

Browse files
committed
Merge remote-tracking branch 'origin/master' into noah/subproof-split
2 parents a315547 + ca97bb1 commit d7e8a78

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/pyk/cli/args.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ def smt_args(self) -> ArgumentParser:
101101
type=int,
102102
help='Number of times to retry SMT queries with scaling timeouts.',
103103
)
104+
args.add_argument(
105+
'--smt-tactic',
106+
dest='smt_tactic',
107+
type=str,
108+
help='Z3 tactic to use when checking satisfiability. Example: (check-sat-using smt)',
109+
)
104110
return args
105111

106112
@cached_property

src/pyk/kore/rpc.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ def __init__(
850850
smt_timeout: int | None = None,
851851
smt_retry_limit: int | None = None,
852852
smt_reset_interval: int | None = None,
853+
smt_tactic: str | None = None,
853854
command: str | Iterable[str] | None = None,
854855
bug_report: BugReport | None = None,
855856
haskell_log_format: KoreExecLogFormat = KoreExecLogFormat.ONELINE,
@@ -881,6 +882,8 @@ def __init__(
881882
smt_server_args += ['--smt-retry-limit', str(smt_retry_limit)]
882883
if smt_reset_interval:
883884
smt_server_args += ['--smt-reset-interval', str(smt_reset_interval)]
885+
if smt_tactic:
886+
smt_server_args += ['--smt-tactic', smt_tactic]
884887

885888
haskell_log_args = (
886889
[
@@ -980,6 +983,7 @@ def __init__(
980983
smt_timeout: int | None = None,
981984
smt_retry_limit: int | None = None,
982985
smt_reset_interval: int | None = None,
986+
smt_tactic: str | None = None,
983987
command: str | Iterable[str] | None,
984988
bug_report: BugReport | None = None,
985989
haskell_log_format: KoreExecLogFormat = KoreExecLogFormat.ONELINE,
@@ -1027,6 +1031,7 @@ def __init__(
10271031
smt_timeout=smt_timeout,
10281032
smt_retry_limit=smt_retry_limit,
10291033
smt_reset_interval=smt_reset_interval,
1034+
smt_tactic=smt_tactic,
10301035
command=args,
10311036
bug_report=bug_report,
10321037
haskell_log_format=haskell_log_format,
@@ -1045,6 +1050,7 @@ def kore_server(
10451050
bug_report: BugReport | None = None,
10461051
smt_timeout: int | None = None,
10471052
smt_retry_limit: int | None = None,
1053+
smt_tactic: str | None = None,
10481054
haskell_log_format: KoreExecLogFormat = KoreExecLogFormat.ONELINE,
10491055
haskell_log_entries: Iterable[str] = (),
10501056
log_axioms_file: Path | None = None,
@@ -1059,6 +1065,7 @@ def kore_server(
10591065
bug_report=bug_report,
10601066
smt_timeout=smt_timeout,
10611067
smt_retry_limit=smt_retry_limit,
1068+
smt_tactic=smt_tactic,
10621069
haskell_log_format=haskell_log_format,
10631070
haskell_log_entries=haskell_log_entries,
10641071
log_axioms_file=log_axioms_file,
@@ -1072,6 +1079,7 @@ def kore_server(
10721079
bug_report=bug_report,
10731080
smt_timeout=smt_timeout,
10741081
smt_retry_limit=smt_retry_limit,
1082+
smt_tactic=smt_tactic,
10751083
haskell_log_format=haskell_log_format,
10761084
haskell_log_entries=haskell_log_entries,
10771085
log_axioms_file=log_axioms_file,

0 commit comments

Comments
 (0)