; LLVM IR from bqi343/cp-notebook :: Contests/Other Solutions/UCF HSPT/2018/laptop.ll (Z5solvev)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZL2PI = external hidden global x86_fp80, align 16
@dp = external dso_local global [32768 x [15 x x86_fp80]], align 16
@dist = external dso_local global [15 x [15 x x86_fp80]], align 16
@n = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@_Z6secondB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca x86_fp80, align 16
  %23 = alloca i32, align 4
  call void @_ZN2io2reIiJiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) @r, ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %65, %0
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %68

29:                                               ; preds = %24
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %31)
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 82
  br i1 %35, label %36, label %40

36:                                               ; preds = %29
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %38)
  store i8 65, ptr %39, align 1, !tbaa !9
  br label %64

40:                                               ; preds = %29
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %42)
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 71
  br i1 %46, label %47, label %51

47:                                               ; preds = %40
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %49)
  store i8 66, ptr %50, align 1, !tbaa !9
  br label %63

51:                                               ; preds = %40
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %53)
  %55 = load i8, ptr %54, align 1, !tbaa !9
  %56 = sext i8 %55 to i32
  %57 = icmp eq i32 %56, 66
  br i1 %57, label %58, label %62

58:                                               ; preds = %51
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %60)
  store i8 67, ptr %61, align 1, !tbaa !9
  br label %62

62:                                               ; preds = %58, %51
  br label %63

63:                                               ; preds = %62, %47
  br label %64

64:                                               ; preds = %63, %36
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %1, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %1, align 4, !tbaa !5
  br label %24, !llvm.loop !10

68:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %92, %68
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = shl i32 1, %71
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %75, label %74

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

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

76:                                               ; preds = %88, %75
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %76
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %83
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [15 x x86_fp80], ptr %84, i64 0, i64 %86
  store x86_fp80 0xK401CEE6B281C00000000, ptr %87, align 16, !tbaa !12
  br label %88

88:                                               ; preds = %81
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %4, align 4, !tbaa !5
  br label %76, !llvm.loop !14

91:                                               ; preds = %80
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %2, align 4, !tbaa !5
  br label %69, !llvm.loop !15

95:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11)
  %96 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %101, ptr %103)
          to label %104 unwind label %110

104:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %139, %104
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr @n, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %114, label %109

109:                                              ; preds = %105
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %142

110:                                              ; preds = %95
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %368

114:                                              ; preds = %105
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %116)
          to label %118 unwind label %134

118:                                              ; preds = %114
  %119 = load i8, ptr %117, align 1, !tbaa !9
  %120 = sext i8 %119 to i32
  %121 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 0)
          to label %122 unwind label %134

122:                                              ; preds = %118
  %123 = load i8, ptr %121, align 1, !tbaa !9
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 %120, %124
  br i1 %125, label %126, label %138

126:                                              ; preds = %122
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = shl i32 1, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [15 x x86_fp80], ptr %130, i64 0, i64 %132
  store x86_fp80 0xK00000000000000000000, ptr %133, align 16, !tbaa !12
  br label %138

134:                                              ; preds = %118, %114
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %8, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %368

138:                                              ; preds = %126, %122
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %10, align 4, !tbaa !5
  br label %105, !llvm.loop !16

142:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %194, %142
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = load i32, ptr @n, align 4, !tbaa !5
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %197

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %181, %148
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = load i32, ptr @n, align 4, !tbaa !5
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %193

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = sub nsw i32 %155, %156
  %158 = call i32 @llvm.abs.i32(i32 %157, i1 true)
  store i32 %158, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %159 = load i32, ptr @n, align 4, !tbaa !5
  %160 = load i32, ptr %13, align 4, !tbaa !5
  %161 = sub nsw i32 %159, %160
  store i32 %161, ptr %14, align 4, !tbaa !5
  %162 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %163 unwind label %184

163:                                              ; preds = %154
  %164 = load i32, ptr %162, align 4, !tbaa !5
  store i32 %164, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %165 = load x86_fp80, ptr @_ZL2PI, align 16, !tbaa !12
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = sitofp i32 %166 to x86_fp80
  %168 = fmul x86_fp80 %165, %167
  %169 = load i32, ptr @n, align 4, !tbaa !5
  %170 = sitofp i32 %169 to x86_fp80
  %171 = fdiv x86_fp80 %168, %170
  %172 = invoke noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %171)
          to label %173 unwind label %188

173:                                              ; preds = %163
  %174 = fmul x86_fp80 0xK40008000000000000000, %172
  %175 = load i32, ptr %11, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [15 x [15 x x86_fp80]], ptr @dist, i64 0, i64 %176
  %178 = load i32, ptr %12, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [15 x x86_fp80], ptr %177, i64 0, i64 %179
  store x86_fp80 %174, ptr %180, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %181

181:                                              ; preds = %173
  %182 = load i32, ptr %12, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %12, align 4, !tbaa !5
  br label %149, !llvm.loop !17

184:                                              ; preds = %154
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %8, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %192

188:                                              ; preds = %163
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %8, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %9, align 4
  br label %192

192:                                              ; preds = %188, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %368

193:                                              ; preds = %153
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %11, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %11, align 4, !tbaa !5
  br label %143, !llvm.loop !18

197:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %326, %197
  %199 = load i32, ptr %15, align 4, !tbaa !5
  %200 = load i32, ptr @n, align 4, !tbaa !5
  %201 = shl i32 1, %200
  %202 = icmp slt i32 %199, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %198
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %329

204:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %322, %204
  %206 = load i32, ptr %16, align 4, !tbaa !5
  %207 = load i32, ptr @n, align 4, !tbaa !5
  %208 = icmp slt i32 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %325

210:                                              ; preds = %205
  %211 = load i32, ptr %15, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %212
  %214 = load i32, ptr %16, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [15 x x86_fp80], ptr %213, i64 0, i64 %215
  %217 = load x86_fp80, ptr %216, align 16, !tbaa !12
  %218 = fcmp une x86_fp80 %217, 0xK401CEE6B281C00000000
  br i1 %218, label %219, label %321

219:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %244, %219
  %221 = load i32, ptr %18, align 4, !tbaa !5
  %222 = load i32, ptr @n, align 4, !tbaa !5
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %225, label %224

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

225:                                              ; preds = %220
  %226 = load i32, ptr %15, align 4, !tbaa !5
  %227 = load i32, ptr %18, align 4, !tbaa !5
  %228 = shl i32 1, %227
  %229 = and i32 %226, %228
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %243, label %231

231:                                              ; preds = %225
  %232 = load i32, ptr %18, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %233)
          to label %235 unwind label %239

235:                                              ; preds = %231
  %236 = load i8, ptr %234, align 1, !tbaa !9
  %237 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %17, i8 noundef signext %236)
          to label %238 unwind label %239

238:                                              ; preds = %235
  br label %243

239:                                              ; preds = %235, %231
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %8, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %320

243:                                              ; preds = %238, %225
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %18, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %18, align 4, !tbaa !5
  br label %220, !llvm.loop !19

247:                                              ; preds = %224
  %248 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  %250 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %250, ptr %251, align 8
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %253, ptr %255)
          to label %256 unwind label %262

256:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %316, %256
  %258 = load i32, ptr %21, align 4, !tbaa !5
  %259 = load i32, ptr @n, align 4, !tbaa !5
  %260 = icmp slt i32 %258, %259
  br i1 %260, label %266, label %261

261:                                              ; preds = %257
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %319

262:                                              ; preds = %247
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %8, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %9, align 4
  br label %320

266:                                              ; preds = %257
  %267 = load i32, ptr %15, align 4, !tbaa !5
  %268 = load i32, ptr %21, align 4, !tbaa !5
  %269 = shl i32 1, %268
  %270 = and i32 %267, %269
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %315, label %272

272:                                              ; preds = %266
  %273 = load i32, ptr %21, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %274)
          to label %276 unwind label %310

276:                                              ; preds = %272
  %277 = load i8, ptr %275, align 1, !tbaa !9
  %278 = sext i8 %277 to i32
  %279 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %17, i64 noundef 0)
          to label %280 unwind label %310

280:                                              ; preds = %276
  %281 = load i8, ptr %279, align 1, !tbaa !9
  %282 = sext i8 %281 to i32
  %283 = icmp eq i32 %278, %282
  br i1 %283, label %284, label %314

284:                                              ; preds = %280
  %285 = load i32, ptr %15, align 4, !tbaa !5
  %286 = load i32, ptr %21, align 4, !tbaa !5
  %287 = shl i32 1, %286
  %288 = xor i32 %285, %287
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %289
  %291 = load i32, ptr %21, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [15 x x86_fp80], ptr %290, i64 0, i64 %292
  %294 = load i32, ptr %15, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %295
  %297 = load i32, ptr %16, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [15 x x86_fp80], ptr %296, i64 0, i64 %298
  %300 = load x86_fp80, ptr %299, align 16, !tbaa !12
  %301 = load i32, ptr %16, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [15 x [15 x x86_fp80]], ptr @dist, i64 0, i64 %302
  %304 = load i32, ptr %21, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [15 x x86_fp80], ptr %303, i64 0, i64 %305
  %307 = load x86_fp80, ptr %306, align 16, !tbaa !12
  %308 = fadd x86_fp80 %300, %307
  invoke void @_Z5ckminIeEvRT_S0_(ptr noundef nonnull align 16 dereferenceable(16) %293, x86_fp80 noundef %308)
          to label %309 unwind label %310

309:                                              ; preds = %284
  br label %314

310:                                              ; preds = %284, %276, %272
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %8, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %320

314:                                              ; preds = %309, %280
  br label %315

315:                                              ; preds = %314, %266
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr %21, align 4, !tbaa !5
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %21, align 4, !tbaa !5
  br label %257, !llvm.loop !20

319:                                              ; preds = %261
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %321

320:                                              ; preds = %310, %262, %239
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %368

321:                                              ; preds = %319, %210
  br label %322

322:                                              ; preds = %321
  %323 = load i32, ptr %16, align 4, !tbaa !5
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %16, align 4, !tbaa !5
  br label %205, !llvm.loop !21

325:                                              ; preds = %209
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %15, align 4, !tbaa !5
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %15, align 4, !tbaa !5
  br label %198, !llvm.loop !22

329:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  store x86_fp80 0xK401CEE6B281C00000000, ptr %22, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %330

330:                                              ; preds = %346, %329
  %331 = load i32, ptr %23, align 4, !tbaa !5
  %332 = load i32, ptr @n, align 4, !tbaa !5
  %333 = icmp slt i32 %331, %332
  br i1 %333, label %335, label %334

334:                                              ; preds = %330
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %353

335:                                              ; preds = %330
  %336 = load i32, ptr @n, align 4, !tbaa !5
  %337 = shl i32 1, %336
  %338 = sub nsw i32 %337, 1
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %339
  %341 = load i32, ptr %23, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [15 x x86_fp80], ptr %340, i64 0, i64 %342
  %344 = load x86_fp80, ptr %343, align 16, !tbaa !12
  invoke void @_Z5ckminIeEvRT_S0_(ptr noundef nonnull align 16 dereferenceable(16) %22, x86_fp80 noundef %344)
          to label %345 unwind label %349

345:                                              ; preds = %335
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %23, align 4, !tbaa !5
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %23, align 4, !tbaa !5
  br label %330, !llvm.loop !23

349:                                              ; preds = %335
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %8, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %367

353:                                              ; preds = %334
  %354 = load i32, ptr @r, align 4, !tbaa !5
  %355 = sitofp i32 %354 to x86_fp80
  %356 = load x86_fp80, ptr %22, align 16, !tbaa !12
  %357 = fmul x86_fp80 %356, %355
  store x86_fp80 %357, ptr %22, align 16, !tbaa !12
  %358 = load x86_fp80, ptr %22, align 16, !tbaa !12
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, x86_fp80 noundef %358)
          to label %360 unwind label %363

360:                                              ; preds = %353
  %361 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef @.str.6)
          to label %362 unwind label %363

362:                                              ; preds = %360
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret void

363:                                              ; preds = %360, %353
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %8, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %9, align 4
  br label %367

367:                                              ; preds = %363, %349
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %368

368:                                              ; preds = %367, %320, %192, %134, %110
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %369

369:                                              ; preds = %368
  %370 = load ptr, ptr %8, align 8
  %371 = load i32, ptr %9, align 4
  %372 = insertvalue { ptr, i32 } poison, ptr %370, 0
  %373 = insertvalue { ptr, i32 } %372, i32 %371, 1
  resume { ptr, i32 } %373
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io2reIiJiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #3

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5ckminIeEvRT_S0_(ptr noundef nonnull align 16 dereferenceable(16), x86_fp80 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8), x86_fp80 noundef) #2 align 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !7, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}


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

@_ZL2PI = external hidden local_unnamed_addr global x86_fp80, align 16
@dp = external dso_local global [32768 x [15 x x86_fp80]], align 16
@dist = external dso_local local_unnamed_addr global [15 x [15 x x86_fp80]], align 16
@n = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@_Z6secondB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca x86_fp80, align 16
  tail call void @_ZN2io2reIiJiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) @r, ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge88

.preheader83:                                     ; preds = %31
  %.not110 = icmp ne i32 %32, 31
  %8 = icmp sgt i32 %32, 0
  %or.cond = and i1 %.not110, %8
  br i1 %or.cond, label %.preheader82.us.preheader, label %._crit_edge88

.preheader82.us.preheader:                        ; preds = %.preheader83
  %9 = shl nuw nsw i32 1, %32
  %wide.trip.count123 = zext nneg i32 %9 to i64
  %wide.trip.count = zext nneg i32 %32 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %10 = icmp ult i32 %32, 4
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader82.us

.preheader82.us:                                  ; preds = %.preheader82.us.preheader, %._crit_edge.us
  %indvars.iv120 = phi i64 [ 0, %.preheader82.us.preheader ], [ %indvars.iv.next121, %._crit_edge.us ]
  br i1 %10, label %._crit_edge.us.unr-lcssa, label %.preheader82.us.new

.preheader82.us.new:                              ; preds = %.preheader82.us, %.preheader82.us.new
  %indvars.iv117 = phi i64 [ %indvars.iv.next118.3, %.preheader82.us.new ], [ 0, %.preheader82.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader82.us.new ], [ 0, %.preheader82.us ]
  %11 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv117
  store x86_fp80 0xK401CEE6B281C00000000, ptr %11, align 16, !tbaa !9
  %indvars.iv.next118 = or disjoint i64 %indvars.iv117, 1
  %12 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv.next118
  store x86_fp80 0xK401CEE6B281C00000000, ptr %12, align 16, !tbaa !9
  %indvars.iv.next118.1 = or disjoint i64 %indvars.iv117, 2
  %13 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv.next118.1
  store x86_fp80 0xK401CEE6B281C00000000, ptr %13, align 16, !tbaa !9
  %indvars.iv.next118.2 = or disjoint i64 %indvars.iv117, 3
  %14 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv.next118.2
  store x86_fp80 0xK401CEE6B281C00000000, ptr %14, align 16, !tbaa !9
  %indvars.iv.next118.3 = add nuw nsw i64 %indvars.iv117, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader82.us.new, !llvm.loop !11

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader82.us.new, %.preheader82.us
  %indvars.iv117.unr = phi i64 [ 0, %.preheader82.us ], [ %indvars.iv.next118.3, %.preheader82.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv117.epil = phi i64 [ %indvars.iv.next118.epil, %.epil.preheader ], [ %indvars.iv117.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %15 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %indvars.iv120, i64 %indvars.iv117.epil
  store x86_fp80 0xK401CEE6B281C00000000, ptr %15, align 16, !tbaa !9
  %indvars.iv.next118.epil = add nuw nsw i64 %indvars.iv117.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !13

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %wide.trip.count123
  br i1 %exitcond124.not, label %._crit_edge88, label %.preheader82.us, !llvm.loop !15

.lr.ph:                                           ; preds = %0, %31
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %0 ]
  %16 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv)
  %17 = load i8, ptr %16, align 1, !tbaa !16
  %18 = icmp eq i8 %17, 82
  %19 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv)
  br i1 %18, label %20, label %21

20:                                               ; preds = %.lr.ph
  store i8 65, ptr %19, align 1, !tbaa !16
  br label %31

21:                                               ; preds = %.lr.ph
  %22 = load i8, ptr %19, align 1, !tbaa !16
  %23 = icmp eq i8 %22, 71
  %24 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv)
  br i1 %23, label %25, label %26

25:                                               ; preds = %21
  store i8 66, ptr %24, align 1, !tbaa !16
  br label %31

26:                                               ; preds = %21
  %27 = load i8, ptr %24, align 1, !tbaa !16
  %28 = icmp eq i8 %27, 66
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv)
  store i8 67, ptr %30, align 1, !tbaa !16
  br label %31

31:                                               ; preds = %20, %26, %29, %25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next, %33
  br i1 %34, label %.lr.ph, label %.preheader83, !llvm.loop !17

._crit_edge88:                                    ; preds = %._crit_edge.us, %0, %.preheader83
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11)
  %35 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %36 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %35, ptr %36)
          to label %.preheader81 unwind label %40

.preheader81:                                     ; preds = %._crit_edge88
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph90, label %._crit_edge105.thread

.preheader80:                                     ; preds = %52
  %39 = icmp sgt i32 %53, 0
  br i1 %39, label %.preheader79, label %._crit_edge105.thread

40:                                               ; preds = %._crit_edge88
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %169

.lr.ph90:                                         ; preds = %.preheader81, %52
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %52 ], [ 0, %.preheader81 ]
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv125)
  %43 = load i8, ptr %42, align 1, !tbaa !16
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %45 = load i8, ptr %44, align 1, !tbaa !16
  %46 = icmp eq i8 %43, %45
  br i1 %46, label %47, label %52

47:                                               ; preds = %.lr.ph90
  %48 = trunc nuw nsw i64 %indvars.iv125 to i32
  %49 = shl nuw i32 1, %48
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %50, i64 %indvars.iv125
  store x86_fp80 0xK00000000000000000000, ptr %51, align 16, !tbaa !9
  br label %52

52:                                               ; preds = %.lr.ph90, %47
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = icmp slt i64 %indvars.iv.next126, %54
  br i1 %55, label %.lr.ph90, label %.preheader80, !llvm.loop !18

.preheader79:                                     ; preds = %.preheader80, %._crit_edge
  %56 = phi i32 [ %59, %._crit_edge ], [ %53, %.preheader80 ]
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %._crit_edge ], [ 0, %.preheader80 ]
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph92, label %.preheader79.._crit_edge_crit_edge

.preheader79.._crit_edge_crit_edge:               ; preds = %.preheader79
  %.pre152 = sext i32 %56 to i64
  br label %._crit_edge

.preheader78:                                     ; preds = %._crit_edge
  %.not111 = icmp eq i32 %59, 31
  br i1 %.not111, label %._crit_edge105.thread159, label %.preheader77.lr.ph

._crit_edge105.thread159:                         ; preds = %.preheader78
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  store x86_fp80 0xK401CEE6B281C00000000, ptr %5, align 16, !tbaa !9
  br label %.lr.ph108.preheader

.preheader77.lr.ph:                               ; preds = %.preheader78
  %58 = icmp sgt i32 %59, 0
  br i1 %58, label %.preheader77, label %._crit_edge105.thread

._crit_edge:                                      ; preds = %.lr.ph92, %.preheader79.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre152, %.preheader79.._crit_edge_crit_edge ], [ %78, %.lr.ph92 ]
  %59 = phi i32 [ %56, %.preheader79.._crit_edge_crit_edge ], [ %77, %.lr.ph92 ]
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %60 = icmp slt i64 %indvars.iv.next132, %.pre-phi
  br i1 %60, label %.preheader79, label %.preheader78, !llvm.loop !19

.lr.ph92:                                         ; preds = %.preheader79, %.lr.ph92
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %.lr.ph92 ], [ 0, %.preheader79 ]
  %61 = phi i32 [ %77, %.lr.ph92 ], [ %56, %.preheader79 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %62 = sub nsw i64 %indvars.iv131, %indvars.iv128
  %63 = trunc nsw i64 %62 to i32
  %64 = call i32 @llvm.abs.i32(i32 %63, i1 true)
  store i32 %64, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %65 = sub nsw i32 %61, %64
  store i32 %65, ptr %3, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %67 = load i32, ptr %66, align 4, !tbaa !5
  store i32 %67, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %68 = load x86_fp80, ptr @_ZL2PI, align 16, !tbaa !9
  %69 = sitofp i32 %67 to x86_fp80
  %70 = fmul x86_fp80 %68, %69
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = sitofp i32 %71 to x86_fp80
  %73 = fdiv x86_fp80 %70, %72
  %74 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %73)
  %75 = fmul x86_fp80 %74, 0xK40008000000000000000
  %76 = getelementptr inbounds [15 x [15 x x86_fp80]], ptr @dist, i64 0, i64 %indvars.iv131, i64 %indvars.iv128
  store x86_fp80 %75, ptr %76, align 16, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next129, %78
  br i1 %79, label %.lr.ph92, label %._crit_edge, !llvm.loop !21

.preheader77:                                     ; preds = %.preheader77.lr.ph, %._crit_edge103
  %80 = phi i32 [ %85, %._crit_edge103 ], [ %59, %.preheader77.lr.ph ]
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %._crit_edge103 ], [ 0, %.preheader77.lr.ph ]
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.lr.ph102, label %._crit_edge103

.lr.ph102:                                        ; preds = %.preheader77
  %82 = trunc nuw nsw i64 %indvars.iv143 to i32
  %83 = trunc nuw nsw i64 %indvars.iv143 to i32
  br label %89

._crit_edge105.thread:                            ; preds = %.preheader77.lr.ph, %.preheader81, %.preheader80
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  br label %._crit_edge109

._crit_edge105:                                   ; preds = %._crit_edge103
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  store x86_fp80 0xK401CEE6B281C00000000, ptr %5, align 16, !tbaa !9
  %84 = icmp sgt i32 %85, 0
  br i1 %84, label %.lr.ph108.preheader, label %._crit_edge109

.lr.ph108.preheader:                              ; preds = %._crit_edge105.thread159, %._crit_edge105
  %.ph = phi i32 [ %85, %._crit_edge105 ], [ 31, %._crit_edge105.thread159 ]
  br label %.lr.ph108

._crit_edge103:                                   ; preds = %142, %.preheader77
  %85 = phi i32 [ %80, %.preheader77 ], [ %143, %142 ]
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %86 = shl nuw i32 1, %85
  %87 = sext i32 %86 to i64
  %88 = icmp slt i64 %indvars.iv.next144, %87
  br i1 %88, label %.preheader77, label %._crit_edge105, !llvm.loop !22

89:                                               ; preds = %.lr.ph102, %142
  %90 = phi i32 [ %80, %.lr.ph102 ], [ %143, %142 ]
  %91 = phi i32 [ %80, %.lr.ph102 ], [ %144, %142 ]
  %indvars.iv140 = phi i64 [ 0, %.lr.ph102 ], [ %indvars.iv.next141, %142 ]
  %92 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %indvars.iv143, i64 %indvars.iv140
  %93 = load x86_fp80, ptr %92, align 16, !tbaa !9
  %94 = fcmp une x86_fp80 %93, 0xK401CEE6B281C00000000
  br i1 %94, label %95, label %142

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %96 = load i32, ptr @n, align 4, !tbaa !5
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph96, label %._crit_edge97

._crit_edge97:                                    ; preds = %112, %95
  %98 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %99 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %98, ptr %99)
          to label %.preheader unwind label %116

.preheader:                                       ; preds = %._crit_edge97
  %100 = load i32, ptr @n, align 4, !tbaa !5
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %.lr.ph99, label %._crit_edge100

.lr.ph96:                                         ; preds = %95, %112
  %102 = phi i32 [ %113, %112 ], [ %96, %95 ]
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %112 ], [ 0, %95 ]
  %103 = trunc nuw nsw i64 %indvars.iv134 to i32
  %104 = shl nuw i32 1, %103
  %105 = and i32 %104, %82
  %.not73 = icmp eq i32 %105, 0
  br i1 %.not73, label %106, label %112

106:                                              ; preds = %.lr.ph96
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv134)
  %108 = load i8, ptr %107, align 1, !tbaa !16
  %109 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext %108)
          to label %._crit_edge149 unwind label %110

._crit_edge149:                                   ; preds = %106
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %112

110:                                              ; preds = %106
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %141

112:                                              ; preds = %._crit_edge149, %.lr.ph96
  %113 = phi i32 [ %.pre, %._crit_edge149 ], [ %102, %.lr.ph96 ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next135, %114
  br i1 %115, label %.lr.ph96, label %._crit_edge97, !llvm.loop !23

._crit_edge100:                                   ; preds = %137, %.preheader
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %.pre150 = load i32, ptr @n, align 4, !tbaa !5
  br label %142

116:                                              ; preds = %._crit_edge97
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %141

.lr.ph99:                                         ; preds = %.preheader, %137
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %137 ], [ 0, %.preheader ]
  %118 = trunc nuw nsw i64 %indvars.iv137 to i32
  %119 = shl nuw i32 1, %118
  %120 = and i32 %119, %83
  %.not = icmp eq i32 %120, 0
  br i1 %.not, label %121, label %137

121:                                              ; preds = %.lr.ph99
  %122 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv137)
  %123 = load i8, ptr %122, align 1, !tbaa !16
  %124 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 0)
  %125 = load i8, ptr %124, align 1, !tbaa !16
  %126 = icmp eq i8 %123, %125
  br i1 %126, label %127, label %137

127:                                              ; preds = %121
  %128 = xor i32 %119, %83
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %129, i64 %indvars.iv137
  %131 = load x86_fp80, ptr %92, align 16, !tbaa !9
  %132 = getelementptr inbounds [15 x [15 x x86_fp80]], ptr @dist, i64 0, i64 %indvars.iv140, i64 %indvars.iv137
  %133 = load x86_fp80, ptr %132, align 16, !tbaa !9
  %134 = fadd x86_fp80 %131, %133
  invoke void @_Z5ckminIeEvRT_S0_(ptr noundef nonnull align 16 dereferenceable(16) %130, x86_fp80 noundef %134)
          to label %137 unwind label %135

135:                                              ; preds = %127
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %141

137:                                              ; preds = %.lr.ph99, %127, %121
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = icmp slt i64 %indvars.iv.next138, %139
  br i1 %140, label %.lr.ph99, label %._crit_edge100, !llvm.loop !24

141:                                              ; preds = %135, %116, %110
  %.pn74 = phi { ptr, i32 } [ %111, %110 ], [ %136, %135 ], [ %117, %116 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %169

142:                                              ; preds = %89, %._crit_edge100
  %143 = phi i32 [ %90, %89 ], [ %.pre150, %._crit_edge100 ]
  %144 = phi i32 [ %91, %89 ], [ %.pre150, %._crit_edge100 ]
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %145 = sext i32 %144 to i64
  %146 = icmp slt i64 %indvars.iv.next141, %145
  br i1 %146, label %89, label %._crit_edge103, !llvm.loop !25

._crit_edge109.loopexit:                          ; preds = %157
  %.pre151 = load x86_fp80, ptr %5, align 16, !tbaa !9
  br label %._crit_edge109

._crit_edge109:                                   ; preds = %._crit_edge105.thread, %._crit_edge109.loopexit, %._crit_edge105
  %147 = phi x86_fp80 [ %.pre151, %._crit_edge109.loopexit ], [ 0xK401CEE6B281C00000000, %._crit_edge105 ], [ 0xK401CEE6B281C00000000, %._crit_edge105.thread ]
  %148 = load i32, ptr @r, align 4, !tbaa !5
  %149 = sitofp i32 %148 to x86_fp80
  %150 = fmul x86_fp80 %147, %149
  store x86_fp80 %150, ptr %5, align 16, !tbaa !9
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, x86_fp80 noundef %150)
          to label %163 unwind label %166

.lr.ph108:                                        ; preds = %.lr.ph108.preheader, %157
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %157 ], [ 0, %.lr.ph108.preheader ]
  %152 = phi i32 [ %158, %157 ], [ %.ph, %.lr.ph108.preheader ]
  %notmask = shl nsw i32 -1, %152
  %153 = xor i32 %notmask, -1
  %154 = zext nneg i32 %153 to i64
  %155 = getelementptr inbounds [32768 x [15 x x86_fp80]], ptr @dp, i64 0, i64 %154, i64 %indvars.iv146
  %156 = load x86_fp80, ptr %155, align 16, !tbaa !9
  invoke void @_Z5ckminIeEvRT_S0_(ptr noundef nonnull align 16 dereferenceable(16) %5, x86_fp80 noundef %156)
          to label %157 unwind label %161

157:                                              ; preds = %.lr.ph108
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %158 = load i32, ptr @n, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = icmp slt i64 %indvars.iv.next147, %159
  br i1 %160, label %.lr.ph108, label %._crit_edge109.loopexit, !llvm.loop !26

161:                                              ; preds = %.lr.ph108
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %168

163:                                              ; preds = %._crit_edge109
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull @.str.6)
          to label %165 unwind label %166

165:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void

166:                                              ; preds = %163, %._crit_edge109
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %168

168:                                              ; preds = %166, %161
  %.pn = phi { ptr, i32 } [ %162, %161 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %169

169:                                              ; preds = %168, %141, %40
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %141 ], [ %.pn, %168 ], [ %41, %40 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn74.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5ckminIeEvRT_S0_(ptr noundef nonnull align 16 dereferenceable(16), x86_fp80 noundef) local_unnamed_addr #2

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

; 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 #2 align 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12, !20}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12, !20}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


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