Test source: git
Source: <stdin>
-- 1. DeclareRuntimeLibcallsPass
-- 2. DeclareRuntimeLibcallsPass
----------------------------------------
define float @sqrtf(float %x) noundef nofpclass(3) {
#0:
%ret = call float asm ; $0 = sqrt($1), =r,r(float %x) nothrow
ret float %ret
}
=>
define float @sqrtf(float %x) nofree noundef nofpclass(28) willreturn memory(none) {
#0:
%ret = call float asm ; $0 = sqrt($1), =r,r(float %x) nothrow
ret float %ret
}
Transformation doesn't verify! (unsound)
ERROR: Source is more defined than target
Example:
float %x = poison
Source:
float %ret = function did not return!
SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 > size: 0 align: 1 alloc type: 0 alive: false address: #x0
Block 1 > size: 0 align: 8 alloc type: 0 alive: true address: #x8
Target:
float %ret = function did not return!
TARGET MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 > size: 0 align: 1 alloc type: 0 alive: false address: #x0
Block 1 > size: 0 align: 8 alloc type: 0 alive: true address: #x8
Pass: DeclareRuntimeLibcallsPass
Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-S' '-passes=declare-runtime-libcalls' '-mtriple=x86_64-unknown-linux-gnu' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_IfI0HE3Q_ydZU.bc"
------------------- SMT STATS -------------------
Num queries: 14
Num invalid: 0
Num skips: 0
Num trivial: 0 (0.0%)
Num timeout: 0 (0.0%)
Num errors: 0 (0.0%)
Num SAT: 13 (92.9%)
Num UNSAT: 1 (7.1%)
Alive2: Transform doesn't verify; aborting!
Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll' FAILED ******************** Exit Code: 2 Command Output (stdout): -- # RUN: at line 1 /home/nlopes/alive2/build/opt-alive.sh -S -passes=declare-runtime-libcalls -mtriple=x86_64-unknown-linux-gnu < /bitbucket/nlopes/llvm/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll # executed command: /home/nlopes/alive2/build/opt-alive.sh -S -passes=declare-runtime-libcalls -mtriple=x86_64-unknown-linux-gnu # .---command stderr------------ # `----------------------------- # error: command failed with exit status: 1 # executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll # .---command stderr------------ # | FileCheck error: '<stdin>' is empty. # | FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll # `----------------------------- # error: command failed with exit status: 2 --