; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcpbnu_arith_minv)

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

; Function Attrs: nounwind uwtable
define dso_local i32 @cpModInv_BNU(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = call i32 @cpFix_BNU(ptr noundef %33, i32 noundef %34)
  store i32 %35, ptr %12, align 4, !tbaa !9
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = load i32, ptr %14, align 4, !tbaa !9
  %38 = call i32 @cpFix_BNU(ptr noundef %36, i32 noundef %37)
  store i32 %38, ptr %14, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %49

41:                                               ; preds = %8
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds i64, ptr %42, i64 0
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = icmp eq i64 %44, 1
  br i1 %45, label %46, label %49

46:                                               ; preds = %41
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds i64, ptr %47, i64 0
  store i64 1, ptr %48, align 8, !tbaa !11
  store i32 1, ptr %9, align 4
  br label %274

49:                                               ; preds = %41, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %50 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %50, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %51, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %52 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %52, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %53, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 1, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 1, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %68, %49
  %55 = load i32, ptr %25, align 4, !tbaa !9
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %71

58:                                               ; preds = %54
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load i32, ptr %25, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i64, ptr %59, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = load i32, ptr %25, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %64, i64 %66
  store i64 %63, ptr %67, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %58
  %69 = load i32, ptr %25, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %25, align 4, !tbaa !9
  br label %54, !llvm.loop !13

71:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %81, %71
  %73 = load i32, ptr %26, align 4, !tbaa !9
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %84

76:                                               ; preds = %72
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = load i32, ptr %26, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i64, ptr %77, i64 %79
  store i64 0, ptr %80, align 8, !tbaa !11
  br label %81

81:                                               ; preds = %76
  %82 = load i32, ptr %26, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %26, align 4, !tbaa !9
  br label %72, !llvm.loop !15

84:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %94, %84
  %86 = load i32, ptr %27, align 4, !tbaa !9
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %97

89:                                               ; preds = %85
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = load i32, ptr %27, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i64, ptr %90, i64 %92
  store i64 0, ptr %93, align 8, !tbaa !11
  br label %94

94:                                               ; preds = %89
  %95 = load i32, ptr %27, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %27, align 4, !tbaa !9
  br label %85, !llvm.loop !16

97:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = getelementptr inbounds i64, ptr %98, i64 0
  store i64 1, ptr %99, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %272, %97
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = call i32 @cpDiv_BNU(ptr noundef %101, ptr noundef %24, ptr noundef %102, i32 noundef %103, ptr noundef %104, i32 noundef %105)
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = load ptr, ptr %21, align 8, !tbaa !5
  %110 = load i32, ptr %24, align 4, !tbaa !9
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = call i32 @cpMac_BNU(ptr noundef %107, i32 noundef %108, ptr noundef %109, i32 noundef %110, ptr noundef %111, i32 noundef %112)
  store i32 %113, ptr %22, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %156

116:                                              ; preds = %100
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds i64, ptr %117, i64 0
  %119 = load i64, ptr %118, align 8, !tbaa !11
  %120 = icmp eq i64 %119, 1
  br i1 %120, label %121, label %156

121:                                              ; preds = %116
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = load i32, ptr %18, align 4, !tbaa !9
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = load i32, ptr %22, align 4, !tbaa !9
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = call i32 @cpMac_BNU(ptr noundef %122, i32 noundef %123, ptr noundef %124, i32 noundef %125, ptr noundef %126, i32 noundef %127)
  store i32 %128, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %143, %121
  %130 = load i32, ptr %28, align 4, !tbaa !9
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %133, label %146

133:                                              ; preds = %129
  %134 = load ptr, ptr %20, align 8, !tbaa !5
  %135 = load i32, ptr %28, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i64, ptr %134, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !11
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load i32, ptr %28, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i64, ptr %139, i64 %141
  store i64 %138, ptr %142, align 8, !tbaa !11
  br label %143

143:                                              ; preds = %133
  %144 = load i32, ptr %28, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %28, align 4, !tbaa !9
  br label %129, !llvm.loop !17

146:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = call i64 @cpSub_BNU(ptr noundef %147, ptr noundef %148, ptr noundef %149, i32 noundef %150)
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load i32, ptr %18, align 4, !tbaa !9
  %154 = call i32 @cpFix_BNU(ptr noundef %152, i32 noundef %153)
  store i32 %154, ptr %18, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %155, ptr %9, align 4
  store i32 1, ptr %29, align 4
  br label %273

156:                                              ; preds = %116, %100
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %171

159:                                              ; preds = %156
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = getelementptr inbounds i64, ptr %160, i64 0
  %162 = load i64, ptr %161, align 8, !tbaa !11
  %163 = icmp eq i64 %162, 0
  br i1 %163, label %164, label %171

164:                                              ; preds = %159
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = call i64 @cpMul_BNU_school(ptr noundef %165, ptr noundef %166, i32 noundef %167, ptr noundef %168, i32 noundef %169)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %29, align 4
  br label %273

171:                                              ; preds = %159, %156
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %21, align 8, !tbaa !5
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = call i32 @cpDiv_BNU(ptr noundef %173, ptr noundef %24, ptr noundef %174, i32 noundef %175, ptr noundef %176, i32 noundef %177)
  store i32 %178, ptr %12, align 4, !tbaa !9
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = load i32, ptr %24, align 4, !tbaa !9
  %183 = load ptr, ptr %19, align 8, !tbaa !5
  %184 = load i32, ptr %22, align 4, !tbaa !9
  %185 = call i32 @cpMac_BNU(ptr noundef %179, i32 noundef %180, ptr noundef %181, i32 noundef %182, ptr noundef %183, i32 noundef %184)
  store i32 %185, ptr %23, align 4, !tbaa !9
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 1
  br i1 %187, label %188, label %238

188:                                              ; preds = %172
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = getelementptr inbounds i64, ptr %189, i64 0
  %191 = load i64, ptr %190, align 8, !tbaa !11
  %192 = icmp eq i64 %191, 1
  br i1 %192, label %193, label %238

193:                                              ; preds = %188
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = load i32, ptr %18, align 4, !tbaa !9
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  %197 = load i32, ptr %23, align 4, !tbaa !9
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = load i32, ptr %14, align 4, !tbaa !9
  %200 = call i32 @cpMac_BNU(ptr noundef %194, i32 noundef %195, ptr noundef %196, i32 noundef %197, ptr noundef %198, i32 noundef %199)
  store i32 %200, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %215, %193
  %202 = load i32, ptr %30, align 4, !tbaa !9
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %205, label %218

205:                                              ; preds = %201
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = load i32, ptr %30, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i64, ptr %206, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !11
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = load i32, ptr %30, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds i64, ptr %211, i64 %213
  store i64 %210, ptr %214, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %205
  %216 = load i32, ptr %30, align 4, !tbaa !9
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %30, align 4, !tbaa !9
  br label %201, !llvm.loop !18

218:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %219

219:                                              ; preds = %233, %218
  %220 = load i32, ptr %31, align 4, !tbaa !9
  %221 = load i32, ptr %23, align 4, !tbaa !9
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %223, label %236

223:                                              ; preds = %219
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  %225 = load i32, ptr %31, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds i64, ptr %224, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !11
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load i32, ptr %31, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds i64, ptr %229, i64 %231
  store i64 %228, ptr %232, align 8, !tbaa !11
  br label %233

233:                                              ; preds = %223
  %234 = load i32, ptr %31, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %31, align 4, !tbaa !9
  br label %219, !llvm.loop !19

236:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  %237 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %237, ptr %9, align 4
  store i32 1, ptr %29, align 4
  br label %273

238:                                              ; preds = %188, %172
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = icmp eq i32 %239, 1
  br i1 %240, label %241, label %271

241:                                              ; preds = %238
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = getelementptr inbounds i64, ptr %242, i64 0
  %244 = load i64, ptr %243, align 8, !tbaa !11
  %245 = icmp eq i64 %244, 0
  br i1 %245, label %246, label %271

246:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %261, %246
  %248 = load i32, ptr %32, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = icmp slt i32 %248, %249
  br i1 %250, label %251, label %264

251:                                              ; preds = %247
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = load i32, ptr %32, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i64, ptr %252, i64 %254
  %256 = load i64, ptr %255, align 8, !tbaa !11
  %257 = load ptr, ptr %19, align 8, !tbaa !5
  %258 = load i32, ptr %32, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i64, ptr %257, i64 %259
  store i64 %256, ptr %260, align 8, !tbaa !11
  br label %261

261:                                              ; preds = %251
  %262 = load i32, ptr %32, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %32, align 4, !tbaa !9
  br label %247, !llvm.loop !20

264:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = load ptr, ptr %20, align 8, !tbaa !5
  %267 = load i32, ptr %23, align 4, !tbaa !9
  %268 = load ptr, ptr %19, align 8, !tbaa !5
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = call i64 @cpMul_BNU_school(ptr noundef %265, ptr noundef %266, i32 noundef %267, ptr noundef %268, i32 noundef %269)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %29, align 4
  br label %273

271:                                              ; preds = %241, %238
  br label %272

272:                                              ; preds = %271
  br label %100

273:                                              ; preds = %264, %236, %164, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %274

274:                                              ; preds = %273, %46
  %275 = load i32, ptr %9, align 4
  ret i32 %275
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpFix_BNU(ptr noundef, 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: inlinehint nounwind uwtable
declare hidden i32 @cpDiv_BNU(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @cpMac_BNU(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #0

declare i64 @cpSub_BNU(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @cpMul_BNU_school(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

attributes #0 = { 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @cpModInv_BNU(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = ptrtoint ptr %7 to i64
  %10 = ptrtoint ptr %0 to i64
  %11 = ptrtoint ptr %3 to i64
  %12 = ptrtoint ptr %0 to i64
  %13 = ptrtoint ptr %7 to i64
  %14 = ptrtoint ptr %3 to i64
  %15 = ptrtoint ptr %1 to i64
  %16 = ptrtoint ptr %6 to i64
  %17 = alloca i32, align 4
  %18 = tail call i32 @cpFix_BNU(ptr noundef %1, i32 noundef %2)
  %19 = tail call i32 @cpFix_BNU(ptr noundef %3, i32 noundef %4)
  %20 = icmp eq i32 %18, 1
  br i1 %20, label %21, label %25

21:                                               ; preds = %8
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp eq i64 %22, 1
  br i1 %23, label %24, label %.thread

.thread:                                          ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  br label %.lr.ph.preheader

24:                                               ; preds = %21
  store i64 1, ptr %0, align 8, !tbaa !5
  br label %170

25:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %26 = icmp sgt i32 %18, 0
  br i1 %26, label %.lr.ph.preheader, label %.preheader133

.lr.ph.preheader:                                 ; preds = %.thread, %25
  %wide.trip.count = zext i32 %18 to i64
  %min.iters.check = icmp ult i32 %18, 6
  %27 = sub i64 %16, %15
  %diff.check = icmp ult i64 %27, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.preheader307, label %vector.ph

.lr.ph.preheader307:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader307, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader307 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader307 ]
  %28 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv.prol
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i64, ptr %6, i64 %indvars.iv.prol
  store i64 %29, ptr %30, align 8, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !9

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader307
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader307 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %31 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %32 = icmp ugt i64 %31, -4
  br i1 %32, label %.preheader133, label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %33 = getelementptr inbounds i64, ptr %1, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load = load <2 x i64>, ptr %33, align 8, !tbaa !5
  %wide.load226 = load <2 x i64>, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds i64, ptr %6, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x i64> %wide.load, ptr %35, align 8, !tbaa !5
  store <2 x i64> %wide.load226, ptr %36, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader133, label %.lr.ph.preheader307

.preheader133:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %25
  %38 = icmp sgt i32 %19, 0
  br i1 %38, label %.lr.ph150.preheader, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %39 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i64, ptr %6, i64 %indvars.iv
  store i64 %40, ptr %41, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv.next
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds i64, ptr %6, i64 %indvars.iv.next
  store i64 %43, ptr %44, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %45 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv.next.1
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %6, i64 %indvars.iv.next.1
  store i64 %46, ptr %47, align 8, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %48 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv.next.2
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i64, ptr %6, i64 %indvars.iv.next.2
  store i64 %49, ptr %50, align 8, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader133, label %.lr.ph, !llvm.loop !15

.lr.ph150.preheader:                              ; preds = %.preheader133
  %51 = zext nneg i32 %19 to i64
  %52 = shl nuw nsw i64 %51, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 %52, i1 false), !tbaa !5
  %53 = zext nneg i32 %19 to i64
  %54 = shl nuw nsw i64 %53, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 %54, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader133, %.lr.ph150.preheader
  store i64 1, ptr %7, align 8, !tbaa !5
  br label %.critedge130

.critedge130:                                     ; preds = %.critedge130.backedge, %._crit_edge
  %.0124 = phi i32 [ %19, %._crit_edge ], [ %55, %.critedge130.backedge ]
  %.0123 = phi i32 [ %18, %._crit_edge ], [ %90, %.critedge130.backedge ]
  %.0121 = phi i32 [ 1, %._crit_edge ], [ %92, %.critedge130.backedge ]
  %55 = call i32 @cpDiv_BNU(ptr noundef %5, ptr noundef nonnull %17, ptr noundef %3, i32 noundef %.0124, ptr noundef %6, i32 noundef %.0123)
  %56 = load i32, ptr %17, align 4, !tbaa !16
  %57 = call i32 @cpMac_BNU(ptr noundef %0, i32 noundef %19, ptr noundef %5, i32 noundef %56, ptr noundef nonnull %7, i32 noundef %.0121)
  %58 = icmp eq i32 %55, 1
  br i1 %58, label %59, label %.critedge

59:                                               ; preds = %.critedge130
  %60 = load i64, ptr %3, align 8, !tbaa !5
  switch i64 %60, label %.critedge [
    i64 1, label %61
    i64 0, label %88
  ]

61:                                               ; preds = %59
  %62 = call i32 @cpMac_BNU(ptr noundef nonnull %7, i32 noundef %19, ptr noundef %0, i32 noundef %57, ptr noundef %6, i32 noundef %.0123)
  br i1 %38, label %.lr.ph153.preheader, label %._crit_edge154

.lr.ph153.preheader:                              ; preds = %61
  %wide.trip.count185 = zext nneg i32 %19 to i64
  %min.iters.check231 = icmp ult i32 %19, 6
  %63 = sub i64 %14, %13
  %diff.check228 = icmp ult i64 %63, 32
  %or.cond287 = or i1 %min.iters.check231, %diff.check228
  br i1 %or.cond287, label %.lr.ph153.preheader294, label %vector.ph232

vector.ph232:                                     ; preds = %.lr.ph153.preheader
  %n.vec234 = and i64 %wide.trip.count185, 2147483644
  br label %vector.body236

vector.body236:                                   ; preds = %vector.body236, %vector.ph232
  %index237 = phi i64 [ 0, %vector.ph232 ], [ %index.next240, %vector.body236 ]
  %64 = getelementptr inbounds i64, ptr %7, i64 %index237
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %wide.load238 = load <2 x i64>, ptr %64, align 8, !tbaa !5
  %wide.load239 = load <2 x i64>, ptr %65, align 8, !tbaa !5
  %66 = getelementptr inbounds i64, ptr %3, i64 %index237
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  store <2 x i64> %wide.load238, ptr %66, align 8, !tbaa !5
  store <2 x i64> %wide.load239, ptr %67, align 8, !tbaa !5
  %index.next240 = add nuw i64 %index237, 4
  %68 = icmp eq i64 %index.next240, %n.vec234
  br i1 %68, label %middle.block229, label %vector.body236, !llvm.loop !18

middle.block229:                                  ; preds = %vector.body236
  %cmp.n241 = icmp eq i64 %n.vec234, %wide.trip.count185
  br i1 %cmp.n241, label %._crit_edge154, label %.lr.ph153.preheader294

.lr.ph153.preheader294:                           ; preds = %middle.block229, %.lr.ph153.preheader
  %indvars.iv182.ph = phi i64 [ 0, %.lr.ph153.preheader ], [ %n.vec234, %middle.block229 ]
  %xtraiter308 = and i64 %wide.trip.count185, 3
  %lcmp.mod309.not = icmp eq i64 %xtraiter308, 0
  br i1 %lcmp.mod309.not, label %.lr.ph153.prol.loopexit, label %.lr.ph153.prol

.lr.ph153.prol:                                   ; preds = %.lr.ph153.preheader294, %.lr.ph153.prol
  %indvars.iv182.prol = phi i64 [ %indvars.iv.next183.prol, %.lr.ph153.prol ], [ %indvars.iv182.ph, %.lr.ph153.preheader294 ]
  %prol.iter310 = phi i64 [ %prol.iter310.next, %.lr.ph153.prol ], [ 0, %.lr.ph153.preheader294 ]
  %69 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv182.prol
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv182.prol
  store i64 %70, ptr %71, align 8, !tbaa !5
  %indvars.iv.next183.prol = add nuw nsw i64 %indvars.iv182.prol, 1
  %prol.iter310.next = add i64 %prol.iter310, 1
  %prol.iter310.cmp.not = icmp eq i64 %prol.iter310.next, %xtraiter308
  br i1 %prol.iter310.cmp.not, label %.lr.ph153.prol.loopexit, label %.lr.ph153.prol, !llvm.loop !19

.lr.ph153.prol.loopexit:                          ; preds = %.lr.ph153.prol, %.lr.ph153.preheader294
  %indvars.iv182.unr = phi i64 [ %indvars.iv182.ph, %.lr.ph153.preheader294 ], [ %indvars.iv.next183.prol, %.lr.ph153.prol ]
  %72 = sub nsw i64 %indvars.iv182.ph, %wide.trip.count185
  %73 = icmp ugt i64 %72, -4
  br i1 %73, label %._crit_edge154, label %.lr.ph153

.lr.ph153:                                        ; preds = %.lr.ph153.prol.loopexit, %.lr.ph153
  %indvars.iv182 = phi i64 [ %indvars.iv.next183.3, %.lr.ph153 ], [ %indvars.iv182.unr, %.lr.ph153.prol.loopexit ]
  %74 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv182
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv182
  store i64 %75, ptr %76, align 8, !tbaa !5
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %77 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv.next183
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next183
  store i64 %78, ptr %79, align 8, !tbaa !5
  %indvars.iv.next183.1 = add nuw nsw i64 %indvars.iv182, 2
  %80 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv.next183.1
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next183.1
  store i64 %81, ptr %82, align 8, !tbaa !5
  %indvars.iv.next183.2 = add nuw nsw i64 %indvars.iv182, 3
  %83 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv.next183.2
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next183.2
  store i64 %84, ptr %85, align 8, !tbaa !5
  %indvars.iv.next183.3 = add nuw nsw i64 %indvars.iv182, 4
  %exitcond186.not.3 = icmp eq i64 %indvars.iv.next183.3, %wide.trip.count185
  br i1 %exitcond186.not.3, label %._crit_edge154, label %.lr.ph153, !llvm.loop !20

._crit_edge154:                                   ; preds = %.lr.ph153.prol.loopexit, %.lr.ph153, %middle.block229, %61
  %86 = call i64 @cpSub_BNU(ptr noundef %0, ptr noundef nonnull %3, ptr noundef %0, i32 noundef %19) #5
  %87 = call i32 @cpFix_BNU(ptr noundef %0, i32 noundef %19)
  br label %.loopexit

88:                                               ; preds = %59
  %89 = call i64 @cpMul_BNU_school(ptr noundef nonnull %3, ptr noundef %0, i32 noundef %57, ptr noundef %6, i32 noundef %.0123)
  br label %.loopexit

.critedge:                                        ; preds = %59, %.critedge130
  %90 = call i32 @cpDiv_BNU(ptr noundef %5, ptr noundef nonnull %17, ptr noundef %6, i32 noundef %.0123, ptr noundef %3, i32 noundef %55)
  %91 = load i32, ptr %17, align 4, !tbaa !16
  %92 = call i32 @cpMac_BNU(ptr noundef nonnull %7, i32 noundef %19, ptr noundef %5, i32 noundef %91, ptr noundef %0, i32 noundef %57)
  %93 = icmp eq i32 %90, 1
  br i1 %93, label %94, label %.critedge130.backedge

94:                                               ; preds = %.critedge
  %95 = load i64, ptr %6, align 8, !tbaa !5
  switch i64 %95, label %.critedge130.backedge [
    i64 1, label %108
    i64 0, label %.preheader131
  ]

.critedge130.backedge:                            ; preds = %94, %.critedge
  br label %.critedge130

.preheader131:                                    ; preds = %94
  %96 = icmp sgt i32 %55, 0
  br i1 %96, label %.lr.ph156.preheader, label %._crit_edge157

.lr.ph156.preheader:                              ; preds = %.preheader131
  %wide.trip.count190 = zext nneg i32 %55 to i64
  %min.iters.check246 = icmp ult i32 %55, 6
  %97 = sub i64 %12, %11
  %diff.check243 = icmp ult i64 %97, 32
  %or.cond288 = or i1 %min.iters.check246, %diff.check243
  br i1 %or.cond288, label %.lr.ph156.preheader293, label %vector.ph247

.lr.ph156.preheader293:                           ; preds = %middle.block244, %.lr.ph156.preheader
  %indvars.iv187.ph = phi i64 [ 0, %.lr.ph156.preheader ], [ %n.vec249, %middle.block244 ]
  %xtraiter311 = and i64 %wide.trip.count190, 3
  %lcmp.mod312.not = icmp eq i64 %xtraiter311, 0
  br i1 %lcmp.mod312.not, label %.lr.ph156.prol.loopexit, label %.lr.ph156.prol

.lr.ph156.prol:                                   ; preds = %.lr.ph156.preheader293, %.lr.ph156.prol
  %indvars.iv187.prol = phi i64 [ %indvars.iv.next188.prol, %.lr.ph156.prol ], [ %indvars.iv187.ph, %.lr.ph156.preheader293 ]
  %prol.iter313 = phi i64 [ %prol.iter313.next, %.lr.ph156.prol ], [ 0, %.lr.ph156.preheader293 ]
  %98 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv187.prol
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv187.prol
  store i64 %99, ptr %100, align 8, !tbaa !5
  %indvars.iv.next188.prol = add nuw nsw i64 %indvars.iv187.prol, 1
  %prol.iter313.next = add i64 %prol.iter313, 1
  %prol.iter313.cmp.not = icmp eq i64 %prol.iter313.next, %xtraiter311
  br i1 %prol.iter313.cmp.not, label %.lr.ph156.prol.loopexit, label %.lr.ph156.prol, !llvm.loop !21

.lr.ph156.prol.loopexit:                          ; preds = %.lr.ph156.prol, %.lr.ph156.preheader293
  %indvars.iv187.unr = phi i64 [ %indvars.iv187.ph, %.lr.ph156.preheader293 ], [ %indvars.iv.next188.prol, %.lr.ph156.prol ]
  %101 = sub nsw i64 %indvars.iv187.ph, %wide.trip.count190
  %102 = icmp ugt i64 %101, -4
  br i1 %102, label %._crit_edge157, label %.lr.ph156

vector.ph247:                                     ; preds = %.lr.ph156.preheader
  %n.vec249 = and i64 %wide.trip.count190, 2147483644
  br label %vector.body251

vector.body251:                                   ; preds = %vector.body251, %vector.ph247
  %index252 = phi i64 [ 0, %vector.ph247 ], [ %index.next255, %vector.body251 ]
  %103 = getelementptr inbounds i64, ptr %3, i64 %index252
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  %wide.load253 = load <2 x i64>, ptr %103, align 8, !tbaa !5
  %wide.load254 = load <2 x i64>, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds i64, ptr %0, i64 %index252
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  store <2 x i64> %wide.load253, ptr %105, align 8, !tbaa !5
  store <2 x i64> %wide.load254, ptr %106, align 8, !tbaa !5
  %index.next255 = add nuw i64 %index252, 4
  %107 = icmp eq i64 %index.next255, %n.vec249
  br i1 %107, label %middle.block244, label %vector.body251, !llvm.loop !22

middle.block244:                                  ; preds = %vector.body251
  %cmp.n256 = icmp eq i64 %n.vec249, %wide.trip.count190
  br i1 %cmp.n256, label %._crit_edge157, label %.lr.ph156.preheader293

108:                                              ; preds = %94
  %109 = call i32 @cpMac_BNU(ptr noundef %0, i32 noundef %19, ptr noundef nonnull %7, i32 noundef %92, ptr noundef %3, i32 noundef %55)
  br i1 %38, label %.lr.ph160.preheader, label %.preheader

.lr.ph160.preheader:                              ; preds = %108
  %wide.trip.count195 = zext nneg i32 %19 to i64
  %min.iters.check261 = icmp ult i32 %19, 6
  %110 = sub i64 %11, %10
  %diff.check258 = icmp ult i64 %110, 32
  %or.cond289 = or i1 %min.iters.check261, %diff.check258
  br i1 %or.cond289, label %.lr.ph160.preheader292, label %vector.ph262

.lr.ph160.preheader292:                           ; preds = %middle.block259, %.lr.ph160.preheader
  %indvars.iv192.ph = phi i64 [ 0, %.lr.ph160.preheader ], [ %n.vec264, %middle.block259 ]
  %xtraiter314 = and i64 %wide.trip.count195, 3
  %lcmp.mod315.not = icmp eq i64 %xtraiter314, 0
  br i1 %lcmp.mod315.not, label %.lr.ph160.prol.loopexit, label %.lr.ph160.prol

.lr.ph160.prol:                                   ; preds = %.lr.ph160.preheader292, %.lr.ph160.prol
  %indvars.iv192.prol = phi i64 [ %indvars.iv.next193.prol, %.lr.ph160.prol ], [ %indvars.iv192.ph, %.lr.ph160.preheader292 ]
  %prol.iter316 = phi i64 [ %prol.iter316.next, %.lr.ph160.prol ], [ 0, %.lr.ph160.preheader292 ]
  %111 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv192.prol
  %112 = load i64, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv192.prol
  store i64 %112, ptr %113, align 8, !tbaa !5
  %indvars.iv.next193.prol = add nuw nsw i64 %indvars.iv192.prol, 1
  %prol.iter316.next = add i64 %prol.iter316, 1
  %prol.iter316.cmp.not = icmp eq i64 %prol.iter316.next, %xtraiter314
  br i1 %prol.iter316.cmp.not, label %.lr.ph160.prol.loopexit, label %.lr.ph160.prol, !llvm.loop !23

.lr.ph160.prol.loopexit:                          ; preds = %.lr.ph160.prol, %.lr.ph160.preheader292
  %indvars.iv192.unr = phi i64 [ %indvars.iv192.ph, %.lr.ph160.preheader292 ], [ %indvars.iv.next193.prol, %.lr.ph160.prol ]
  %114 = sub nsw i64 %indvars.iv192.ph, %wide.trip.count195
  %115 = icmp ugt i64 %114, -4
  br i1 %115, label %.preheader, label %.lr.ph160

vector.ph262:                                     ; preds = %.lr.ph160.preheader
  %n.vec264 = and i64 %wide.trip.count195, 2147483644
  br label %vector.body266

vector.body266:                                   ; preds = %vector.body266, %vector.ph262
  %index267 = phi i64 [ 0, %vector.ph262 ], [ %index.next270, %vector.body266 ]
  %116 = getelementptr inbounds i64, ptr %0, i64 %index267
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %wide.load268 = load <2 x i64>, ptr %116, align 8, !tbaa !5
  %wide.load269 = load <2 x i64>, ptr %117, align 8, !tbaa !5
  %118 = getelementptr inbounds i64, ptr %3, i64 %index267
  %119 = getelementptr inbounds i8, ptr %118, i64 16
  store <2 x i64> %wide.load268, ptr %118, align 8, !tbaa !5
  store <2 x i64> %wide.load269, ptr %119, align 8, !tbaa !5
  %index.next270 = add nuw i64 %index267, 4
  %120 = icmp eq i64 %index.next270, %n.vec264
  br i1 %120, label %middle.block259, label %vector.body266, !llvm.loop !24

middle.block259:                                  ; preds = %vector.body266
  %cmp.n271 = icmp eq i64 %n.vec264, %wide.trip.count195
  br i1 %cmp.n271, label %.preheader, label %.lr.ph160.preheader292

.preheader:                                       ; preds = %.lr.ph160.prol.loopexit, %.lr.ph160, %middle.block259, %108
  %121 = icmp sgt i32 %92, 0
  br i1 %121, label %.lr.ph162.preheader, label %.loopexit

.lr.ph162.preheader:                              ; preds = %.preheader
  %wide.trip.count200 = zext nneg i32 %92 to i64
  %min.iters.check276 = icmp ult i32 %92, 6
  %122 = sub i64 %10, %9
  %diff.check273 = icmp ult i64 %122, 32
  %or.cond290 = or i1 %min.iters.check276, %diff.check273
  br i1 %or.cond290, label %.lr.ph162.preheader291, label %vector.ph277

.lr.ph162.preheader291:                           ; preds = %middle.block274, %.lr.ph162.preheader
  %indvars.iv197.ph = phi i64 [ 0, %.lr.ph162.preheader ], [ %n.vec279, %middle.block274 ]
  %xtraiter317 = and i64 %wide.trip.count200, 3
  %lcmp.mod318.not = icmp eq i64 %xtraiter317, 0
  br i1 %lcmp.mod318.not, label %.lr.ph162.prol.loopexit, label %.lr.ph162.prol

.lr.ph162.prol:                                   ; preds = %.lr.ph162.preheader291, %.lr.ph162.prol
  %indvars.iv197.prol = phi i64 [ %indvars.iv.next198.prol, %.lr.ph162.prol ], [ %indvars.iv197.ph, %.lr.ph162.preheader291 ]
  %prol.iter319 = phi i64 [ %prol.iter319.next, %.lr.ph162.prol ], [ 0, %.lr.ph162.preheader291 ]
  %123 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv197.prol
  %124 = load i64, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv197.prol
  store i64 %124, ptr %125, align 8, !tbaa !5
  %indvars.iv.next198.prol = add nuw nsw i64 %indvars.iv197.prol, 1
  %prol.iter319.next = add i64 %prol.iter319, 1
  %prol.iter319.cmp.not = icmp eq i64 %prol.iter319.next, %xtraiter317
  br i1 %prol.iter319.cmp.not, label %.lr.ph162.prol.loopexit, label %.lr.ph162.prol, !llvm.loop !25

.lr.ph162.prol.loopexit:                          ; preds = %.lr.ph162.prol, %.lr.ph162.preheader291
  %indvars.iv197.unr = phi i64 [ %indvars.iv197.ph, %.lr.ph162.preheader291 ], [ %indvars.iv.next198.prol, %.lr.ph162.prol ]
  %126 = sub nsw i64 %indvars.iv197.ph, %wide.trip.count200
  %127 = icmp ugt i64 %126, -4
  br i1 %127, label %.loopexit, label %.lr.ph162

vector.ph277:                                     ; preds = %.lr.ph162.preheader
  %n.vec279 = and i64 %wide.trip.count200, 2147483644
  br label %vector.body281

vector.body281:                                   ; preds = %vector.body281, %vector.ph277
  %index282 = phi i64 [ 0, %vector.ph277 ], [ %index.next285, %vector.body281 ]
  %128 = getelementptr inbounds i64, ptr %7, i64 %index282
  %129 = getelementptr inbounds i8, ptr %128, i64 16
  %wide.load283 = load <2 x i64>, ptr %128, align 8, !tbaa !5
  %wide.load284 = load <2 x i64>, ptr %129, align 8, !tbaa !5
  %130 = getelementptr inbounds i64, ptr %0, i64 %index282
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  store <2 x i64> %wide.load283, ptr %130, align 8, !tbaa !5
  store <2 x i64> %wide.load284, ptr %131, align 8, !tbaa !5
  %index.next285 = add nuw i64 %index282, 4
  %132 = icmp eq i64 %index.next285, %n.vec279
  br i1 %132, label %middle.block274, label %vector.body281, !llvm.loop !26

middle.block274:                                  ; preds = %vector.body281
  %cmp.n286 = icmp eq i64 %n.vec279, %wide.trip.count200
  br i1 %cmp.n286, label %.loopexit, label %.lr.ph162.preheader291

.lr.ph160:                                        ; preds = %.lr.ph160.prol.loopexit, %.lr.ph160
  %indvars.iv192 = phi i64 [ %indvars.iv.next193.3, %.lr.ph160 ], [ %indvars.iv192.unr, %.lr.ph160.prol.loopexit ]
  %133 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv192
  %134 = load i64, ptr %133, align 8, !tbaa !5
  %135 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv192
  store i64 %134, ptr %135, align 8, !tbaa !5
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %136 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next193
  %137 = load i64, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next193
  store i64 %137, ptr %138, align 8, !tbaa !5
  %indvars.iv.next193.1 = add nuw nsw i64 %indvars.iv192, 2
  %139 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next193.1
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next193.1
  store i64 %140, ptr %141, align 8, !tbaa !5
  %indvars.iv.next193.2 = add nuw nsw i64 %indvars.iv192, 3
  %142 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next193.2
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next193.2
  store i64 %143, ptr %144, align 8, !tbaa !5
  %indvars.iv.next193.3 = add nuw nsw i64 %indvars.iv192, 4
  %exitcond196.not.3 = icmp eq i64 %indvars.iv.next193.3, %wide.trip.count195
  br i1 %exitcond196.not.3, label %.preheader, label %.lr.ph160, !llvm.loop !27

.lr.ph162:                                        ; preds = %.lr.ph162.prol.loopexit, %.lr.ph162
  %indvars.iv197 = phi i64 [ %indvars.iv.next198.3, %.lr.ph162 ], [ %indvars.iv197.unr, %.lr.ph162.prol.loopexit ]
  %145 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv197
  %146 = load i64, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv197
  store i64 %146, ptr %147, align 8, !tbaa !5
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %148 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv.next198
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next198
  store i64 %149, ptr %150, align 8, !tbaa !5
  %indvars.iv.next198.1 = add nuw nsw i64 %indvars.iv197, 2
  %151 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv.next198.1
  %152 = load i64, ptr %151, align 8, !tbaa !5
  %153 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next198.1
  store i64 %152, ptr %153, align 8, !tbaa !5
  %indvars.iv.next198.2 = add nuw nsw i64 %indvars.iv197, 3
  %154 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv.next198.2
  %155 = load i64, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next198.2
  store i64 %155, ptr %156, align 8, !tbaa !5
  %indvars.iv.next198.3 = add nuw nsw i64 %indvars.iv197, 4
  %exitcond201.not.3 = icmp eq i64 %indvars.iv.next198.3, %wide.trip.count200
  br i1 %exitcond201.not.3, label %.loopexit, label %.lr.ph162, !llvm.loop !28

.lr.ph156:                                        ; preds = %.lr.ph156.prol.loopexit, %.lr.ph156
  %indvars.iv187 = phi i64 [ %indvars.iv.next188.3, %.lr.ph156 ], [ %indvars.iv187.unr, %.lr.ph156.prol.loopexit ]
  %157 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv187
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv187
  store i64 %158, ptr %159, align 8, !tbaa !5
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %160 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next188
  %161 = load i64, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next188
  store i64 %161, ptr %162, align 8, !tbaa !5
  %indvars.iv.next188.1 = add nuw nsw i64 %indvars.iv187, 2
  %163 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next188.1
  %164 = load i64, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next188.1
  store i64 %164, ptr %165, align 8, !tbaa !5
  %indvars.iv.next188.2 = add nuw nsw i64 %indvars.iv187, 3
  %166 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next188.2
  %167 = load i64, ptr %166, align 8, !tbaa !5
  %168 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next188.2
  store i64 %167, ptr %168, align 8, !tbaa !5
  %indvars.iv.next188.3 = add nuw nsw i64 %indvars.iv187, 4
  %exitcond191.not.3 = icmp eq i64 %indvars.iv.next188.3, %wide.trip.count190
  br i1 %exitcond191.not.3, label %._crit_edge157, label %.lr.ph156, !llvm.loop !29

._crit_edge157:                                   ; preds = %.lr.ph156.prol.loopexit, %.lr.ph156, %middle.block244, %.preheader131
  %169 = call i64 @cpMul_BNU_school(ptr noundef %3, ptr noundef nonnull %7, i32 noundef %92, ptr noundef %0, i32 noundef %55)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph162.prol.loopexit, %.lr.ph162, %middle.block274, %.preheader, %._crit_edge157, %88, %._crit_edge154
  %.0122 = phi i32 [ %87, %._crit_edge154 ], [ 0, %88 ], [ 0, %._crit_edge157 ], [ %92, %.preheader ], [ %92, %middle.block274 ], [ %92, %.lr.ph162 ], [ %92, %.lr.ph162.prol.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  br label %170

170:                                              ; preds = %.loopexit, %24
  %.1 = phi i32 [ 1, %24 ], [ %.0122, %.loopexit ]
  ret i32 %.1
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpFix_BNU(ptr noundef, 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: inlinehint nounwind uwtable
declare hidden i32 @cpDiv_BNU(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @cpMac_BNU(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i64 @cpSub_BNU(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @cpMul_BNU_school(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

attributes #0 = { 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !13}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !12, !13, !14}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !12, !13}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !12, !13, !14}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !12, !13, !14}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !12, !13, !14}
!27 = distinct !{!27, !12, !13}
!28 = distinct !{!28, !12, !13}
!29 = distinct !{!29, !12, !13}


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