; LLVM IR from eyangch/competitive-programming :: Codeforces/1543 (c)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::_Setprecision" = type { i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%struct.dat = type { x86_fp80, x86_fp80, x86_fp80, x86_fp80, x86_fp80 }

@T = external dso_local global i64, align 8
@c = external dso_local global x86_fp80, align 16
@m = external dso_local global x86_fp80, align 16
@p = external dso_local global x86_fp80, align 16
@v = external dso_local global x86_fp80, align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::_Setprecision", align 4
  %3 = alloca %"class.std::queue", align 8
  %4 = alloca %struct.dat, align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca x86_fp80, align 16
  %8 = alloca x86_fp80, align 16
  %9 = alloca x86_fp80, align 16
  %10 = alloca x86_fp80, align 16
  %11 = alloca x86_fp80, align 16
  %12 = alloca x86_fp80, align 16
  %13 = alloca %struct.dat, align 16
  %14 = alloca %struct.dat, align 16
  store i32 0, ptr %1, align 4
  %15 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %17
  %19 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  %20 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %23 = call i32 @_ZSt12setprecisioni(i32 noundef 15)
  %24 = getelementptr inbounds %"struct.std::_Setprecision", ptr %2, i32 0, i32 0
  store i32 %23, ptr %24, align 4
  %25 = getelementptr inbounds %"struct.std::_Setprecision", ptr %2, i32 0, i32 0
  %26 = load i32, ptr %25, align 4
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 %26)
  br label %28

28:                                               ; preds = %268, %0
  %29 = load i64, ptr @T, align 8, !tbaa !8
  %30 = add nsw i64 %29, -1
  store i64 %30, ptr @T, align 8, !tbaa !8
  %31 = icmp ne i64 %29, 0
  br i1 %31, label %32, label %271

32:                                               ; preds = %28
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 16 dereferenceable(16) @c)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) @m)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 16 dereferenceable(16) @p)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 16 dereferenceable(16) @v)
  call void @llvm.lifetime.start.p0(i64 80, ptr %3) #8
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #8
  %37 = getelementptr inbounds %struct.dat, ptr %4, i32 0, i32 0
  %38 = load x86_fp80, ptr @c, align 16, !tbaa !11
  store x86_fp80 %38, ptr %37, align 16, !tbaa !13
  %39 = getelementptr inbounds %struct.dat, ptr %4, i32 0, i32 1
  %40 = load x86_fp80, ptr @m, align 16, !tbaa !11
  store x86_fp80 %40, ptr %39, align 16, !tbaa !15
  %41 = getelementptr inbounds %struct.dat, ptr %4, i32 0, i32 2
  %42 = load x86_fp80, ptr @p, align 16, !tbaa !11
  store x86_fp80 %42, ptr %41, align 16, !tbaa !16
  %43 = getelementptr inbounds %struct.dat, ptr %4, i32 0, i32 3
  store x86_fp80 0xK3FFF8000000000000000, ptr %43, align 16, !tbaa !17
  %44 = getelementptr inbounds %struct.dat, ptr %4, i32 0, i32 4
  store x86_fp80 0xK3FFF8000000000000000, ptr %44, align 16, !tbaa !18
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 16 dereferenceable(80) %4)
          to label %45 unwind label %116

45:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  store x86_fp80 0xK00000000000000000000, ptr %7, align 16, !tbaa !11
  br label %46

46:                                               ; preds = %257, %45
  %47 = invoke noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %48 unwind label %120

48:                                               ; preds = %46
  %49 = xor i1 %47, true
  br i1 %49, label %50, label %263

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %51 = invoke noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %52 unwind label %124

52:                                               ; preds = %50
  %53 = getelementptr inbounds %struct.dat, ptr %51, i32 0, i32 0
  %54 = load x86_fp80, ptr %53, align 16, !tbaa !13
  store x86_fp80 %54, ptr %8, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %55 = invoke noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %56 unwind label %128

56:                                               ; preds = %52
  %57 = getelementptr inbounds %struct.dat, ptr %55, i32 0, i32 1
  %58 = load x86_fp80, ptr %57, align 16, !tbaa !15
  store x86_fp80 %58, ptr %9, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %59 = invoke noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %60 unwind label %132

60:                                               ; preds = %56
  %61 = getelementptr inbounds %struct.dat, ptr %59, i32 0, i32 2
  %62 = load x86_fp80, ptr %61, align 16, !tbaa !16
  store x86_fp80 %62, ptr %10, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %63 = invoke noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %64 unwind label %136

64:                                               ; preds = %60
  %65 = getelementptr inbounds %struct.dat, ptr %63, i32 0, i32 3
  %66 = load x86_fp80, ptr %65, align 16, !tbaa !17
  store x86_fp80 %66, ptr %11, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %67 = invoke noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %68 unwind label %140

68:                                               ; preds = %64
  %69 = getelementptr inbounds %struct.dat, ptr %67, i32 0, i32 4
  %70 = load x86_fp80, ptr %69, align 16, !tbaa !18
  store x86_fp80 %70, ptr %12, align 16, !tbaa !11
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %71 unwind label %140

71:                                               ; preds = %68
  %72 = load x86_fp80, ptr %11, align 16, !tbaa !11
  %73 = load x86_fp80, ptr %12, align 16, !tbaa !11
  %74 = fmul x86_fp80 %72, %73
  %75 = load x86_fp80, ptr %10, align 16, !tbaa !11
  %76 = load x86_fp80, ptr %7, align 16, !tbaa !11
  %77 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %74, x86_fp80 %75, x86_fp80 %76)
  store x86_fp80 %77, ptr %7, align 16, !tbaa !11
  %78 = load x86_fp80, ptr %8, align 16, !tbaa !11
  %79 = fcmp ogt x86_fp80 %78, 0xK3FE7D6BF94D5E57A4000
  br i1 %79, label %80, label %181

80:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #8
  %81 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 0
  %82 = load x86_fp80, ptr %8, align 16, !tbaa !11
  store x86_fp80 %82, ptr %81, align 16, !tbaa !13
  %83 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 1
  %84 = load x86_fp80, ptr %9, align 16, !tbaa !11
  store x86_fp80 %84, ptr %83, align 16, !tbaa !15
  %85 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 2
  %86 = load x86_fp80, ptr %10, align 16, !tbaa !11
  store x86_fp80 %86, ptr %85, align 16, !tbaa !16
  %87 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 3
  %88 = load x86_fp80, ptr %11, align 16, !tbaa !11
  %89 = fadd x86_fp80 %88, 0xK3FFF8000000000000000
  store x86_fp80 %89, ptr %87, align 16, !tbaa !17
  %90 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 4
  %91 = load x86_fp80, ptr %12, align 16, !tbaa !11
  %92 = load x86_fp80, ptr %8, align 16, !tbaa !11
  %93 = fmul x86_fp80 %91, %92
  store x86_fp80 %93, ptr %90, align 16, !tbaa !18
  %94 = load x86_fp80, ptr %8, align 16, !tbaa !11
  %95 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %96 = fcmp ogt x86_fp80 %94, %95
  br i1 %96, label %97, label %150

97:                                               ; preds = %80
  %98 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %99 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 0
  %100 = load x86_fp80, ptr %99, align 16, !tbaa !13
  %101 = fsub x86_fp80 %100, %98
  store x86_fp80 %101, ptr %99, align 16, !tbaa !13
  %102 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 1
  %103 = load x86_fp80, ptr %102, align 16, !tbaa !15
  %104 = fcmp ogt x86_fp80 %103, 0xK3FE7D6BF94D5E57A4000
  br i1 %104, label %105, label %144

105:                                              ; preds = %97
  %106 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %107 = fdiv x86_fp80 %106, 0xK40008000000000000000
  %108 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 1
  %109 = load x86_fp80, ptr %108, align 16, !tbaa !15
  %110 = fadd x86_fp80 %109, %107
  store x86_fp80 %110, ptr %108, align 16, !tbaa !15
  %111 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %112 = fdiv x86_fp80 %111, 0xK40008000000000000000
  %113 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 2
  %114 = load x86_fp80, ptr %113, align 16, !tbaa !16
  %115 = fadd x86_fp80 %114, %112
  store x86_fp80 %115, ptr %113, align 16, !tbaa !16
  br label %149

116:                                              ; preds = %32
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #8
  br label %270

120:                                              ; preds = %266, %263, %46
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  br label %269

124:                                              ; preds = %50
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  br label %262

128:                                              ; preds = %52
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %5, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %6, align 4
  br label %261

132:                                              ; preds = %56
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %5, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %6, align 4
  br label %260

136:                                              ; preds = %60
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %5, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %6, align 4
  br label %259

140:                                              ; preds = %68, %64
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %5, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %6, align 4
  br label %258

144:                                              ; preds = %97
  %145 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %146 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 2
  %147 = load x86_fp80, ptr %146, align 16, !tbaa !16
  %148 = fadd x86_fp80 %147, %145
  store x86_fp80 %148, ptr %146, align 16, !tbaa !16
  br label %149

149:                                              ; preds = %144, %105
  br label %175

150:                                              ; preds = %80
  %151 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 1
  %152 = load x86_fp80, ptr %151, align 16, !tbaa !15
  %153 = fcmp ogt x86_fp80 %152, 0xK3FE7D6BF94D5E57A4000
  br i1 %153, label %154, label %167

154:                                              ; preds = %150
  %155 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 0
  %156 = load x86_fp80, ptr %155, align 16, !tbaa !13
  %157 = fdiv x86_fp80 %156, 0xK40008000000000000000
  %158 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 1
  %159 = load x86_fp80, ptr %158, align 16, !tbaa !15
  %160 = fadd x86_fp80 %159, %157
  store x86_fp80 %160, ptr %158, align 16, !tbaa !15
  %161 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 0
  %162 = load x86_fp80, ptr %161, align 16, !tbaa !13
  %163 = fdiv x86_fp80 %162, 0xK40008000000000000000
  %164 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 2
  %165 = load x86_fp80, ptr %164, align 16, !tbaa !16
  %166 = fadd x86_fp80 %165, %163
  store x86_fp80 %166, ptr %164, align 16, !tbaa !16
  br label %173

167:                                              ; preds = %150
  %168 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 0
  %169 = load x86_fp80, ptr %168, align 16, !tbaa !13
  %170 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 2
  %171 = load x86_fp80, ptr %170, align 16, !tbaa !16
  %172 = fadd x86_fp80 %171, %169
  store x86_fp80 %172, ptr %170, align 16, !tbaa !16
  br label %173

173:                                              ; preds = %167, %154
  %174 = getelementptr inbounds %struct.dat, ptr %13, i32 0, i32 0
  store x86_fp80 0xK00000000000000000000, ptr %174, align 16, !tbaa !13
  br label %175

175:                                              ; preds = %173, %149
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 16 dereferenceable(80) %13)
          to label %176 unwind label %177

176:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #8
  br label %181

177:                                              ; preds = %175
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %5, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #8
  br label %258

181:                                              ; preds = %176, %71
  %182 = load x86_fp80, ptr %9, align 16, !tbaa !11
  %183 = fcmp ogt x86_fp80 %182, 0xK3FE7D6BF94D5E57A4000
  br i1 %183, label %184, label %257

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #8
  %185 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 0
  %186 = load x86_fp80, ptr %8, align 16, !tbaa !11
  store x86_fp80 %186, ptr %185, align 16, !tbaa !13
  %187 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 1
  %188 = load x86_fp80, ptr %9, align 16, !tbaa !11
  store x86_fp80 %188, ptr %187, align 16, !tbaa !15
  %189 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 2
  %190 = load x86_fp80, ptr %10, align 16, !tbaa !11
  store x86_fp80 %190, ptr %189, align 16, !tbaa !16
  %191 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 3
  %192 = load x86_fp80, ptr %11, align 16, !tbaa !11
  %193 = fadd x86_fp80 %192, 0xK3FFF8000000000000000
  store x86_fp80 %193, ptr %191, align 16, !tbaa !17
  %194 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 4
  %195 = load x86_fp80, ptr %12, align 16, !tbaa !11
  %196 = load x86_fp80, ptr %9, align 16, !tbaa !11
  %197 = fmul x86_fp80 %195, %196
  store x86_fp80 %197, ptr %194, align 16, !tbaa !18
  %198 = load x86_fp80, ptr %9, align 16, !tbaa !11
  %199 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %200 = fcmp ogt x86_fp80 %198, %199
  br i1 %200, label %201, label %226

201:                                              ; preds = %184
  %202 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %203 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 1
  %204 = load x86_fp80, ptr %203, align 16, !tbaa !15
  %205 = fsub x86_fp80 %204, %202
  store x86_fp80 %205, ptr %203, align 16, !tbaa !15
  %206 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 0
  %207 = load x86_fp80, ptr %206, align 16, !tbaa !13
  %208 = fcmp ogt x86_fp80 %207, 0xK3FE7D6BF94D5E57A4000
  br i1 %208, label %209, label %220

209:                                              ; preds = %201
  %210 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %211 = fdiv x86_fp80 %210, 0xK40008000000000000000
  %212 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 0
  %213 = load x86_fp80, ptr %212, align 16, !tbaa !13
  %214 = fadd x86_fp80 %213, %211
  store x86_fp80 %214, ptr %212, align 16, !tbaa !13
  %215 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %216 = fdiv x86_fp80 %215, 0xK40008000000000000000
  %217 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 2
  %218 = load x86_fp80, ptr %217, align 16, !tbaa !16
  %219 = fadd x86_fp80 %218, %216
  store x86_fp80 %219, ptr %217, align 16, !tbaa !16
  br label %225

220:                                              ; preds = %201
  %221 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %222 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 2
  %223 = load x86_fp80, ptr %222, align 16, !tbaa !16
  %224 = fadd x86_fp80 %223, %221
  store x86_fp80 %224, ptr %222, align 16, !tbaa !16
  br label %225

225:                                              ; preds = %220, %209
  br label %251

226:                                              ; preds = %184
  %227 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 0
  %228 = load x86_fp80, ptr %227, align 16, !tbaa !13
  %229 = fcmp ogt x86_fp80 %228, 0xK3FE7D6BF94D5E57A4000
  br i1 %229, label %230, label %243

230:                                              ; preds = %226
  %231 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 1
  %232 = load x86_fp80, ptr %231, align 16, !tbaa !15
  %233 = fdiv x86_fp80 %232, 0xK40008000000000000000
  %234 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 0
  %235 = load x86_fp80, ptr %234, align 16, !tbaa !13
  %236 = fadd x86_fp80 %235, %233
  store x86_fp80 %236, ptr %234, align 16, !tbaa !13
  %237 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 1
  %238 = load x86_fp80, ptr %237, align 16, !tbaa !15
  %239 = fdiv x86_fp80 %238, 0xK40008000000000000000
  %240 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 2
  %241 = load x86_fp80, ptr %240, align 16, !tbaa !16
  %242 = fadd x86_fp80 %241, %239
  store x86_fp80 %242, ptr %240, align 16, !tbaa !16
  br label %249

243:                                              ; preds = %226
  %244 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 1
  %245 = load x86_fp80, ptr %244, align 16, !tbaa !15
  %246 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 2
  %247 = load x86_fp80, ptr %246, align 16, !tbaa !16
  %248 = fadd x86_fp80 %247, %245
  store x86_fp80 %248, ptr %246, align 16, !tbaa !16
  br label %249

249:                                              ; preds = %243, %230
  %250 = getelementptr inbounds %struct.dat, ptr %14, i32 0, i32 1
  store x86_fp80 0xK00000000000000000000, ptr %250, align 16, !tbaa !15
  br label %251

251:                                              ; preds = %249, %225
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 16 dereferenceable(80) %14)
          to label %252 unwind label %253

252:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #8
  br label %257

253:                                              ; preds = %251
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %5, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #8
  br label %258

257:                                              ; preds = %252, %181
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %46, !llvm.loop !19

258:                                              ; preds = %253, %177, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %259

259:                                              ; preds = %258, %136
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %260

260:                                              ; preds = %259, %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %261

261:                                              ; preds = %260, %128
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %262

262:                                              ; preds = %261, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %269

263:                                              ; preds = %48
  %264 = load x86_fp80, ptr %7, align 16, !tbaa !11
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, x86_fp80 noundef %264)
          to label %266 unwind label %120

266:                                              ; preds = %263
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %265, i8 noundef signext 10)
          to label %268 unwind label %120

268:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #8
  br label %28, !llvm.loop !21

269:                                              ; preds = %262, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %270

270:                                              ; preds = %269, %116
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #8
  br label %273

271:                                              ; preds = %28
  %272 = load i32, ptr %1, align 4
  ret i32 %272

273:                                              ; preds = %270
  %274 = load ptr, ptr %5, align 8
  %275 = load i32, ptr %6, align 4
  %276 = insertvalue { ptr, i32 } poison, ptr %274, 0
  %277 = insertvalue { ptr, i32 } %276, i32 %275, 1
  resume { ptr, i32 } %277
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(80)) #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(80)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 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 = { 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 #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !10, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS3dat", !12, i64 0, !12, i64 16, !12, i64 32, !12, i64 48, !12, i64 64}
!15 = !{!14, !12, i64 16}
!16 = !{!14, !12, i64 32}
!17 = !{!14, !12, i64 48}
!18 = !{!14, !12, i64 64}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl" = type { %"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" }
%"struct.std::_Deque_base<dat, std::allocator<dat>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%struct.dat = type { x86_fp80, x86_fp80, x86_fp80, x86_fp80, x86_fp80 }

@T = external dso_local global i64, align 8
@c = external dso_local global x86_fp80, align 16
@m = external dso_local global x86_fp80, align 16
@p = external dso_local global x86_fp80, align 16
@v = external dso_local global x86_fp80, align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca %struct.dat, align 16
  %3 = alloca %struct.dat, align 16
  %4 = alloca %struct.dat, align 16
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %13 = tail call i32 @_ZSt12setprecisioni(i32 noundef 15)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 %13)
  %15 = load i64, ptr @T, align 8, !tbaa !8
  %16 = add nsw i64 %15, -1
  store i64 %16, ptr @T, align 8, !tbaa !8
  %.not47 = icmp eq i64 %15, 0
  br i1 %.not47, label %._crit_edge50, label %.lr.ph49

.lr.ph49:                                         ; preds = %0
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = getelementptr inbounds i8, ptr %2, i64 32
  %19 = getelementptr inbounds i8, ptr %2, i64 48
  %20 = getelementptr inbounds i8, ptr %2, i64 64
  %21 = getelementptr inbounds i8, ptr %3, i64 16
  %22 = getelementptr inbounds i8, ptr %3, i64 32
  %23 = getelementptr inbounds i8, ptr %3, i64 48
  %24 = getelementptr inbounds i8, ptr %3, i64 64
  %25 = getelementptr inbounds i8, ptr %4, i64 16
  %26 = getelementptr inbounds i8, ptr %4, i64 32
  %27 = getelementptr inbounds i8, ptr %4, i64 48
  %28 = getelementptr inbounds i8, ptr %4, i64 64
  br label %29

29:                                               ; preds = %.lr.ph49, %113
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 16 dereferenceable(16) @c)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) @m)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) @p)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 16 dereferenceable(16) @v)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #8
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #8
  %34 = load x86_fp80, ptr @c, align 16, !tbaa !11
  store x86_fp80 %34, ptr %2, align 16, !tbaa !13
  %35 = load x86_fp80, ptr @m, align 16, !tbaa !11
  store x86_fp80 %35, ptr %17, align 16, !tbaa !15
  %36 = load x86_fp80, ptr @p, align 16, !tbaa !11
  store x86_fp80 %36, ptr %18, align 16, !tbaa !16
  store x86_fp80 0xK3FFF8000000000000000, ptr %19, align 16, !tbaa !17
  store x86_fp80 0xK3FFF8000000000000000, ptr %20, align 16, !tbaa !18
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 16 dereferenceable(80) %2)
          to label %37 unwind label %68

37:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #8
  %38 = call noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %38, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37, %108
  %.03046 = phi x86_fp80 [ %54, %108 ], [ 0xK00000000000000000000, %37 ]
  %39 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %40 = load x86_fp80, ptr %39, align 16, !tbaa !13
  %41 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load x86_fp80, ptr %42, align 16, !tbaa !15
  %44 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %45 = getelementptr inbounds i8, ptr %44, i64 32
  %46 = load x86_fp80, ptr %45, align 16, !tbaa !16
  %47 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %48 = getelementptr inbounds i8, ptr %47, i64 48
  %49 = load x86_fp80, ptr %48, align 16, !tbaa !17
  %50 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %51 = getelementptr inbounds i8, ptr %50, i64 64
  %52 = load x86_fp80, ptr %51, align 16, !tbaa !18
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %53 = fmul x86_fp80 %49, %52
  %54 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %53, x86_fp80 %46, x86_fp80 %.03046)
  %55 = fcmp ogt x86_fp80 %40, 0xK3FE7D6BF94D5E57A4000
  br i1 %55, label %56, label %84

56:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #8
  store x86_fp80 %43, ptr %21, align 16, !tbaa !15
  %57 = fadd x86_fp80 %49, 0xK3FFF8000000000000000
  store x86_fp80 %57, ptr %23, align 16, !tbaa !17
  %58 = fmul x86_fp80 %40, %52
  store x86_fp80 %58, ptr %24, align 16, !tbaa !18
  %59 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %60 = fcmp ogt x86_fp80 %40, %59
  br i1 %60, label %61, label %74

61:                                               ; preds = %56
  %62 = fsub x86_fp80 %40, %59
  store x86_fp80 %62, ptr %3, align 16, !tbaa !13
  %63 = fcmp ogt x86_fp80 %43, 0xK3FE7D6BF94D5E57A4000
  br i1 %63, label %64, label %72

64:                                               ; preds = %61
  %65 = fmul x86_fp80 %59, 0xK3FFE8000000000000000
  %66 = fadd x86_fp80 %43, %65
  store x86_fp80 %66, ptr %21, align 16, !tbaa !15
  %67 = fadd x86_fp80 %46, %65
  store x86_fp80 %67, ptr %22, align 16, !tbaa !16
  br label %80

68:                                               ; preds = %29
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #8
  br label %116

70:                                               ; preds = %111, %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %116

72:                                               ; preds = %61
  %73 = fadd x86_fp80 %46, %59
  store x86_fp80 %73, ptr %22, align 16, !tbaa !16
  br label %80

74:                                               ; preds = %56
  %75 = fcmp ogt x86_fp80 %43, 0xK3FE7D6BF94D5E57A4000
  br i1 %75, label %76, label %79

76:                                               ; preds = %74
  %77 = fmul x86_fp80 %40, 0xK3FFE8000000000000000
  %78 = fadd x86_fp80 %77, %43
  store x86_fp80 %78, ptr %21, align 16, !tbaa !15
  br label %79

79:                                               ; preds = %74, %76
  %.pn = phi x86_fp80 [ %77, %76 ], [ %40, %74 ]
  %storemerge = fadd x86_fp80 %46, %.pn
  store x86_fp80 %storemerge, ptr %22, align 16, !tbaa !16
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !13
  br label %80

80:                                               ; preds = %64, %72, %79
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 16 dereferenceable(80) %3)
          to label %81 unwind label %82

81:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  br label %84

82:                                               ; preds = %80
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  br label %116

84:                                               ; preds = %81, %.lr.ph
  %85 = fcmp ogt x86_fp80 %43, 0xK3FE7D6BF94D5E57A4000
  br i1 %85, label %86, label %108

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #8
  store x86_fp80 %40, ptr %4, align 16, !tbaa !13
  %87 = fadd x86_fp80 %49, 0xK3FFF8000000000000000
  store x86_fp80 %87, ptr %27, align 16, !tbaa !17
  %88 = fmul x86_fp80 %43, %52
  store x86_fp80 %88, ptr %28, align 16, !tbaa !18
  %89 = load x86_fp80, ptr @v, align 16, !tbaa !11
  %90 = fcmp ogt x86_fp80 %43, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %86
  %92 = fsub x86_fp80 %43, %89
  store x86_fp80 %92, ptr %25, align 16, !tbaa !15
  br i1 %55, label %93, label %97

93:                                               ; preds = %91
  %94 = fmul x86_fp80 %89, 0xK3FFE8000000000000000
  %95 = fadd x86_fp80 %40, %94
  store x86_fp80 %95, ptr %4, align 16, !tbaa !13
  %96 = fadd x86_fp80 %46, %94
  store x86_fp80 %96, ptr %26, align 16, !tbaa !16
  br label %104

97:                                               ; preds = %91
  %98 = fadd x86_fp80 %46, %89
  store x86_fp80 %98, ptr %26, align 16, !tbaa !16
  br label %104

99:                                               ; preds = %86
  br i1 %55, label %100, label %103

100:                                              ; preds = %99
  %101 = fmul x86_fp80 %43, 0xK3FFE8000000000000000
  %102 = fadd x86_fp80 %40, %101
  store x86_fp80 %102, ptr %4, align 16, !tbaa !13
  br label %103

103:                                              ; preds = %99, %100
  %.pn43 = phi x86_fp80 [ %101, %100 ], [ %43, %99 ]
  %storemerge39 = fadd x86_fp80 %46, %.pn43
  store x86_fp80 %storemerge39, ptr %26, align 16, !tbaa !16
  store x86_fp80 0xK00000000000000000000, ptr %25, align 16, !tbaa !15
  br label %104

104:                                              ; preds = %93, %97, %103
  invoke void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 16 dereferenceable(80) %4)
          to label %105 unwind label %106

105:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  br label %108

106:                                              ; preds = %104
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  br label %116

108:                                              ; preds = %105, %84
  %109 = call noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %109, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %108, %37
  %.030.lcssa = phi x86_fp80 [ 0xK00000000000000000000, %37 ], [ %54, %108 ]
  %110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, x86_fp80 noundef %.030.lcssa)
          to label %111 unwind label %70

111:                                              ; preds = %._crit_edge
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %110, i8 noundef signext 10)
          to label %113 unwind label %70

113:                                              ; preds = %111
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #8
  %114 = load i64, ptr @T, align 8, !tbaa !8
  %115 = add nsw i64 %114, -1
  store i64 %115, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %114, 0
  br i1 %.not, label %._crit_edge50, label %29, !llvm.loop !21

116:                                              ; preds = %70, %106, %82, %68
  %.pn.pn.pn = phi { ptr, i32 } [ %69, %68 ], [ %71, %70 ], [ %107, %106 ], [ %83, %82 ]
  call void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn

._crit_edge50:                                    ; preds = %113, %0
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(80)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueI3datSt5dequeIS0_SaIS0_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(80) ptr @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueI3datSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !10, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS3dat", !12, i64 0, !12, i64 16, !12, i64 32, !12, i64 48, !12, i64 64}
!15 = !{!14, !12, i64 16}
!16 = !{!14, !12, i64 32}
!17 = !{!14, !12, i64 48}
!18 = !{!14, !12, i64 64}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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