Skip to content

Commit

Permalink
snap
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemr committed Jul 25, 2023
1 parent 0d78d1a commit 5f17285
Show file tree
Hide file tree
Showing 5 changed files with 486 additions and 421 deletions.
7 changes: 4 additions & 3 deletions src/ocaml/plugin/generated/Pulse_Checker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1130,9 +1130,10 @@ let rec (check : Pulse_Checker_Base.check_t) =
(fun uu___1 ->
match r with
| FStar_Pervasives.Mkdtuple5
(x, t1, pre', g1, k) ->
(x, g1, t1, pre', k) ->
FStar_Pervasives.Mkdtuple5
(x, t1, pre', g1,
(x, g1, t1, pre',
(Pulse_Checker_Base.k_elab_trans
g0 g g1 pre0 pre pre'
g0 g g1 pre0 pre
(FStar_Pervasives.dfst pre')
k_elim_pure k)))))) uu___)
7 changes: 4 additions & 3 deletions src/ocaml/plugin/generated/Pulse_Checker_AssertWithBinders.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1953,13 +1953,14 @@ let (check :
pre'',
g2,
(Pulse_Checker_Base.k_elab_trans
g g11 g2
pre
g g11
x_ty pre
(Pulse_Checker_Prover_Base.op_Star
(Pulse_Checker_Prover_Substs.nt_subst_term
v2 nts)
pre')
pre''
(FStar_Pervasives.dfst
g2)
k_frame k))))))
uu___4)))
uu___3)))
Expand Down
82 changes: 54 additions & 28 deletions src/ocaml/plugin/generated/Pulse_Checker_Base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1211,9 +1211,13 @@ let rec (check_equiv_emp :
| (uu___, uu___1) -> FStar_Pervasives_Native.None)
| uu___ -> FStar_Pervasives_Native.None
type ('g, 'postuhint, 'x, 't, 'ctxtu) checker_res_matches_post_hint = Obj.t
type ('g, 'postuhint, 'x, 'g1, 't, 'ctxtu) checker_result_inv = Obj.t
type ('g, 'ctxt, 'postuhint) checker_result_t =
(Pulse_Syntax_Base.var, Pulse_Syntax_Base.term, Pulse_Syntax_Base.vprop,
Pulse_Typing_Env.env, (unit, unit, unit, unit) continuation_elaborator)
(Pulse_Syntax_Base.var, Pulse_Typing_Env.env,
(Pulse_Syntax_Base.universe, Pulse_Syntax_Base.typ, unit)
FStar_Pervasives.dtuple3,
(Pulse_Syntax_Base.vprop, unit) Prims.dtuple2,
(unit, unit, unit, unit) continuation_elaborator)
FStar_Pervasives.dtuple5
type check_t =
Pulse_Typing_Env.env ->
Expand Down Expand Up @@ -1601,8 +1605,8 @@ let (apply_checker_result_k :
(FStar_Sealed.seal
(Obj.magic
(FStar_Range.mk_range "Pulse.Checker.Base.fst"
(Prims.of_int (386)) (Prims.of_int (35))
(Prims.of_int (386)) (Prims.of_int (36)))))
(Prims.of_int (386)) (Prims.of_int (64))
(Prims.of_int (386)) (Prims.of_int (65)))))
(FStar_Sealed.seal
(Obj.magic
(FStar_Range.mk_range "Pulse.Checker.Base.fst"
Expand All @@ -1612,7 +1616,11 @@ let (apply_checker_result_k :
(fun uu___ ->
(fun uu___ ->
match uu___ with
| FStar_Pervasives.Mkdtuple5 (y, ty_y, pre', g1, k) ->
| FStar_Pervasives.Mkdtuple5
(y, g1, FStar_Pervasives.Mkdtuple3
(u_ty, ty_y, d_ty_y), Prims.Mkdtuple2 (pre', uu___1),
k)
->
Obj.magic
(FStar_Tactics_Effect.tac_bind
(FStar_Sealed.seal
Expand All @@ -1625,14 +1633,14 @@ let (apply_checker_result_k :
(Obj.magic
(FStar_Range.mk_range
"Pulse.Checker.Base.fst"
(Prims.of_int (386)) (Prims.of_int (39))
(Prims.of_int (386)) (Prims.of_int (68))
(Prims.of_int (393)) (Prims.of_int (22)))))
(Obj.magic
(Pulse_Checker_Pure.check_universe g1 ty_y))
(fun uu___1 ->
(fun uu___1 ->
match uu___1 with
| Prims.Mkdtuple2 (u_ty_y, d_ty_y) ->
(fun uu___2 ->
(fun uu___2 ->
match uu___2 with
| Prims.Mkdtuple2 (u_ty_y, d_ty_y1) ->
Obj.magic
(FStar_Tactics_Effect.tac_bind
(FStar_Sealed.seal
Expand All @@ -1652,18 +1660,18 @@ let (apply_checker_result_k :
(Prims.of_int (393))
(Prims.of_int (22)))))
(FStar_Tactics_Effect.lift_div_tac
(fun uu___2 ->
(fun uu___3 ->
return_in_ctxt g1 y u_ty_y
ty_y pre' ()
(FStar_Pervasives_Native.Some
post_hint)))
(fun uu___2 ->
(fun uu___3 ->
(fun d ->
Obj.magic
(k
(FStar_Pervasives_Native.Some
post_hint) d)) uu___2)))
uu___1))) uu___)
post_hint) d)) uu___3)))
uu___2))) uu___)
let (checker_result_for_st_typing :
Pulse_Typing_Env.env ->
Pulse_Syntax_Base.vprop ->
Expand All @@ -1686,7 +1694,7 @@ let (checker_result_for_st_typing :
(Obj.magic
(FStar_Range.mk_range "Pulse.Checker.Base.fst"
(Prims.of_int (398)) (Prims.of_int (47))
(Prims.of_int (422)) (Prims.of_int (35)))))
(Prims.of_int (429)) (Prims.of_int (72)))))
(FStar_Tactics_Effect.lift_div_tac (fun uu___ -> d))
(fun uu___ ->
(fun uu___ ->
Expand All @@ -1705,7 +1713,7 @@ let (checker_result_for_st_typing :
(FStar_Range.mk_range
"Pulse.Checker.Base.fst"
(Prims.of_int (402)) (Prims.of_int (20))
(Prims.of_int (422)) (Prims.of_int (35)))))
(Prims.of_int (429)) (Prims.of_int (72)))))
(FStar_Tactics_Effect.lift_div_tac
(fun uu___1 -> Pulse_Typing_Env.fresh g))
(fun uu___1 ->
Expand All @@ -1726,8 +1734,8 @@ let (checker_result_for_st_typing :
"Pulse.Checker.Base.fst"
(Prims.of_int (404))
(Prims.of_int (58))
(Prims.of_int (422))
(Prims.of_int (35)))))
(Prims.of_int (429))
(Prims.of_int (72)))))
(FStar_Tactics_Effect.lift_div_tac
(fun uu___1 ->
Pulse_Typing_Env.push_binding g x
Expand All @@ -1751,8 +1759,8 @@ let (checker_result_for_st_typing :
"Pulse.Checker.Base.fst"
(Prims.of_int (405))
(Prims.of_int (63))
(Prims.of_int (422))
(Prims.of_int (35)))))
(Prims.of_int (429))
(Prims.of_int (72)))))
(FStar_Tactics_Effect.lift_div_tac
(fun uu___1 ->
Pulse_Syntax_Naming.open_term_nv
Expand All @@ -1776,10 +1784,10 @@ let (checker_result_for_st_typing :
(Obj.magic
(FStar_Range.mk_range
"Pulse.Checker.Base.fst"
(Prims.of_int (422))
(Prims.of_int (2))
(Prims.of_int (422))
(Prims.of_int (35)))))
(Prims.of_int (420))
(Prims.of_int (30))
(Prims.of_int (429))
(Prims.of_int (72)))))
(Obj.magic
(continuation_elaborator_with_bind
g
Expand All @@ -1789,12 +1797,30 @@ let (checker_result_for_st_typing :
FStar_Tactics_Effect.lift_div_tac
(fun uu___1
->
match
Pulse_Typing_Metatheory.st_comp_typing_inversion_cofinite
g
(Pulse_Syntax_Base.st_comp_of_comp
c)
(Pulse_Typing_Metatheory.comp_typing_inversion
g c
(Pulse_Typing_Metatheory.st_typing_correctness
g t c d1))
with
|
(comp_res_typing,
uu___2,
f) ->
FStar_Pervasives.Mkdtuple5
(x,
(Pulse_Syntax_Base.comp_res
(x, g',
(FStar_Pervasives.Mkdtuple3
((Pulse_Syntax_Base.comp_u
c),
ctxt',
g',
(Pulse_Syntax_Base.comp_res
c), ())),
(Prims.Mkdtuple2
(ctxt',
())),
(k_elab_equiv
g g'
(Pulse_Syntax_Base.tm_star
Expand Down
Loading

0 comments on commit 5f17285

Please sign in to comment.