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

misleading output for infinite loop? #1171

Open
regehr opened this issue Feb 15, 2025 · 0 comments
Open

misleading output for infinite loop? #1171

regehr opened this issue Feb 15, 2025 · 0 comments

Comments

@regehr
Copy link
Contributor

regehr commented Feb 15, 2025

for the function below, alive-tv says "WARNING: Source function is always UB."

but this isn't true, is it? I mean, since the mustprogress attribute isn't here, the function is perfectly well defined.

Alive also says ERROR: The source program doesn't reach a return instruction. so perhaps we simply want to suppress the earlier warning in the case where we're going to print this error?

define void @test() {
entry:
  br label %for.body
for.body:
  br label %for.body
}
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

No branches or pull requests

1 participant