; LLVM IR from UBIC-repo/core :: PassportReader/LDS/LDSParser.ll (ZN9LDSParser6getTagEPh)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.LDSParser = type { [64000 x i8], i32 }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @_ZN14PassportCrypto9asn1ToIntEPhPj(ptr noundef, ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN9LDSParser6getTagEPh(ptr noundef nonnull align 4 dereferenceable(64004) %0, ptr noundef %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [2 x i8], align 1
  %8 = alloca i32, align 4
  %9 = alloca [3 x i8], align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #7
  br label %15

15:                                               ; preds = %143, %2
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = icmp ult i32 %16, %18
  br i1 %19, label %20, label %144

20:                                               ; preds = %15
  %21 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 0
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds [64000 x i8], ptr %21, i64 0, i64 %23
  %25 = load i8, ptr %24, align 1, !tbaa !13
  %26 = zext i8 %25 to i32
  %27 = icmp eq i32 %26, 127
  br i1 %27, label %36, label %28

28:                                               ; preds = %20
  %29 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 0
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [64000 x i8], ptr %29, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = zext i8 %33 to i32
  %35 = icmp eq i32 %34, 95
  br i1 %35, label %36, label %45

36:                                               ; preds = %28, %20
  %37 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  %38 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 0
  %39 = getelementptr inbounds [64000 x i8], ptr %38, i64 0, i64 0
  %40 = load i32, ptr %6, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds i8, ptr %39, i64 %41
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %37, ptr align 1 %42, i64 2, i1 false)
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = add i32 %43, 2
  store i32 %44, ptr %6, align 4, !tbaa !9
  br label %54

45:                                               ; preds = %28
  %46 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  %47 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 0
  %48 = getelementptr inbounds [64000 x i8], ptr %47, i64 0, i64 0
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i8, ptr %48, i64 %50
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %46, ptr align 1 %51, i64 1, i1 false)
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = add i32 %52, 1
  store i32 %53, ptr %6, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %45, %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #7
  %55 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %56 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 0
  %57 = getelementptr inbounds [64000 x i8], ptr %56, i64 0, i64 0
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %57, i64 %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %55, ptr align 1 %60, i64 3, i1 false)
  %61 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  call void @_ZN14PassportCrypto9asn1ToIntEPhPj(ptr noundef %61, ptr noundef %8)
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = add i32 %62, 1
  store i32 %63, ptr %6, align 4, !tbaa !9
  %64 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %65 = load i8, ptr %64, align 1, !tbaa !13
  %66 = zext i8 %65 to i32
  %67 = icmp eq i32 %66, 130
  br i1 %67, label %68, label %71

68:                                               ; preds = %54
  %69 = load i32, ptr %6, align 4, !tbaa !9
  %70 = add i32 %69, 2
  store i32 %70, ptr %6, align 4, !tbaa !9
  br label %80

71:                                               ; preds = %54
  %72 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %73 = load i8, ptr %72, align 1, !tbaa !13
  %74 = zext i8 %73 to i32
  %75 = icmp eq i32 %74, 129
  br i1 %75, label %76, label %79

76:                                               ; preds = %71
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = add i32 %77, 1
  store i32 %78, ptr %6, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %76, %71
  br label %80

80:                                               ; preds = %79, %68
  %81 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  %82 = load i8, ptr %81, align 1, !tbaa !13
  %83 = zext i8 %82 to i32
  %84 = icmp ne i32 %83, 127
  br i1 %84, label %85, label %99

85:                                               ; preds = %80
  %86 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  %87 = load i8, ptr %86, align 1, !tbaa !13
  %88 = zext i8 %87 to i32
  %89 = icmp ne i32 %88, 95
  br i1 %89, label %90, label %99

90:                                               ; preds = %85
  %91 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  %92 = load i8, ptr %91, align 1, !tbaa !13
  %93 = zext i8 %92 to i32
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 0
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = zext i8 %96 to i32
  %98 = icmp eq i32 %93, %97
  br i1 %98, label %117, label %99

99:                                               ; preds = %90, %85, %80
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 0
  %102 = load i8, ptr %101, align 1, !tbaa !13
  %103 = zext i8 %102 to i32
  %104 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  %105 = load i8, ptr %104, align 1, !tbaa !13
  %106 = zext i8 %105 to i32
  %107 = icmp eq i32 %103, %106
  br i1 %107, label %108, label %137

108:                                              ; preds = %99
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 1
  %111 = load i8, ptr %110, align 1, !tbaa !13
  %112 = zext i8 %111 to i32
  %113 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 1
  %114 = load i8, ptr %113, align 1, !tbaa !13
  %115 = zext i8 %114 to i32
  %116 = icmp eq i32 %112, %115
  br i1 %116, label %117, label %137

117:                                              ; preds = %108, %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = call noalias ptr @malloc(i64 noundef %119) #8
  store ptr %120, ptr %10, align 8, !tbaa !5
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.LDSParser, ptr %14, i32 0, i32 0
  %123 = getelementptr inbounds [64000 x i8], ptr %122, i64 0, i64 0
  %124 = load i32, ptr %6, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %123, i64 %125
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %121, ptr align 1 %126, i64 %128, i1 false)
  %129 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64004) #9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN9LDSParserC1EPhj(ptr noundef nonnull align 4 dereferenceable(64004) %129, ptr noundef %130, i32 noundef %131)
          to label %132 unwind label %133

132:                                              ; preds = %117
  store ptr %129, ptr %3, align 8
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %141

133:                                              ; preds = %117
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %11, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %129, i64 noundef 64004) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %147

137:                                              ; preds = %108, %99
  %138 = load i32, ptr %8, align 4, !tbaa !9
  %139 = load i32, ptr %6, align 4, !tbaa !9
  %140 = add i32 %139, %138
  store i32 %140, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %13, align 4
  br label %141

141:                                              ; preds = %137, %132
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %142 = load i32, ptr %13, align 4
  switch i32 %142, label %145 [
    i32 0, label %143
  ]

143:                                              ; preds = %141
  br label %15, !llvm.loop !14

144:                                              ; preds = %15
  store ptr null, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %145

145:                                              ; preds = %144, %141
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %146 = load ptr, ptr %3, align 8
  ret ptr %146

147:                                              ; preds = %133
  %148 = load ptr, ptr %11, align 8
  %149 = load i32, ptr %12, align 4
  %150 = insertvalue { ptr, i32 } poison, ptr %148, 0
  %151 = insertvalue { ptr, i32 } %150, i32 %149, 1
  resume { ptr, i32 } %151
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

declare void @_ZN9LDSParserC1EPhj(ptr, ptr, i32)

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 64000}
!12 = !{!"_ZTS9LDSParser", !7, i64 0, !10, i64 64000}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @_ZN14PassportCrypto9asn1ToIntEPhPj(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN9LDSParser6getTagEPh(ptr nocapture noundef nonnull readonly align 4 dereferenceable(64004) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca [3 x i8], align 1
  %5 = getelementptr inbounds i8, ptr %0, i64 64000
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 1
  br label %8

8:                                                ; preds = %.lr.ph, %36
  %.03040 = phi i32 [ 0, %.lr.ph ], [ %38, %36 ]
  %.sroa.9.039 = phi i8 [ undef, %.lr.ph ], [ %.sroa.9.1, %36 ]
  %9 = zext i32 %.03040 to i64
  %10 = getelementptr inbounds [64000 x i8], ptr %0, i64 0, i64 %9
  %11 = load i8, ptr %10, align 1
  switch i8 %11, label %13 [
    i8 127, label %12
    i8 95, label %12
  ]

12:                                               ; preds = %8, %8
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 1
  %.sroa.9.0.copyload = load i8, ptr %.sroa.9.0..sroa_idx, align 1
  br label %13

13:                                               ; preds = %8, %12
  %.sink = phi i32 [ 2, %12 ], [ 1, %8 ]
  %.sroa.9.1 = phi i8 [ %.sroa.9.0.copyload, %12 ], [ %.sroa.9.039, %8 ]
  %14 = add i32 %.03040, %.sink
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #7
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds i8, ptr %0, i64 %15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %4, ptr noundef nonnull align 1 dereferenceable(3) %16, i64 3, i1 false)
  call void @_ZN14PassportCrypto9asn1ToIntEPhPj(ptr noundef nonnull %4, ptr noundef nonnull %3)
  %17 = load i8, ptr %4, align 1, !tbaa !11
  %18 = icmp eq i8 %17, -126
  %19 = icmp eq i8 %17, -127
  %spec.select.v = select i1 %19, i32 2, i32 1
  %.232.v = select i1 %18, i32 3, i32 %spec.select.v
  %.232 = add i32 %14, %.232.v
  %20 = and i8 %11, -33
  %or.cond.not = icmp ne i8 %20, 95
  %.pre = load i8, ptr %1, align 1, !tbaa !11
  %21 = icmp eq i8 %11, %.pre
  %or.cond = select i1 %or.cond.not, i1 %21, i1 false
  br i1 %or.cond, label %27, label %22

22:                                               ; preds = %13
  %23 = icmp eq i8 %.pre, %11
  br i1 %23, label %24, label %36

24:                                               ; preds = %22
  %25 = load i8, ptr %7, align 1, !tbaa !11
  %26 = icmp eq i8 %25, %.sroa.9.1
  br i1 %26, label %27, label %36

27:                                               ; preds = %13, %24
  %28 = load i32, ptr %3, align 4, !tbaa !10
  %29 = zext i32 %28 to i64
  %30 = call noalias ptr @malloc(i64 noundef %29) #8
  %31 = zext i32 %.232 to i64
  %32 = getelementptr inbounds i8, ptr %0, i64 %31
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %30, ptr nonnull align 1 %32, i64 %29, i1 false)
  %33 = call noalias noundef nonnull dereferenceable(64004) ptr @_Znwm(i64 noundef 64004) #9
  invoke void @_ZN9LDSParserC1EPhj(ptr noundef nonnull align 4 dereferenceable(64004) %33, ptr noundef %30, i32 noundef %28)
          to label %.thread unwind label %34

.thread:                                          ; preds = %27
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %.loopexit

34:                                               ; preds = %27
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 64004) #10
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  resume { ptr, i32 } %35

36:                                               ; preds = %22, %24
  %37 = load i32, ptr %3, align 4, !tbaa !10
  %38 = add i32 %37, %.232
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = icmp ult i32 %38, %39
  br i1 %40, label %8, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %36, %2, %.thread
  %.2 = phi ptr [ %33, %.thread ], [ null, %2 ], [ null, %36 ]
  ret ptr %.2
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

declare void @_ZN9LDSParserC1EPhj(ptr, ptr, i32) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 64000}
!6 = !{!"_ZTS9LDSParser", !7, i64 0, !9, i64 64000}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!9, !9, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass