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

[bug] Fix optimization of exp with negative exponent #8398

Merged
merged 5 commits into from
Oct 31, 2023
Merged

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Oct 30, 2023

Issue: fixes #8269

Brief Summary

🤖 Generated by Copilot at 7a8b410

Fix the return type of exponent statements that are simplified by alg_simp and add a test case for this optimization. This improves the correctness and performance of code generation for exponent operations.

Walkthrough

🤖 Generated by Copilot at 7a8b410

  • Simplify negative exponents by using reciprocal function (link, link)
  • Set return type of new exponent statement to match original right-hand side (link)
  • Set return type of result statement to match original exponent statement (link)
  • Add test case for negative exponent simplification in test_optimization.py (link)

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit a94353f
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/653f642874ecaa00082b2c16

@lin-hitonami lin-hitonami merged commit 1ae0e46 into master Oct 31, 2023
25 checks passed
@lin-hitonami lin-hitonami deleted the fix-8269 branch October 31, 2023 02:18
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.

Calculate with copy of struct member raise error
2 participants