Test Failure: Transforms/InstSimplify/gep.ll

Test source: git

Log:

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=2283325011076841472)
* %e = pointer(non-local, block_id=0, offset=2459528346497713857)

Source:
i64 %e_ptr = #x22220000000006c1 (2459528346497713857)
i64 %b_ptr = #x21b1e40000000000 (2427972362780540928)
i64 %sub = #x00701c00000006c1 (31555983717172929)
i64 %sdiv = #x00100400000000f7 (4507997673881847)
* %gep = pointer(non-local, block_id=1, offset=2314880994794014401)

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	address: 0
Block 1 >	size: 2319398955724093445	align: 2	alloc type: 0	address: 144647351703699456
Block 2 >	size: 802576454108072577	align: 2	alloc type: 0	address: 4621260713860542464

Target:
Source value: pointer(non-local, block_id=1, offset=2314880994794014401)
Target value: pointer(non-local, block_id=0, offset=2459528346497713857)


------------------- SMT STATS -------------------
Num queries: 3
Num invalid: 0
Num skips:   0
Num trivial: 2 (40.0%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     2 (66.7%)
Num UNSAT:   1 (33.3%)

stderr:

+ : '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

 

<-- Back