File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,21 @@ def run(self, scope):
76
76
77
77
restore_scope_values (scope , scope_values )
78
78
79
+ # Unravel delta nested ands
80
+ delta_unraveled = []
81
+ for c in delta :
82
+ if c .name == 'and' :
83
+ sub_list = []
84
+ for sub_c in c .args :
85
+ sub_list .append (sub_c )
86
+ delta_unraveled .append (sub_list )
87
+ else :
88
+ delta_unraveled .append ([c ])
89
+
79
90
# Return random c in delta otherwise (if more than one, they are equivalent w.r.t. C_l)
80
91
# Choose the constraint with the smallest number of conjunctions
81
- delta = sorted (delta , key = lambda x : len (x . args ))
82
- return delta [0 ]
92
+ delta_unraveled = sorted (delta_unraveled , key = lambda x : len (x ))
93
+ return delta_unraveled [0 ]
83
94
84
95
self .ca .metrics .increase_findc_queries ()
85
96
You can’t perform that action at this time.
0 commit comments