; LLVM IR from seppo0010/rlite :: src (type_string)

; 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"

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_set(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef, i64 noundef) #0

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

declare i32 @rl_key_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @rl_pfcount(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !11
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = mul i64 8, %19
  %21 = call noalias ptr @malloc(i64 noundef %20) #6
  store ptr %21, ptr %13, align 8, !tbaa !5
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %5
  store i32 4, ptr %11, align 4, !tbaa !9
  br label %128

25:                                               ; preds = %5
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = mul i64 8, %27
  %29 = call noalias ptr @malloc(i64 noundef %28) #6
  store ptr %29, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %33, label %32

32:                                               ; preds = %25
  store i32 4, ptr %11, align 4, !tbaa !9
  br label %128

33:                                               ; preds = %25
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %34

34:                                               ; preds = %43, %33
  %35 = load i64, ptr %14, align 8, !tbaa !13
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %35, %37
  br i1 %38, label %39, label %46

39:                                               ; preds = %34
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load i64, ptr %14, align 8, !tbaa !13
  %42 = getelementptr inbounds ptr, ptr %40, i64 %41
  store ptr null, ptr %42, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %39
  %44 = load i64, ptr %14, align 8, !tbaa !13
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %14, align 8, !tbaa !13
  br label %34, !llvm.loop !15

46:                                               ; preds = %34
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %47

47:                                               ; preds = %76, %46
  %48 = load i64, ptr %14, align 8, !tbaa !13
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %48, %50
  br i1 %51, label %52, label %79

52:                                               ; preds = %47
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i64, ptr %14, align 8, !tbaa !13
  %56 = getelementptr inbounds ptr, ptr %54, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i64, ptr %14, align 8, !tbaa !13
  %60 = getelementptr inbounds i64, ptr %58, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !13
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load i64, ptr %14, align 8, !tbaa !13
  %64 = getelementptr inbounds ptr, ptr %62, i64 %63
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load i64, ptr %14, align 8, !tbaa !13
  %67 = getelementptr inbounds i64, ptr %65, i64 %66
  %68 = call i32 @rl_get(ptr noundef %53, ptr noundef %57, i64 noundef %61, ptr noundef %64, ptr noundef %67)
  store i32 %68, ptr %11, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = icmp ne i32 0, %69
  br i1 %70, label %71, label %75

71:                                               ; preds = %52
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = icmp ne i32 3, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  br label %128

75:                                               ; preds = %71, %52
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %14, align 8, !tbaa !13
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %14, align 8, !tbaa !13
  br label %47, !llvm.loop !17

79:                                               ; preds = %47
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call i32 @rl_str_pfcount(i32 noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %15, ptr noundef %16)
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %93

87:                                               ; preds = %79
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = icmp eq i32 %88, -1
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %92

91:                                               ; preds = %87
  store i32 6, ptr %11, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %91, %90
  br label %128

93:                                               ; preds = %79
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %127

96:                                               ; preds = %93
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds ptr, ptr %98, i64 0
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds i64, ptr %101, i64 0
  %103 = load i64, ptr %102, align 8, !tbaa !13
  %104 = call i32 @rl_key_get(ptr noundef %97, ptr noundef %100, i64 noundef %103, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %17, ptr noundef null)
  store i32 %104, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = icmp ne i32 2, %105
  br i1 %106, label %107, label %111

107:                                              ; preds = %96
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = icmp ne i32 3, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  br label %128

111:                                              ; preds = %107, %96
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds ptr, ptr %113, i64 0
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds i64, ptr %116, i64 0
  %118 = load i64, ptr %117, align 8, !tbaa !13
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = load i64, ptr %16, align 8, !tbaa !13
  %121 = load i64, ptr %17, align 8, !tbaa !11
  %122 = call i32 @rl_set(ptr noundef %112, ptr noundef %115, i64 noundef %118, ptr noundef %119, i64 noundef %120, i32 noundef 0, i64 noundef %121)
  store i32 %122, ptr %11, align 4, !tbaa !9
  %123 = load i32, ptr %11, align 4, !tbaa !9
  %124 = icmp ne i32 0, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %111
  br label %128

126:                                              ; preds = %111
  br label %127

127:                                              ; preds = %126, %93
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %127, %125, %110, %92, %74, %32, %24
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %129

129:                                              ; preds = %139, %128
  %130 = load i64, ptr %14, align 8, !tbaa !13
  %131 = load i32, ptr %7, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %130, %132
  br i1 %133, label %134, label %142

134:                                              ; preds = %129
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load i64, ptr %14, align 8, !tbaa !13
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  call void @free(ptr noundef %138) #5
  br label %139

139:                                              ; preds = %134
  %140 = load i64, ptr %14, align 8, !tbaa !13
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %14, align 8, !tbaa !13
  br label %129, !llvm.loop !18

142:                                              ; preds = %129
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %143) #5
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %144) #5
  %145 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret i32 %145
}

declare i32 @rl_str_pfcount(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nounwind 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 #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 = { 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 #4 = { 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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; 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: nounwind uwtable
declare dso_local i32 @rl_set(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

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

declare i32 @rl_key_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local i32 @rl_pfcount(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i64 0, ptr %8, align 8, !tbaa !9
  %9 = sext i32 %1 to i64
  %10 = shl nsw i64 %9, 3
  %11 = tail call noalias ptr @malloc(i64 noundef %10) #7
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %.loopexit, label %12

12:                                               ; preds = %5
  %13 = tail call noalias ptr @malloc(i64 noundef %10) #7
  %.not58 = icmp eq ptr %13, null
  br i1 %.not58, label %.loopexit, label %.preheader62

.preheader62:                                     ; preds = %12
  %14 = icmp sgt i32 %1, 0
  br i1 %14, label %.lr.ph65.preheader, label %._crit_edge

.lr.ph65.preheader:                               ; preds = %.preheader62
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %13, i8 0, i64 %10, i1 false), !tbaa !5
  br label %.lr.ph65

.lr.ph65:                                         ; preds = %.lr.ph65.preheader, %22
  %.164 = phi i64 [ %23, %22 ], [ 0, %.lr.ph65.preheader ]
  %15 = getelementptr inbounds ptr, ptr %2, i64 %.164
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i64, ptr %3, i64 %.164
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds ptr, ptr %13, i64 %.164
  %20 = getelementptr inbounds i64, ptr %11, i64 %.164
  %21 = tail call i32 @rl_get(ptr noundef %0, ptr noundef %16, i64 noundef %18, ptr noundef nonnull %19, ptr noundef nonnull %20)
  switch i32 %21, label %.loopexit [
    i32 3, label %22
    i32 0, label %22
  ]

22:                                               ; preds = %.lr.ph65, %.lr.ph65
  %23 = add nuw nsw i64 %.164, 1
  %exitcond.not = icmp eq i64 %23, %9
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph65, !llvm.loop !13

._crit_edge:                                      ; preds = %22, %.preheader62
  %24 = call i32 @rl_str_pfcount(i32 noundef %1, ptr noundef nonnull %13, ptr noundef nonnull %11, ptr noundef %4, ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  switch i32 %24, label %25 [
    i32 0, label %26
    i32 -1, label %.loopexit
  ]

25:                                               ; preds = %._crit_edge
  br label %.loopexit

26:                                               ; preds = %._crit_edge
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %.not60 = icmp eq ptr %27, null
  br i1 %.not60, label %40, label %28

28:                                               ; preds = %26
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = load i64, ptr %3, align 8, !tbaa !11
  %31 = call i32 @rl_key_get(ptr noundef %0, ptr noundef %29, i64 noundef %30, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %8, ptr noundef null) #6
  %32 = add i32 %31, -4
  %or.cond3 = icmp ult i32 %32, -2
  br i1 %or.cond3, label %.loopexit, label %33

33:                                               ; preds = %28
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load i64, ptr %3, align 8, !tbaa !11
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i64, ptr %7, align 8, !tbaa !11
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = call i32 @rl_set(ptr noundef %0, ptr noundef %34, i64 noundef %35, ptr noundef %36, i64 noundef %37, i32 noundef 0, i64 noundef %38)
  %.not61 = icmp eq i32 %39, 0
  br i1 %.not61, label %40, label %.loopexit

40:                                               ; preds = %33, %26
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph65, %._crit_edge, %12, %5, %33, %28, %25, %40
  %.049 = phi i32 [ 6, %25 ], [ %31, %28 ], [ %39, %33 ], [ 0, %40 ], [ 4, %5 ], [ 4, %12 ], [ 1, %._crit_edge ], [ %21, %.lr.ph65 ]
  %.048 = phi ptr [ %13, %25 ], [ %13, %28 ], [ %13, %33 ], [ %13, %40 ], [ null, %5 ], [ null, %12 ], [ %13, %._crit_edge ], [ %13, %.lr.ph65 ]
  %41 = icmp sgt i32 %1, 0
  br i1 %41, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.loopexit, %.lr.ph68
  %.266 = phi i64 [ %44, %.lr.ph68 ], [ 0, %.loopexit ]
  %42 = getelementptr inbounds ptr, ptr %.048, i64 %.266
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  call void @free(ptr noundef %43) #6
  %44 = add nuw nsw i64 %.266, 1
  %exitcond71.not = icmp eq i64 %44, %9
  br i1 %exitcond71.not, label %._crit_edge69, label %.lr.ph68, !llvm.loop !15

._crit_edge69:                                    ; preds = %.lr.ph68, %.loopexit
  call void @free(ptr noundef %.048) #6
  call void @free(ptr noundef %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  ret i32 %.049
}

declare i32 @rl_str_pfcount(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { nounwind 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 #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 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass