; LLVM IR from musetronstar/tagd :: tagl/src (lemon)

; 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.s_options = type { i32, ptr, ptr, ptr }

@op = external hidden global ptr, align 8
@errstream = external hidden global ptr, align 8
@.str.73 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [22 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @OptPrint() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %4

4:                                                ; preds = %45, %0
  %5 = load ptr, ptr @op, align 8, !tbaa !9
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds %struct.s_options, ptr %5, i64 %7
  %9 = getelementptr inbounds %struct.s_options, ptr %8, i32 0, i32 1
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %48

12:                                               ; preds = %4
  %13 = load ptr, ptr @op, align 8, !tbaa !9
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds %struct.s_options, ptr %13, i64 %15
  %17 = getelementptr inbounds %struct.s_options, ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = call i64 @strlen(ptr noundef %18) #5
  %20 = trunc i64 %19 to i32
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %3, align 4, !tbaa !5
  %22 = load ptr, ptr @op, align 8, !tbaa !9
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.s_options, ptr %22, i64 %24
  %26 = getelementptr inbounds %struct.s_options, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 8, !tbaa !13
  switch i32 %27, label %38 [
    i32 1, label %28
    i32 5, label %28
    i32 2, label %29
    i32 6, label %29
    i32 3, label %32
    i32 7, label %32
    i32 4, label %35
    i32 8, label %35
  ]

28:                                               ; preds = %12, %12
  br label %38

29:                                               ; preds = %12, %12
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = add nsw i32 %30, 9
  store i32 %31, ptr %3, align 4, !tbaa !5
  br label %38

32:                                               ; preds = %12, %12
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = add nsw i32 %33, 6
  store i32 %34, ptr %3, align 4, !tbaa !5
  br label %38

35:                                               ; preds = %12, %12
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = add nsw i32 %36, 8
  store i32 %37, ptr %3, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %35, %32, %29, %28, %12
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = icmp sgt i32 %39, %40
  br i1 %41, label %42, label %44

42:                                               ; preds = %38
  %43 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %43, ptr %2, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %42, %38
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %1, align 4, !tbaa !5
  br label %4, !llvm.loop !14

48:                                               ; preds = %4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %159, %48
  %50 = load ptr, ptr @op, align 8, !tbaa !9
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct.s_options, ptr %50, i64 %52
  %54 = getelementptr inbounds %struct.s_options, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %162

57:                                               ; preds = %49
  %58 = load ptr, ptr @op, align 8, !tbaa !9
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.s_options, ptr %58, i64 %60
  %62 = getelementptr inbounds %struct.s_options, ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !13
  switch i32 %63, label %158 [
    i32 1, label %64
    i32 5, label %64
    i32 2, label %80
    i32 6, label %80
    i32 3, label %106
    i32 7, label %106
    i32 4, label %132
    i32 8, label %132
  ]

64:                                               ; preds = %57, %57
  %65 = load ptr, ptr @errstream, align 8, !tbaa !9
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = load ptr, ptr @op, align 8, !tbaa !9
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.s_options, ptr %67, i64 %69
  %71 = getelementptr inbounds %struct.s_options, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr @op, align 8, !tbaa !9
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.s_options, ptr %73, i64 %75
  %77 = getelementptr inbounds %struct.s_options, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !16
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.73, i32 noundef %66, ptr noundef %72, ptr noundef %78) #4
  br label %158

80:                                               ; preds = %57, %57
  %81 = load ptr, ptr @errstream, align 8, !tbaa !9
  %82 = load ptr, ptr @op, align 8, !tbaa !9
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.s_options, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.s_options, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = load ptr, ptr @op, align 8, !tbaa !9
  %90 = load i32, ptr %1, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct.s_options, ptr %89, i64 %91
  %93 = getelementptr inbounds %struct.s_options, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = call i64 @strlen(ptr noundef %94) #5
  %96 = trunc i64 %95 to i32
  %97 = sub nsw i32 %88, %96
  %98 = sub nsw i32 %97, 9
  %99 = load ptr, ptr @op, align 8, !tbaa !9
  %100 = load i32, ptr %1, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.s_options, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.s_options, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.74, ptr noundef %87, i32 noundef %98, ptr noundef @.str.75, ptr noundef %104) #4
  br label %158

106:                                              ; preds = %57, %57
  %107 = load ptr, ptr @errstream, align 8, !tbaa !9
  %108 = load ptr, ptr @op, align 8, !tbaa !9
  %109 = load i32, ptr %1, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %struct.s_options, ptr %108, i64 %110
  %112 = getelementptr inbounds %struct.s_options, ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = load i32, ptr %2, align 4, !tbaa !5
  %115 = load ptr, ptr @op, align 8, !tbaa !9
  %116 = load i32, ptr %1, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %struct.s_options, ptr %115, i64 %117
  %119 = getelementptr inbounds %struct.s_options, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = call i64 @strlen(ptr noundef %120) #5
  %122 = trunc i64 %121 to i32
  %123 = sub nsw i32 %114, %122
  %124 = sub nsw i32 %123, 6
  %125 = load ptr, ptr @op, align 8, !tbaa !9
  %126 = load i32, ptr %1, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.s_options, ptr %125, i64 %127
  %129 = getelementptr inbounds %struct.s_options, ptr %128, i32 0, i32 3
  %130 = load ptr, ptr %129, align 8, !tbaa !16
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.76, ptr noundef %113, i32 noundef %124, ptr noundef @.str.75, ptr noundef %130) #4
  br label %158

132:                                              ; preds = %57, %57
  %133 = load ptr, ptr @errstream, align 8, !tbaa !9
  %134 = load ptr, ptr @op, align 8, !tbaa !9
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.s_options, ptr %134, i64 %136
  %138 = getelementptr inbounds %struct.s_options, ptr %137, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = load ptr, ptr @op, align 8, !tbaa !9
  %142 = load i32, ptr %1, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %struct.s_options, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.s_options, ptr %144, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = call i64 @strlen(ptr noundef %146) #5
  %148 = trunc i64 %147 to i32
  %149 = sub nsw i32 %140, %148
  %150 = sub nsw i32 %149, 8
  %151 = load ptr, ptr @op, align 8, !tbaa !9
  %152 = load i32, ptr %1, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.s_options, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.s_options, ptr %154, i32 0, i32 3
  %156 = load ptr, ptr %155, align 8, !tbaa !16
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.77, ptr noundef %139, i32 noundef %150, ptr noundef @.str.75, ptr noundef %156) #4
  br label %158

158:                                              ; preds = %132, %106, %80, %64, %57
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %1, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %1, align 4, !tbaa !5
  br label %49, !llvm.loop !17

162:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #4 = { nounwind }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"s_options", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!13 = !{!12, !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 24}
!17 = distinct !{!17, !15}


; 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.s_options = type { i32, ptr, ptr, ptr }

@op = external hidden local_unnamed_addr global ptr, align 8
@errstream = external hidden local_unnamed_addr global ptr, align 8
@.str.73 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [22 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @OptPrint() local_unnamed_addr #1 {
  %1 = load ptr, ptr @op, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %1, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !9
  %.not35 = icmp eq ptr %3, null
  br i1 %.not35, label %._crit_edge, label %.lr.ph

.preheader:                                       ; preds = %19
  br i1 %.not35, label %._crit_edge, label %.lr.ph40

.lr.ph40:                                         ; preds = %.preheader
  %4 = add nsw i32 %spec.select, -8
  %5 = add nsw i32 %spec.select, -6
  %6 = add nsw i32 %spec.select, -9
  br label %22

.lr.ph:                                           ; preds = %0, %19
  %indvars.iv = phi i64 [ %indvars.iv.next, %19 ], [ 0, %0 ]
  %7 = phi ptr [ %21, %19 ], [ %3, %0 ]
  %.02837 = phi i32 [ %spec.select, %19 ], [ 0, %0 ]
  %8 = getelementptr inbounds %struct.s_options, ptr %1, i64 %indvars.iv
  %9 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #4
  %10 = trunc i64 %9 to i32
  %11 = add nsw i32 %10, 1
  %12 = load i32, ptr %8, align 8, !tbaa !12
  switch i32 %12, label %19 [
    i32 8, label %17
    i32 4, label %17
    i32 2, label %13
    i32 6, label %13
    i32 3, label %15
    i32 7, label %15
  ]

13:                                               ; preds = %.lr.ph, %.lr.ph
  %14 = add nsw i32 %10, 10
  br label %19

15:                                               ; preds = %.lr.ph, %.lr.ph
  %16 = add nsw i32 %10, 7
  br label %19

17:                                               ; preds = %.lr.ph, %.lr.ph
  %18 = add nsw i32 %10, 9
  br label %19

19:                                               ; preds = %17, %15, %13, %.lr.ph
  %.0 = phi i32 [ %11, %.lr.ph ], [ %16, %15 ], [ %14, %13 ], [ %18, %17 ]
  %spec.select = tail call i32 @llvm.smax.i32(i32 %.0, i32 %.02837)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = getelementptr inbounds %struct.s_options, ptr %1, i64 %indvars.iv.next, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !13

22:                                               ; preds = %.lr.ph40, %55
  %indvars.iv42 = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next43, %55 ]
  %23 = phi ptr [ %3, %.lr.ph40 ], [ %59, %55 ]
  %24 = phi ptr [ %1, %.lr.ph40 ], [ %57, %55 ]
  %25 = load i32, ptr %24, align 8, !tbaa !12
  switch i32 %25, label %55 [
    i32 1, label %26
    i32 5, label %26
    i32 2, label %31
    i32 6, label %31
    i32 3, label %39
    i32 7, label %39
    i32 4, label %47
    i32 8, label %47
  ]

26:                                               ; preds = %22, %22
  %27 = load ptr, ptr @errstream, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %24, i64 24
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.73, i32 noundef %spec.select, ptr noundef nonnull %23, ptr noundef %29) #5
  br label %55

31:                                               ; preds = %22, %22
  %32 = load ptr, ptr @errstream, align 8, !tbaa !5
  %33 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %23) #4
  %34 = trunc i64 %33 to i32
  %35 = sub i32 %6, %34
  %36 = getelementptr inbounds i8, ptr %24, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.74, ptr noundef nonnull %23, i32 noundef %35, ptr noundef nonnull @.str.75, ptr noundef %37) #5
  br label %55

39:                                               ; preds = %22, %22
  %40 = load ptr, ptr @errstream, align 8, !tbaa !5
  %41 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %23) #4
  %42 = trunc i64 %41 to i32
  %43 = sub i32 %5, %42
  %44 = getelementptr inbounds i8, ptr %24, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !15
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.76, ptr noundef nonnull %23, i32 noundef %43, ptr noundef nonnull @.str.75, ptr noundef %45) #5
  br label %55

47:                                               ; preds = %22, %22
  %48 = load ptr, ptr @errstream, align 8, !tbaa !5
  %49 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %23) #4
  %50 = trunc i64 %49 to i32
  %51 = sub i32 %4, %50
  %52 = getelementptr inbounds i8, ptr %24, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.77, ptr noundef nonnull %23, i32 noundef %51, ptr noundef nonnull @.str.75, ptr noundef %53) #5
  br label %55

55:                                               ; preds = %22, %26, %31, %39, %47
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %56 = load ptr, ptr @op, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.s_options, ptr %56, i64 %indvars.iv.next43
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %.not32 = icmp eq ptr %59, null
  br i1 %.not32, label %._crit_edge, label %22, !llvm.loop !16

._crit_edge:                                      ; preds = %55, %0, %.preheader
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

attributes #0 = { 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 #1 = { nofree 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind willreturn memory(read) }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"s_options", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !6, i64 24}
!16 = distinct !{!16, !14}


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