-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python bindings for proving and satisfying predicates (#144)
- Loading branch information
Aaron Tomb
authored
Jan 25, 2021
1 parent
61c8f59
commit a176695
Showing
2 changed files
with
85 additions
and
1 deletion.
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,29 @@ | ||
"""Cryptol solver-related definitions""" | ||
from typing import NewType | ||
|
||
Solver = NewType('Solver', str) | ||
|
||
# Cryptol-supported SMT configurations/solvers | ||
# (see Cryptol.Symbolic.SBV Haskell module) | ||
CVC4: Solver = Solver("cvc4") | ||
YICES: Solver = Solver("yices") | ||
Z3: Solver = Solver("z3") | ||
BOOLECTOR: Solver = Solver("boolector") | ||
MATHSAT: Solver = Solver("mathsat") | ||
ABC: Solver = Solver("abc") | ||
OFFLINE: Solver = Solver("offline") | ||
ANY: Solver = Solver("any") | ||
SBV_CVC4: Solver = Solver("sbv-cvc4") | ||
SBV_YICES: Solver = Solver("sbv-yices") | ||
SBV_Z3: Solver = Solver("sbv-z3") | ||
SBV_BOOLECTOR: Solver = Solver("sbv-boolector") | ||
SBV_MATHSAT: Solver = Solver("sbv-mathsat") | ||
SBV_ABC: Solver = Solver("sbv-abc") | ||
SBV_OFFLINE: Solver = Solver("sbv-offline") | ||
SBV_ANY: Solver = Solver("sbv-any") | ||
W4_CVC4: Solver = Solver("w4-cvc4") | ||
W4_YICES: Solver = Solver("w4-yices") | ||
W4_Z3: Solver = Solver("w4-z3") | ||
W4_BOOLECTOR: Solver = Solver("w4-boolector") | ||
W4_MATHSAT: Solver = Solver("w4-offline") | ||
W4_ABC: Solver = Solver("w4-any") |