1; ModuleID = 'argc_sub1.c' 2target triple = "x86_64-unknown-unknown-elf" 3 4define i32 @sub1(i32) !dbg !8 { 5 call void @llvm.dbg.value(metadata i32 %0, metadata !13, metadata !DIExpression()), !dbg !14 6 %2 = add nsw i32 %0, -1, !dbg !15 7 ret i32 %2, !dbg !16 8} 9 10define i32 @main(i32, i8** nocapture readnone) !dbg !17 { 11 call void @llvm.dbg.value(metadata i32 %0, metadata !24, metadata !DIExpression()), !dbg !26 12 call void @llvm.dbg.value(metadata i8** %1, metadata !25, metadata !DIExpression()), !dbg !27 13 %3 = tail call i32 @sub1(i32 %0), !dbg !28 14 ret i32 %3, !dbg !29 15} 16 17declare void @llvm.dbg.value(metadata, metadata, metadata) 18 19!llvm.dbg.cu = !{!0} 20!llvm.module.flags = !{!3, !4, !5, !6} 21!llvm.ident = !{!7} 22 23!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 7.0.1-8+deb10u2 (tags/RELEASE_701/final)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 24!1 = !DIFile(filename: "argc_sub1.c", directory: "Inputs/") 25!2 = !{} 26!3 = !{i32 2, !"Dwarf Version", i32 4} 27!4 = !{i32 2, !"Debug Info Version", i32 3} 28!5 = !{i32 1, !"wchar_size", i32 4} 29!6 = !{i32 7, !"PIC Level", i32 2} 30!7 = !{!"clang version 7.0.1-8+deb10u2 (tags/RELEASE_701/final)"} 31!8 = distinct !DISubprogram(name: "sub1", scope: !1, file: !1, line: 1, type: !9, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !12) 32!9 = !DISubroutineType(types: !10) 33!10 = !{!11, !11} 34!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 35!12 = !{!13} 36!13 = !DILocalVariable(name: "x", arg: 1, scope: !8, file: !1, line: 1, type: !11) 37!14 = !DILocation(line: 1, column: 14, scope: !8) 38!15 = !DILocation(line: 1, column: 28, scope: !8) 39!16 = !DILocation(line: 1, column: 19, scope: !8) 40!17 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !18, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !23) 41!18 = !DISubroutineType(types: !19) 42!19 = !{!11, !11, !20} 43!20 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !21, size: 64) 44!21 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !22, size: 64) 45!22 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) 46!23 = !{!24, !25} 47!24 = !DILocalVariable(name: "argc", arg: 1, scope: !17, file: !1, line: 2, type: !11) 48!25 = !DILocalVariable(name: "argv", arg: 2, scope: !17, file: !1, line: 2, type: !20) 49!26 = !DILocation(line: 2, column: 14, scope: !17) 50!27 = !DILocation(line: 2, column: 27, scope: !17) 51!28 = !DILocation(line: 2, column: 42, scope: !17) 52!29 = !DILocation(line: 2, column: 35, scope: !17) 53