; LLVM IR from theck01/offbrand_lib :: apps/minlog/src (main)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [937 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1

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

20:                                               ; preds = %2
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %28, i64 0
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 0
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str, ptr noundef %24, ptr noundef %27, ptr noundef %30, ptr noundef %33, ptr noundef %36, ptr noundef %39) #6
  call void @exit(i32 noundef 1) #7
  unreachable

41:                                               ; preds = %2
  store i32 0, ptr %14, align 4, !tbaa !5
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %78, %41
  %43 = load i32, ptr %16, align 4, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %46, label %81

46:                                               ; preds = %42
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = load i32, ptr %16, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %47, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = call i64 @strlen(ptr noundef %51) #8
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %15, align 4, !tbaa !5
  %54 = load i32, ptr %14, align 4, !tbaa !5
  %55 = load i32, ptr %15, align 4, !tbaa !5
  %56 = add i32 %54, %55
  %57 = icmp ult i32 %56, 2048
  br i1 %57, label %58, label %59

58:                                               ; preds = %46
  br label %60

59:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 53, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

60:                                               ; preds = %58
  %61 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %62 = load i32, ptr %14, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %61, i64 %63
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = load i32, ptr %16, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call ptr @strcpy(ptr noundef %64, ptr noundef %69) #6
  %71 = load i32, ptr %15, align 4, !tbaa !5
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = add i32 %72, %71
  store i32 %73, ptr %14, align 4, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = add i32 %74, 1
  store i32 %75, ptr %14, align 4, !tbaa !5
  %76 = zext i32 %74 to i64
  %77 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 %76
  store i8 32, ptr %77, align 1, !tbaa !11
  br label %78

78:                                               ; preds = %60
  %79 = load i32, ptr %16, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %16, align 4, !tbaa !5
  br label %42, !llvm.loop !12

81:                                               ; preds = %42
  %82 = load i32, ptr %14, align 4, !tbaa !5
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 %83
  store i8 0, ptr %84, align 1, !tbaa !11
  %85 = call ptr @obvector_new(i32 noundef 32)
  store ptr %85, ptr %6, align 8, !tbaa !9
  %86 = call ptr @obvector_new(i32 noundef 32)
  store ptr %86, ptr %7, align 8, !tbaa !9
  %87 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !9
  %90 = call zeroext i8 @parseEqnString(ptr noundef %87, ptr noundef %88, ptr noundef %89, i8 noundef zeroext 1)
  store i8 %90, ptr %11, align 1, !tbaa !11
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  call void @obvector_sort(ptr noundef %91, i8 noundef signext 1)
  %92 = load ptr, ptr %6, align 8, !tbaa !9
  %93 = call ptr @obvector_obj_at_index(ptr noundef %92, i64 noundef 0)
  %94 = call i32 @getTermValue(ptr noundef %93)
  store i32 %94, ptr %13, align 4, !tbaa !5
  store i8 0, ptr %12, align 1, !tbaa !11
  br label %95

95:                                               ; preds = %101, %81
  %96 = load i8, ptr %12, align 1, !tbaa !11
  %97 = zext i8 %96 to i32
  %98 = shl i32 1, %97
  %99 = load i32, ptr %13, align 4, !tbaa !5
  %100 = icmp ule i32 %98, %99
  br i1 %100, label %101, label %104

101:                                              ; preds = %95
  %102 = load i8, ptr %12, align 1, !tbaa !11
  %103 = add i8 %102, 1
  store i8 %103, ptr %12, align 1, !tbaa !11
  br label %95, !llvm.loop !14

104:                                              ; preds = %95
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = load ptr, ptr %7, align 8, !tbaa !9
  %107 = call ptr @findLargestPrimeImplicants(ptr noundef %105, ptr noundef %106)
  store ptr %107, ptr %8, align 8, !tbaa !9
  %108 = load ptr, ptr %7, align 8, !tbaa !9
  %109 = call ptr @ob_release(ptr noundef %108)
  store ptr %109, ptr %7, align 8, !tbaa !9
  %110 = load ptr, ptr %8, align 8, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !9
  %112 = call ptr @createRTable(ptr noundef %110, ptr noundef %111)
  store ptr %112, ptr %10, align 8, !tbaa !9
  %113 = load ptr, ptr %6, align 8, !tbaa !9
  %114 = call ptr @ob_release(ptr noundef %113)
  store ptr %114, ptr %6, align 8, !tbaa !9
  %115 = load ptr, ptr %8, align 8, !tbaa !9
  %116 = call ptr @ob_release(ptr noundef %115)
  store ptr %116, ptr %8, align 8, !tbaa !9
  %117 = load ptr, ptr %10, align 8, !tbaa !9
  %118 = load i8, ptr %12, align 1, !tbaa !11
  %119 = call ptr @findEssentialPIs(ptr noundef %117, i8 noundef zeroext %118)
  store ptr %119, ptr %9, align 8, !tbaa !9
  %120 = load ptr, ptr %10, align 8, !tbaa !9
  %121 = call ptr @ob_release(ptr noundef %120)
  store ptr %121, ptr %10, align 8, !tbaa !9
  %122 = load ptr, ptr %9, align 8, !tbaa !9
  %123 = load i8, ptr %11, align 1, !tbaa !11
  %124 = icmp ne i8 %123, 0
  %125 = xor i1 %124, true
  %126 = zext i1 %125 to i32
  %127 = trunc i32 %126 to i8
  %128 = load i8, ptr %12, align 1, !tbaa !11
  %129 = zext i8 %128 to i32
  call void @printEqnVector(ptr noundef %122, i8 noundef zeroext %127, i32 noundef %129)
  %130 = load ptr, ptr %9, align 8, !tbaa !9
  %131 = call ptr @ob_release(ptr noundef %130)
  store ptr %131, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  ret i32 0
}

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

declare ptr @obvector_new(i32 noundef) #5

declare zeroext i8 @parseEqnString(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) #5

declare void @obvector_sort(ptr noundef, i8 noundef signext) #5

declare i32 @getTermValue(ptr noundef) #5

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) #5

declare ptr @findLargestPrimeImplicants(ptr noundef, ptr noundef) #5

declare ptr @ob_release(ptr noundef) #5

declare ptr @createRTable(ptr noundef, ptr noundef) #5

declare ptr @findEssentialPIs(ptr noundef, i8 noundef zeroext) #5

declare void @printEqnVector(ptr noundef, i8 noundef zeroext, i32 noundef) #5

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

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 = { 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 #3 = { noreturn 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 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 #5 = { "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 }
attributes #7 = { noreturn nounwind }
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 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [937 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %3) #7
  %4 = icmp slt i32 %0, 2
  br i1 %4, label %5, label %.preheader.preheader

.preheader.preheader:                             ; preds = %2
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.preheader

5:                                                ; preds = %2
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str, ptr noundef %7, ptr noundef %7, ptr noundef %7, ptr noundef %7, ptr noundef %7, ptr noundef %7) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

.preheader:                                       ; preds = %.preheader.preheader, %16
  %indvars.iv = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next, %16 ]
  %.04147 = phi i32 [ 0, %.preheader.preheader ], [ %20, %16 ]
  %9 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %10) #10
  %12 = trunc i64 %11 to i32
  %13 = add i32 %.04147, %12
  %14 = icmp ult i32 %13, 2048
  br i1 %14, label %16, label %15

15:                                               ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 53, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

16:                                               ; preds = %.preheader
  %17 = zext nneg i32 %.04147 to i64
  %18 = getelementptr inbounds i8, ptr %3, i64 %17
  %19 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) %10) #7
  %20 = add nuw nsw i32 %13, 1
  %21 = zext nneg i32 %13 to i64
  %22 = getelementptr inbounds [2048 x i8], ptr %3, i64 0, i64 %21
  store i8 32, ptr %22, align 1, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %23, label %.preheader, !llvm.loop !10

23:                                               ; preds = %16
  %24 = zext nneg i32 %20 to i64
  %25 = getelementptr inbounds [2048 x i8], ptr %3, i64 0, i64 %24
  store i8 0, ptr %25, align 1, !tbaa !9
  %26 = call ptr @obvector_new(i32 noundef 32) #7
  %27 = call ptr @obvector_new(i32 noundef 32) #7
  %28 = call zeroext i8 @parseEqnString(ptr noundef nonnull %3, ptr noundef %26, ptr noundef %27, i8 noundef zeroext 1) #7
  call void @obvector_sort(ptr noundef %26, i8 noundef signext 1) #7
  %29 = call ptr @obvector_obj_at_index(ptr noundef %26, i64 noundef 0) #7
  %30 = call i32 @getTermValue(ptr noundef %29) #7
  br label %31

31:                                               ; preds = %31, %23
  %.042 = phi i8 [ 0, %23 ], [ %33, %31 ]
  %32 = zext i8 %.042 to i32
  %.highbits = lshr i32 %30, %32
  %.not = icmp eq i32 %.highbits, 0
  %33 = add i8 %.042, 1
  br i1 %.not, label %34, label %31, !llvm.loop !12

34:                                               ; preds = %31
  %35 = call ptr @findLargestPrimeImplicants(ptr noundef %26, ptr noundef %27) #7
  %36 = call ptr @ob_release(ptr noundef %27) #7
  %37 = call ptr @createRTable(ptr noundef %35, ptr noundef %26) #7
  %38 = call ptr @ob_release(ptr noundef %26) #7
  %39 = call ptr @ob_release(ptr noundef %35) #7
  %40 = call ptr @findEssentialPIs(ptr noundef %37, i8 noundef zeroext %.042) #7
  %41 = call ptr @ob_release(ptr noundef %37) #7
  %.not45 = icmp eq i8 %28, 0
  %42 = zext i1 %.not45 to i8
  call void @printEqnVector(ptr noundef %40, i8 noundef zeroext %42, i32 noundef %32) #7
  %43 = call ptr @ob_release(ptr noundef %40) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %3) #7
  ret i32 0
}

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

declare ptr @obvector_new(i32 noundef) local_unnamed_addr #6

declare zeroext i8 @parseEqnString(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #6

declare void @obvector_sort(ptr noundef, i8 noundef signext) local_unnamed_addr #6

declare i32 @getTermValue(ptr noundef) local_unnamed_addr #6

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) local_unnamed_addr #6

declare ptr @findLargestPrimeImplicants(ptr noundef, ptr noundef) local_unnamed_addr #6

declare ptr @ob_release(ptr noundef) local_unnamed_addr #6

declare ptr @createRTable(ptr noundef, ptr noundef) local_unnamed_addr #6

declare ptr @findEssentialPIs(ptr noundef, i8 noundef zeroext) local_unnamed_addr #6

declare void @printEqnVector(ptr noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #6

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

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 = { 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 #3 = { noreturn 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 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { "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 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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