; LLVM IR from tangjz/acm-icpc :: codeforces/gym/100443C.ll (Z5solvev)

; 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.std::pair" = type <{ double, i32, [4 x i8] }>

@_ZZ5solvevE1f = external hidden global [201 x i32], align 16
@_ZZ5solvevE1x = external hidden global [201 x i32], align 16
@_ZZ5solvevE1y = external hidden global [201 x i32], align 16
@_ZZ5solvevE3dis = external hidden global [201 x [201 x %"struct.std::pair"]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZL3INF = external hidden constant double, align 8
@_ZZ5solvevE3typ = external hidden global [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #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 %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca double, align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca double, align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca double, align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %73, %0
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %76

38:                                               ; preds = %33
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr @_ZZ5solvevE1f, i64 %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr @_ZZ5solvevE1x, i64 %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr @_ZZ5solvevE1y, i64 %46
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %41, ptr noundef %44, ptr noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %62, %38
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %65

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @_ZNSt4pairIdiEC2IRKdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(8) @_ZL3INF, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %56
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %57, i64 0, i64 %59
  %61 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(12) %60, ptr noundef nonnull align 8 dereferenceable(12) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %62

62:                                               ; preds = %54
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %5, align 4, !tbaa !5
  br label %49, !llvm.loop !9

65:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %68, i64 0, i64 %70
  %72 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(12) %71, ptr noundef nonnull align 8 dereferenceable(12) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %73

73:                                               ; preds = %65
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %3, align 4, !tbaa !5
  br label %33, !llvm.loop !13

76:                                               ; preds = %37
  br label %77

77:                                               ; preds = %216, %76
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %2, align 4, !tbaa !5
  %80 = icmp ne i32 %78, 0
  br i1 %80, label %81, label %217

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %82 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %9, ptr noundef %10, ptr noundef @_ZZ5solvevE3typ)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1f, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1f, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sub nsw i32 %86, %90
  %92 = mul nsw i32 %91, 5
  store i32 %92, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1x, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1x, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sub nsw i32 %96, %100
  store i32 %101, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1y, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1y, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = sub nsw i32 %105, %109
  store i32 %110, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = mul nsw i32 %111, %112
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = mul nsw i32 %114, %115
  %117 = add nsw i32 %113, %116
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = mul nsw i32 %118, %119
  %121 = add nsw i32 %117, %120
  %122 = sitofp i32 %121 to x86_fp80
  %123 = call x86_fp80 @sqrtl(x86_fp80 noundef %122) #6
  %124 = fptrunc x86_fp80 %123 to double
  store double %124, ptr %14, align 8, !tbaa !11
  %125 = load i8, ptr @_ZZ5solvevE3typ, align 1, !tbaa !14
  %126 = sext i8 %125 to i32
  switch i32 %126, label %216 [
    i32 119, label %127
    i32 115, label %127
    i32 108, label %156
    i32 101, label %185
  ]

127:                                              ; preds = %81, %81
  %128 = load i32, ptr %9, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %130, i64 0, i64 %132
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @_ZNSt4pairIdiEC2IRdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %134 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %133, ptr noundef nonnull align 8 dereferenceable(12) %15)
  %135 = load i32, ptr %9, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %136
  %138 = load i32, ptr %10, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %137, i64 0, i64 %139
  %141 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %140, ptr noundef nonnull align 8 dereferenceable(12) %134)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %143
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %144, i64 0, i64 %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @_ZNSt4pairIdiEC2IRdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %148 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %147, ptr noundef nonnull align 8 dereferenceable(12) %16)
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %150
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %151, i64 0, i64 %153
  %155 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %154, ptr noundef nonnull align 8 dereferenceable(12) %148)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %216

156:                                              ; preds = %81
  %157 = load i32, ptr %9, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %158
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %159, i64 0, i64 %161
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 1.000000e+00, ptr %18, align 8, !tbaa !11
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %163 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %162, ptr noundef nonnull align 8 dereferenceable(12) %17)
  %164 = load i32, ptr %9, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %165
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %166, i64 0, i64 %168
  %170 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %169, ptr noundef nonnull align 8 dereferenceable(12) %163)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %172
  %174 = load i32, ptr %9, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %173, i64 0, i64 %175
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 1.000000e+00, ptr %20, align 8, !tbaa !11
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %177 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %176, ptr noundef nonnull align 8 dereferenceable(12) %19)
  %178 = load i32, ptr %10, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %179
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %180, i64 0, i64 %182
  %184 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %183, ptr noundef nonnull align 8 dereferenceable(12) %177)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %216

185:                                              ; preds = %81
  %186 = load i32, ptr %9, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %187
  %189 = load i32, ptr %10, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %188, i64 0, i64 %190
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store double 1.000000e+00, ptr %22, align 8, !tbaa !11
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %192 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %191, ptr noundef nonnull align 8 dereferenceable(12) %21)
  %193 = load i32, ptr %9, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %194
  %196 = load i32, ptr %10, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %195, i64 0, i64 %197
  %199 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %198, ptr noundef nonnull align 8 dereferenceable(12) %192)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %201
  %203 = load i32, ptr %9, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %202, i64 0, i64 %204
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %206 = load double, ptr %14, align 8, !tbaa !11
  %207 = fmul double %206, 3.000000e+00
  store double %207, ptr %24, align 8, !tbaa !11
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %23, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %208 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %205, ptr noundef nonnull align 8 dereferenceable(12) %23)
  %209 = load i32, ptr %10, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %210
  %212 = load i32, ptr %9, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %211, i64 0, i64 %213
  %215 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %214, ptr noundef nonnull align 8 dereferenceable(12) %208)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %216

216:                                              ; preds = %185, %156, %127, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %77, !llvm.loop !15

217:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %294, %217
  %219 = load i32, ptr %25, align 4, !tbaa !5
  %220 = load i32, ptr %1, align 4, !tbaa !5
  %221 = icmp slt i32 %219, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %218
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %297

223:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %224

224:                                              ; preds = %290, %223
  %225 = load i32, ptr %26, align 4, !tbaa !5
  %226 = load i32, ptr %1, align 4, !tbaa !5
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %224
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %293

229:                                              ; preds = %224
  %230 = load i32, ptr %26, align 4, !tbaa !5
  %231 = load i32, ptr %26, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %232
  %234 = load i32, ptr %25, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %233, i64 0, i64 %235
  %237 = getelementptr inbounds %"struct.std::pair", ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 8, !tbaa !16
  %239 = icmp ne i32 %230, %238
  br i1 %239, label %240, label %289

240:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %241

241:                                              ; preds = %285, %240
  %242 = load i32, ptr %27, align 4, !tbaa !5
  %243 = load i32, ptr %1, align 4, !tbaa !5
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %288

246:                                              ; preds = %241
  %247 = load i32, ptr %26, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %248
  %250 = load i32, ptr %27, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %249, i64 0, i64 %251
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %253 = load i32, ptr %26, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %254
  %256 = load i32, ptr %25, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %255, i64 0, i64 %257
  %259 = getelementptr inbounds %"struct.std::pair", ptr %258, i32 0, i32 0
  %260 = load double, ptr %259, align 16, !tbaa !18
  %261 = load i32, ptr %25, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %262
  %264 = load i32, ptr %27, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %263, i64 0, i64 %265
  %267 = getelementptr inbounds %"struct.std::pair", ptr %266, i32 0, i32 0
  %268 = load double, ptr %267, align 16, !tbaa !18
  %269 = fadd double %260, %268
  store double %269, ptr %29, align 8, !tbaa !11
  %270 = load i32, ptr %26, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %271
  %273 = load i32, ptr %25, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %272, i64 0, i64 %274
  %276 = getelementptr inbounds %"struct.std::pair", ptr %275, i32 0, i32 1
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(4) %276)
  %277 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %252, ptr noundef nonnull align 8 dereferenceable(12) %28)
  %278 = load i32, ptr %26, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %279
  %281 = load i32, ptr %27, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %280, i64 0, i64 %282
  %284 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %283, ptr noundef nonnull align 8 dereferenceable(12) %277)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %285

285:                                              ; preds = %246
  %286 = load i32, ptr %27, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %27, align 4, !tbaa !5
  br label %241, !llvm.loop !19

288:                                              ; preds = %245
  br label %289

289:                                              ; preds = %288, %229
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %26, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %26, align 4, !tbaa !5
  br label %224, !llvm.loop !20

293:                                              ; preds = %228
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %25, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %25, align 4, !tbaa !5
  br label %218, !llvm.loop !21

297:                                              ; preds = %222
  %298 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %2)
  br label %299

299:                                              ; preds = %321, %297
  %300 = load i32, ptr %2, align 4, !tbaa !5
  %301 = add nsw i32 %300, -1
  store i32 %301, ptr %2, align 4, !tbaa !5
  %302 = icmp ne i32 %300, 0
  br i1 %302, label %303, label %324

303:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %304 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %30, ptr noundef %31)
  br label %305

305:                                              ; preds = %312, %303
  %306 = load i32, ptr %30, align 4, !tbaa !5
  %307 = load i32, ptr %31, align 4, !tbaa !5
  %308 = icmp ne i32 %306, %307
  br i1 %308, label %309, label %321

309:                                              ; preds = %305
  %310 = load i32, ptr %30, align 4, !tbaa !5
  %311 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %310)
  br label %312

312:                                              ; preds = %309
  %313 = load i32, ptr %30, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %314
  %316 = load i32, ptr %31, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [201 x %"struct.std::pair"], ptr %315, i64 0, i64 %317
  %319 = getelementptr inbounds %"struct.std::pair", ptr %318, i32 0, i32 1
  %320 = load i32, ptr %319, align 8, !tbaa !16
  store i32 %320, ptr %30, align 4, !tbaa !5
  br label %305, !llvm.loop !22

321:                                              ; preds = %305
  %322 = load i32, ptr %31, align 4, !tbaa !5
  %323 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %322)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %299, !llvm.loop !23

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRKdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

declare i32 @printf(ptr noundef, ...) #2

attributes #0 = { 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 #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 = { 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 #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 = { 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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSSt4pairIdiE", !12, i64 0, !6, i64 8}
!18 = !{!17, !12, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !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"

%"struct.std::pair" = type <{ double, i32, [4 x i8] }>

@_ZZ5solvevE1f = external hidden global [201 x i32], align 16
@_ZZ5solvevE1x = external hidden global [201 x i32], align 16
@_ZZ5solvevE1y = external hidden global [201 x i32], align 16
@_ZZ5solvevE3dis = external hidden global [201 x [201 x %"struct.std::pair"]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZL3INF = external hidden constant double, align 8
@_ZZ5solvevE3typ = external hidden global [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca double, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca double, align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca double, align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca double, align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  %26 = load i32, ptr %1, align 4
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph38, label %._crit_edge39

._crit_edge39:                                    ; preds = %._crit_edge, %0
  %28 = phi i32 [ %26, %0 ], [ %44, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %2, align 4, !tbaa !5
  %.not40 = icmp eq i32 %29, 0
  br i1 %.not40, label %.preheader35, label %.lr.ph42

.lr.ph38:                                         ; preds = %0, %._crit_edge
  %storemerge36 = phi i32 [ %43, %._crit_edge ], [ 0, %0 ]
  %31 = sext i32 %storemerge36 to i64
  %32 = getelementptr inbounds i32, ptr @_ZZ5solvevE1f, i64 %31
  %33 = getelementptr inbounds i32, ptr @_ZZ5solvevE1x, i64 %31
  %34 = getelementptr inbounds i32, ptr @_ZZ5solvevE1y, i64 %31
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %39, i64 %39
  %41 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(12) %40, ptr noundef nonnull align 8 dereferenceable(12) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  %44 = load i32, ptr %1, align 4
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %.lr.ph38, label %._crit_edge39, !llvm.loop !11

.lr.ph:                                           ; preds = %.lr.ph38, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt4pairIdiEC2IRKdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(8) @_ZL3INF, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %47, i64 %49
  %51 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(12) %50, ptr noundef nonnull align 8 dereferenceable(12) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.preheader35.loopexit:                            ; preds = %152
  %.pre = load i32, ptr %1, align 4
  br label %.preheader35

.preheader35:                                     ; preds = %.preheader35.loopexit, %._crit_edge39
  %56 = phi i32 [ %.pre, %.preheader35.loopexit ], [ %28, %._crit_edge39 ]
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.preheader34, label %._crit_edge49

.lr.ph42:                                         ; preds = %._crit_edge39, %152
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull @_ZZ5solvevE3typ)
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1f, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1f, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sub nsw i32 %62, %66
  %68 = mul nsw i32 %67, 5
  %69 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1x, i64 0, i64 %60
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1x, i64 0, i64 %64
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = sub nsw i32 %70, %72
  %74 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1y, i64 0, i64 %60
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds [201 x i32], ptr @_ZZ5solvevE1y, i64 0, i64 %64
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sub nsw i32 %75, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %79 = mul nsw i32 %68, %68
  %80 = mul nsw i32 %73, %73
  %81 = add nuw nsw i32 %80, %79
  %82 = mul nsw i32 %78, %78
  %83 = add nuw nsw i32 %81, %82
  %84 = uitofp nneg i32 %83 to x86_fp80
  %sqrt = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %84)
  %85 = fptrunc x86_fp80 %sqrt to double
  store double %85, ptr %10, align 8, !tbaa !9
  %86 = load i8, ptr @_ZZ5solvevE3typ, align 1, !tbaa !14
  switch i8 %86, label %152 [
    i8 119, label %87
    i8 115, label %87
    i8 108, label %108
    i8 101, label %129
  ]

87:                                               ; preds = %.lr.ph42, %.lr.ph42
  %88 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %60, i64 %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNSt4pairIdiEC2IRdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %89 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %88, ptr noundef nonnull align 8 dereferenceable(12) %11)
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %91, i64 %93
  %95 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %94, ptr noundef nonnull align 8 dereferenceable(12) %89)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %97, i64 %99
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt4pairIdiEC2IRdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %101 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %100, ptr noundef nonnull align 8 dereferenceable(12) %12)
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %103, i64 %105
  %107 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %106, ptr noundef nonnull align 8 dereferenceable(12) %101)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %152

108:                                              ; preds = %.lr.ph42
  %109 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %60, i64 %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store double 1.000000e+00, ptr %14, align 8, !tbaa !9
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %110 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %109, ptr noundef nonnull align 8 dereferenceable(12) %13)
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %112, i64 %114
  %116 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %115, ptr noundef nonnull align 8 dereferenceable(12) %110)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %118, i64 %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  store double 1.000000e+00, ptr %16, align 8, !tbaa !9
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %122 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %121, ptr noundef nonnull align 8 dereferenceable(12) %15)
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %124, i64 %126
  %128 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %127, ptr noundef nonnull align 8 dereferenceable(12) %122)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %152

129:                                              ; preds = %.lr.ph42
  %130 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %60, i64 %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  store double 1.000000e+00, ptr %18, align 8, !tbaa !9
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %131 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %130, ptr noundef nonnull align 8 dereferenceable(12) %17)
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %133, i64 %135
  %137 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %136, ptr noundef nonnull align 8 dereferenceable(12) %131)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %139, i64 %141
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %143 = load double, ptr %10, align 8, !tbaa !9
  %144 = fmul double %143, 3.000000e+00
  store double %144, ptr %20, align 8, !tbaa !9
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %145 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %142, ptr noundef nonnull align 8 dereferenceable(12) %19)
  %146 = load i32, ptr %9, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %147, i64 %149
  %151 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %150, ptr noundef nonnull align 8 dereferenceable(12) %145)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %152

152:                                              ; preds = %129, %108, %87, %.lr.ph42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %153 = load i32, ptr %2, align 4, !tbaa !5
  %154 = add nsw i32 %153, -1
  store i32 %154, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %153, 0
  br i1 %.not, label %.preheader35.loopexit, label %.lr.ph42, !llvm.loop !15

.preheader34:                                     ; preds = %.preheader35, %._crit_edge47
  %155 = phi i32 [ %160, %._crit_edge47 ], [ %56, %.preheader35 ]
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %._crit_edge47 ], [ 0, %.preheader35 ]
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %.lr.ph46, label %._crit_edge47

._crit_edge49:                                    ; preds = %._crit_edge47, %.preheader35
  %157 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %2)
  %158 = load i32, ptr %2, align 4, !tbaa !5
  %159 = add nsw i32 %158, -1
  store i32 %159, ptr %2, align 4, !tbaa !5
  %.not3054 = icmp eq i32 %158, 0
  br i1 %.not3054, label %._crit_edge57, label %.lr.ph56

._crit_edge47:                                    ; preds = %.loopexit, %.preheader34
  %160 = phi i32 [ %155, %.preheader34 ], [ %180, %.loopexit ]
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next66, %161
  br i1 %162, label %.preheader34, label %._crit_edge49, !llvm.loop !16

.lr.ph46:                                         ; preds = %.preheader34, %.loopexit
  %163 = phi i32 [ %180, %.loopexit ], [ %155, %.preheader34 ]
  %164 = phi i32 [ %181, %.loopexit ], [ %155, %.preheader34 ]
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.loopexit ], [ 0, %.preheader34 ]
  %165 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %indvars.iv62, i64 %indvars.iv65
  %166 = getelementptr inbounds i8, ptr %165, i64 8
  %167 = load i32, ptr %166, align 8, !tbaa !18
  %168 = zext i32 %167 to i64
  %.not32 = icmp ne i64 %indvars.iv62, %168
  %169 = icmp sgt i32 %164, 0
  %or.cond = select i1 %.not32, i1 %169, i1 false
  br i1 %or.cond, label %.lr.ph44, label %..loopexit_crit_edge

..loopexit_crit_edge:                             ; preds = %.lr.ph46
  %.pre68 = sext i32 %164 to i64
  br label %.loopexit

.lr.ph44:                                         ; preds = %.lr.ph46, %.lr.ph44
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph44 ], [ 0, %.lr.ph46 ]
  %170 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %indvars.iv62, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %171 = load double, ptr %165, align 16, !tbaa !20
  %172 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %indvars.iv65, i64 %indvars.iv
  %173 = load double, ptr %172, align 16, !tbaa !20
  %174 = fadd double %171, %173
  store double %174, ptr %22, align 8, !tbaa !9
  call void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %166)
  %175 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12) %170, ptr noundef nonnull align 8 dereferenceable(12) %21)
  %176 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %170, ptr noundef nonnull align 8 dereferenceable(12) %175)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %177 = load i32, ptr %1, align 4
  %178 = sext i32 %177 to i64
  %179 = icmp slt i64 %indvars.iv.next, %178
  br i1 %179, label %.lr.ph44, label %.loopexit, !llvm.loop !21

.loopexit:                                        ; preds = %.lr.ph44, %..loopexit_crit_edge
  %.pre-phi = phi i64 [ %.pre68, %..loopexit_crit_edge ], [ %178, %.lr.ph44 ]
  %180 = phi i32 [ %163, %..loopexit_crit_edge ], [ %177, %.lr.ph44 ]
  %181 = phi i32 [ %164, %..loopexit_crit_edge ], [ %177, %.lr.ph44 ]
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %182 = icmp slt i64 %indvars.iv.next63, %.pre-phi
  br i1 %182, label %.lr.ph46, label %._crit_edge47, !llvm.loop !22

.lr.ph56:                                         ; preds = %._crit_edge49, %._crit_edge53
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  %183 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %23, ptr noundef nonnull %24)
  %184 = load i32, ptr %23, align 4, !tbaa !5
  %185 = load i32, ptr %24, align 4, !tbaa !5
  %.not3150 = icmp eq i32 %184, %185
  br i1 %.not3150, label %._crit_edge53, label %.lr.ph52

.lr.ph52:                                         ; preds = %.lr.ph56, %.lr.ph52
  %186 = phi i32 [ %193, %.lr.ph52 ], [ %184, %.lr.ph56 ]
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %186)
  %188 = load i32, ptr %23, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = load i32, ptr %24, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [201 x [201 x %"struct.std::pair"]], ptr @_ZZ5solvevE3dis, i64 0, i64 %189, i64 %191, i32 1
  %193 = load i32, ptr %192, align 8, !tbaa !18
  store i32 %193, ptr %23, align 4, !tbaa !5
  %.not31 = icmp eq i32 %193, %190
  br i1 %.not31, label %._crit_edge53, label %.lr.ph52, !llvm.loop !23

._crit_edge53:                                    ; preds = %.lr.ph52, %.lr.ph56
  %.lcssa = phi i32 [ %184, %.lr.ph56 ], [ %190, %.lr.ph52 ]
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  %195 = load i32, ptr %2, align 4, !tbaa !5
  %196 = add nsw i32 %195, -1
  store i32 %196, ptr %2, align 4, !tbaa !5
  %.not30 = icmp eq i32 %195, 0
  br i1 %.not30, label %._crit_edge57, label %.lr.ph56, !llvm.loop !24

._crit_edge57:                                    ; preds = %._crit_edge53, %._crit_edge49
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void
}

; 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 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRKdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZSt3minISt4pairIdiEERKT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRdRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt4pairIdiEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.sqrt.f80(x86_fp80) #5

attributes #0 = { 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 #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 = { 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 #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 speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTSSt4pairIdiE", !10, i64 0, !6, i64 8}
!20 = !{!19, !10, i64 0}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass