-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdumpKV.py
23 lines (21 loc) · 883 Bytes
/
dumpKV.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from holmes import *
import sys
#TODO make all clauses optional
class DumpKV:
premises = [Premise("fallthrough", [Bind("fileName", "string")
,Bind("addr", "addr")
,Bind("fall", "addr")])
,Premise("succ", [Bind("fileName", "string")
,Bind("addr", "addr")
,Forall("succs", "addr")])
,Premise("arch", [Bind("fileName", "string")
,Bind("arch", "string")])
,Premise("succ", [Bind("fileName", "string")
,Forall("preds", "addr")
,Bind("addr", "addr")])]
conclusions = []
name = "DumpKV"
def analyze(self, fileName, addr, fall, preds, succs, arch):
print((addr, preds, succs))
sys.stdout.flush()
return []