Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Haley Sapphie Owsianko
ACC-project
Commits
545d8b91
Commit
545d8b91
authored
Apr 24, 2021
by
Sapphie
Browse files
Finish AppF shrinking
parent
3c096064
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/src/l3/CPSOptimizer.scala
View file @
545d8b91
...
...
@@ -75,8 +75,11 @@ abstract class CPSOptimizer[T <: CPSTreeModule { type Name = Symbol }]
fun
match
{
case
AtomN
(
n
)
if
s
.
fEnv
.
contains
(
n
)
&&
s
.
appliedOnce
(
n
)
=>
// Inline
val
fun
=
s
.
fEnv
.
get
(
n
)
???
val
fun
=
s
.
fEnv
(
n
)
val
newState
=
s
.
withASubst
(
fun
.
args
,
args
)
.
withCSubst
(
fun
.
retC
,
retC
)
val
newBody
=
shrink
(
fun
.
body
,
newState
)
newBody
case
_
=>
tree
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment