Test Failure: Transforms/ConstantMerge/2011-01-15-EitherOrder.ll

Test source: git

Comments: Alive2 missing support for unnamed_addr

Log:

Source: <stdin>
-- 1. ConstantMergePass
-- 2. ConstantMergePass

----------------------------------------
declare i32 @zed(ptr, ptr)

@foo.d = constant 4 bytes, align 4
@bar.d = constant 4 bytes, align 4

define i32 @main() {
init:
  store {i32} { 0 }, ptr @foo.d, align 4
  br label %entry

entry:
  %call2 = call i32 @zed(ptr @foo.d, ptr @bar.d)
  ret i32 0
}
=>
declare i32 @zed(ptr, ptr)

@bar.d = constant 4 bytes, align 4
@foo.d = constant 4 bytes, align 4

define i32 @main() {
init:
  br label %entry

entry:
  %call2 = call i32 @zed(ptr @bar.d, ptr @bar.d)
  ret i32 0
}
Transformation doesn't verify! (unsound)
ERROR: Source is more defined than target

Example:

Source:
  >> Jump to %entry
i32 %call2 = function did not return!

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 4	alloc type: 0	alive: false	address: 0
Block 1 >	size: 4	align: 4	alloc type: 0	alive: true	address: 8	const
Contents:
poison

Block 2 >	size: 4	align: 4	alloc type: 0	alive: true	address: 4	const
Contents:
poison

Block 3 >	size: 15	align: 1	alloc type: 0	alive: true	address: 14

Target:
  >> Jump to %entry
i32 %call2 = function did not return!


Pass: ConstantMergePass
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' '-passes=constmerge' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_HHcX5DDu_E8QW.bc"


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

stderr:

RUN: at line 1: /home/nlopes/alive2/build/opt-alive.sh -passes=constmerge -S < /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll
+ /home/nlopes/alive2/build/opt-alive.sh -passes=constmerge -S

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll

 

<-- Back