; LLVM IR from ritikbanger/Hacktoberfest2022-DSA :: 01. Mathematics/chinese_remainder.ll (ZN17chinese_remainder8evaluateEv)

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

%"class.std::basic_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.chinese_remainder = type { i32, i32, [100 x i32], [100 x i32], [100 x i32], [100 x i32] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1

; 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) #0

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

; 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 @_ZN17chinese_remainder8evaluateEv(ptr noundef nonnull align 4 dereferenceable(1608) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store float 0x4003333340000000, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %31, %1
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %34

21:                                               ; preds = %15
  %22 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 0
  %23 = load i32, ptr %22, align 4, !tbaa !15
  %24 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 4
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [100 x i32], ptr %24, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = mul nsw i32 %23, %28
  %30 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 0
  store i32 %29, ptr %30, align 4, !tbaa !15
  br label %31

31:                                               ; preds = %21
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %6, align 4, !tbaa !9
  br label %15, !llvm.loop !16

34:                                               ; preds = %20
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %36 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 0
  %37 = load i32, ptr %36, align 4, !tbaa !15
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %59, %34
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !13
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %62

46:                                               ; preds = %40
  %47 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 0
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 4
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100 x i32], ptr %49, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = sdiv i32 %48, %53
  %55 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 2
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100 x i32], ptr %55, i64 0, i64 %57
  store i32 %54, ptr %58, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %46
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !9
  br label %40, !llvm.loop !18

62:                                               ; preds = %45
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %75, %62
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = icmp slt i32 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %78

70:                                               ; preds = %64
  %71 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 3
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100 x i32], ptr %71, i64 0, i64 %73
  store i32 1, ptr %74, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %70
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %8, align 4, !tbaa !9
  br label %64, !llvm.loop !19

78:                                               ; preds = %69
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %122, %78
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !13
  %84 = icmp slt i32 %81, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %80
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %125

86:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %118, %86
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 4
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100 x i32], ptr %89, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp slt i32 %88, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %87
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %121

96:                                               ; preds = %87
  %97 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 2
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100 x i32], ptr %97, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = mul nsw i32 %101, %102
  %104 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 4
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100 x i32], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = srem i32 %103, %108
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %111, label %117

111:                                              ; preds = %96
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 3
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100 x i32], ptr %113, i64 0, i64 %115
  store i32 %112, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %111, %96
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %11, align 4, !tbaa !9
  br label %87, !llvm.loop !20

121:                                              ; preds = %95
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %9, align 4, !tbaa !9
  br label %80, !llvm.loop !21

125:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %152, %125
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !13
  %130 = icmp slt i32 %127, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %126
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %155

132:                                              ; preds = %126
  %133 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 5
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100 x i32], ptr %133, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 2
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [100 x i32], ptr %138, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = mul nsw i32 %137, %142
  %144 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 3
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [100 x i32], ptr %144, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = mul nsw i32 %143, %148
  %150 = load i32, ptr %3, align 4, !tbaa !9
  %151 = add nsw i32 %150, %149
  store i32 %151, ptr %3, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %132
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %12, align 4, !tbaa !9
  br label %126, !llvm.loop !22

155:                                              ; preds = %131
  %156 = load i32, ptr %3, align 4, !tbaa !9
  %157 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 0
  %158 = load i32, ptr %157, align 4, !tbaa !15
  %159 = srem i32 %156, %158
  store i32 %159, ptr %3, align 4, !tbaa !9
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %208, %155
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 1
  %164 = load i32, ptr %163, align 4, !tbaa !13
  %165 = icmp slt i32 %162, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %161
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %211

167:                                              ; preds = %161
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %169 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 5
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100 x i32], ptr %169, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %168, i32 noundef %173)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef @.str.7)
  %176 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 2
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [100 x i32], ptr %176, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %175, i32 noundef %180)
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef @.str.7)
  %183 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 3
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [100 x i32], ptr %183, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %182, i32 noundef %187)
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @.str.7)
  %190 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 5
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [100 x i32], ptr %190, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 2
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [100 x i32], ptr %195, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = mul nsw i32 %194, %199
  %201 = getelementptr inbounds %class.chinese_remainder, ptr %14, i32 0, i32 3
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100 x i32], ptr %201, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = mul nsw i32 %200, %205
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %189, i32 noundef %206)
  br label %208

208:                                              ; preds = %167
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %13, align 4, !tbaa !9
  br label %161, !llvm.loop !23

211:                                              ; preds = %166
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %213 = load i32, ptr %3, align 4, !tbaa !9
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %212, i32 noundef %213)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

attributes #0 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"_ZTS17chinese_remainder", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 408, !7, i64 808, !7, i64 1208}
!15 = !{!14, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


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

%"class.std::basic_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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1

; 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 #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17chinese_remainder8evaluateEv(ptr nocapture noundef nonnull align 4 dereferenceable(1608) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 4
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %13

.lr.ph:                                           ; preds = %1
  %.promoted = load i32, ptr %0, align 4, !tbaa !10
  %5 = getelementptr inbounds i8, ptr %0, i64 808
  %wide.trip.count = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.ph = phi i32 [ %.promoted, %.lr.ph ], [ %12, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483640
  %6 = insertelement <4 x i32> <i32 poison, i32 1, i32 1, i32 1>, i32 %.promoted, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %6, %vector.ph ], [ %9, %vector.body ]
  %vec.phi96 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %10, %vector.body ]
  %7 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %index
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %wide.load = load <4 x i32>, ptr %7, align 4, !tbaa !11
  %wide.load97 = load <4 x i32>, ptr %8, align 4, !tbaa !11
  %9 = mul <4 x i32> %wide.load, %vec.phi
  %10 = mul <4 x i32> %wide.load97, %vec.phi96
  %index.next = add nuw i64 %index, 8
  %11 = icmp eq i64 %index.next, %n.vec
  br i1 %11, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %10, %9
  %12 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %.lcssa95 = phi i32 [ %12, %middle.block ], [ %27, %scalar.ph ]
  store i32 %.lcssa95, ptr %0, align 4, !tbaa !10
  br label %13

13:                                               ; preds = %._crit_edge, %1
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %15 = load i32, ptr %0, align 4, !tbaa !10
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %15)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.4)
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph50, label %._crit_edge51

.lr.ph50:                                         ; preds = %13
  %20 = load i32, ptr %0, align 4, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %0, i64 808
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %wide.trip.count74 = zext nneg i32 %18 to i64
  %xtraiter = and i64 %wide.trip.count74, 1
  %23 = icmp eq i32 %18, 1
  br i1 %23, label %._crit_edge51.loopexit.unr-lcssa, label %.lr.ph50.new

.lr.ph50.new:                                     ; preds = %.lr.ph50
  %unroll_iter = and i64 %wide.trip.count74, 2147483646
  br label %39

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %24 = phi i32 [ %27, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %25 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = mul nsw i32 %26, %24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !16

._crit_edge51.loopexit.unr-lcssa:                 ; preds = %39, %.lr.ph50
  %indvars.iv71.unr = phi i64 [ 0, %.lr.ph50 ], [ %indvars.iv.next72.1, %39 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge51, label %._crit_edge51.loopexit.epilog-lcssa

._crit_edge51.loopexit.epilog-lcssa:              ; preds = %._crit_edge51.loopexit.unr-lcssa
  %28 = getelementptr inbounds [100 x i32], ptr %21, i64 0, i64 %indvars.iv71.unr
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = sdiv i32 %20, %29
  %31 = getelementptr inbounds [100 x i32], ptr %22, i64 0, i64 %indvars.iv71.unr
  store i32 %30, ptr %31, align 4, !tbaa !11
  br label %._crit_edge51

._crit_edge51:                                    ; preds = %._crit_edge51.loopexit.epilog-lcssa, %._crit_edge51.loopexit.unr-lcssa, %13
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph54, label %._crit_edge55

.lr.ph54:                                         ; preds = %._crit_edge51
  %35 = getelementptr inbounds i8, ptr %0, i64 408
  %wide.trip.count79 = zext nneg i32 %33 to i64
  %min.iters.check100 = icmp ult i32 %33, 8
  br i1 %min.iters.check100, label %scalar.ph99.preheader, label %vector.ph101

scalar.ph99.preheader:                            ; preds = %middle.block98, %.lr.ph54
  %indvars.iv76.ph = phi i64 [ 0, %.lr.ph54 ], [ %n.vec103, %middle.block98 ]
  br label %scalar.ph99

vector.ph101:                                     ; preds = %.lr.ph54
  %n.vec103 = and i64 %wide.trip.count79, 2147483640
  br label %vector.body105

vector.body105:                                   ; preds = %vector.body105, %vector.ph101
  %index106 = phi i64 [ 0, %vector.ph101 ], [ %index.next107, %vector.body105 ]
  %36 = getelementptr inbounds [100 x i32], ptr %35, i64 0, i64 %index106
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %36, align 4, !tbaa !11
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %37, align 4, !tbaa !11
  %index.next107 = add nuw i64 %index106, 8
  %38 = icmp eq i64 %index.next107, %n.vec103
  br i1 %38, label %middle.block98, label %vector.body105, !llvm.loop !17

middle.block98:                                   ; preds = %vector.body105
  %cmp.n108 = icmp eq i64 %n.vec103, %wide.trip.count79
  br i1 %cmp.n108, label %._crit_edge55, label %scalar.ph99.preheader

39:                                               ; preds = %39, %.lr.ph50.new
  %indvars.iv71 = phi i64 [ 0, %.lr.ph50.new ], [ %indvars.iv.next72.1, %39 ]
  %niter = phi i64 [ 0, %.lr.ph50.new ], [ %niter.next.1, %39 ]
  %40 = getelementptr inbounds [100 x i32], ptr %21, i64 0, i64 %indvars.iv71
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = sdiv i32 %20, %41
  %43 = getelementptr inbounds [100 x i32], ptr %22, i64 0, i64 %indvars.iv71
  store i32 %42, ptr %43, align 4, !tbaa !11
  %indvars.iv.next72 = or disjoint i64 %indvars.iv71, 1
  %44 = getelementptr inbounds [100 x i32], ptr %21, i64 0, i64 %indvars.iv.next72
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = sdiv i32 %20, %45
  %47 = getelementptr inbounds [100 x i32], ptr %22, i64 0, i64 %indvars.iv.next72
  store i32 %46, ptr %47, align 4, !tbaa !11
  %indvars.iv.next72.1 = add nuw nsw i64 %indvars.iv71, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge51.loopexit.unr-lcssa, label %39, !llvm.loop !18

._crit_edge55:                                    ; preds = %scalar.ph99, %middle.block98, %._crit_edge51
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.preheader44.lr.ph, label %._crit_edge63

.preheader44.lr.ph:                               ; preds = %._crit_edge55
  %51 = getelementptr inbounds i8, ptr %0, i64 808
  %52 = getelementptr inbounds i8, ptr %0, i64 8
  %53 = getelementptr inbounds i8, ptr %0, i64 408
  %wide.trip.count84 = zext nneg i32 %49 to i64
  br label %.preheader44

scalar.ph99:                                      ; preds = %scalar.ph99.preheader, %scalar.ph99
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %scalar.ph99 ], [ %indvars.iv76.ph, %scalar.ph99.preheader ]
  %54 = getelementptr inbounds [100 x i32], ptr %35, i64 0, i64 %indvars.iv76
  store i32 1, ptr %54, align 4, !tbaa !11
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next77, %wide.trip.count79
  br i1 %exitcond80.not, label %._crit_edge55, label %scalar.ph99, !llvm.loop !19

.preheader44:                                     ; preds = %.preheader44.lr.ph, %._crit_edge58
  %indvars.iv81 = phi i64 [ 0, %.preheader44.lr.ph ], [ %indvars.iv.next82, %._crit_edge58 ]
  %55 = getelementptr inbounds [100 x i32], ptr %51, i64 0, i64 %indvars.iv81
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %57 = icmp sgt i32 %56, 1
  br i1 %57, label %.lr.ph57, label %._crit_edge58

.lr.ph57:                                         ; preds = %.preheader44
  %58 = getelementptr inbounds [100 x i32], ptr %52, i64 0, i64 %indvars.iv81
  %59 = getelementptr inbounds [100 x i32], ptr %53, i64 0, i64 %indvars.iv81
  %.pre = load i32, ptr %58, align 4, !tbaa !11
  %60 = add nsw i32 %56, -1
  %xtraiter136 = and i32 %60, 1
  %61 = icmp eq i32 %56, 2
  br i1 %61, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57.new

.lr.ph57.new:                                     ; preds = %.lr.ph57
  %unroll_iter138 = and i32 %60, -2
  br label %83

.preheader:                                       ; preds = %._crit_edge58
  br i1 %50, label %.lr.ph62, label %._crit_edge63

.lr.ph62:                                         ; preds = %.preheader
  %62 = getelementptr inbounds i8, ptr %0, i64 1208
  %63 = getelementptr inbounds i8, ptr %0, i64 8
  %64 = getelementptr inbounds i8, ptr %0, i64 408
  %wide.trip.count89 = zext nneg i32 %49 to i64
  %min.iters.check111 = icmp ult i32 %49, 8
  br i1 %min.iters.check111, label %scalar.ph110.preheader, label %vector.ph112

scalar.ph110.preheader:                           ; preds = %middle.block109, %.lr.ph62
  %indvars.iv86.ph = phi i64 [ 0, %.lr.ph62 ], [ %n.vec114, %middle.block109 ]
  %.04260.ph = phi i32 [ 0, %.lr.ph62 ], [ %78, %middle.block109 ]
  br label %scalar.ph110

vector.ph112:                                     ; preds = %.lr.ph62
  %n.vec114 = and i64 %wide.trip.count84, 2147483640
  br label %vector.body116

vector.body116:                                   ; preds = %vector.body116, %vector.ph112
  %index117 = phi i64 [ 0, %vector.ph112 ], [ %index.next126, %vector.body116 ]
  %vec.phi118 = phi <4 x i32> [ zeroinitializer, %vector.ph112 ], [ %75, %vector.body116 ]
  %vec.phi119 = phi <4 x i32> [ zeroinitializer, %vector.ph112 ], [ %76, %vector.body116 ]
  %65 = getelementptr inbounds [100 x i32], ptr %62, i64 0, i64 %index117
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %wide.load120 = load <4 x i32>, ptr %65, align 4, !tbaa !11
  %wide.load121 = load <4 x i32>, ptr %66, align 4, !tbaa !11
  %67 = getelementptr inbounds [100 x i32], ptr %63, i64 0, i64 %index117
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %wide.load122 = load <4 x i32>, ptr %67, align 4, !tbaa !11
  %wide.load123 = load <4 x i32>, ptr %68, align 4, !tbaa !11
  %69 = mul nsw <4 x i32> %wide.load122, %wide.load120
  %70 = mul nsw <4 x i32> %wide.load123, %wide.load121
  %71 = getelementptr inbounds [100 x i32], ptr %64, i64 0, i64 %index117
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %wide.load124 = load <4 x i32>, ptr %71, align 4, !tbaa !11
  %wide.load125 = load <4 x i32>, ptr %72, align 4, !tbaa !11
  %73 = mul nsw <4 x i32> %69, %wide.load124
  %74 = mul nsw <4 x i32> %70, %wide.load125
  %75 = add <4 x i32> %73, %vec.phi118
  %76 = add <4 x i32> %74, %vec.phi119
  %index.next126 = add nuw i64 %index117, 8
  %77 = icmp eq i64 %index.next126, %n.vec114
  br i1 %77, label %middle.block109, label %vector.body116, !llvm.loop !20

middle.block109:                                  ; preds = %vector.body116
  %bin.rdx127 = add <4 x i32> %76, %75
  %78 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx127)
  %cmp.n128 = icmp eq i64 %n.vec114, %wide.trip.count84
  br i1 %cmp.n128, label %._crit_edge63, label %scalar.ph110.preheader

._crit_edge58.loopexit.unr-lcssa:                 ; preds = %97, %.lr.ph57
  %.03756.unr = phi i32 [ 1, %.lr.ph57 ], [ %98, %97 ]
  %lcmp.mod137.not = icmp eq i32 %xtraiter136, 0
  br i1 %lcmp.mod137.not, label %._crit_edge58, label %.epil.preheader135

.epil.preheader135:                               ; preds = %._crit_edge58.loopexit.unr-lcssa
  %79 = mul nsw i32 %.pre, %.03756.unr
  %80 = srem i32 %79, %56
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %82, label %._crit_edge58

82:                                               ; preds = %.epil.preheader135
  store i32 %.03756.unr, ptr %59, align 4, !tbaa !11
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit.unr-lcssa, %82, %.epil.preheader135, %.preheader44
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count84
  br i1 %exitcond85.not, label %.preheader, label %.preheader44, !llvm.loop !21

83:                                               ; preds = %97, %.lr.ph57.new
  %.03756 = phi i32 [ 1, %.lr.ph57.new ], [ %98, %97 ]
  %niter139 = phi i32 [ 0, %.lr.ph57.new ], [ %niter139.next.1, %97 ]
  %84 = mul nsw i32 %.pre, %.03756
  %85 = srem i32 %84, %56
  %86 = icmp eq i32 %85, 1
  %87 = add nuw nsw i32 %.03756, 1
  %88 = mul nsw i32 %.pre, %87
  %89 = srem i32 %88, %56
  %90 = icmp eq i32 %89, 1
  %spec.select = select i1 %90, i32 %87, i32 %.03756
  %91 = xor i1 %86, true
  %92 = xor i1 %90, true
  %93 = xor i1 %91, true
  %94 = xor i1 %92, true
  %95 = or i1 %93, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %83
  store i32 %spec.select, ptr %59, align 4, !tbaa !11
  br label %97

97:                                               ; preds = %83, %96
  %98 = add nuw nsw i32 %.03756, 2
  %niter139.next.1 = add i32 %niter139, 2
  %niter139.ncmp.1.not = icmp eq i32 %niter139.next.1, %unroll_iter138
  br i1 %niter139.ncmp.1.not, label %._crit_edge58.loopexit.unr-lcssa, label %83, !llvm.loop !22

._crit_edge63:                                    ; preds = %scalar.ph110, %middle.block109, %._crit_edge55, %.preheader
  %.042.lcssa = phi i32 [ 0, %.preheader ], [ 0, %._crit_edge55 ], [ %78, %middle.block109 ], [ %114, %scalar.ph110 ]
  %99 = load i32, ptr %0, align 4, !tbaa !10
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %._crit_edge63
  %103 = getelementptr inbounds i8, ptr %0, i64 1208
  %104 = getelementptr inbounds i8, ptr %0, i64 8
  %105 = getelementptr inbounds i8, ptr %0, i64 408
  br label %118

scalar.ph110:                                     ; preds = %scalar.ph110.preheader, %scalar.ph110
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %scalar.ph110 ], [ %indvars.iv86.ph, %scalar.ph110.preheader ]
  %.04260 = phi i32 [ %114, %scalar.ph110 ], [ %.04260.ph, %scalar.ph110.preheader ]
  %106 = getelementptr inbounds [100 x i32], ptr %62, i64 0, i64 %indvars.iv86
  %107 = load i32, ptr %106, align 4, !tbaa !11
  %108 = getelementptr inbounds [100 x i32], ptr %63, i64 0, i64 %indvars.iv86
  %109 = load i32, ptr %108, align 4, !tbaa !11
  %110 = mul nsw i32 %109, %107
  %111 = getelementptr inbounds [100 x i32], ptr %64, i64 0, i64 %indvars.iv86
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = mul nsw i32 %110, %112
  %114 = add nsw i32 %113, %.04260
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count89
  br i1 %exitcond90.not, label %._crit_edge63, label %scalar.ph110, !llvm.loop !23

._crit_edge68:                                    ; preds = %118, %._crit_edge63
  %115 = srem i32 %.042.lcssa, %99
  %116 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
  %117 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %116, i32 noundef %115)
  ret void

118:                                              ; preds = %.lr.ph67, %118
  %indvars.iv91 = phi i64 [ 0, %.lr.ph67 ], [ %indvars.iv.next92, %118 ]
  %119 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %120 = getelementptr inbounds [100 x i32], ptr %103, i64 0, i64 %indvars.iv91
  %121 = load i32, ptr %120, align 4, !tbaa !11
  %122 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %119, i32 noundef %121)
  %123 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str.7)
  %124 = getelementptr inbounds [100 x i32], ptr %104, i64 0, i64 %indvars.iv91
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %123, i32 noundef %125)
  %127 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @.str.7)
  %128 = getelementptr inbounds [100 x i32], ptr %105, i64 0, i64 %indvars.iv91
  %129 = load i32, ptr %128, align 4, !tbaa !11
  %130 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef %129)
  %131 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.7)
  %132 = load i32, ptr %120, align 4, !tbaa !11
  %133 = load i32, ptr %124, align 4, !tbaa !11
  %134 = mul nsw i32 %133, %132
  %135 = load i32, ptr %128, align 4, !tbaa !11
  %136 = mul nsw i32 %134, %135
  %137 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %131, i32 noundef %136)
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = icmp slt i64 %indvars.iv.next92, %139
  br i1 %140, label %118, label %._crit_edge68, !llvm.loop !24
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3

attributes #0 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !7, i64 4}
!6 = !{!"_ZTS17chinese_remainder", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 408, !8, i64 808, !8, i64 1208}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13, !14, !15}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !13, !15, !14}
!17 = distinct !{!17, !13, !14, !15}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13, !15, !14}
!20 = distinct !{!20, !13, !14, !15}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13, !15, !14}
!24 = distinct !{!24, !13}


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