Skip to content

Conversation

@elegios
Copy link
Contributor

@elegios elegios commented Mar 20, 2025

This PR changes demote-recursive.mc to be slightly simpler, it only looks at free variables in bodies of a recursive let to determine dependencies instead of using a call graph via call-graph.mc. This fixes a bug where a partial application did not induce a dependency. I don't actually understand why this bug existed before, call-graph.mc doesn't seem to look at applications and should thus not be able to distinguish between a partial and full application, but this change makes demote-recursive.mc mildly simpler and fixes the bug, so I figure it's desirable even without a full understanding of the original cause.

@david-broman david-broman merged commit ea90dd6 into miking-lang:develop Mar 25, 2025
1 of 2 checks passed
@elegios elegios deleted the demote-via-free branch April 16, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants