Test source: git
Source: <stdin> ---------------------------------------- define i1 @test_and1(i32 %x, i32 %n) { %0: %nn = and i32 %n, 2147483647 %a = icmp sge i32 %x, 0 %b = icmp slt i32 %x, %nn %c = and i1 %a, %b ret i1 %c } => define i1 @test_and1(i32 %x, i32 %n) { %0: %nn = and i32 %n, 2147483647 %1 = icmp ugt i32 %nn, %x ret i1 %1 } Transformation seems to be correct! ---------------------------------------- define i1 @test_and1_logical(i32 %x, i32 %n) { %0: %nn = and i32 %n, 2147483647 %a = icmp sge i32 %x, 0 %b = icmp slt i32 %x, %nn %c = select i1 %a, i1 %b, i1 0 ret i1 %c } => define i1 @test_and1_logical(i32 %x, i32 %n) { %0: %nn = and i32 %n, 2147483647 %1 = icmp ugt i32 %nn, %x ret i1 %1 } Transformation doesn't verify! ERROR: Target is more poisonous than source Example: i32 %x = #xffffffff (4294967295, -1) i32 %n = poison Source: i32 %nn = poison i1 %a = #x0 (0) i1 %b = poison i1 %c = #x0 (0) Target: i32 %nn = poison i1 %1 = poison Source value: #x0 (0) Target value: poison ------------------- SMT STATS ------------------- Num queries: 6 Num invalid: 0 Num skips: 0 Num trivial: 5 (45.5%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 3 (50.0%) Num UNSAT: 3 (50.0%)
+ : 'RUN: at line 2' + /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/range-check.ll + /home/nlopes/alive2/build/opt-alive.sh -instcombine -S Alive2: Transform doesn't verify; aborting! FileCheck error: '<stdin>' is empty. FileCheck command line: /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/range-check.ll