@@ -678,7 +678,7 @@ impl Property for ExtData {
678
678
}
679
679
680
680
fn or_d ( l : Self , r : Self ) -> Result < Self , ErrorKind > {
681
- Ok ( ExtData {
681
+ let res = ExtData {
682
682
pk_cost : l. pk_cost + r. pk_cost + 3 ,
683
683
has_free_verify : false ,
684
684
ops_count_static : l. ops_count_static + r. ops_count_static + 1 ,
@@ -708,14 +708,15 @@ impl Property for ExtData {
708
708
. and_then ( |( lw, ls) | r. max_dissat_size . map ( |( rw, rs) | ( lw + rw, ls + rs) ) ) ,
709
709
timelock_info : TimeLockInfo :: comb_or_timelocks ( l. timelock_info , r. timelock_info ) ,
710
710
exec_stack_elem_count_sat : cmp:: max (
711
- opt_max ( l. exec_stack_elem_count_sat , r . exec_stack_elem_count_dissat ) ,
712
- r. exec_stack_elem_count_sat ,
711
+ l. exec_stack_elem_count_sat ,
712
+ opt_max ( r. exec_stack_elem_count_sat , l . exec_stack_elem_count_dissat ) ,
713
713
) ,
714
714
exec_stack_elem_count_dissat : opt_max (
715
715
l. exec_stack_elem_count_dissat ,
716
716
r. exec_stack_elem_count_dissat . map ( |x| x + 1 ) ,
717
717
) ,
718
- } )
718
+ } ;
719
+ Ok ( res)
719
720
}
720
721
721
722
fn or_c ( l : Self , r : Self ) -> Result < Self , ErrorKind > {
@@ -743,8 +744,8 @@ impl Property for ExtData {
743
744
max_dissat_size : None ,
744
745
timelock_info : TimeLockInfo :: comb_or_timelocks ( l. timelock_info , r. timelock_info ) ,
745
746
exec_stack_elem_count_sat : cmp:: max (
746
- opt_max ( l. exec_stack_elem_count_sat , r . exec_stack_elem_count_dissat ) ,
747
- r. exec_stack_elem_count_sat ,
747
+ l. exec_stack_elem_count_sat ,
748
+ opt_max ( r. exec_stack_elem_count_sat , l . exec_stack_elem_count_dissat ) ,
748
749
) ,
749
750
exec_stack_elem_count_dissat : None ,
750
751
} )
0 commit comments