Test Failure: Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstSimplifyPass

----------------------------------------
define ptr @test_null_base_normal() {
#0:
  %gep = gep ptr null, 1 x i8 254
  ret ptr %gep
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstSimplifyPass

----------------------------------------
define ptr @test_null_base_normal() {
#0:
  %gep = gep ptr null, 1 x i8 254
  ret ptr %gep
}
=>
define ptr @test_null_base_normal() {
#0:
  %__constexpr_0 = inttoptr i16 65534 to ptr
  ret ptr %__constexpr_0
}
Transformation doesn't verify! (unsound)
ERROR: Value mismatch

NOTE: The counterexample is unique.

Example:

Source:
ptr %gep = pointer(non-local, block_id=0, offset=-2) / Address=#xfffe

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: #x0000

Target:
ptr %__constexpr_0 = phy-ptr(addr=65534) / Address=#xfffe

TARGET MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: #x0000
Source value: pointer(non-local, block_id=0, offset=-2) / Address=#xfffe
Target value: phy-ptr(addr=65534) / Address=#xfffe

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' '-S' '-passes=instsimplify' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'

Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_hCfRmVJt_u4yE.bc"

------------------- SMT STATS -------------------
Num queries: 4
Num invalid: 0
Num skips:   0
Num trivial: 9 (69.2%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     4 (100.0%)
Num UNSAT:   0 (0.0%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
/home/nlopes/alive2/build/opt-alive.sh -S -passes=instsimplify < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll
# executed command: /home/nlopes/alive2/build/opt-alive.sh -S -passes=instsimplify
# .---command stderr------------
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll
# `-----------------------------
# error: command failed with exit status: 2

--

 

<-- Back