Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline 3 times #724

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dag_in_context/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#![allow(dead_code)]
pub(crate) const FUNCTION_INLINING_ITERATIONS: usize = 2;
pub(crate) const FUNCTION_INLINING_ITERATIONS: usize = 3;
4 changes: 3 additions & 1 deletion dag_in_context/src/type_analysis.egg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@

(rule ((= (Const c1 ty1 ctx1) (Const c2 ty2 ctx2))
(= ctx1 (InFunc name))
(!= c1 c2))
(!= c1 c2)
;; these are artificial InFunc contexts from making loop contexts
(= (count-matches name " loop_ctx_") 0))
((panic "Unsoundness detected: const values differ at top level"))
:ruleset error-checking)

Expand Down
Loading