You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that's a bug in Alive2. Or rather a feature that is not implemented. The call to @f_readonly_arg doesn't have the readonly attribute in the argument.
Extended Description
Test: Transforms/Sink/call.ll
Transformation only valid if willreturn & nounwind attributes are present.
define i32 @test_sink_no_stores(i1 %z) {
%0:
%l = call i32 @f_load_global() nowrite nofree
br i1 %z, label %true, label %false
%false:
ret i32 0
%true:
ret i32 %l
}
=>
define i32 @test_sink_no_stores(i1 %z) {
%0:
br i1 %z, label %true, label %false
%false:
ret i32 0
%true:
%l = call i32 @f_load_global() nowrite nofree
ret i32 %l
}
Transformation doesn't verify!
ERROR: Source is more defined than target
Example:
i1 %z = undef
Source:
i32 %l = UB triggered!
SOURCE MEMORY STATE
NON-LOCAL BLOCKS:
Block 0 > size: 0 align: 1 alloc type: 0
Block 1 > size: 0 align: 1
Target:
UB triggered on br
The text was updated successfully, but these errors were encountered: