Test Failure: Transforms/ConstantMerge/unnamed-addr.ll

Test source: git

Comments: Alive2 missing support for unnamed_addr

Log:

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

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

@test1.x = constant 4 bytes, align 8
@test1.y = constant 4 bytes, align 8
@test2.x = constant 4 bytes, align 8
@test2.y = constant 4 bytes, align 8
@test3.x = constant 4 bytes, align 8
@test3.y = constant 4 bytes, align 8
@test4.x = constant 4 bytes, align 8
@test4.y = constant 4 bytes, align 8

define i32 @main() {
init:
  store {i32} { 2 }, ptr @test2.x, align 8
  store {i32} { 3 }, ptr @test3.x, align 8
  store {i32} { 4 }, ptr @test4.x, align 8
  br label %entry

entry:
  call void @zed(ptr @test1.x, ptr @test1.y)
  call void @zed(ptr @test2.x, ptr @test2.y)
  call void @zed(ptr @test3.x, ptr @test3.y)
  call void @zed(ptr @test4.x, ptr @test4.y)
  ret i32 0
}
=>
declare void @zed(ptr, ptr)

@test1.x = constant 4 bytes, align 8
@test1.y = constant 4 bytes, align 8
@test2.y = constant 4 bytes, align 8
@test3.y = constant 4 bytes, align 8
@test4.y = constant 4 bytes, align 8
@test2.x = constant 4 bytes, align 8
@test3.x = constant 4 bytes, align 8
@test4.x = constant 4 bytes, align 8

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

entry:
  call void @zed(ptr @test1.x, ptr @test1.y)
  call void @zed(ptr @test2.y, ptr @test2.y)
  call void @zed(ptr @test3.y, ptr @test3.y)
  call void @zed(ptr @test4.y, ptr @test4.y)
  ret i32 0
}
Transformation doesn't verify! (unsound)
ERROR: Source is more defined than target

Example:

Source:
  >> Jump to %entry
Function @zed returned
void = 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: 8	align: 8	alloc type: 0	alive: true	address: 144	const
Block 2 >	size: 8	align: 8	alloc type: 0	alive: true	address: 160	const
Block 3 >	size: 8	align: 8	alloc type: 0	alive: true	address: 128	const
Block 4 >	size: 8	align: 8	alloc type: 0	alive: true	address: 208	const
Block 5 >	size: 8	align: 8	alloc type: 0	alive: true	address: 8	const
Block 6 >	size: 8	align: 8	alloc type: 0	alive: true	address: 192	const
Block 7 >	size: 8	align: 8	alloc type: 0	alive: true	address: 224	const
Block 8 >	size: 8	align: 8	alloc type: 0	alive: true	address: 240	const
Block 9 >	size: 0	align: 1	alloc type: 0	alive: true	address: 1

Target:
  >> Jump to %entry
Function @zed returned
void = 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_sbreHhLD_3Juv.bc"


------------------- SMT STATS -------------------
Num queries: 40
Num invalid: 0
Num skips:   0
Num trivial: 0 (0.0%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     23 (57.5%)
Num UNSAT:   17 (42.5%)
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/unnamed-addr.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/unnamed-addr.ll
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/unnamed-addr.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/unnamed-addr.ll

 

<-- Back