; LLVM IR from recrsn/tinydb :: database (parse_insert)

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

%struct.field = type { [32 x i8], i64, i32 }
%struct.table_info = type { [32 x i8], i32, [32 x %struct.field], i64 }
%struct.table = type { %struct.table_info, i8, ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @write_table_info(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @field_size(ptr noundef byval(%struct.field) align 8) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @row_size(ptr noundef byval(%struct.table_info) align 8) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @open_table(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @close_table(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @write_table_row(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @parse_insert(ptr noundef %0) #2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca [32 x i8], align 16
  %5 = alloca [2048 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
  %17 = getelementptr inbounds [2048 x i8], ptr %5, i64 0, i64 0
  %18 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %15, ptr noundef @.str.13, ptr noundef %16, ptr noundef %17) #6
  store i32 %18, ptr %6, align 4, !tbaa !9
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 2
  br i1 %20, label %21, label %22

21:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %104

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %23 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
  %24 = call ptr @open_table(ptr noundef %23)
  store ptr %24, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %102

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.table, ptr %28, i32 0, i32 0
  %30 = call i64 @row_size(ptr noundef byval(%struct.table_info) align 8 %29)
  %31 = call noalias ptr @calloc(i64 noundef %30, i64 noundef 1) #7
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %86, %27
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.table, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %struct.table_info, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = icmp slt i32 %33, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %32
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %89

40:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %41 = load i32, ptr %11, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %40
  %44 = getelementptr inbounds [2048 x i8], ptr %5, i64 0, i64 0
  br label %46

45:                                               ; preds = %40
  br label %46

46:                                               ; preds = %45, %43
  %47 = phi ptr [ %44, %43 ], [ null, %45 ]
  %48 = call ptr @strtok(ptr noundef %47, ptr noundef @.str.14) #6
  store ptr %48, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.table, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %struct.table_info, ptr %50, i32 0, i32 2
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [32 x %struct.field], ptr %51, i64 0, i64 %53
  %55 = call i64 @field_size(ptr noundef byval(%struct.field) align 8 %54)
  store i64 %55, ptr %14, align 8, !tbaa !16
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.table, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %struct.table_info, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [32 x %struct.field], ptr %58, i64 0, i64 %60
  %62 = getelementptr inbounds %struct.field, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !17
  switch i32 %63, label %80 [
    i32 0, label %64
    i32 1, label %72
    i32 999, label %80
  ]

64:                                               ; preds = %46
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %65, i64 %67
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = call i64 @strlen(ptr noundef %70) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %68, ptr align 1 %69, i64 %71, i1 false)
  br label %80

72:                                               ; preds = %46
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = call i64 @strtoll(ptr noundef %73, ptr noundef null, i32 noundef 10) #6
  store i64 %74, ptr %13, align 8, !tbaa !16
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  %79 = load i64, ptr %14, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %78, ptr align 8 %13, i64 %79, i1 false)
  br label %80

80:                                               ; preds = %72, %64, %46, %46
  %81 = load i64, ptr %14, align 8, !tbaa !16
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = add i64 %83, %81
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %86

86:                                               ; preds = %80
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %11, align 4, !tbaa !9
  br label %32, !llvm.loop !19

89:                                               ; preds = %39
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.table, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %struct.table_info, ptr %92, i32 0, i32 3
  %94 = load i64, ptr %93, align 8, !tbaa !21
  %95 = add i64 %94, 1
  store i64 %95, ptr %93, align 8, !tbaa !21
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = call zeroext i1 @write_table_row(ptr noundef %90, i64 noundef %94, ptr noundef %96)
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.table, ptr %98, i32 0, i32 0
  %100 = call zeroext i1 @write_table_info(ptr noundef %99)
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  call void @close_table(ptr noundef %101)
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %103

102:                                              ; preds = %22
  store i1 false, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %103

103:                                              ; preds = %102, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %104

104:                                              ; preds = %103, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  %105 = load i1, ptr %2, align 1
  ret i1 %105
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #3

; 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) #5

; Function Attrs: nounwind
declare i64 @strtoll(ptr noundef, ptr noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) "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 #2 = { 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 #3 = { 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 #4 = { nounwind allocsize(0,1) "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: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { nounwind willreturn memory(read) }

!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, !10, i64 32}
!12 = !{!"", !13, i64 0, !15, i64 1584, !6, i64 1592, !6, i64 1600}
!13 = !{!"", !7, i64 0, !10, i64 32, !7, i64 40, !14, i64 1576}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !10, i64 40}
!18 = !{!"", !7, i64 0, !14, i64 32, !10, i64 40}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !14, i64 1576}


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

%struct.field = type { [32 x i8], i64, i32 }
%struct.table_info = type { [32 x i8], i32, [32 x %struct.field], i64 }

@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @write_table_info(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @field_size(ptr noundef byval(%struct.field) align 8) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @row_size(ptr noundef byval(%struct.table_info) align 8) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @open_table(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @close_table(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @write_table_row(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @parse_insert(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = alloca [32 x i8], align 16
  %3 = alloca [2048 x i8], align 16
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %3) #7
  %5 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %0, ptr noundef nonnull @.str.13, ptr noundef nonnull %2, ptr noundef nonnull %3) #7
  %.not = icmp eq i32 %5, 2
  br i1 %.not, label %6, label %52

6:                                                ; preds = %1
  %7 = call ptr @open_table(ptr noundef nonnull %2)
  %.not30.not = icmp eq ptr %7, null
  br i1 %.not30.not, label %52, label %8

8:                                                ; preds = %6
  %9 = call i64 @row_size(ptr noundef nonnull byval(%struct.table_info) align 8 %7)
  %10 = call noalias ptr @calloc(i64 noundef %9, i64 noundef 1) #8
  %11 = getelementptr inbounds i8, ptr %7, i64 32
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8
  %14 = getelementptr inbounds i8, ptr %7, i64 40
  %15 = call ptr @strtok(ptr noundef nonnull %3, ptr noundef nonnull @.str.14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4)
  %16 = call i64 @field_size(ptr noundef nonnull byval(%struct.field) align 8 %14)
  %17 = getelementptr inbounds i8, ptr %7, i64 80
  %18 = load i32, ptr %17, align 8, !tbaa !14
  switch i32 %18, label %23 [
    i32 0, label %21
    i32 1, label %19
  ]

19:                                               ; preds = %.lr.ph
  %20 = call i64 @strtoll(ptr nocapture noundef %15, ptr noundef null, i32 noundef 10) #7
  store i64 %20, ptr %4, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr nonnull align 8 %4, i64 %16, i1 false)
  br label %23

21:                                               ; preds = %.lr.ph
  %22 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %15) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 %15, i64 %22, i1 false)
  br label %23

23:                                               ; preds = %21, %19, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4)
  %24 = load i32, ptr %11, align 8, !tbaa !5
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %.peel.next, label %._crit_edge

.peel.next:                                       ; preds = %23
  %26 = trunc i64 %16 to i32
  br label %32

._crit_edge:                                      ; preds = %46, %23, %8
  %27 = getelementptr inbounds i8, ptr %7, i64 1576
  %28 = load i64, ptr %27, align 8, !tbaa !17
  %29 = add i64 %28, 1
  store i64 %29, ptr %27, align 8, !tbaa !17
  %30 = call zeroext i1 @write_table_row(ptr noundef nonnull %7, i64 noundef %28, ptr noundef %10)
  %31 = call zeroext i1 @write_table_info(ptr noundef nonnull %7)
  call void @close_table(ptr noundef nonnull %7)
  br label %52

32:                                               ; preds = %.peel.next, %46
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %46 ]
  %.02831 = phi i32 [ %26, %.peel.next ], [ %48, %46 ]
  %33 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4)
  %34 = getelementptr inbounds [32 x %struct.field], ptr %14, i64 0, i64 %indvars.iv
  %35 = call i64 @field_size(ptr noundef nonnull byval(%struct.field) align 8 %34)
  %36 = getelementptr inbounds i8, ptr %34, i64 40
  %37 = load i32, ptr %36, align 8, !tbaa !14
  switch i32 %37, label %46 [
    i32 0, label %38
    i32 1, label %42
  ]

38:                                               ; preds = %32
  %39 = sext i32 %.02831 to i64
  %40 = getelementptr inbounds i8, ptr %10, i64 %39
  %41 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %33) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %40, ptr align 1 %33, i64 %41, i1 false)
  br label %46

42:                                               ; preds = %32
  %43 = call i64 @strtoll(ptr nocapture noundef %33, ptr noundef null, i32 noundef 10) #7
  store i64 %43, ptr %4, align 8, !tbaa !16
  %44 = sext i32 %.02831 to i64
  %45 = getelementptr inbounds i8, ptr %10, i64 %44
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %45, ptr nonnull align 8 %4, i64 %35, i1 false)
  br label %46

46:                                               ; preds = %42, %38, %32
  %47 = trunc i64 %35 to i32
  %48 = add i32 %.02831, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load i32, ptr %11, align 8, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %32, label %._crit_edge, !llvm.loop !18

52:                                               ; preds = %._crit_edge, %6, %1
  %.1 = phi i1 [ false, %1 ], [ false, %6 ], [ true, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  ret i1 %.1
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #5

; 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) #6

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoll(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #2 = { 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 #3 = { nofree 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 #4 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #5 = { mustprogress nofree nounwind willreturn "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,1) }
attributes #9 = { nounwind willreturn memory(read) }

!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, !10, i64 32}
!6 = !{!"", !7, i64 0, !12, i64 1584, !13, i64 1592, !13, i64 1600}
!7 = !{!"", !8, i64 0, !10, i64 32, !8, i64 40, !11, i64 1576}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !10, i64 40}
!15 = !{!"", !8, i64 0, !11, i64 32, !10, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !11, i64 1576}
!18 = distinct !{!18, !19, !20}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.peeled.count", i32 1}


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