File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1159,7 +1159,7 @@ def instance_hierarchy_error_callback(retcode):
1159
1159
self ,
1160
1160
"btor_aig" ,
1161
1161
self .model (btor_model ),
1162
- f"cd { self .workdir } /model; btor2aig_yw design_{ btor_model } .btor"
1162
+ f"cd { self .workdir } /model; btor2aig_yw design_{ btor_model } .btor design_btor.ywb "
1163
1163
)
1164
1164
proc .checkretcode = True
1165
1165
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ def arg_parser():
15
15
type = Path
16
16
)
17
17
18
+ parser .add_argument (
19
+ "ywb_file" ,
20
+ type = Path
21
+ )
22
+
18
23
parser .add_argument (
19
24
"-d" , "--dest" ,
20
25
dest = "dest" ,
@@ -118,15 +123,10 @@ async def main() -> None:
118
123
data = await proc .stdout .readline ()
119
124
aimf .close ()
120
125
121
- # find assertions by looking for 'bad' statements in the btor
122
- with open (args .btor_file , mode = 'r' ) as f :
123
- data = f .readline ()
124
- while data :
125
- if "bad" in data :
126
- m = re .match (r"^\d+ bad \d+ (\S+)" , data )
127
- path = fix_path (m .group (1 ))
128
- ywa ['asserts' ].append (path )
129
- data = f .readline ()
126
+ with open (args .ywb_file , mode = 'r' ) as f :
127
+ data = json .load (f )
128
+ ywa ['asserts' ].extend (data ['asserts' ])
129
+ ywa ['assumes' ].extend (data ['assumes' ])
130
130
131
131
132
132
with open (work_dir / "design_aiger.ywa" , mode = "w" ) as f :
You can’t perform that action at this time.
0 commit comments