; LLVM IR from tangjz/acm-icpc :: zoj (3968)

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

@t = external dso_local global i32, align 4
@x = external dso_local global [3 x i32], align 4
@y = external dso_local global [3 x i32], align 4
@r = external dso_local global [3 x i32], align 4
@px = external dso_local global i32, align 4
@py = external dso_local global i32, align 4
@pr2 = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@ansx = external dso_local global [9 x x86_fp80], align 16
@ansy = external dso_local global [9 x x86_fp80], align 16
@ansr = external dso_local global [9 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgne(x86_fp80 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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
  %9 = alloca i32, align 4
  %10 = alloca x86_fp80, align 16
  %11 = alloca x86_fp80, align 16
  %12 = alloca x86_fp80, align 16
  %13 = alloca x86_fp80, align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca x86_fp80, align 16
  %20 = alloca x86_fp80, align 16
  %21 = alloca i32, align 4
  %22 = alloca x86_fp80, align 16
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca x86_fp80, align 16
  %26 = alloca x86_fp80, align 16
  %27 = alloca x86_fp80, align 16
  %28 = alloca x86_fp80, align 16
  %29 = alloca x86_fp80, align 16
  %30 = alloca x86_fp80, align 16
  %31 = alloca x86_fp80, align 16
  %32 = alloca x86_fp80, align 16
  %33 = alloca i8, align 1
  %34 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %36

36:                                               ; preds = %562, %88, %0
  %37 = load i32, ptr @t, align 4, !tbaa !5
  %38 = add nsw i32 %37, -1
  store i32 %38, ptr @t, align 4, !tbaa !5
  %39 = icmp ne i32 %37, 0
  br i1 %39, label %40, label %563

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

41:                                               ; preds = %71, %40
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 3
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %74

45:                                               ; preds = %41
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr @x, i64 %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr @y, i64 %50
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr @r, i64 %53
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %48, ptr noundef %51, ptr noundef %54)
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [3 x i32], ptr @x, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = shl i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !5
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [3 x i32], ptr @y, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = shl i32 %64, 1
  store i32 %65, ptr %63, align 4, !tbaa !5
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [3 x i32], ptr @r, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = shl i32 %69, 1
  store i32 %70, ptr %68, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %45
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %2, align 4, !tbaa !5
  br label %41, !llvm.loop !9

74:                                               ; preds = %44
  %75 = load i32, ptr @x, align 4, !tbaa !5
  %76 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 1), align 4, !tbaa !5
  %77 = icmp sgt i32 %75, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %74
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 1)) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([3 x i32], ptr @y, i64 0, i64 1)) #7
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @r, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1)) #7
  br label %79

79:                                               ; preds = %78, %74
  %80 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 1), align 4, !tbaa !5
  %81 = load i32, ptr @x, align 4, !tbaa !5
  %82 = sub nsw i32 %80, %81
  %83 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %84 = load i32, ptr @r, align 4, !tbaa !5
  %85 = sub nsw i32 %83, %84
  %86 = call i32 @llvm.abs.i32(i32 %85, i1 true)
  %87 = icmp slt i32 %82, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %79
  %89 = call i32 @puts(ptr noundef @.str.2)
  br label %36, !llvm.loop !11

90:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %91 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 1), align 4, !tbaa !5
  %92 = load i32, ptr @x, align 4, !tbaa !5
  %93 = sub nsw i32 %91, %92
  %94 = load i32, ptr @r, align 4, !tbaa !5
  %95 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %96 = add nsw i32 %94, %95
  %97 = sub nsw i32 %93, %96
  %98 = ashr i32 %97, 1
  store i32 %98, ptr %3, align 4, !tbaa !5
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = load i32, ptr @r, align 4, !tbaa !5
  %101 = add nsw i32 %100, %99
  store i32 %101, ptr @r, align 4, !tbaa !5
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %104 = add nsw i32 %103, %102
  store i32 %104, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %107 = add nsw i32 %106, %105
  store i32 %107, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %108 = load i32, ptr @x, align 4, !tbaa !5
  %109 = load i32, ptr @r, align 4, !tbaa !5
  %110 = add nsw i32 %108, %109
  store i32 %110, ptr @px, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %111 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 2), align 4, !tbaa !5
  %112 = load i32, ptr @px, align 4, !tbaa !5
  %113 = sub nsw i32 %111, %112
  %114 = call noundef i32 @_Z3sqrIiET_S0_(i32 noundef %113)
  %115 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @y, i64 0, i64 2), align 4, !tbaa !5
  %116 = load i32, ptr @py, align 4, !tbaa !5
  %117 = sub nsw i32 %115, %116
  %118 = call noundef i32 @_Z3sqrIiET_S0_(i32 noundef %117)
  %119 = add nsw i32 %114, %118
  %120 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %121 = call noundef i32 @_Z3sqrIiET_S0_(i32 noundef %120)
  %122 = sub nsw i32 %119, %121
  %123 = call i32 @llvm.abs.i32(i32 %122, i1 true)
  store i32 %123, ptr %4, align 4, !tbaa !5
  %124 = load i32, ptr @r, align 4, !tbaa !5
  %125 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %126 = call noundef i32 @_Z3lcmii(i32 noundef %124, i32 noundef %125)
  %127 = shl i32 %126, 1
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %132

130:                                              ; preds = %90
  %131 = load i32, ptr %4, align 4, !tbaa !5
  br label %135

132:                                              ; preds = %90
  %133 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %134 = shl i32 %133, 1
  br label %135

135:                                              ; preds = %132, %130
  %136 = phi i32 [ %131, %130 ], [ %134, %132 ]
  %137 = call noundef i32 @_Z3lcmii(i32 noundef %127, i32 noundef %136)
  store i32 %137, ptr @pr2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %138 = load i32, ptr @px, align 4, !tbaa !5
  %139 = load i32, ptr @pr2, align 4, !tbaa !5
  %140 = ashr i32 %139, 1
  %141 = load i32, ptr @r, align 4, !tbaa !5
  %142 = sdiv i32 %140, %141
  %143 = sub nsw i32 %138, %142
  store i32 %143, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %144 = load i32, ptr @px, align 4, !tbaa !5
  %145 = load i32, ptr @pr2, align 4, !tbaa !5
  %146 = ashr i32 %145, 1
  %147 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %148 = sdiv i32 %146, %147
  %149 = add nsw i32 %144, %148
  store i32 %149, ptr %6, align 4, !tbaa !5
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = sub nsw i32 %150, %151
  %153 = and i32 %152, 1
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %170

155:                                              ; preds = %135
  %156 = load i32, ptr @pr2, align 4, !tbaa !5
  %157 = shl i32 %156, 1
  store i32 %157, ptr @pr2, align 4, !tbaa !5
  %158 = load i32, ptr @px, align 4, !tbaa !5
  %159 = load i32, ptr @pr2, align 4, !tbaa !5
  %160 = ashr i32 %159, 1
  %161 = load i32, ptr @r, align 4, !tbaa !5
  %162 = sdiv i32 %160, %161
  %163 = sub nsw i32 %158, %162
  store i32 %163, ptr %5, align 4, !tbaa !5
  %164 = load i32, ptr @px, align 4, !tbaa !5
  %165 = load i32, ptr @pr2, align 4, !tbaa !5
  %166 = ashr i32 %165, 1
  %167 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 1), align 4, !tbaa !5
  %168 = sdiv i32 %166, %167
  %169 = add nsw i32 %164, %168
  store i32 %169, ptr %6, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %155, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %171 = load i32, ptr %6, align 4, !tbaa !5
  %172 = load i32, ptr %5, align 4, !tbaa !5
  %173 = sub nsw i32 %171, %172
  %174 = ashr i32 %173, 1
  store i32 %174, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !5
  %177 = add nsw i32 %175, %176
  store i32 %177, ptr %8, align 4, !tbaa !5
  store i32 0, ptr @tot, align 4, !tbaa !5
  %178 = load i32, ptr %4, align 4, !tbaa !5
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %266

180:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %181 = load i32, ptr @pr2, align 4, !tbaa !5
  %182 = ashr i32 %181, 1
  %183 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %184 = sdiv i32 %182, %183
  store i32 %184, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %185 = load i32, ptr @px, align 4, !tbaa !5
  %186 = sitofp i32 %185 to x86_fp80
  %187 = load i32, ptr %9, align 4, !tbaa !5
  %188 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 2), align 4, !tbaa !5
  %189 = load i32, ptr @px, align 4, !tbaa !5
  %190 = sub nsw i32 %188, %189
  %191 = mul nsw i32 %187, %190
  %192 = sitofp i32 %191 to x86_fp80
  %193 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %194 = sitofp i32 %193 to x86_fp80
  %195 = fdiv x86_fp80 %192, %194
  %196 = fadd x86_fp80 %186, %195
  store x86_fp80 %196, ptr %10, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %197 = load i32, ptr @py, align 4, !tbaa !5
  %198 = sitofp i32 %197 to x86_fp80
  %199 = load i32, ptr %9, align 4, !tbaa !5
  %200 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @y, i64 0, i64 2), align 4, !tbaa !5
  %201 = load i32, ptr @py, align 4, !tbaa !5
  %202 = sub nsw i32 %200, %201
  %203 = mul nsw i32 %199, %202
  %204 = sitofp i32 %203 to x86_fp80
  %205 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %206 = sitofp i32 %205 to x86_fp80
  %207 = fdiv x86_fp80 %204, %206
  %208 = fadd x86_fp80 %198, %207
  store x86_fp80 %208, ptr %11, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %209 = load x86_fp80, ptr %11, align 16, !tbaa !12
  %210 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 2), align 4, !tbaa !5
  %211 = load i32, ptr @px, align 4, !tbaa !5
  %212 = sub nsw i32 %210, %211
  %213 = sitofp i32 %212 to x86_fp80
  %214 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @y, i64 0, i64 2), align 4, !tbaa !5
  %215 = load i32, ptr @py, align 4, !tbaa !5
  %216 = sub nsw i32 %214, %215
  %217 = sitofp i32 %216 to x86_fp80
  %218 = fdiv x86_fp80 %213, %217
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = sitofp i32 %219 to x86_fp80
  %221 = load x86_fp80, ptr %10, align 16, !tbaa !12
  %222 = fsub x86_fp80 %220, %221
  %223 = fneg x86_fp80 %218
  %224 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %223, x86_fp80 %222, x86_fp80 %209)
  store x86_fp80 %224, ptr %12, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %225 = load x86_fp80, ptr %12, align 16, !tbaa !12
  %226 = load i32, ptr %9, align 4, !tbaa !5
  %227 = sitofp i32 %226 to x86_fp80
  %228 = fdiv x86_fp80 %225, %227
  %229 = load i32, ptr %7, align 4, !tbaa !5
  %230 = sitofp i32 %229 to x86_fp80
  %231 = fmul x86_fp80 %228, %230
  store x86_fp80 %231, ptr %13, align 16, !tbaa !12
  %232 = load i32, ptr %8, align 4, !tbaa !5
  %233 = sitofp i32 %232 to x86_fp80
  %234 = load i32, ptr @tot, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %235
  store x86_fp80 %233, ptr %236, align 16, !tbaa !12
  %237 = load x86_fp80, ptr %12, align 16, !tbaa !12
  %238 = load x86_fp80, ptr %13, align 16, !tbaa !12
  %239 = fsub x86_fp80 %237, %238
  %240 = load i32, ptr @tot, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %241
  store x86_fp80 %239, ptr %242, align 16, !tbaa !12
  %243 = load i32, ptr %7, align 4, !tbaa !5
  %244 = sitofp i32 %243 to x86_fp80
  %245 = load i32, ptr @tot, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr @tot, align 4, !tbaa !5
  %247 = sext i32 %245 to i64
  %248 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %247
  store x86_fp80 %244, ptr %248, align 16, !tbaa !12
  %249 = load i32, ptr %8, align 4, !tbaa !5
  %250 = sitofp i32 %249 to x86_fp80
  %251 = load i32, ptr @tot, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %252
  store x86_fp80 %250, ptr %253, align 16, !tbaa !12
  %254 = load x86_fp80, ptr %12, align 16, !tbaa !12
  %255 = load x86_fp80, ptr %13, align 16, !tbaa !12
  %256 = fsub x86_fp80 %254, %255
  %257 = load i32, ptr @tot, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %258
  store x86_fp80 %256, ptr %259, align 16, !tbaa !12
  %260 = load i32, ptr %7, align 4, !tbaa !5
  %261 = sitofp i32 %260 to x86_fp80
  %262 = load i32, ptr @tot, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr @tot, align 4, !tbaa !5
  %264 = sext i32 %262 to i64
  %265 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %264
  store x86_fp80 %261, ptr %265, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %413

266:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %267 = load i32, ptr @pr2, align 4, !tbaa !5
  %268 = load i32, ptr %4, align 4, !tbaa !5
  %269 = sdiv i32 %267, %268
  store i32 %269, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %270 = load i32, ptr %14, align 4, !tbaa !5
  %271 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @r, i64 0, i64 2), align 4, !tbaa !5
  %272 = mul nsw i32 %270, %271
  store i32 %272, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %273 = load i32, ptr @px, align 4, !tbaa !5
  %274 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @x, i64 0, i64 2), align 4, !tbaa !5
  %275 = load i32, ptr @px, align 4, !tbaa !5
  %276 = sub nsw i32 %274, %275
  %277 = load i32, ptr %14, align 4, !tbaa !5
  %278 = mul nsw i32 %276, %277
  %279 = add nsw i32 %273, %278
  store i32 %279, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %280 = load i32, ptr @py, align 4, !tbaa !5
  %281 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @y, i64 0, i64 2), align 4, !tbaa !5
  %282 = load i32, ptr @py, align 4, !tbaa !5
  %283 = sub nsw i32 %281, %282
  %284 = load i32, ptr %14, align 4, !tbaa !5
  %285 = mul nsw i32 %283, %284
  %286 = add nsw i32 %280, %285
  store i32 %286, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %287 = load i32, ptr %16, align 4, !tbaa !5
  %288 = load i32, ptr %8, align 4, !tbaa !5
  %289 = sub nsw i32 %287, %288
  %290 = call i32 @llvm.abs.i32(i32 %289, i1 true)
  store i32 %290, ptr %18, align 4, !tbaa !5
  %291 = load i32, ptr %18, align 4, !tbaa !5
  %292 = load i32, ptr %7, align 4, !tbaa !5
  %293 = load i32, ptr %15, align 4, !tbaa !5
  %294 = add nsw i32 %292, %293
  %295 = icmp sle i32 %291, %294
  br i1 %295, label %296, label %351

296:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %297 = load i32, ptr %7, align 4, !tbaa !5
  %298 = load i32, ptr %15, align 4, !tbaa !5
  %299 = add nsw i32 %297, %298
  %300 = sext i32 %299 to i64
  %301 = call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %300)
  %302 = load i32, ptr %18, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %303)
  %305 = sub nsw i64 %301, %304
  %306 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %305)
  %307 = fpext double %306 to x86_fp80
  store x86_fp80 %307, ptr %19, align 16, !tbaa !12
  %308 = load i32, ptr %8, align 4, !tbaa !5
  %309 = sitofp i32 %308 to x86_fp80
  %310 = load i32, ptr @tot, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %311
  store x86_fp80 %309, ptr %312, align 16, !tbaa !12
  %313 = load i32, ptr %17, align 4, !tbaa !5
  %314 = sitofp i32 %313 to x86_fp80
  %315 = load x86_fp80, ptr %19, align 16, !tbaa !12
  %316 = fsub x86_fp80 %314, %315
  %317 = load i32, ptr @tot, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %318
  store x86_fp80 %316, ptr %319, align 16, !tbaa !12
  %320 = load i32, ptr %7, align 4, !tbaa !5
  %321 = sitofp i32 %320 to x86_fp80
  %322 = load i32, ptr @tot, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr @tot, align 4, !tbaa !5
  %324 = sext i32 %322 to i64
  %325 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %324
  store x86_fp80 %321, ptr %325, align 16, !tbaa !12
  %326 = load i32, ptr %18, align 4, !tbaa !5
  %327 = load i32, ptr %7, align 4, !tbaa !5
  %328 = load i32, ptr %15, align 4, !tbaa !5
  %329 = add nsw i32 %327, %328
  %330 = icmp slt i32 %326, %329
  br i1 %330, label %331, label %350

331:                                              ; preds = %296
  %332 = load i32, ptr %8, align 4, !tbaa !5
  %333 = sitofp i32 %332 to x86_fp80
  %334 = load i32, ptr @tot, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %335
  store x86_fp80 %333, ptr %336, align 16, !tbaa !12
  %337 = load i32, ptr %17, align 4, !tbaa !5
  %338 = sitofp i32 %337 to x86_fp80
  %339 = load x86_fp80, ptr %19, align 16, !tbaa !12
  %340 = fadd x86_fp80 %338, %339
  %341 = load i32, ptr @tot, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %342
  store x86_fp80 %340, ptr %343, align 16, !tbaa !12
  %344 = load i32, ptr %7, align 4, !tbaa !5
  %345 = sitofp i32 %344 to x86_fp80
  %346 = load i32, ptr @tot, align 4, !tbaa !5
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr @tot, align 4, !tbaa !5
  %348 = sext i32 %346 to i64
  %349 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %348
  store x86_fp80 %345, ptr %349, align 16, !tbaa !12
  br label %350

350:                                              ; preds = %331, %296
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %351

351:                                              ; preds = %350, %266
  %352 = load i32, ptr %18, align 4, !tbaa !5
  %353 = load i32, ptr %7, align 4, !tbaa !5
  %354 = load i32, ptr %15, align 4, !tbaa !5
  %355 = sub nsw i32 %353, %354
  %356 = icmp sle i32 %352, %355
  br i1 %356, label %357, label %412

357:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %358 = load i32, ptr %7, align 4, !tbaa !5
  %359 = load i32, ptr %15, align 4, !tbaa !5
  %360 = sub nsw i32 %358, %359
  %361 = sext i32 %360 to i64
  %362 = call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %361)
  %363 = load i32, ptr %18, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %364)
  %366 = sub nsw i64 %362, %365
  %367 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %366)
  %368 = fpext double %367 to x86_fp80
  store x86_fp80 %368, ptr %20, align 16, !tbaa !12
  %369 = load i32, ptr %8, align 4, !tbaa !5
  %370 = sitofp i32 %369 to x86_fp80
  %371 = load i32, ptr @tot, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %372
  store x86_fp80 %370, ptr %373, align 16, !tbaa !12
  %374 = load i32, ptr %17, align 4, !tbaa !5
  %375 = sitofp i32 %374 to x86_fp80
  %376 = load x86_fp80, ptr %20, align 16, !tbaa !12
  %377 = fsub x86_fp80 %375, %376
  %378 = load i32, ptr @tot, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %379
  store x86_fp80 %377, ptr %380, align 16, !tbaa !12
  %381 = load i32, ptr %7, align 4, !tbaa !5
  %382 = sitofp i32 %381 to x86_fp80
  %383 = load i32, ptr @tot, align 4, !tbaa !5
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr @tot, align 4, !tbaa !5
  %385 = sext i32 %383 to i64
  %386 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %385
  store x86_fp80 %382, ptr %386, align 16, !tbaa !12
  %387 = load i32, ptr %18, align 4, !tbaa !5
  %388 = load i32, ptr %7, align 4, !tbaa !5
  %389 = load i32, ptr %15, align 4, !tbaa !5
  %390 = sub nsw i32 %388, %389
  %391 = icmp slt i32 %387, %390
  br i1 %391, label %392, label %411

392:                                              ; preds = %357
  %393 = load i32, ptr %8, align 4, !tbaa !5
  %394 = sitofp i32 %393 to x86_fp80
  %395 = load i32, ptr @tot, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %396
  store x86_fp80 %394, ptr %397, align 16, !tbaa !12
  %398 = load i32, ptr %17, align 4, !tbaa !5
  %399 = sitofp i32 %398 to x86_fp80
  %400 = load x86_fp80, ptr %20, align 16, !tbaa !12
  %401 = fadd x86_fp80 %399, %400
  %402 = load i32, ptr @tot, align 4, !tbaa !5
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %403
  store x86_fp80 %401, ptr %404, align 16, !tbaa !12
  %405 = load i32, ptr %7, align 4, !tbaa !5
  %406 = sitofp i32 %405 to x86_fp80
  %407 = load i32, ptr @tot, align 4, !tbaa !5
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr @tot, align 4, !tbaa !5
  %409 = sext i32 %407 to i64
  %410 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %409
  store x86_fp80 %406, ptr %410, align 16, !tbaa !12
  br label %411

411:                                              ; preds = %392, %357
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br label %412

412:                                              ; preds = %411, %351
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %413

413:                                              ; preds = %412, %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  store x86_fp80 0xK400D9C40000000000000, ptr %22, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %414

414:                                              ; preds = %543, %413
  %415 = load i32, ptr %23, align 4, !tbaa !5
  %416 = load i32, ptr @tot, align 4, !tbaa !5
  %417 = icmp slt i32 %415, %416
  br i1 %417, label %419, label %418

418:                                              ; preds = %414
  store i32 7, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %546

419:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %420 = load i32, ptr %23, align 4, !tbaa !5
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %421
  %423 = load x86_fp80, ptr %422, align 16, !tbaa !12
  store x86_fp80 %423, ptr %25, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %424 = load i32, ptr %23, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %425
  %427 = load x86_fp80, ptr %426, align 16, !tbaa !12
  store x86_fp80 %427, ptr %26, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %428 = load i32, ptr %23, align 4, !tbaa !5
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %429
  %431 = load x86_fp80, ptr %430, align 16, !tbaa !12
  store x86_fp80 %431, ptr %27, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %432 = load x86_fp80, ptr %25, align 16, !tbaa !12
  %433 = load i32, ptr @px, align 4, !tbaa !5
  %434 = sitofp i32 %433 to x86_fp80
  %435 = fsub x86_fp80 %432, %434
  %436 = call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %435)
  %437 = load x86_fp80, ptr %26, align 16, !tbaa !12
  %438 = load i32, ptr @py, align 4, !tbaa !5
  %439 = sitofp i32 %438 to x86_fp80
  %440 = fsub x86_fp80 %437, %439
  %441 = call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %440)
  %442 = fadd x86_fp80 %436, %441
  %443 = load x86_fp80, ptr %27, align 16, !tbaa !12
  %444 = call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %443)
  %445 = fsub x86_fp80 %442, %444
  %446 = call noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef %445)
  store x86_fp80 %446, ptr %28, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %447 = load i32, ptr @pr2, align 4, !tbaa !5
  %448 = sitofp i32 %447 to x86_fp80
  %449 = load x86_fp80, ptr %28, align 16, !tbaa !12
  %450 = fdiv x86_fp80 %448, %449
  store x86_fp80 %450, ptr %29, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %451 = load i32, ptr @px, align 4, !tbaa !5
  %452 = sitofp i32 %451 to x86_fp80
  %453 = load x86_fp80, ptr %25, align 16, !tbaa !12
  %454 = load i32, ptr @px, align 4, !tbaa !5
  %455 = sitofp i32 %454 to x86_fp80
  %456 = fsub x86_fp80 %453, %455
  %457 = load x86_fp80, ptr %29, align 16, !tbaa !12
  %458 = fneg x86_fp80 %456
  %459 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %458, x86_fp80 %457, x86_fp80 %452)
  store x86_fp80 %459, ptr %30, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %460 = load i32, ptr @py, align 4, !tbaa !5
  %461 = sitofp i32 %460 to x86_fp80
  %462 = load x86_fp80, ptr %26, align 16, !tbaa !12
  %463 = load i32, ptr @py, align 4, !tbaa !5
  %464 = sitofp i32 %463 to x86_fp80
  %465 = fsub x86_fp80 %462, %464
  %466 = load x86_fp80, ptr %29, align 16, !tbaa !12
  %467 = fneg x86_fp80 %465
  %468 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %467, x86_fp80 %466, x86_fp80 %461)
  store x86_fp80 %468, ptr %31, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %469 = load x86_fp80, ptr %27, align 16, !tbaa !12
  %470 = load x86_fp80, ptr %29, align 16, !tbaa !12
  %471 = fmul x86_fp80 %469, %470
  store x86_fp80 %471, ptr %32, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #7
  store i8 1, ptr %33, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %472

472:                                              ; preds = %518, %419
  %473 = load i32, ptr %34, align 4, !tbaa !5
  %474 = icmp slt i32 %473, 3
  br i1 %474, label %475, label %478

475:                                              ; preds = %472
  %476 = load i8, ptr %33, align 1, !tbaa !14, !range !16, !noundef !17
  %477 = trunc i8 %476 to i1
  br label %478

478:                                              ; preds = %475, %472
  %479 = phi i1 [ false, %472 ], [ %477, %475 ]
  br i1 %479, label %481, label %480

480:                                              ; preds = %478
  store i32 10, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %521

481:                                              ; preds = %478
  %482 = load x86_fp80, ptr %30, align 16, !tbaa !12
  %483 = load i32, ptr %34, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [3 x i32], ptr @x, i64 0, i64 %484
  %486 = load i32, ptr %485, align 4, !tbaa !5
  %487 = sitofp i32 %486 to x86_fp80
  %488 = fsub x86_fp80 %482, %487
  %489 = call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %488)
  %490 = load x86_fp80, ptr %31, align 16, !tbaa !12
  %491 = load i32, ptr %34, align 4, !tbaa !5
  %492 = sext i32 %491 to i64
  %493 = getelementptr inbounds [3 x i32], ptr @y, i64 0, i64 %492
  %494 = load i32, ptr %493, align 4, !tbaa !5
  %495 = sitofp i32 %494 to x86_fp80
  %496 = fsub x86_fp80 %490, %495
  %497 = call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %496)
  %498 = fadd x86_fp80 %489, %497
  %499 = load x86_fp80, ptr %32, align 16, !tbaa !12
  %500 = load i32, ptr %34, align 4, !tbaa !5
  %501 = sext i32 %500 to i64
  %502 = getelementptr inbounds [3 x i32], ptr @r, i64 0, i64 %501
  %503 = load i32, ptr %502, align 4, !tbaa !5
  %504 = sitofp i32 %503 to x86_fp80
  %505 = fsub x86_fp80 %499, %504
  %506 = call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %505)
  %507 = fsub x86_fp80 %498, %506
  %508 = call noundef i32 @_Z3sgne(x86_fp80 noundef %507)
  %509 = icmp ne i32 %508, 0
  %510 = xor i1 %509, true
  %511 = zext i1 %510 to i32
  %512 = load i8, ptr %33, align 1, !tbaa !14, !range !16, !noundef !17
  %513 = trunc i8 %512 to i1
  %514 = zext i1 %513 to i32
  %515 = and i32 %514, %511
  %516 = icmp ne i32 %515, 0
  %517 = zext i1 %516 to i8
  store i8 %517, ptr %33, align 1, !tbaa !14
  br label %518

518:                                              ; preds = %481
  %519 = load i32, ptr %34, align 4, !tbaa !5
  %520 = add nsw i32 %519, 1
  store i32 %520, ptr %34, align 4, !tbaa !5
  br label %472, !llvm.loop !18

521:                                              ; preds = %480
  %522 = load i8, ptr %33, align 1, !tbaa !14, !range !16, !noundef !17
  %523 = trunc i8 %522 to i1
  br i1 %523, label %524, label %542

524:                                              ; preds = %521
  %525 = load x86_fp80, ptr %32, align 16, !tbaa !12
  %526 = load x86_fp80, ptr %22, align 16, !tbaa !12
  %527 = fsub x86_fp80 %525, %526
  %528 = call noundef i32 @_Z3sgne(x86_fp80 noundef %527)
  %529 = icmp slt i32 %528, 0
  br i1 %529, label %530, label %532

530:                                              ; preds = %524
  %531 = load x86_fp80, ptr %32, align 16, !tbaa !12
  store x86_fp80 %531, ptr %22, align 16, !tbaa !12
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %532

532:                                              ; preds = %530, %524
  %533 = load x86_fp80, ptr %32, align 16, !tbaa !12
  %534 = load x86_fp80, ptr %22, align 16, !tbaa !12
  %535 = fsub x86_fp80 %533, %534
  %536 = call noundef i32 @_Z3sgne(x86_fp80 noundef %535)
  %537 = icmp ne i32 %536, 0
  br i1 %537, label %541, label %538

538:                                              ; preds = %532
  %539 = load i32, ptr %21, align 4, !tbaa !5
  %540 = add nsw i32 %539, 1
  store i32 %540, ptr %21, align 4, !tbaa !5
  br label %541

541:                                              ; preds = %538, %532
  br label %542

542:                                              ; preds = %541, %521
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %543

543:                                              ; preds = %542
  %544 = load i32, ptr %23, align 4, !tbaa !5
  %545 = add nsw i32 %544, 1
  store i32 %545, ptr %23, align 4, !tbaa !5
  br label %414, !llvm.loop !19

546:                                              ; preds = %418
  %547 = load x86_fp80, ptr %22, align 16, !tbaa !12
  %548 = load i32, ptr %3, align 4, !tbaa !5
  %549 = sitofp i32 %548 to x86_fp80
  %550 = fsub x86_fp80 %547, %549
  %551 = fmul x86_fp80 %550, 0xK3FFE8000000000000000
  store x86_fp80 %551, ptr %22, align 16, !tbaa !12
  %552 = load i32, ptr %21, align 4, !tbaa !5
  %553 = icmp ne i32 %552, 0
  br i1 %553, label %554, label %560

554:                                              ; preds = %546
  %555 = load i32, ptr %21, align 4, !tbaa !5
  %556 = shl i32 %555, 1
  %557 = load x86_fp80, ptr %22, align 16, !tbaa !12
  %558 = fptrunc x86_fp80 %557 to double
  %559 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %556, double noundef %558)
  br label %562

560:                                              ; preds = %546
  %561 = call i32 @puts(ptr noundef @.str.2)
  br label %562

562:                                              ; preds = %560, %554
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %36, !llvm.loop !11

563:                                              ; preds = %36
  ret i32 0
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

declare i32 @puts(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sqrIiET_S0_(i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z3lcmii(i32 noundef, i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3sqrIxET_S0_(i64 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef) #4

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

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !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"

@t = external dso_local global i32, align 4
@x = external dso_local global [3 x i32], align 4
@y = external dso_local global [3 x i32], align 4
@r = external dso_local global [3 x i32], align 4
@px = external dso_local local_unnamed_addr global i32, align 4
@py = external dso_local local_unnamed_addr global i32, align 4
@pr2 = external dso_local local_unnamed_addr global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@ansx = external dso_local local_unnamed_addr global [9 x x86_fp80], align 16
@ansy = external dso_local local_unnamed_addr global [9 x x86_fp80], align 16
@ansr = external dso_local local_unnamed_addr global [9 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgne(x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %2 = load i32, ptr @t, align 4, !tbaa !5
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @t, align 4, !tbaa !5
  %.not155 = icmp eq i32 %2, 0
  br i1 %.not155, label %._crit_edge156, label %.preheader

.preheader:                                       ; preds = %0, %.backedge
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x, ptr noundef nonnull @y, ptr noundef nonnull @r)
  %5 = load i32, ptr @x, align 4, !tbaa !5
  %6 = shl i32 %5, 1
  store i32 %6, ptr @x, align 4, !tbaa !5
  %7 = load i32, ptr @y, align 4, !tbaa !5
  %8 = shl i32 %7, 1
  store i32 %8, ptr @y, align 4, !tbaa !5
  %9 = load i32, ptr @r, align 4, !tbaa !5
  %10 = shl i32 %9, 1
  store i32 %10, ptr @r, align 4, !tbaa !5
  %11 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @x, i64 4), ptr noundef nonnull getelementptr inbounds (i8, ptr @y, i64 4), ptr noundef nonnull getelementptr inbounds (i8, ptr @r, i64 4))
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 4), align 4, !tbaa !5
  %13 = shl i32 %12, 1
  store i32 %13, ptr getelementptr inbounds (i8, ptr @x, i64 4), align 4, !tbaa !5
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 4), align 4, !tbaa !5
  %15 = shl i32 %14, 1
  store i32 %15, ptr getelementptr inbounds (i8, ptr @y, i64 4), align 4, !tbaa !5
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 4), align 4, !tbaa !5
  %17 = shl i32 %16, 1
  store i32 %17, ptr getelementptr inbounds (i8, ptr @r, i64 4), align 4, !tbaa !5
  %18 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @x, i64 8), ptr noundef nonnull getelementptr inbounds (i8, ptr @y, i64 8), ptr noundef nonnull getelementptr inbounds (i8, ptr @r, i64 8))
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 4, !tbaa !5
  %20 = shl i32 %19, 1
  store i32 %20, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 4, !tbaa !5
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 8), align 4, !tbaa !5
  %22 = shl i32 %21, 1
  store i32 %22, ptr getelementptr inbounds (i8, ptr @y, i64 8), align 4, !tbaa !5
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4, !tbaa !5
  %24 = shl i32 %23, 1
  store i32 %24, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4, !tbaa !5
  %25 = load i32, ptr @x, align 4, !tbaa !5
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 4), align 4, !tbaa !5
  %27 = icmp sgt i32 %25, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %.preheader
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @x, i64 4)) #6
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @y, i64 4)) #6
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) @r, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @r, i64 4)) #6
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 4), align 4, !tbaa !5
  %.pre162 = load i32, ptr @x, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %28, %.preheader
  %30 = phi i32 [ %.pre162, %28 ], [ %25, %.preheader ]
  %31 = phi i32 [ %.pre, %28 ], [ %26, %.preheader ]
  %32 = sub nsw i32 %31, %30
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 4), align 4, !tbaa !5
  %34 = load i32, ptr @r, align 4, !tbaa !5
  %35 = sub nsw i32 %33, %34
  %36 = tail call i32 @llvm.abs.i32(i32 %35, i1 true)
  %37 = icmp slt i32 %32, %36
  br i1 %37, label %38, label %42

38:                                               ; preds = %29
  %39 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.backedge

.backedge:                                        ; preds = %261, %._crit_edge.thread, %38
  %40 = load i32, ptr @t, align 4, !tbaa !5
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %._crit_edge156, label %.preheader, !llvm.loop !9

42:                                               ; preds = %29
  %43 = add i32 %33, %34
  %44 = sub i32 %32, %43
  %45 = ashr i32 %44, 1
  %46 = add nsw i32 %45, %34
  store i32 %46, ptr @r, align 4, !tbaa !5
  %47 = add nsw i32 %45, %33
  store i32 %47, ptr getelementptr inbounds (i8, ptr @r, i64 4), align 4, !tbaa !5
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4, !tbaa !5
  %49 = add nsw i32 %48, %45
  store i32 %49, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4, !tbaa !5
  %50 = add nsw i32 %46, %30
  store i32 %50, ptr @px, align 4, !tbaa !5
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 4, !tbaa !5
  %52 = sub nsw i32 %51, %50
  %53 = tail call noundef i32 @_Z3sqrIiET_S0_(i32 noundef %52)
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 8), align 4, !tbaa !5
  %55 = load i32, ptr @py, align 4, !tbaa !5
  %56 = sub nsw i32 %54, %55
  %57 = tail call noundef i32 @_Z3sqrIiET_S0_(i32 noundef %56)
  %58 = add nsw i32 %57, %53
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4, !tbaa !5
  %60 = tail call noundef i32 @_Z3sqrIiET_S0_(i32 noundef %59)
  %61 = sub nsw i32 %58, %60
  %62 = tail call i32 @llvm.abs.i32(i32 %61, i1 true)
  %63 = load i32, ptr @r, align 4, !tbaa !5
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 4), align 4, !tbaa !5
  %65 = tail call noundef i32 @_Z3lcmii(i32 noundef %63, i32 noundef %64)
  %66 = shl i32 %65, 1
  %.not137 = icmp eq i32 %58, %60
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4
  %68 = shl i32 %67, 1
  %69 = select i1 %.not137, i32 %68, i32 %62
  %70 = tail call noundef i32 @_Z3lcmii(i32 noundef %66, i32 noundef %69)
  store i32 %70, ptr @pr2, align 4, !tbaa !5
  %71 = load i32, ptr @px, align 4, !tbaa !5
  %72 = ashr i32 %70, 1
  %73 = load i32, ptr @r, align 4, !tbaa !5
  %74 = sdiv i32 %72, %73
  %75 = sub nsw i32 %71, %74
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 4), align 4, !tbaa !5
  %77 = sdiv i32 %72, %76
  %78 = add nsw i32 %77, %71
  %79 = sub nsw i32 %78, %75
  %80 = and i32 %79, 1
  %.not138 = icmp eq i32 %80, 0
  br i1 %.not138, label %88, label %81

81:                                               ; preds = %42
  %82 = shl i32 %70, 1
  store i32 %82, ptr @pr2, align 4, !tbaa !5
  %83 = ashr exact i32 %82, 1
  %84 = sdiv i32 %83, %73
  %85 = sub nsw i32 %71, %84
  %86 = sdiv i32 %83, %76
  %87 = add nsw i32 %86, %71
  %.pre163 = sub nsw i32 %87, %85
  br label %88

88:                                               ; preds = %81, %42
  %.pre-phi = phi i32 [ %.pre163, %81 ], [ %79, %42 ]
  %89 = phi i32 [ %82, %81 ], [ %70, %42 ]
  %.0124 = phi i32 [ %85, %81 ], [ %75, %42 ]
  %90 = ashr i32 %.pre-phi, 1
  %91 = add nsw i32 %90, %.0124
  store i32 0, ptr @tot, align 4, !tbaa !5
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 4, !tbaa !5
  br i1 %.not137, label %.thread, label %123

.thread:                                          ; preds = %88
  %93 = ashr i32 %89, 1
  %94 = sdiv i32 %93, %92
  %95 = sitofp i32 %71 to x86_fp80
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 4, !tbaa !5
  %97 = sub nsw i32 %96, %71
  %98 = mul nsw i32 %97, %94
  %99 = sitofp i32 %98 to x86_fp80
  %100 = sitofp i32 %92 to x86_fp80
  %101 = fdiv x86_fp80 %99, %100
  %102 = fadd x86_fp80 %101, %95
  %103 = load i32, ptr @py, align 4, !tbaa !5
  %104 = sitofp i32 %103 to x86_fp80
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 8), align 4, !tbaa !5
  %106 = sub nsw i32 %105, %103
  %107 = mul nsw i32 %106, %94
  %108 = sitofp i32 %107 to x86_fp80
  %109 = fdiv x86_fp80 %108, %100
  %110 = fadd x86_fp80 %109, %104
  %111 = sitofp i32 %97 to x86_fp80
  %112 = sitofp i32 %106 to x86_fp80
  %113 = sitofp i32 %91 to x86_fp80
  %114 = fsub x86_fp80 %113, %102
  %115 = fneg x86_fp80 %111
  %116 = fdiv x86_fp80 %115, %112
  %117 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %116, x86_fp80 %114, x86_fp80 %110)
  %118 = sitofp i32 %94 to x86_fp80
  %119 = fdiv x86_fp80 %117, %118
  %120 = sitofp i32 %90 to x86_fp80
  %121 = fmul x86_fp80 %119, %120
  store x86_fp80 %113, ptr @ansx, align 16, !tbaa !11
  %122 = fsub x86_fp80 %117, %121
  store x86_fp80 %122, ptr @ansy, align 16, !tbaa !11
  store x86_fp80 %120, ptr @ansr, align 16, !tbaa !11
  store x86_fp80 %113, ptr getelementptr inbounds (i8, ptr @ansx, i64 16), align 16, !tbaa !11
  store x86_fp80 %122, ptr getelementptr inbounds (i8, ptr @ansy, i64 16), align 16, !tbaa !11
  store i32 2, ptr @tot, align 4, !tbaa !5
  store x86_fp80 %120, ptr getelementptr inbounds (i8, ptr @ansr, i64 16), align 16, !tbaa !11
  br label %.lr.ph.preheader

123:                                              ; preds = %88
  %124 = sdiv i32 %89, %62
  %125 = mul nsw i32 %92, %124
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 4, !tbaa !5
  %127 = sub nsw i32 %126, %71
  %128 = mul nsw i32 %127, %124
  %129 = load i32, ptr @py, align 4, !tbaa !5
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 8), align 4, !tbaa !5
  %131 = sub nsw i32 %130, %129
  %132 = mul nsw i32 %131, %124
  %133 = add nsw i32 %132, %129
  %134 = sub i32 %71, %91
  %135 = add i32 %134, %128
  %136 = tail call i32 @llvm.abs.i32(i32 %135, i1 true)
  %137 = add nsw i32 %125, %90
  %.not139 = icmp sgt i32 %136, %137
  br i1 %.not139, label %164, label %138

138:                                              ; preds = %123
  %139 = zext nneg i32 %137 to i64
  %140 = tail call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %139)
  %141 = zext nneg i32 %136 to i64
  %142 = tail call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %141)
  %143 = sub nsw i64 %140, %142
  %144 = tail call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %143)
  %145 = fpext double %144 to x86_fp80
  %146 = sitofp i32 %91 to x86_fp80
  %147 = load i32, ptr @tot, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %148
  store x86_fp80 %146, ptr %149, align 16, !tbaa !11
  %150 = sitofp i32 %133 to x86_fp80
  %151 = fsub x86_fp80 %150, %145
  %152 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %148
  store x86_fp80 %151, ptr %152, align 16, !tbaa !11
  %153 = sitofp i32 %90 to x86_fp80
  %154 = add nsw i32 %147, 1
  store i32 %154, ptr @tot, align 4, !tbaa !5
  %155 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %148
  store x86_fp80 %153, ptr %155, align 16, !tbaa !11
  %156 = icmp ult i32 %136, %137
  br i1 %156, label %157, label %164

157:                                              ; preds = %138
  %158 = sext i32 %154 to i64
  %159 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %158
  store x86_fp80 %146, ptr %159, align 16, !tbaa !11
  %160 = fadd x86_fp80 %150, %145
  %161 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %158
  store x86_fp80 %160, ptr %161, align 16, !tbaa !11
  %162 = add nsw i32 %147, 2
  store i32 %162, ptr @tot, align 4, !tbaa !5
  %163 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %158
  store x86_fp80 %153, ptr %163, align 16, !tbaa !11
  br label %164

164:                                              ; preds = %138, %157, %123
  %165 = phi i32 [ %154, %138 ], [ %162, %157 ], [ 0, %123 ]
  %166 = sub nsw i32 %90, %125
  %.not140 = icmp sgt i32 %136, %166
  br i1 %.not140, label %193, label %167

167:                                              ; preds = %164
  %168 = zext nneg i32 %166 to i64
  %169 = tail call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %168)
  %170 = zext nneg i32 %136 to i64
  %171 = tail call noundef i64 @_Z3sqrIxET_S0_(i64 noundef %170)
  %172 = sub nsw i64 %169, %171
  %173 = tail call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %172)
  %174 = fpext double %173 to x86_fp80
  %175 = sitofp i32 %91 to x86_fp80
  %176 = load i32, ptr @tot, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %177
  store x86_fp80 %175, ptr %178, align 16, !tbaa !11
  %179 = sitofp i32 %133 to x86_fp80
  %180 = fsub x86_fp80 %179, %174
  %181 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %177
  store x86_fp80 %180, ptr %181, align 16, !tbaa !11
  %182 = sitofp i32 %90 to x86_fp80
  %183 = add nsw i32 %176, 1
  store i32 %183, ptr @tot, align 4, !tbaa !5
  %184 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %177
  store x86_fp80 %182, ptr %184, align 16, !tbaa !11
  %185 = icmp ult i32 %136, %166
  br i1 %185, label %186, label %193

186:                                              ; preds = %167
  %187 = sext i32 %183 to i64
  %188 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %187
  store x86_fp80 %175, ptr %188, align 16, !tbaa !11
  %189 = fadd x86_fp80 %179, %174
  %190 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %187
  store x86_fp80 %189, ptr %190, align 16, !tbaa !11
  %191 = add nsw i32 %176, 2
  store i32 %191, ptr @tot, align 4, !tbaa !5
  %192 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %187
  store x86_fp80 %182, ptr %192, align 16, !tbaa !11
  br label %193

193:                                              ; preds = %164, %186, %167
  %194 = phi i32 [ %165, %164 ], [ %191, %186 ], [ %183, %167 ]
  %195 = icmp sgt i32 %194, 0
  br i1 %195, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %.thread, %193
  br label %.lr.ph

._crit_edge:                                      ; preds = %257
  %.not141 = icmp eq i32 %.2, 0
  br i1 %.not141, label %._crit_edge.thread, label %261

.lr.ph:                                           ; preds = %.lr.ph.preheader, %257
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %257 ], [ 0, %.lr.ph.preheader ]
  %.0126153 = phi i32 [ %.2, %257 ], [ 0, %.lr.ph.preheader ]
  %.0127152 = phi x86_fp80 [ %.2129, %257 ], [ 0xK400D9C40000000000000, %.lr.ph.preheader ]
  %196 = getelementptr inbounds [9 x x86_fp80], ptr @ansx, i64 0, i64 %indvars.iv159
  %197 = load x86_fp80, ptr %196, align 16, !tbaa !11
  %198 = getelementptr inbounds [9 x x86_fp80], ptr @ansy, i64 0, i64 %indvars.iv159
  %199 = load x86_fp80, ptr %198, align 16, !tbaa !11
  %200 = getelementptr inbounds [9 x x86_fp80], ptr @ansr, i64 0, i64 %indvars.iv159
  %201 = load x86_fp80, ptr %200, align 16, !tbaa !11
  %202 = load i32, ptr @px, align 4, !tbaa !5
  %203 = sitofp i32 %202 to x86_fp80
  %204 = fsub x86_fp80 %197, %203
  %205 = tail call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %204)
  %206 = load i32, ptr @py, align 4, !tbaa !5
  %207 = sitofp i32 %206 to x86_fp80
  %208 = fsub x86_fp80 %199, %207
  %209 = tail call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %208)
  %210 = fadd x86_fp80 %205, %209
  %211 = tail call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %201)
  %212 = fsub x86_fp80 %210, %211
  %213 = tail call noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef %212)
  %214 = load i32, ptr @pr2, align 4, !tbaa !5
  %215 = sitofp i32 %214 to x86_fp80
  %216 = fdiv x86_fp80 %215, %213
  %217 = load i32, ptr @px, align 4, !tbaa !5
  %218 = sitofp i32 %217 to x86_fp80
  %219 = fsub x86_fp80 %197, %218
  %220 = fneg x86_fp80 %219
  %221 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %220, x86_fp80 %216, x86_fp80 %218)
  %222 = load i32, ptr @py, align 4, !tbaa !5
  %223 = sitofp i32 %222 to x86_fp80
  %224 = fsub x86_fp80 %199, %223
  %225 = fneg x86_fp80 %224
  %226 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %225, x86_fp80 %216, x86_fp80 %223)
  %227 = fmul x86_fp80 %201, %216
  br label %229

228:                                              ; preds = %229
  br i1 %.not143, label %250, label %257

229:                                              ; preds = %.lr.ph, %229
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %229 ]
  %230 = getelementptr inbounds [3 x i32], ptr @x, i64 0, i64 %indvars.iv
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = sitofp i32 %231 to x86_fp80
  %233 = fsub x86_fp80 %221, %232
  %234 = tail call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %233)
  %235 = getelementptr inbounds [3 x i32], ptr @y, i64 0, i64 %indvars.iv
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = sitofp i32 %236 to x86_fp80
  %238 = fsub x86_fp80 %226, %237
  %239 = tail call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %238)
  %240 = fadd x86_fp80 %234, %239
  %241 = getelementptr inbounds [3 x i32], ptr @r, i64 0, i64 %indvars.iv
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = sitofp i32 %242 to x86_fp80
  %244 = fsub x86_fp80 %227, %243
  %245 = tail call noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef %244)
  %246 = fsub x86_fp80 %240, %245
  %247 = tail call noundef i32 @_Z3sgne(x86_fp80 noundef %246)
  %.not143 = icmp eq i32 %247, 0
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %248 = icmp ult i64 %indvars.iv, 2
  %249 = and i1 %.not143, %248
  br i1 %249, label %229, label %228, !llvm.loop !13

250:                                              ; preds = %228
  %251 = fsub x86_fp80 %227, %.0127152
  %252 = tail call noundef i32 @_Z3sgne(x86_fp80 noundef %251)
  %253 = icmp slt i32 %252, 0
  %spec.select = select i1 %253, x86_fp80 %227, x86_fp80 %.0127152
  %spec.select144 = select i1 %253, i32 0, i32 %.0126153
  %254 = fsub x86_fp80 %227, %spec.select
  %255 = tail call noundef i32 @_Z3sgne(x86_fp80 noundef %254)
  %.not142 = icmp eq i32 %255, 0
  %256 = zext i1 %.not142 to i32
  %spec.select145 = add nsw i32 %spec.select144, %256
  br label %257

257:                                              ; preds = %250, %228
  %.2129 = phi x86_fp80 [ %.0127152, %228 ], [ %spec.select, %250 ]
  %.2 = phi i32 [ %.0126153, %228 ], [ %spec.select145, %250 ]
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %258 = load i32, ptr @tot, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = icmp slt i64 %indvars.iv.next160, %259
  br i1 %260, label %.lr.ph, label %._crit_edge, !llvm.loop !14

261:                                              ; preds = %._crit_edge
  %262 = sitofp i32 %45 to x86_fp80
  %263 = fsub x86_fp80 %.2129, %262
  %264 = fmul x86_fp80 %263, 0xK3FFE8000000000000000
  %265 = shl i32 %.2, 1
  %266 = fptrunc x86_fp80 %264 to double
  %267 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %265, double noundef %266)
  br label %.backedge

._crit_edge.thread:                               ; preds = %193, %._crit_edge
  %268 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.backedge

._crit_edge156:                                   ; preds = %.backedge, %0
  ret i32 0
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sqrIiET_S0_(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z3lcmii(i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3sqrIxET_S0_(i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z3sqrIeET_S0_(x86_fp80 noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { 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 #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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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