Test source: git
Source: /bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. SimplifyCFGPass
----------------------------------------
define i1 @specfn() nofree memory(none) {
#0:
ret i1 1
}
Transformation seems to be correct! (syntactically equal)
-- 3. SimplifyCFGPass
----------------------------------------
define i1 @specfn() nofree memory(none) {
#0:
ret i1 1
}
Transformation seems to be correct! (syntactically equal)
-- 4. PassManager<Function> : Skipping NOP
-- 5. PassManager<Function> : Skipping NOP
-- 6. SimplifyCFGPass
----------------------------------------
declare i1 @specfn() nofree memory(none)
define void @test1(i1 %cond) {
start:
br i1 %cond, label %then, label %else
then:
%sres = call i1 @specfn() nofree memory(none)
br label %else
else:
%phi = phi i1 [ %cond, %start ], [ %sres, %then ]
ret void
}
Transformation seems to be correct! (syntactically equal)
-- 7. SimplifyCFGPass
----------------------------------------
declare i1 @specfn() nofree memory(none)
define void @test1(i1 %cond) {
start:
br i1 %cond, label %then, label %else
then:
%sres = call i1 @specfn() nofree memory(none)
br label %else
else:
ret void
}
=>
declare i1 @specfn() nofree memory(none)
define void @test1(i1 %cond) {
start:
%sres = call i1 @specfn() nofree memory(none)
ret void
}
Transformation doesn't verify! (unsound)
ERROR: Source is more defined than target
Example:
i1 %cond = #x0 (0)
Source:
>> Jump to %else
SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 > size: 0 align: 1 alloc type: 0 alive: false address: #x0
Target:
i1 %sres = function did not return!
TARGET MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 > size: 0 align: 1 alloc type: 0 alive: false address: #x0
Pass: SimplifyCFGPass
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' '-o' '-' '/bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll' '-passes=simplifycfg' '-simplifycfg-require-and-preserve-domtree=1' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/no-drop-debug-loc-when-speculating-call_7InOWNbx_d89I.bc"
------------------- SMT STATS -------------------
Num queries: 11
Num invalid: 0
Num skips: 0
Num trivial: 1 (8.3%)
Num timeout: 0 (0.0%)
Num errors: 0 (0.0%)
Num SAT: 10 (90.9%)
Num UNSAT: 1 (9.1%)
Alive2: Transform doesn't verify; aborting!
Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll' FAILED ******************** Exit Code: 2 Command Output (stdout): -- # RUN: at line 1 /home/nlopes/alive2/build/opt-alive.sh -S -o - /bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll # executed command: /home/nlopes/alive2/build/opt-alive.sh -S -o - /bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 # .---command stderr------------ # `----------------------------- # error: command failed with exit status: 1 # executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll # .---command stderr------------ # | FileCheck error: '<stdin>' is empty. # | FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/no-drop-debug-loc-when-speculating-call.ll # `----------------------------- # error: command failed with exit status: 2 --