Commit 752ea70 1 parent c3fbdc6 commit 752ea70 Copy full SHA for 752ea70
File tree 1 file changed +12
-1
lines changed
tests/functional/single_cells
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 41
41
# Load and execute the SMT file
42
42
with open (smt_file_path , 'r' ) as smt_file :
43
43
for line in smt_file :
44
- smt_io .write (line .strip ())
44
+ smt_io .write (line .strip ())
45
45
smt_io .check_sat ()
46
46
# Read and parse the SMT file line by line
47
47
with open (smt_file_path , 'r' ) as smt_file :
@@ -161,6 +161,17 @@ def hex_to_bin(value):
161
161
value = hex_to_bin (value [1 :])
162
162
print (f" { output_name } : { value } " )
163
163
signals [output_name ].append ((step , value ))
164
+ smt_io .write (f'(push 1)' )
165
+ smt_io .write (f'(assert (not (= ({ output_name } test_outputs_step_n{ step } ) #{ value } )))' )
166
+ result = smt_io .check_sat (["unsat" ])
167
+ if result != 'unsat' :
168
+ smt_io .p_close ()
169
+ sys .exit (1 )
170
+ smt_io .write (f'(pop 1)' )
171
+ result = smt_io .check_sat (["sat" ])
172
+ if result != 'sat' :
173
+ smt_io .p_close ()
174
+ sys .exit (1 )
164
175
165
176
smt_io .p_close ()
166
177
You can’t perform that action at this time.
0 commit comments