Test Failure: Transforms/DeadStoreElimination/captures.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
ERROR: Unsupported attribute: captures(ret: address, provenance)
ERROR: Unsupported attribute: captures(address, ret: address, provenance)
ERROR: Unsupported attribute: captures(address)
ERROR: Unsupported attribute: captures(address, read_provenance)
-- 1. PassManager<Function> : Skipping NOP
-- 2. DSEPass
ERROR: Unsupported attribute: captures(ret: address, provenance)

----------------------------------------
declare ptr @passthrough(ptr)

define i16 @ret_only() {
#0:
  %a = alloca i64 2, align 1
  store i16 1, ptr %a, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
Transformation seems to be correct! (syntactically equal)

ERROR: Unsupported attribute: captures(ret: address, provenance)
-- 3. DSEPass
ERROR: Unsupported attribute: captures(ret: address, provenance)

----------------------------------------
declare ptr @passthrough(ptr)

define i16 @ret_only() {
#0:
  %a = alloca i64 2, align 1
  store i16 1, ptr %a, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
Transformation seems to be correct! (syntactically equal)

ERROR: Unsupported attribute: captures(ret: address, provenance)
-- 4. PassManager<Function> : Skipping NOP
-- 5. PassManager<Function> : Skipping NOP
-- 6. DSEPass
ERROR: Unsupported attribute: captures(address, ret: address, provenance)

----------------------------------------
declare ptr @passthrough(ptr)

define i16 @ret_has_more_components() {
#0:
  %a = alloca i64 2, align 1
  store i16 1, ptr %a, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
Transformation seems to be correct! (syntactically equal)

ERROR: Unsupported attribute: captures(address, ret: address, provenance)
-- 7. DSEPass
ERROR: Unsupported attribute: captures(address, ret: address, provenance)

----------------------------------------
declare ptr @passthrough(ptr)

define i16 @ret_has_more_components() {
#0:
  %a = alloca i64 2, align 1
  store i16 1, ptr %a, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
Transformation seems to be correct! (syntactically equal)

ERROR: Unsupported attribute: captures(address, ret: address, provenance)
-- 8. PassManager<Function> : Skipping NOP
-- 9. PassManager<Function> : Skipping NOP
-- 10. DSEPass
ERROR: Unsupported attribute: captures(address)

----------------------------------------
declare ptr @passthrough(ptr)

define i16 @address_capture() {
#0:
  %a = alloca i64 2, align 1
  store i16 1, ptr %a, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
Transformation seems to be correct! (syntactically equal)

ERROR: Unsupported attribute: captures(address)
-- 11. DSEPass
ERROR: Unsupported attribute: captures(address)

----------------------------------------
declare ptr @passthrough(ptr)

define i16 @address_capture() {
#0:
  %a = alloca i64 2, align 1
  store i16 1, ptr %a, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
=>
declare ptr @passthrough(ptr)

define i16 @address_capture() {
#0:
  %a = alloca i64 2, align 1
  %call = call ptr @passthrough(noread nowrite ptr %a)
  %v = load i16, ptr %call, align 1
  ret i16 %v
}
Transformation doesn't verify! (unsound)
ERROR: Target is more poisonous than source

Example:

Source:
ptr %a = pointer(local, block_id=0, offset=0) / Address=#x100
ptr %call = pointer(local, block_id=0, offset=0) / Address=#x100
i16 %v = #x0001 (1)

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: #x000
Block 1 >	size: 0	align: 1	alloc type: 4	alive: true	address: #x041
Block 2 >	size: 0	align: 1	alloc type: 4	alive: true	address: #x001

LOCAL BLOCKS:
Block 4 >	size: 2	align: 1	alloc type: 1	alive: true	address: #x100

Target:
ptr %a = pointer(local, block_id=0, offset=0) / Address=#x100
ptr %call = pointer(local, block_id=0, offset=0) / Address=#x100
i16 %v = poison

TARGET MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: #x000
Block 1 >	size: 0	align: 1	alloc type: 4	alive: true	address: #x041
Block 2 >	size: 0	align: 1	alloc type: 4	alive: true	address: #x001

LOCAL BLOCKS:
Block 4 >	size: 2	align: 1	alloc type: 1	alive: true	address: #x100
Source value: #x0001 (1)
Target value: poison

Pass: DSEPass
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=dse' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'

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

------------------- SMT STATS -------------------
Num queries: 33
Num invalid: 0
Num skips:   0
Num trivial: 8 (19.5%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     25 (75.8%)
Num UNSAT:   8 (24.2%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/DeadStoreElimination/captures.ll' FAILED ********************
Exit Code: 2

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

--

 

<-- Back