Skip to content

Handle division by zero error in const evaluator #2333

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

Merged
merged 5 commits into from
May 6, 2025

Conversation

orpuente-MS
Copy link
Contributor

@orpuente-MS orpuente-MS commented Apr 24, 2025

This PR fixes #2332 and #2348. It handles the division by zero case in the const evaluator for int, float, and angle types; and the modulo by zero case for the int type.

@orpuente-MS orpuente-MS added this pull request to the merge queue May 6, 2025
Merged via the queue into main with commit 8fe0362 May 6, 2025
18 checks passed
@orpuente-MS orpuente-MS deleted the oscarpuente/fix-2332 branch May 6, 2025 22:55
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.

Fuzz: "thread '<unnamed>' panicked at compiler/qsc_qasm/src/semantic/const_eval.rs:474:71:" (ubuntu-latest)
3 participants