Test source: git
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: 0 Block 1 > size: 0 align: 1 alloc type: 0 alive: true address: 8 Block 2 > size: 0 align: 1 alloc type: 0 alive: true address: 1 LOCAL BLOCKS: Block 4 > size: 2 align: 1 alloc type: 1 alive: true address: 256 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 =================== LOCAL BLOCKS: Block 4 > size: 2 align: 1 alloc type: 1 alive: true address: 256 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_ZsreKE2f_Fc1z.bc" ------------------- SMT STATS ------------------- Num queries: 30 Num invalid: 0 Num skips: 0 Num trivial: 8 (21.1%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 21 (70.0%) Num UNSAT: 9 (30.0%) Alive2: Transform doesn't verify; aborting!
/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 # RUN: at line 2 + /home/nlopes/alive2/build/opt-alive.sh -S -passes=dse + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/DeadStoreElimination/captures.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/DeadStoreElimination/captures.ll