Skip to content

Instantly share code, notes, and snippets.

@cramertj
Created July 31, 2018 20:39
Show Gist options
  • Save cramertj/2aab72f6d87d26b66c497559710caf4a to your computer and use it in GitHub Desktop.
Save cramertj/2aab72f6d87d26b66c497559710caf4a to your computer and use it in GitHub Desktop.
; ModuleID = 'bugpoint-reduced-instructions.bc'
source_filename = "15uuiki9s1a8yvyu-58e698513a262007b3207a313c3d2e7f.rs"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
%Parser.0.3.5.8.10.11.19 = type { [0 x i64], i64, [0 x i64], [16 x i64], [0 x i64], i64, [0 x i64], i64, [0 x i64], [16 x { i64, i64 }], [0 x i64], i64, [0 x i64], i64, [0 x i32], { i32, i8 }, [0 x i8], i8, [0 x i8], [2 x i8], [0 x i8], i8, [0 x i8], [1024 x i8], [0 x i8], i8, [3 x i8] }
@__rustc_debug_gdb_scripts_section__ = external unnamed_addr constant [34 x i8], section ".debug_gdb_scripts", align 1
; Function Attrs: uwtable
define void @_ZN3vte6Parser3new17h2e7632e6a11cd732E(%Parser.0.3.5.8.10.11.19* noalias nocapture sret dereferenceable(1464)) unnamed_addr #0 !dbg !38 {
start:
br label %repeat_loop_header, !dbg !79
bb1: ; preds = %repeat_loop_header
store i8 %1, i8* undef, align 4, !dbg !80
ret void, !dbg !81
repeat_loop_header: ; preds = %start
%1 = extractvalue { i32, i8 } undef, 1, !dbg !82
br label %bb1, !dbg !82
}
declare { i32, i8 } @_ZN9utf8parse6Parser3new17hf932e0a5afe8d4e8E() unnamed_addr
; Function Attrs: argmemonly nounwind
declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i1) #1
; Function Attrs: argmemonly nounwind
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i1) #1
attributes #0 = { uwtable }
attributes #1 = { argmemonly nounwind }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!37}
!0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1, producer: "clang LLVM (rustc version 1.29.0-nightly (866a71325 2018-07-29))", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
!1 = !DIFile(filename: "src/lib.rs", directory: "/usr/local/google/home/cramertj/src/vte")
!2 = !{!3, !25}
!3 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "State", scope: !5, file: !4, baseType: !7, size: 8, align: 8, elements: !8)
!4 = !DIFile(filename: "<unknown>", directory: "")
!5 = !DINamespace(name: "definitions", scope: !6)
!6 = !DINamespace(name: "vte", scope: null)
!7 = !DIBasicType(name: "u8", size: 8, encoding: DW_ATE_unsigned)
!8 = !{!9, !10, !11, !12, !13, !14, !15, !16, !17, !18, !19, !20, !21, !22, !23, !24}
!9 = !DIEnumerator(name: "Anywhere", value: 0)
!10 = !DIEnumerator(name: "CsiEntry", value: 1)
!11 = !DIEnumerator(name: "CsiIgnore", value: 2)
!12 = !DIEnumerator(name: "CsiIntermediate", value: 3)
!13 = !DIEnumerator(name: "CsiParam", value: 4)
!14 = !DIEnumerator(name: "DcsEntry", value: 5)
!15 = !DIEnumerator(name: "DcsIgnore", value: 6)
!16 = !DIEnumerator(name: "DcsIntermediate", value: 7)
!17 = !DIEnumerator(name: "DcsParam", value: 8)
!18 = !DIEnumerator(name: "DcsPassthrough", value: 9)
!19 = !DIEnumerator(name: "Escape", value: 10)
!20 = !DIEnumerator(name: "EscapeIntermediate", value: 11)
!21 = !DIEnumerator(name: "Ground", value: 12)
!22 = !DIEnumerator(name: "OscString", value: 13)
!23 = !DIEnumerator(name: "SosPmApcString", value: 14)
!24 = !DIEnumerator(name: "Utf8", value: 15)
!25 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "State", scope: !26, file: !4, baseType: !7, size: 8, align: 8, elements: !28)
!26 = !DINamespace(name: "types", scope: !27)
!27 = !DINamespace(name: "utf8parse", scope: null)
!28 = !{!29, !30, !31, !32, !33, !34, !35, !36}
!29 = !DIEnumerator(name: "Ground", value: 0)
!30 = !DIEnumerator(name: "Tail3", value: 1)
!31 = !DIEnumerator(name: "Tail2", value: 2)
!32 = !DIEnumerator(name: "Tail1", value: 3)
!33 = !DIEnumerator(name: "U3_2_e0", value: 4)
!34 = !DIEnumerator(name: "U3_2_ed", value: 5)
!35 = !DIEnumerator(name: "Utf8_4_3_f0", value: 6)
!36 = !DIEnumerator(name: "Utf8_4_3_f4", value: 7)
!37 = !{i32 2, !"Debug Info Version", i32 3}
!38 = distinct !DISubprogram(name: "new", linkageName: "_ZN3vte6Parser3new17h2e7632e6a11cd732E", scope: !39, file: !1, line: 104, type: !76, isLocal: false, isDefinition: true, scopeLine: 104, flags: DIFlagPrototyped, isOptimized: false, unit: !0, templateParams: !78, variables: !78)
!39 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Parser", scope: !6, file: !4, size: 11712, align: 64, elements: !40, identifier: "643047f8941fcd93de84b66fdc36b41")
!40 = !{!41, !42, !46, !48, !53, !54, !56, !57, !61, !67, !68, !69, !70}
!41 = !DIDerivedType(tag: DW_TAG_member, name: "state", scope: !39, file: !4, baseType: !3, size: 8, align: 8, offset: 3456)
!42 = !DIDerivedType(tag: DW_TAG_member, name: "intermediates", scope: !39, file: !4, baseType: !43, size: 16, align: 8, offset: 3464)
!43 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, size: 16, align: 8, elements: !44)
!44 = !{!45}
!45 = distinct !DISubrange(count: 102)
!46 = !DIDerivedType(tag: DW_TAG_member, name: "intermediate_idx", scope: !39, file: !4, baseType: !47, size: 64, align: 64)
!47 = !DIBasicType(name: "usize", size: 64, encoding: DW_ATE_unsigned)
!48 = !DIDerivedType(tag: DW_TAG_member, name: "params", scope: !39, file: !4, baseType: !49, size: 1024, align: 64, offset: 64)
!49 = !DICompositeType(tag: DW_TAG_array_type, baseType: !50, size: 1024, align: 64, elements: !51)
!50 = !DIBasicType(name: "i64", size: 64, encoding: DW_ATE_signed)
!51 = !{!52}
!52 = distinct !DISubrange(count: 103)
!53 = !DIDerivedType(tag: DW_TAG_member, name: "param", scope: !39, file: !4, baseType: !50, size: 64, align: 64, offset: 1088)
!54 = !DIDerivedType(tag: DW_TAG_member, name: "collecting_param", scope: !39, file: !4, baseType: !55, size: 8, align: 8, offset: 3480)
!55 = !DIBasicType(name: "bool", size: 8, encoding: DW_ATE_boolean)
!56 = !DIDerivedType(tag: DW_TAG_member, name: "num_params", scope: !39, file: !4, baseType: !47, size: 64, align: 64, offset: 1152)
!57 = !DIDerivedType(tag: DW_TAG_member, name: "osc_raw", scope: !39, file: !4, baseType: !58, size: 8192, align: 8, offset: 3488)
!58 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, size: 8192, align: 8, elements: !59)
!59 = !{!60}
!60 = distinct !DISubrange(count: 104)
!61 = !DIDerivedType(tag: DW_TAG_member, name: "osc_params", scope: !39, file: !4, baseType: !62, size: 2048, align: 64, offset: 1216)
!62 = !DICompositeType(tag: DW_TAG_array_type, baseType: !63, size: 2048, align: 64, elements: !51)
!63 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "(usize, usize)", file: !4, size: 128, align: 64, elements: !64, identifier: "8b2e86271f2e1a2388b742d0d050a305")
!64 = !{!65, !66}
!65 = !DIDerivedType(tag: DW_TAG_member, name: "__0", scope: !63, file: !4, baseType: !47, size: 64, align: 64)
!66 = !DIDerivedType(tag: DW_TAG_member, name: "__1", scope: !63, file: !4, baseType: !47, size: 64, align: 64, offset: 64)
!67 = !DIDerivedType(tag: DW_TAG_member, name: "osc_idx", scope: !39, file: !4, baseType: !47, size: 64, align: 64, offset: 3264)
!68 = !DIDerivedType(tag: DW_TAG_member, name: "osc_num_params", scope: !39, file: !4, baseType: !47, size: 64, align: 64, offset: 3328)
!69 = !DIDerivedType(tag: DW_TAG_member, name: "ignoring", scope: !39, file: !4, baseType: !55, size: 8, align: 8, offset: 11680)
!70 = !DIDerivedType(tag: DW_TAG_member, name: "utf8_parser", scope: !39, file: !4, baseType: !71, size: 64, align: 32, offset: 3392)
!71 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Parser", scope: !27, file: !4, size: 64, align: 32, elements: !72, identifier: "4bbfc562685f7a8e317b4a33445e72b")
!72 = !{!73, !75}
!73 = !DIDerivedType(tag: DW_TAG_member, name: "point", scope: !71, file: !4, baseType: !74, size: 32, align: 32)
!74 = !DIBasicType(name: "u32", size: 32, encoding: DW_ATE_unsigned)
!75 = !DIDerivedType(tag: DW_TAG_member, name: "state", scope: !71, file: !4, baseType: !25, size: 8, align: 8, offset: 32)
!76 = !DISubroutineType(types: !77)
!77 = !{!39}
!78 = !{}
!79 = !DILocation(line: 114, column: 24, scope: !38)
!80 = !DILocation(line: 105, column: 8, scope: !38)
!81 = !DILocation(line: 120, column: 5, scope: !38)
!82 = !DILocation(line: 118, column: 25, scope: !38)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment