FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pycaliper-intel/quickstart.py at main · adwait/pycaliper-intel · GitHub
adwait
/
pycaliper-intel
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pycaliper-intel
/
quickstart.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (13 loc) · 534 Bytes
Breadcrumbs
pycaliper-intel
/
quickstart.py
Copy path
File metadata and controls
16 lines (13 loc) · 534 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from
pycaliper
.
proofmanager
import
mk_btordesign
from
pycaliper
.
verif
.
btorverifier
import
BTORVerifier1Trace
from
pycaliper
.
pycconfig
import
DesignConfig
from
tests
.
specs
.
demo
import
demo
# Create a BTOR design
prgm
=
mk_btordesign
(
"demo"
,
"examples/designs/demo/btor/full_design.btor"
)
# Instantiate the demo specification
spec
=
demo
()
spec
.
instantiate
()
# Perform the proof
verifier
=
BTORVerifier1Trace
()
result
=
verifier
.
verify
(
spec
,
prgm
,
DesignConfig
(
cpy1
=
"a"
))
print
(
"Proof result:"
,
"SAFE"
if
result
.
verified
else
"BUG"
)
Back
|
FazBrowse Home
|
New Git URL