File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -56,18 +56,21 @@ let t_hr_exists_intro_r fs tc =
5656 | FeHoareF _ | FeHoareS _ -> true
5757 | _ -> false in
5858 let pre =
59+ let eqs = match eqs with
60+ | [] -> map_inv1 (fun _ -> f_true) pre1
61+ | _ -> map_inv f_ands eqs in
5962 if is_ehoare then
60- map_inv2 f_interp_ehoare_form (map_inv1 (f_exists bd) (map_inv f_ands eqs) ) pre1
63+ map_inv2 f_interp_ehoare_form (map_inv1 (f_exists bd) eqs) pre1
6164 else
62- map_inv1 (f_exists bd) (map_inv2 f_and (map_inv f_ands eqs) pre1) in
65+ map_inv1 (f_exists bd) (map_inv2 f_and eqs pre1) in
6366
6467 let h = LDecl. fresh_id hyps " h" in
6568 let ml, mr = as_seq2 (LDecl. fresh_ids hyps [" &ml" ; " &mr" ]) in
6669 let m = LDecl. fresh_id hyps " &m" in
6770 let ms =
68- match List. hd gen with
69- | ( _ , Inv_ts _ ) -> [ml; mr]
70- | ( _ , Inv_ss _ ) -> [m] in
71+ match pre1 with
72+ | Inv_ts _ -> [ml; mr]
73+ | Inv_ss _ -> [m] in
7174
7275 let inv_rebind f =
7376 match f with
You can’t perform that action at this time.
0 commit comments