; LLVM IR from tangjz/acm-icpc :: hdu (6204)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@_ZL2pi = external hidden global x86_fp80, align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@mod0 = external dso_local global i32, align 4
@mod1 = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@pos = external dso_local global [401 x [401 x i32]], align 16
@e = external dso_local global [13335 x %"class.std::vector"], align 16
@Sin = external dso_local global [401 x x86_fp80], align 16
@seq = external dso_local global [13335 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5solvei(i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKeS0_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3equRKeS0_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca x86_fp80, align 16
  %13 = alloca %"struct.std::pair", align 4
  store i32 0, ptr %1, align 4
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %15

15:                                               ; preds = %193, %0
  %16 = load i32, ptr @t, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr @t, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %202

19:                                               ; preds = %15
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @n, ptr noundef @mod0, ptr noundef @mod1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %59, %19
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %62

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = shl i32 %27, 1
  store i32 %28, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %29 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %29, ptr %4, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %42, %26
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = and i32 %31, 1
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %39, label %34

34:                                               ; preds = %30
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = and i32 %35, 1
  %37 = icmp ne i32 %36, 0
  %38 = xor i1 %37, true
  br label %39

39:                                               ; preds = %34, %30
  %40 = phi i1 [ false, %30 ], [ %38, %34 ]
  br i1 %40, label %41, label %47

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = ashr i32 %43, 1
  store i32 %44, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = ashr i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %30, !llvm.loop !9

47:                                               ; preds = %39
  %48 = load x86_fp80, ptr @_ZL2pi, align 16, !tbaa !11
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = sitofp i32 %49 to x86_fp80
  %51 = fmul x86_fp80 %48, %50
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = sitofp i32 %52 to x86_fp80
  %54 = fdiv x86_fp80 %51, %53
  %55 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %54)
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %57
  store x86_fp80 %55, ptr %58, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %59

59:                                               ; preds = %47
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %2, align 4, !tbaa !5
  br label %21, !llvm.loop !13

62:                                               ; preds = %25
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %104, %62
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = icmp sle i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %107

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %69 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %69, ptr %7, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %100, %68
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sub nsw i32 %72, %73
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = sub nsw i32 %74, %75
  %77 = icmp sle i32 %71, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %70
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %103

79:                                               ; preds = %70
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %81
  %83 = load x86_fp80, ptr %82, align 16, !tbaa !11
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %85
  %87 = load x86_fp80, ptr %86, align 16, !tbaa !11
  %88 = fadd x86_fp80 %83, %87
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = add nsw i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %92
  %94 = load x86_fp80, ptr %93, align 16, !tbaa !11
  %95 = fsub x86_fp80 %88, %94
  %96 = load i32, ptr @tot, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr @tot, align 4, !tbaa !5
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds [13335 x x86_fp80], ptr @seq, i64 0, i64 %98
  store x86_fp80 %95, ptr %99, align 16, !tbaa !11
  br label %100

100:                                              ; preds = %79
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %7, align 4, !tbaa !5
  br label %70, !llvm.loop !14

103:                                              ; preds = %78
  br label %104

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

107:                                              ; preds = %67
  %108 = load i32, ptr @tot, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds x86_fp80, ptr @seq, i64 %109
  call void @_ZSt4sortIPeEvT_S1_(ptr noundef @seq, ptr noundef %110)
  %111 = load i32, ptr @tot, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds x86_fp80, ptr @seq, i64 %112
  %114 = call noundef ptr @_ZSt6uniqueIPePFbRKeS2_EET_S5_S5_T0_(ptr noundef @seq, ptr noundef %113, ptr noundef @_Z3equRKeS0_)
  %115 = ptrtoint ptr %114 to i64
  %116 = sub i64 %115, ptrtoint (ptr @seq to i64)
  %117 = sdiv exact i64 %116, 16
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %128, %107
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = load i32, ptr @tot, align 4, !tbaa !5
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %131

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [13335 x %"class.std::vector"], ptr @e, i64 0, i64 %126
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %127) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %128

128:                                              ; preds = %124
  %129 = load i32, ptr %8, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %8, align 4, !tbaa !5
  br label %119, !llvm.loop !16

131:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %190, %131
  %133 = load i32, ptr %10, align 4, !tbaa !5
  %134 = load i32, ptr @n, align 4, !tbaa !5
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %193

137:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %186, %137
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = add nsw i32 %139, %140
  %142 = load i32, ptr @n, align 4, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %138
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %189

145:                                              ; preds = %138
  %146 = load i32, ptr @tot, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds x86_fp80, ptr @seq, i64 %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %150
  %152 = load x86_fp80, ptr %151, align 16, !tbaa !11
  %153 = load i32, ptr %11, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %154
  %156 = load x86_fp80, ptr %155, align 16, !tbaa !11
  %157 = fadd x86_fp80 %152, %156
  %158 = load i32, ptr %10, align 4, !tbaa !5
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = add nsw i32 %158, %159
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %161
  %163 = load x86_fp80, ptr %162, align 16, !tbaa !11
  %164 = fsub x86_fp80 %157, %163
  store x86_fp80 %164, ptr %12, align 16, !tbaa !11
  %165 = call noundef ptr @_ZSt11lower_boundIPeePFbRKeS2_EET_S5_S5_RKT0_T1_(ptr noundef @seq, ptr noundef %148, ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef @_Z3cmpRKeS0_)
  %166 = ptrtoint ptr %165 to i64
  %167 = sub i64 %166, ptrtoint (ptr @seq to i64)
  %168 = sdiv exact i64 %167, 16
  %169 = trunc i64 %168 to i32
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [401 x [401 x i32]], ptr @pos, i64 0, i64 %171
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [401 x i32], ptr %172, i64 0, i64 %174
  store i32 %169, ptr %175, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [401 x [401 x i32]], ptr @pos, i64 0, i64 %177
  %179 = load i32, ptr %11, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [401 x i32], ptr %178, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [13335 x %"class.std::vector"], ptr @e, i64 0, i64 %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %185 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i64 %185, ptr %13, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %186

186:                                              ; preds = %145
  %187 = load i32, ptr %11, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %11, align 4, !tbaa !5
  br label %138, !llvm.loop !17

189:                                              ; preds = %144
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %10, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %10, align 4, !tbaa !5
  br label %132, !llvm.loop !18

193:                                              ; preds = %136
  %194 = load i32, ptr @mod0, align 4, !tbaa !5
  %195 = call noundef i32 @_Z5solvei(i32 noundef %194)
  %196 = sext i32 %195 to i64
  %197 = load i32, ptr @mod1, align 4, !tbaa !5
  %198 = call noundef i32 @_Z5solvei(i32 noundef %197)
  %199 = sext i32 %198 to i64
  %200 = mul i64 %196, %199
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %200)
  br label %15, !llvm.loop !19

202:                                              ; preds = %15
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPeEvT_S1_(ptr noundef, ptr noundef) #6

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@_ZL2pi = external hidden local_unnamed_addr global x86_fp80, align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@mod0 = external dso_local global i32, align 4
@mod1 = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@pos = external dso_local local_unnamed_addr global [401 x [401 x i32]], align 16
@e = external dso_local global [13335 x %"class.std::vector"], align 16
@Sin = external dso_local local_unnamed_addr global [401 x x86_fp80], align 16
@seq = external dso_local global [13335 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5solvei(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKeS0_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3equRKeS0_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca x86_fp80, align 16
  %5 = alloca %"struct.std::pair", align 8
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %7 = load i32, ptr @t, align 4, !tbaa !5
  %8 = add nsw i32 %7, -1
  store i32 %8, ptr @t, align 4, !tbaa !5
  %.not72 = icmp eq i32 %7, 0
  br i1 %.not72, label %._crit_edge75, label %.lr.ph74

.lr.ph74:                                         ; preds = %0, %._crit_edge71
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @n, ptr noundef nonnull @mod0, ptr noundef nonnull @mod1)
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %.not3042 = icmp slt i32 %10, 0
  br i1 %.not3042, label %._crit_edge46.thread, label %.lr.ph45

._crit_edge46.thread:                             ; preds = %.lr.ph74
  store i32 0, ptr @tot, align 4, !tbaa !5
  br label %._crit_edge59

._crit_edge46:                                    ; preds = %._crit_edge
  store i32 0, ptr @tot, align 4, !tbaa !5
  %.not3156 = icmp slt i32 %27, 1
  br i1 %.not3156, label %._crit_edge59, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge46
  %11 = add nuw i32 %27, 1
  %wide.trip.count = zext i32 %11 to i64
  br label %.preheader

.lr.ph45:                                         ; preds = %.lr.ph74, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %.lr.ph74 ]
  %12 = phi i32 [ %27, %._crit_edge ], [ %10, %.lr.ph74 ]
  %13 = and i32 %12, 1
  %.not3538 = icmp eq i32 %13, 0
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %14 = shl i32 %indvars.iv.tr, 1
  br i1 %.not3538, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph45, %.lr.ph
  %.02640 = phi i32 [ %16, %.lr.ph ], [ %12, %.lr.ph45 ]
  %.02739 = phi i32 [ %15, %.lr.ph ], [ %14, %.lr.ph45 ]
  %15 = ashr exact i32 %.02739, 1
  %16 = ashr exact i32 %.02640, 1
  %17 = and i32 %.02739, 2
  %.not34 = icmp eq i32 %17, 0
  %18 = and i32 %.02640, 2
  %.not35 = icmp eq i32 %18, 0
  %19 = select i1 %.not34, i1 %.not35, i1 false
  br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph45
  %.027.lcssa = phi i32 [ %14, %.lr.ph45 ], [ %15, %.lr.ph ]
  %.026.lcssa = phi i32 [ %12, %.lr.ph45 ], [ %16, %.lr.ph ]
  %20 = load x86_fp80, ptr @_ZL2pi, align 16, !tbaa !11
  %21 = sitofp i32 %.027.lcssa to x86_fp80
  %22 = fmul x86_fp80 %20, %21
  %23 = sitofp i32 %.026.lcssa to x86_fp80
  %24 = fdiv x86_fp80 %22, %23
  %25 = call noundef x86_fp80 @_ZSt3sine(x86_fp80 noundef %24)
  %26 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %indvars.iv
  store x86_fp80 %25, ptr %26, align 16, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %.not30.not = icmp slt i64 %indvars.iv, %28
  br i1 %.not30.not, label %.lr.ph45, label %._crit_edge46, !llvm.loop !13

.preheader:                                       ; preds = %.preheader.preheader, %48
  %indvars.iv82 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next83, %48 ]
  %.lcssa525557 = phi i32 [ 0, %.preheader.preheader ], [ %.lcssa5254, %48 ]
  %indvars.iv82.tr = trunc i64 %indvars.iv82 to i32
  %29 = shl i32 %indvars.iv82.tr, 1
  %30 = sub i32 %27, %29
  %31 = sext i32 %30 to i64
  %.not3348 = icmp sgt i64 %indvars.iv82, %31
  br i1 %.not3348, label %48, label %.lr.ph50

.lr.ph50:                                         ; preds = %.preheader
  %32 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %indvars.iv82
  %33 = load x86_fp80, ptr %32, align 16, !tbaa !11
  %34 = sext i32 %.lcssa525557 to i64
  br label %49

._crit_edge59:                                    ; preds = %48, %._crit_edge46.thread, %._crit_edge46
  %35 = phi i32 [ 0, %._crit_edge46 ], [ 0, %._crit_edge46.thread ], [ %.lcssa5254, %48 ]
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds x86_fp80, ptr @seq, i64 %36
  call void @_ZSt4sortIPeEvT_S1_(ptr noundef nonnull @seq, ptr noundef nonnull %37)
  %38 = load i32, ptr @tot, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds x86_fp80, ptr @seq, i64 %39
  %41 = call noundef ptr @_ZSt6uniqueIPePFbRKeS2_EET_S5_S5_T0_(ptr noundef nonnull @seq, ptr noundef nonnull %40, ptr noundef nonnull @_Z3equRKeS0_)
  %42 = ptrtoint ptr %41 to i64
  %43 = sub i64 %42, ptrtoint (ptr @seq to i64)
  %44 = lshr exact i64 %43, 4
  %45 = trunc i64 %44 to i32
  store i32 %45, ptr @tot, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph62, label %._crit_edge63

._crit_edge51:                                    ; preds = %49
  %47 = trunc nsw i64 %indvars.iv.next87 to i32
  store i32 %47, ptr @tot, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %._crit_edge51, %.preheader
  %.lcssa5254 = phi i32 [ %47, %._crit_edge51 ], [ %.lcssa525557, %.preheader ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge59, label %.preheader, !llvm.loop !14

49:                                               ; preds = %.lr.ph50, %49
  %indvars.iv86 = phi i64 [ %34, %.lr.ph50 ], [ %indvars.iv.next87, %49 ]
  %indvars.iv84 = phi i64 [ %indvars.iv82, %.lr.ph50 ], [ %indvars.iv.next85, %49 ]
  %50 = phi i32 [ %29, %.lr.ph50 ], [ %60, %49 ]
  %51 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %indvars.iv84
  %52 = load x86_fp80, ptr %51, align 16, !tbaa !11
  %53 = fadd x86_fp80 %33, %52
  %54 = zext nneg i32 %50 to i64
  %55 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %54
  %56 = load x86_fp80, ptr %55, align 16, !tbaa !11
  %57 = fsub x86_fp80 %53, %56
  %indvars.iv.next87 = add nsw i64 %indvars.iv86, 1
  %58 = getelementptr inbounds [13335 x x86_fp80], ptr @seq, i64 0, i64 %indvars.iv86
  store x86_fp80 %57, ptr %58, align 16, !tbaa !11
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %59 = add nuw nsw i64 %indvars.iv.next85, %indvars.iv82
  %60 = trunc nuw i64 %59 to i32
  %61 = sub i32 %27, %60
  %62 = sext i32 %61 to i64
  %.not33.not = icmp slt i64 %indvars.iv84, %62
  br i1 %.not33.not, label %49, label %._crit_edge51, !llvm.loop !15

._crit_edge63:                                    ; preds = %.lr.ph62, %._crit_edge59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  %63 = load i32, ptr @n, align 4, !tbaa !5
  %64 = icmp sgt i32 %63, 1
  br i1 %64, label %.lr.ph70, label %._crit_edge71

.lr.ph62:                                         ; preds = %._crit_edge59, %.lr.ph62
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph62 ], [ 0, %._crit_edge59 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %65 = getelementptr inbounds [13335 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv92
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %66 = load i32, ptr @tot, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next93, %67
  br i1 %68, label %.lr.ph62, label %._crit_edge63, !llvm.loop !16

._crit_edge71:                                    ; preds = %._crit_edge67, %._crit_edge63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %69 = load i32, ptr @mod0, align 4, !tbaa !5
  %70 = call noundef i32 @_Z5solvei(i32 noundef %69)
  %71 = sext i32 %70 to i64
  %72 = load i32, ptr @mod1, align 4, !tbaa !5
  %73 = call noundef i32 @_Z5solvei(i32 noundef %72)
  %74 = sext i32 %73 to i64
  %75 = mul nsw i64 %74, %71
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %75)
  %77 = load i32, ptr @t, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %77, 0
  br i1 %.not, label %._crit_edge75, label %.lr.ph74, !llvm.loop !17

.lr.ph70:                                         ; preds = %._crit_edge63, %._crit_edge67
  %79 = phi i32 [ %83, %._crit_edge67 ], [ %63, %._crit_edge63 ]
  %80 = phi i32 [ %.pre-phi, %._crit_edge67 ], [ 1, %._crit_edge63 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 1, ptr %3, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  %82 = icmp slt i32 %81, %79
  br i1 %82, label %.lr.ph66, label %._crit_edge67

._crit_edge67.loopexit:                           ; preds = %.lr.ph66
  %.pre = add nsw i32 %116, 1
  br label %._crit_edge67

._crit_edge67:                                    ; preds = %._crit_edge67.loopexit, %.lr.ph70
  %.pre-phi = phi i32 [ %.pre, %._crit_edge67.loopexit ], [ %81, %.lr.ph70 ]
  %83 = phi i32 [ %118, %._crit_edge67.loopexit ], [ %79, %.lr.ph70 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  store i32 %.pre-phi, ptr %2, align 4, !tbaa !5
  %84 = icmp slt i32 %.pre-phi, %83
  br i1 %84, label %.lr.ph70, label %._crit_edge71, !llvm.loop !18

.lr.ph66:                                         ; preds = %.lr.ph70, %.lr.ph66
  %85 = phi i32 [ %117, %.lr.ph66 ], [ %81, %.lr.ph70 ]
  %86 = phi i32 [ %116, %.lr.ph66 ], [ %80, %.lr.ph70 ]
  %storemerge3264 = phi i32 [ %115, %.lr.ph66 ], [ 1, %.lr.ph70 ]
  %87 = load i32, ptr @tot, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds x86_fp80, ptr @seq, i64 %88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %90 = sext i32 %86 to i64
  %91 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %90
  %92 = load x86_fp80, ptr %91, align 16, !tbaa !11
  %93 = sext i32 %storemerge3264 to i64
  %94 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %93
  %95 = load x86_fp80, ptr %94, align 16, !tbaa !11
  %96 = fadd x86_fp80 %92, %95
  %97 = sext i32 %85 to i64
  %98 = getelementptr inbounds [401 x x86_fp80], ptr @Sin, i64 0, i64 %97
  %99 = load x86_fp80, ptr %98, align 16, !tbaa !11
  %100 = fsub x86_fp80 %96, %99
  store x86_fp80 %100, ptr %4, align 16, !tbaa !11
  %101 = call noundef ptr @_ZSt11lower_boundIPeePFbRKeS2_EET_S5_S5_RKT0_T1_(ptr noundef nonnull @seq, ptr noundef nonnull %89, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull @_Z3cmpRKeS0_)
  %102 = ptrtoint ptr %101 to i64
  %103 = sub i64 %102, ptrtoint (ptr @seq to i64)
  %104 = lshr exact i64 %103, 4
  %105 = trunc i64 %104 to i32
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [401 x [401 x i32]], ptr @pos, i64 0, i64 %107, i64 %109
  store i32 %105, ptr %110, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %sext = shl i64 %103, 28
  %111 = ashr i64 %sext, 32
  %112 = getelementptr inbounds [13335 x %"class.std::vector"], ptr @e, i64 0, i64 %111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %113 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %113, ptr %5, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %114 = load i32, ptr %3, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %3, align 4, !tbaa !5
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = add nsw i32 %116, %115
  %118 = load i32, ptr @n, align 4, !tbaa !5
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %.lr.ph66, label %._crit_edge67.loopexit, !llvm.loop !19

._crit_edge75:                                    ; preds = %._crit_edge71, %0
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPeEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPePFbRKeS2_EET_S5_S5_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPeePFbRKeS2_EET_S5_S5_RKT0_T1_(ptr noundef, ptr noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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


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