; ModuleID = 'test.c' target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @.str = private unnamed_addr constant [9 x i8] c"arr: %p\0A\00", align 1 ; Function Attrs: nounwind readnone uwtable define i8* @__dc_mask2(i8* readnone %ptr) #0 { entry: tail call void @llvm.dbg.value(metadata i8* %ptr, i64 0, metadata !9, metadata !31), !dbg !32 ret i8* %ptr, !dbg !33 } ; Function Attrs: nounwind readnone declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 ; Function Attrs: nounwind uwtable define i32 @main(i32 %argc, i8** nocapture readnone %argv) #2 { entry: %arr = alloca [32 x i8], align 16 %arr30 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 0 tail call void @llvm.dbg.value(metadata i32 %argc, i64 0, metadata !18, metadata !31), !dbg !34 tail call void @llvm.dbg.value(metadata i8** %argv, i64 0, metadata !19, metadata !31), !dbg !35 %0 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 0, !dbg !36 call void @llvm.lifetime.start(i64 32, i8* %0) #5, !dbg !36 tail call void @llvm.dbg.declare(metadata [32 x i8]* %arr, metadata !20, metadata !31), !dbg !37 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %0) #5, !dbg !38 call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !24, metadata !31), !dbg !39 call void @llvm.memset.p0i8.i64(i8* %arr30, i8 0, i64 32, i32 16, i1 false), !dbg !40 br label %vector.body, !dbg !43 vector.body: ; preds = %entry %1 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 1, !dbg !44 %2 = bitcast i8* %1 to <16 x i8>*, !dbg !47 %_as_void_star = bitcast <16 x i8>* %2 to i8*, !dbg !47 %_masked = call i8* @__dc_mask2(i8* %_as_void_star), !dbg !47 %_masked_cast = bitcast i8* %_masked to <16 x i8>*, !dbg !47 store <16 x i8> , <16 x i8>* %_masked_cast, !dbg !47 br label %for.body.5, !dbg !48 for.body.5: ; preds = %vector.body %arrayidx10 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 17, !dbg !44 store i8 17, i8* %arrayidx10, align 1, !dbg !47, !tbaa !49 %arrayidx10.1 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 18, !dbg !44 store i8 18, i8* %arrayidx10.1, align 2, !dbg !47, !tbaa !49 %arrayidx10.2 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 19, !dbg !44 store i8 19, i8* %arrayidx10.2, align 1, !dbg !47, !tbaa !49 %arrayidx10.3 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 20, !dbg !44 store i8 20, i8* %arrayidx10.3, align 4, !dbg !47, !tbaa !49 %arrayidx10.4 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 21, !dbg !44 store i8 21, i8* %arrayidx10.4, align 1, !dbg !47, !tbaa !49 %arrayidx10.5 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 22, !dbg !44 store i8 22, i8* %arrayidx10.5, align 2, !dbg !47, !tbaa !49 %arrayidx10.6 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 23, !dbg !44 store i8 23, i8* %arrayidx10.6, align 1, !dbg !47, !tbaa !49 %arrayidx10.7 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 24, !dbg !44 store i8 24, i8* %arrayidx10.7, align 8, !dbg !47, !tbaa !49 %arrayidx10.8 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 25, !dbg !44 store i8 25, i8* %arrayidx10.8, align 1, !dbg !47, !tbaa !49 %arrayidx10.9 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 26, !dbg !44 store i8 26, i8* %arrayidx10.9, align 2, !dbg !47, !tbaa !49 %arrayidx10.10 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 27, !dbg !44 store i8 27, i8* %arrayidx10.10, align 1, !dbg !47, !tbaa !49 %arrayidx10.11 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 28, !dbg !44 store i8 28, i8* %arrayidx10.11, align 4, !dbg !47, !tbaa !49 %arrayidx10.12 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 29, !dbg !44 store i8 29, i8* %arrayidx10.12, align 1, !dbg !47, !tbaa !49 %arrayidx10.13 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 30, !dbg !44 store i8 30, i8* %arrayidx10.13, align 2, !dbg !47, !tbaa !49 %arrayidx10.14 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 31, !dbg !44 store i8 31, i8* %arrayidx10.14, align 1, !dbg !47, !tbaa !49 %arrayidx14 = getelementptr inbounds [32 x i8], [32 x i8]* %arr, i64 0, i64 11, !dbg !52 %3 = load i8, i8* %arrayidx14, align 1, !dbg !52, !tbaa !49 %conv15 = sext i8 %3 to i32, !dbg !52 call void @llvm.lifetime.end(i64 32, i8* nonnull %0) #5, !dbg !53 ret i32 %conv15, !dbg !54 ; uselistorder directives uselistorder i8* %0, { 2, 0, 1 } uselistorder [32 x i8]* %arr, { 17, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 18, 14, 16, 15 } uselistorder i64 32, { 1, 0, 2 } uselistorder void (metadata, i64, metadata, metadata)* @llvm.dbg.value, { 0, 2, 1, 3 } uselistorder i64 0, { 25, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 26, 14, 21, 19, 20, 17, 18, 23, 22, 15, 16, 24 } } ; Function Attrs: nounwind argmemonly declare void @llvm.lifetime.start(i64, i8* nocapture) #3 ; Function Attrs: nounwind declare i32 @printf(i8* nocapture readonly, ...) #4 ; Function Attrs: nounwind argmemonly declare void @llvm.lifetime.end(i64, i8* nocapture) #3 ; Function Attrs: nounwind readnone declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1 ; Function Attrs: nounwind argmemonly declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) #3 attributes #0 = { nounwind readnone uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind readnone } attributes #2 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #3 = { nounwind argmemonly } attributes #4 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #5 = { nounwind } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!28, !29} !llvm.ident = !{!30} !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.0 (git@github.com:llvm-mirror/clang.git 33e8a9bf1ce3556c395d94c66ea83f6f5f06f2bf) (git@github.com:llvm-mirror/llvm.git 9dd7e2da2a6e6e68c04162ecc9df00e3fd84dc61)", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2, subprograms: !3) !1 = !DIFile(filename: "test.c", directory: "/home/carr27/dataconf-workspace2/data-integrity-tests/simple-types/vector") !2 = !{} !3 = !{!4, !10} !4 = distinct !DISubprogram(name: "__dc_mask2", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, function: i8* (i8*)* @__dc_mask2, variables: !8) !5 = !DISubroutineType(types: !6) !6 = !{!7, !7} !7 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64, align: 64) !8 = !{!9} !9 = !DILocalVariable(name: "ptr", arg: 1, scope: !4, file: !1, line: 1, type: !7) !10 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 5, type: !11, isLocal: false, isDefinition: true, scopeLine: 5, flags: DIFlagPrototyped, isOptimized: true, function: i32 (i32, i8**)* @main, variables: !17) !11 = !DISubroutineType(types: !12) !12 = !{!13, !13, !14} !13 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) !14 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !15, size: 64, align: 64) !15 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !16, size: 64, align: 64) !16 = !DIBasicType(name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) !17 = !{!18, !19, !20, !24, !26} !18 = !DILocalVariable(name: "argc", arg: 1, scope: !10, file: !1, line: 5, type: !13) !19 = !DILocalVariable(name: "argv", arg: 2, scope: !10, file: !1, line: 5, type: !14) !20 = !DILocalVariable(name: "arr", scope: !10, file: !1, line: 6, type: !21) !21 = !DICompositeType(tag: DW_TAG_array_type, baseType: !16, size: 256, align: 8, elements: !22) !22 = !{!23} !23 = !DISubrange(count: 32) !24 = !DILocalVariable(name: "i", scope: !25, file: !1, line: 8, type: !13) !25 = distinct !DILexicalBlock(scope: !10, file: !1, line: 8, column: 3) !26 = !DILocalVariable(name: "i", scope: !27, file: !1, line: 12, type: !13) !27 = distinct !DILexicalBlock(scope: !10, file: !1, line: 12, column: 3) !28 = !{i32 2, !"Dwarf Version", i32 4} !29 = !{i32 2, !"Debug Info Version", i32 3} !30 = !{!"clang version 3.8.0 (git@github.com:llvm-mirror/clang.git 33e8a9bf1ce3556c395d94c66ea83f6f5f06f2bf) (git@github.com:llvm-mirror/llvm.git 9dd7e2da2a6e6e68c04162ecc9df00e3fd84dc61)"} !31 = !DIExpression() !32 = !DILocation(line: 1, column: 24, scope: !4) !33 = !DILocation(line: 2, column: 3, scope: !4) !34 = !DILocation(line: 5, column: 14, scope: !10) !35 = !DILocation(line: 5, column: 27, scope: !10) !36 = !DILocation(line: 6, column: 3, scope: !10) !37 = !DILocation(line: 6, column: 8, scope: !10) !38 = !DILocation(line: 7, column: 3, scope: !10) !39 = !DILocation(line: 8, column: 12, scope: !25) !40 = !DILocation(line: 10, column: 12, scope: !41) !41 = distinct !DILexicalBlock(scope: !42, file: !1, line: 8, column: 32) !42 = distinct !DILexicalBlock(scope: !25, file: !1, line: 8, column: 3) !43 = !DILocation(line: 12, column: 3, scope: !27) !44 = !DILocation(line: 14, column: 5, scope: !45) !45 = distinct !DILexicalBlock(scope: !46, file: !1, line: 12, column: 32) !46 = distinct !DILexicalBlock(scope: !27, file: !1, line: 12, column: 3) !47 = !DILocation(line: 14, column: 12, scope: !45) !48 = !DILocation(line: 14, column: 23, scope: !45) !49 = !{!50, !50, i64 0} !50 = !{!"omnipotent char", !51, i64 0} !51 = !{!"Simple C/C++ TBAA"} !52 = !DILocation(line: 17, column: 10, scope: !10) !53 = !DILocation(line: 18, column: 1, scope: !10) !54 = !DILocation(line: 17, column: 3, scope: !10)