-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark arrays, products, and plain constants, as potentially needing a …
…delayed evaluation during native_compute (fix coq#18703). The following statements would otherwise cause a stack overflow if the module were to be compiled and then loaded, even if the constant was completely unrelated to the term being normalized. Definition large := [|fact 100|0|]. Definition large := (0 <= fact 100) -> Prop. Definition large := large'. Note that the following statements are still eagerly evaluated, on purpose. Definition small := [|0|0|]. Definition small := Prop -> Prop. Note also that the translation of the following code is a bit suboptimal: Definition large := large'. (* let large = lazy (Lazy.force large') *)
- Loading branch information
Showing
2 changed files
with
18 additions
and
15 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
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