; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/278 Division 1/Problem A (A)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@h1 = external dso_local global i32, align 4
@a1 = external dso_local global i32, align 4
@d1 = external dso_local global i32, align 4
@h2 = external dso_local global i32, align 4
@a2 = external dso_local global i32, align 4
@d2 = external dso_local global i32, align 4
@t1 = external dso_local global i32, align 4
@t2 = external dso_local global i32, align 4
@h = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@cost = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @h1, ptr noundef @a1, ptr noundef @d1)
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @h2, ptr noundef @a2, ptr noundef @d2)
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @h, ptr noundef @a, ptr noundef @d)
  %12 = load i32, ptr @a2, align 4, !tbaa !5
  %13 = load i32, ptr @d1, align 4, !tbaa !5
  %14 = icmp sle i32 %12, %13
  br i1 %14, label %15, label %16

15:                                               ; preds = %0
  br label %25

16:                                               ; preds = %0
  %17 = load i32, ptr @h1, align 4, !tbaa !5
  %18 = sitofp i32 %17 to double
  %19 = load i32, ptr @a2, align 4, !tbaa !5
  %20 = load i32, ptr @d1, align 4, !tbaa !5
  %21 = sub nsw i32 %19, %20
  %22 = sitofp i32 %21 to double
  %23 = fdiv double %18, %22
  %24 = call double @llvm.ceil.f64(double %23)
  br label %25

25:                                               ; preds = %16, %15
  %26 = phi double [ 1.000000e+09, %15 ], [ %24, %16 ]
  %27 = fptosi double %26 to i32
  store i32 %27, ptr @t1, align 4, !tbaa !5
  %28 = load i32, ptr @a1, align 4, !tbaa !5
  %29 = load i32, ptr @d2, align 4, !tbaa !5
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %25
  br label %41

32:                                               ; preds = %25
  %33 = load i32, ptr @h2, align 4, !tbaa !5
  %34 = sitofp i32 %33 to double
  %35 = load i32, ptr @a1, align 4, !tbaa !5
  %36 = load i32, ptr @d2, align 4, !tbaa !5
  %37 = sub nsw i32 %35, %36
  %38 = sitofp i32 %37 to double
  %39 = fdiv double %34, %38
  %40 = call double @llvm.ceil.f64(double %39)
  br label %41

41:                                               ; preds = %32, %31
  %42 = phi double [ 1.000000e+09, %31 ], [ %40, %32 ]
  %43 = fptosi double %42 to i32
  store i32 %43, ptr @t2, align 4, !tbaa !5
  %44 = load i32, ptr @t1, align 4, !tbaa !5
  %45 = load i32, ptr @t2, align 4, !tbaa !5
  %46 = icmp sgt i32 %44, %45
  br i1 %46, label %47, label %50

47:                                               ; preds = %41
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %114

50:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %107, %50
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = icmp sle i32 %52, 200
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %110

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %103, %55
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = icmp sle i32 %57, 200
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %106

60:                                               ; preds = %56
  %61 = load i32, ptr @a1, align 4, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  %64 = load i32, ptr @d2, align 4, !tbaa !5
  %65 = icmp sgt i32 %63, %64
  br i1 %65, label %66, label %102

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %67 = load i32, ptr @h2, align 4, !tbaa !5
  %68 = sitofp i32 %67 to double
  %69 = load i32, ptr @a1, align 4, !tbaa !5
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = add nsw i32 %69, %70
  %72 = load i32, ptr @d2, align 4, !tbaa !5
  %73 = sub nsw i32 %71, %72
  %74 = sitofp i32 %73 to double
  %75 = fdiv double %68, %74
  %76 = call double @llvm.ceil.f64(double %75)
  %77 = fptosi double %76 to i32
  %78 = load i32, ptr @a2, align 4, !tbaa !5
  %79 = load i32, ptr @d1, align 4, !tbaa !5
  %80 = sub nsw i32 %78, %79
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = sub nsw i32 %80, %81
  %83 = mul nsw i32 %77, %82
  %84 = add nsw i32 %83, 1
  %85 = load i32, ptr @h1, align 4, !tbaa !5
  %86 = sub nsw i32 %84, %85
  store i32 %86, ptr %7, align 4, !tbaa !5
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %88 = load i32, ptr %87, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  store i32 %88, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = load i32, ptr @h, align 4, !tbaa !5
  %91 = mul nsw i32 %89, %90
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = load i32, ptr @a, align 4, !tbaa !5
  %94 = mul nsw i32 %92, %93
  %95 = add nsw i32 %91, %94
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = load i32, ptr @d, align 4, !tbaa !5
  %98 = mul nsw i32 %96, %97
  %99 = add nsw i32 %95, %98
  store i32 %99, ptr %8, align 4, !tbaa !5
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) @cost)
  %101 = load i32, ptr %100, align 4, !tbaa !5
  store i32 %101, ptr @cost, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %102

102:                                              ; preds = %66, %60
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %4, align 4, !tbaa !5
  br label %56, !llvm.loop !9

106:                                              ; preds = %59
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %2, align 4, !tbaa !5
  br label %51, !llvm.loop !11

110:                                              ; preds = %54
  %111 = load i32, ptr @cost, align 4, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %111)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %114

114:                                              ; preds = %110, %47
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

attributes #0 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress 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 #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@h1 = external dso_local global i32, align 4
@a1 = external dso_local global i32, align 4
@d1 = external dso_local global i32, align 4
@h2 = external dso_local global i32, align 4
@a2 = external dso_local global i32, align 4
@d2 = external dso_local global i32, align 4
@t1 = external dso_local local_unnamed_addr global i32, align 4
@t2 = external dso_local local_unnamed_addr global i32, align 4
@h = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@cost = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @h1, ptr noundef nonnull @a1, ptr noundef nonnull @d1)
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @h2, ptr noundef nonnull @a2, ptr noundef nonnull @d2)
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @h, ptr noundef nonnull @a, ptr noundef nonnull @d)
  %7 = load i32, ptr @a2, align 4, !tbaa !5
  %8 = load i32, ptr @d1, align 4, !tbaa !5
  %.not = icmp sgt i32 %7, %8
  br i1 %.not, label %9, label %17

9:                                                ; preds = %0
  %10 = load i32, ptr @h1, align 4, !tbaa !5
  %11 = sitofp i32 %10 to double
  %12 = sub nsw i32 %7, %8
  %13 = sitofp i32 %12 to double
  %14 = fdiv double %11, %13
  %15 = tail call double @llvm.ceil.f64(double %14)
  %16 = fptosi double %15 to i32
  br label %17

17:                                               ; preds = %0, %9
  %18 = phi i32 [ %16, %9 ], [ 1000000000, %0 ]
  store i32 %18, ptr @t1, align 4, !tbaa !5
  %19 = load i32, ptr @a1, align 4, !tbaa !5
  %20 = load i32, ptr @d2, align 4, !tbaa !5
  %.not15 = icmp sgt i32 %19, %20
  br i1 %.not15, label %21, label %29

21:                                               ; preds = %17
  %22 = load i32, ptr @h2, align 4, !tbaa !5
  %23 = sitofp i32 %22 to double
  %24 = sub nsw i32 %19, %20
  %25 = sitofp i32 %24 to double
  %26 = fdiv double %23, %25
  %27 = tail call double @llvm.ceil.f64(double %26)
  %28 = fptosi double %27 to i32
  br label %29

29:                                               ; preds = %17, %21
  %30 = phi i32 [ %28, %21 ], [ 1000000000, %17 ]
  store i32 %30, ptr @t2, align 4, !tbaa !5
  %31 = icmp sgt i32 %18, %30
  br i1 %31, label %32, label %.preheader

32:                                               ; preds = %29
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %77

.preheader:                                       ; preds = %29, %39
  %.pre24 = phi i32 [ %.pre2428, %39 ], [ %20, %29 ]
  %.pre22 = phi i32 [ %.pre2225, %39 ], [ %19, %29 ]
  %.020 = phi i32 [ %40, %39 ], [ 0, %29 ]
  br label %41

35:                                               ; preds = %39
  %36 = load i32, ptr @cost, align 4, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %36)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %77

39:                                               ; preds = %73
  %40 = add nuw nsw i32 %.020, 1
  %exitcond21.not = icmp eq i32 %40, 201
  br i1 %exitcond21.not, label %35, label %.preheader, !llvm.loop !9

41:                                               ; preds = %.preheader, %73
  %.pre2429 = phi i32 [ %.pre24, %.preheader ], [ %.pre2428, %73 ]
  %.pre2226 = phi i32 [ %.pre22, %.preheader ], [ %.pre2225, %73 ]
  %42 = phi i32 [ %.pre24, %.preheader ], [ %74, %73 ]
  %43 = phi i32 [ %.pre22, %.preheader ], [ %75, %73 ]
  %.01019 = phi i32 [ 0, %.preheader ], [ %76, %73 ]
  %44 = add nsw i32 %43, %.020
  %45 = icmp sgt i32 %44, %42
  br i1 %45, label %46, label %73

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %47 = load i32, ptr @h2, align 4, !tbaa !5
  %48 = sitofp i32 %47 to double
  %49 = sub nsw i32 %44, %42
  %50 = sitofp i32 %49 to double
  %51 = fdiv double %48, %50
  %52 = call double @llvm.ceil.f64(double %51)
  %53 = fptosi double %52 to i32
  %54 = load i32, ptr @a2, align 4, !tbaa !5
  %55 = load i32, ptr @d1, align 4, !tbaa !5
  %56 = add i32 %.01019, %55
  %57 = sub i32 %54, %56
  %58 = mul nsw i32 %57, %53
  %59 = load i32, ptr @h1, align 4, !tbaa !5
  %reass.sub = sub i32 %58, %59
  %60 = add i32 %reass.sub, 1
  store i32 %60, ptr %2, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %63 = load i32, ptr @h, align 4, !tbaa !5
  %64 = mul nsw i32 %63, %62
  %65 = load i32, ptr @a, align 4, !tbaa !5
  %66 = mul nsw i32 %65, %.020
  %67 = add nsw i32 %66, %64
  %68 = load i32, ptr @d, align 4, !tbaa !5
  %69 = mul nsw i32 %68, %.01019
  %70 = add nsw i32 %67, %69
  store i32 %70, ptr %3, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) @cost)
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr @cost, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %.pre = load i32, ptr @a1, align 4, !tbaa !5
  %.pre23 = load i32, ptr @d2, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %41, %46
  %.pre2428 = phi i32 [ %.pre2429, %41 ], [ %.pre23, %46 ]
  %.pre2225 = phi i32 [ %.pre2226, %41 ], [ %.pre, %46 ]
  %74 = phi i32 [ %42, %41 ], [ %.pre23, %46 ]
  %75 = phi i32 [ %43, %41 ], [ %.pre, %46 ]
  %76 = add nuw nsw i32 %.01019, 1
  %exitcond.not = icmp eq i32 %76, 201
  br i1 %exitcond.not, label %39, label %41, !llvm.loop !11

77:                                               ; preds = %35, %32
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

attributes #0 = { mustprogress norecurse 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 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 #5 = { inlinehint 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress 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 #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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