-
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.
Merge pull request #3409 from mtzguido/tac_fix
normalizer: a fix for a plugin returned by a function
- Loading branch information
Showing
5 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 "" | ||
) |