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

Fix bug of capturing stmt env in BuildEnv #306

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Conversation

SamirDroubi
Copy link
Collaborator

The visitor was freezing the environment by copying the ChainMap which only copies the first map and keeps refs for the remaining ones. Changed it to always halt after hitting the required statement.

Fixes #305

The visitor was freezing the environment by copying the ChainMap which
only copies the first map and keeps refs for the remaining ones. Changed
it to always halt after hitting the required statement.
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2023

Codecov Report

Merging #306 (32951c6) into master (aa9d6a0) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage   86.33%   86.30%   -0.04%     
==========================================
  Files          73       73              
  Lines       16292    16299       +7     
==========================================
+ Hits        14066    14067       +1     
- Misses       2226     2232       +6     
Impacted Files Coverage Δ
src/exo/parse_fragment.py 63.53% <100.00%> (+0.82%) ⬆️
tests/test_schedules.py 98.78% <100.00%> (+0.01%) ⬆️
tests/test_x86.py 98.33% <0.00%> (-1.67%) ⬇️
src/exo/LoopIR_compiler.py 94.25% <0.00%> (-0.56%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@yamaguchi1024 yamaguchi1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yamaguchi1024 yamaguchi1024 merged commit db7456a into master Jan 17, 2023
@yamaguchi1024 yamaguchi1024 deleted the parse-new-expr-bug branch January 17, 2023 20:04
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.

Parsing new expression uses incorrect variable when multiple are available
3 participants