Test source: git
Source: <stdin> ---------------------------------------- define * @test1(* %b, * %e) { %0: %e_ptr = ptrtoint * %e to i64 %b_ptr = ptrtoint * %b to i64 %sub = sub i64 %e_ptr, %b_ptr %sdiv = sdiv exact i64 %sub, 7 %gep = gep inbounds * %b, 7 x i64 %sdiv ret * %gep } => define * @test1(* %b, * %e) { %0: ret * %e } Transformation doesn't verify! ERROR: Value mismatch Example: * %b = pointer(non-local, block_id=1, offset=584589237748769499) * %e = pointer(non-local, block_id=0, offset=2335921889308312192) Source: i64 %e_ptr = #x206adc9503480280 (2335921889308312192) i64 %b_ptr = #x206e40e5034822db (2336876608998613723) i64 %sub = #xfffc9bafffffdfa5 (18445789354019250085, -954719690301531) i64 %sdiv = #xffff83f492491ff3 (18446607685182365683, -136388527185933) * %gep = pointer(non-local, block_id=1, offset=583634518058467968) SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 1 alloc type: 0 address: 0 Block 1 > size: 1159677402284696193 align: 4 alloc type: 0 address: 1752287371249844224 Block 2 > size: 1153229411166888033 align: 0 alloc type: 0 address: 550030544896 Target: Source value: pointer(non-local, block_id=1, offset=583634518058467968) Target value: pointer(non-local, block_id=0, offset=2335921889308312192) ------------------- SMT STATS ------------------- Num queries: 4 Num invalid: 0 Num skips: 0 Num trivial: 2 (33.3%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 2 (50.0%) Num UNSAT: 2 (50.0%)
+ : 'RUN: at line 2' + /home/nlopes/alive2/scripts/opt-alive.sh -S -instsimplify + /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstSimplify/gep.ll 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/InstSimplify/gep.ll