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

unconditionally check for source functions that are UB for all executions, but don't error out #991

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

regehr
Copy link
Contributor

@regehr regehr commented Dec 19, 2023

I think this is a really important usability thing for Alive users

@regehr
Copy link
Contributor Author

regehr commented Dec 19, 2023

Johns-MacBook-Pro:build regehr$ ./alive-tv test.ll 

----------------------------------------
define i16 @f(i16 %#0) {
#1:
  %x = sdiv i16 %#0, 0
  ret i16 %x
}
=>
define i16 @f(i16 %#0) nofree willreturn memory(none) {
#1:
  ret i16 poison
}

****************************************
WARNING: Source function is always UB.
It can be refined by any target function.
Please make sure this is what you wanted.
****************************************

Transformation seems to be correct!

Summary:
  1 correct transformations
  0 incorrect transformations
  0 failed-to-prove transformations
  0 Alive2 errors
Johns-MacBook-Pro:build regehr$ 

@nunoplopes nunoplopes merged commit 5a58bf8 into AliveToolkit:master Dec 20, 2023
16 checks passed
@regehr regehr deleted the always-check-for-src-ub branch December 25, 2024 21:32
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