-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module PluginReturned | ||
|
||
open FStar.Tactics.V2 | ||
|
||
(* This used to trip the normalizer due to an extra Meta_monadic | ||
node on the returned and_elim or inspect (which are plugins). *) | ||
|
||
assume val p : prop | ||
assume val q : prop | ||
|
||
let foo (b:bool) : Tac (term -> Tac unit) = | ||
if b | ||
then and_elim | ||
else fail "no" | ||
|
||
let test (x : squash (p /\ q)) = | ||
assert True by ( | ||
let f = foo true in | ||
f (quote x); | ||
dump "" | ||
) | ||
|
||
let bar () : Tac (term -> Tac term_view) = | ||
inspect | ||
|
||
let test2 () = | ||
assert True by ( | ||
let f = bar () in | ||
let tv = f (`1) in | ||
dump "" | ||
) |