Test source: git
Source: <stdin> -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<Function> : Skipping NOP -- 2. InstSimplifyPass ---------------------------------------- define i32 @shl_amount_is_known_bogus(i32 %a, i32 %b) { #0: %or = or i32 %b, 32 %shl = shl i32 %a, %or ret i32 %shl } Transformation seems to be correct! (syntactically equal) -- 3. InstSimplifyPass ---------------------------------------- define i32 @shl_amount_is_known_bogus(i32 %a, i32 %b) { #0: %or = or i32 %b, 32 %shl = shl i32 %a, %or ret i32 %shl } => define i32 @shl_amount_is_known_bogus(i32 %a, i32 %b) { #0: ret i32 poison } Transformation seems to be correct! -- 4. PassManager<Function> : Skipping NOP -- 5. PassManager<Function> : Skipping NOP -- 6. InstSimplifyPass ---------------------------------------- define i32 @shl_amount_is_known_bogus_range_attr(i32 %a, i32 %b) { #0: %shl = shl i32 %a, %b ret i32 %shl } Transformation seems to be correct! (syntactically equal) -- 7. InstSimplifyPass ---------------------------------------- define i32 @shl_amount_is_known_bogus_range_attr(i32 %a, i32 %b) { #0: %shl = shl i32 %a, %b ret i32 %shl } => define i32 @shl_amount_is_known_bogus_range_attr(i32 %a, i32 %b) { #0: ret i32 poison } Transformation doesn't verify! (unsound) ERROR: Target is more poisonous than source Example: i32 %a = #x00000000 (0) [based on undef value] i32 %b = #x00000000 (0) Source: i32 %shl = #x00000000 (0) Target: Source value: #x00000000 (0) Target value: poison Pass: InstSimplifyPass 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' '-passes=instsimplify' '-S' '-data-layout=E' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats' Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_a2RSmuqy_9N4D.bc" ------------------- SMT STATS ------------------- Num queries: 9 Num invalid: 0 Num skips: 0 Num trivial: 12 (57.1%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 9 (100.0%) Num UNSAT: 0 (0.0%) Alive2: Transform doesn't verify; aborting!
RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/shift-knownbits.ll -passes=instsimplify -S -data-layout="E" | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/shift-knownbits.ll --check-prefixes=CHECK,BIGENDIAN + /home/nlopes/alive2/build/opt-alive.sh -passes=instsimplify -S -data-layout=E + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/shift-knownbits.ll --check-prefixes=CHECK,BIGENDIAN FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/shift-knownbits.ll --check-prefixes=CHECK,BIGENDIAN