Test source: git
Comments: Alive2 missing support for unnamed_addr
Source: <stdin> -- 1. ConstantMergePass -- 2. ConstantMergePass ---------------------------------------- @T1A = constant 4 bytes, align 4 @T1B = constant 4 bytes, align 2 define void @test1(ptr %P1, ptr %P2) { init: store i32 1, ptr @T1A, align 4 store i32 1, ptr @T1B, align 2 br label %#0 #0: store ptr @T1A, ptr %P1, align 8 store ptr @T1B, ptr %P2, align 8 ret void } => @T1B = constant 4 bytes, align 4 @T1A = constant 4 bytes, align 4 define void @test1(ptr %P1, ptr %P2) { init: store i32 1, ptr @T1B, align 4 br label %#0 #0: store ptr @T1B, ptr %P1, align 8 store ptr @T1B, ptr %P2, align 8 ret void } Transformation doesn't verify! (unsound) ERROR: Mismatch in memory Example: ptr %P1 = pointer(non-local, block_id=3, offset=0) / Address=#x88 ptr %P2 = pointer(non-local, block_id=4, offset=0) / Address=#x08 Source: >> Jump to %#0 SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 2 alloc type: 0 alive: false address: #x00 Block 1 > size: 4 align: 4 alloc type: 0 alive: true address: #x04 const Contents: 0: pointer(non-local, block_id=2, offset=0), byte offset=0 1: pointer(non-local, block_id=2, offset=0), byte offset=1 *: poison Block 2 > size: 4 align: 2 alloc type: 0 alive: true address: #x80 const Contents: 0: pointer(non-local, block_id=2, offset=0), byte offset=0 1: pointer(non-local, block_id=2, offset=0), byte offset=1 *: poison Block 3 > size: 15 align: 1 alloc type: 0 alive: true address: #x88 Block 4 > size: 8 align: 1 alloc type: 0 alive: true address: #x08 Contents: 0: pointer(non-local, block_id=2, offset=0), byte offset=0 1: pointer(non-local, block_id=2, offset=0), byte offset=1 *: poison Target: >> Jump to %#0 TARGET MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 2 alloc type: 0 alive: false address: #x00 Block 1 > size: 4 align: 4 alloc type: 0 alive: true address: #x04 const Contents: 0: pointer(non-local, block_id=2, offset=0), byte offset=0 1: pointer(non-local, block_id=2, offset=0), byte offset=1 *: poison Block 2 > size: 4 align: 4 alloc type: 0 alive: true address: #x80 const Contents: 0: pointer(non-local, block_id=2, offset=0), byte offset=0 1: pointer(non-local, block_id=2, offset=0), byte offset=1 *: poison Block 3 > size: 15 align: 1 alloc type: 0 alive: true address: #x88 Block 4 > size: 8 align: 1 alloc type: 0 alive: true address: #x08 Contents: 0: pointer(non-local, block_id=2, offset=0), byte offset=0 1: pointer(non-local, block_id=2, offset=0), byte offset=1 *: poison Mismatch in pointer(non-local, block_id=3, offset=0) Source value: pointer(non-local, block_id=1, offset=0), byte offset=0 Target value: pointer(non-local, block_id=2, offset=0), byte offset=0 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_jYRCmflJ_6T3F.bc" ------------------- SMT STATS ------------------- Num queries: 56 Num invalid: 0 Num skips: 0 Num trivial: 5 (8.2%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 29 (51.8%) Num UNSAT: 27 (48.2%) Alive2: Transform doesn't verify; aborting!
Transforms/ConstantMerge/align.ll' FAILED ******************** Exit Code: 2 Command Output (stdout): -- # RUN: at line 1 /home/nlopes/alive2/build/opt-alive.sh -passes=constmerge -S < /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/align.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/align.ll # executed command: /home/nlopes/alive2/build/opt-alive.sh -passes=constmerge -S # .---command stderr------------ # `----------------------------- # error: command failed with exit status: 1 # executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/align.ll # .---command stderr------------ # | FileCheck error: '<stdin>' is empty. # | FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/ConstantMerge/align.ll # `----------------------------- # error: command failed with exit status: 2 --