; LLVM IR from cvxgrp/scs :: test (random_socp_prob)

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

%struct.ScsData = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.ScsSolution = type { ptr, ptr, ptr }
%struct.ScsMatrix = type { ptr, ptr, ptr, i32, i32 }

@ran_arr_ptr = external dso_local global ptr, align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @ran_start(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ran_arr_cycle() #1

; Function Attrs: nounwind uwtable
define dso_local void @gen_random_prob_data(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #1 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %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
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %28 = load ptr, ptr %9, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.ScsData, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !11
  store i32 %30, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %31 = load ptr, ptr %9, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.ScsData, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !13
  store i32 %33, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %34 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 32) #7
  %35 = load ptr, ptr %9, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.ScsData, ptr %35, i32 0, i32 2
  store ptr %34, ptr %36, align 8, !tbaa !14
  store ptr %34, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %37 = load i32, ptr %14, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = call noalias ptr @calloc(i64 noundef %38, i64 noundef 8) #7
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.ScsData, ptr %40, i32 0, i32 4
  store ptr %39, ptr %41, align 8, !tbaa !15
  store ptr %39, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %42 = load i32, ptr %13, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = call noalias ptr @calloc(i64 noundef %43, i64 noundef 8) #7
  %45 = load ptr, ptr %9, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.ScsData, ptr %45, i32 0, i32 5
  store ptr %44, ptr %46, align 8, !tbaa !16
  store ptr %44, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %47 = load i32, ptr %13, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noalias ptr @calloc(i64 noundef %48, i64 noundef 8) #7
  %50 = load ptr, ptr %11, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.ScsSolution, ptr %50, i32 0, i32 0
  store ptr %49, ptr %51, align 8, !tbaa !17
  store ptr %49, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %52 = load i32, ptr %14, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = call noalias ptr @calloc(i64 noundef %53, i64 noundef 8) #7
  %55 = load ptr, ptr %11, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.ScsSolution, ptr %55, i32 0, i32 1
  store ptr %54, ptr %56, align 8, !tbaa !19
  store ptr %54, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %57 = load i32, ptr %14, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = call noalias ptr @calloc(i64 noundef %58, i64 noundef 8) #7
  %60 = load ptr, ptr %11, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.ScsSolution, ptr %60, i32 0, i32 2
  store ptr %59, ptr %61, align 8, !tbaa !20
  store ptr %59, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %62 = load i32, ptr %14, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = call noalias ptr @calloc(i64 noundef %63, i64 noundef 8) #7
  store ptr %64, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = call noalias ptr @calloc(i64 noundef %66, i64 noundef 4) #7
  %68 = load ptr, ptr %15, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.ScsMatrix, ptr %68, i32 0, i32 1
  store ptr %67, ptr %69, align 8, !tbaa !21
  %70 = load i32, ptr %13, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = call noalias ptr @calloc(i64 noundef %72, i64 noundef 4) #7
  %74 = load ptr, ptr %15, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.ScsMatrix, ptr %74, i32 0, i32 2
  store ptr %73, ptr %75, align 8, !tbaa !23
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = call noalias ptr @calloc(i64 noundef %77, i64 noundef 8) #7
  %79 = load ptr, ptr %15, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.ScsMatrix, ptr %79, i32 0, i32 0
  store ptr %78, ptr %80, align 8, !tbaa !24
  %81 = load ptr, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.ScsData, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !11
  %84 = load ptr, ptr %15, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.ScsMatrix, ptr %84, i32 0, i32 4
  store i32 %83, ptr %85, align 4, !tbaa !25
  %86 = load ptr, ptr %9, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.ScsData, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !13
  %89 = load ptr, ptr %15, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.ScsMatrix, ptr %89, i32 0, i32 3
  store i32 %88, ptr %90, align 8, !tbaa !26
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %105, %6
  %92 = load i32, ptr %23, align 4, !tbaa !5
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %108

95:                                               ; preds = %91
  %96 = call double @rand_scs_float()
  %97 = load ptr, ptr %21, align 8, !tbaa !9
  %98 = load i32, ptr %23, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  store double %96, ptr %100, align 8, !tbaa !27
  %101 = load ptr, ptr %19, align 8, !tbaa !9
  %102 = load i32, ptr %23, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  store double %96, ptr %104, align 8, !tbaa !27
  br label %105

105:                                              ; preds = %95
  %106 = load i32, ptr %23, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %23, align 4, !tbaa !5
  br label %91, !llvm.loop !29

108:                                              ; preds = %91
  %109 = load ptr, ptr %10, align 8, !tbaa !9
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = call ptr @_scs_init_cone(ptr noundef %109, i32 noundef %110)
  store ptr %111, ptr %22, align 8, !tbaa !9
  %112 = load ptr, ptr %19, align 8, !tbaa !9
  %113 = load ptr, ptr %22, align 8, !tbaa !9
  %114 = call i32 @_scs_proj_dual_cone(ptr noundef %112, ptr noundef %113, ptr noundef null, ptr noundef null)
  %115 = load ptr, ptr %22, align 8, !tbaa !9
  call void @_scs_finish_cone(ptr noundef %115)
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %140, %108
  %117 = load i32, ptr %23, align 4, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %120, label %143

120:                                              ; preds = %116
  %121 = load ptr, ptr %19, align 8, !tbaa !9
  %122 = load i32, ptr %23, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !27
  %126 = load ptr, ptr %21, align 8, !tbaa !9
  %127 = load i32, ptr %23, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !27
  %131 = fsub double %125, %130
  %132 = load ptr, ptr %20, align 8, !tbaa !9
  %133 = load i32, ptr %23, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  store double %131, ptr %135, align 8, !tbaa !27
  %136 = load ptr, ptr %16, align 8, !tbaa !9
  %137 = load i32, ptr %23, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %136, i64 %138
  store double %131, ptr %139, align 8, !tbaa !27
  br label %140

140:                                              ; preds = %120
  %141 = load i32, ptr %23, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %23, align 4, !tbaa !5
  br label %116, !llvm.loop !31

143:                                              ; preds = %116
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %154, %143
  %145 = load i32, ptr %23, align 4, !tbaa !5
  %146 = load i32, ptr %13, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %157

148:                                              ; preds = %144
  %149 = call double @rand_scs_float()
  %150 = load ptr, ptr %18, align 8, !tbaa !9
  %151 = load i32, ptr %23, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds double, ptr %150, i64 %152
  store double %149, ptr %153, align 8, !tbaa !27
  br label %154

154:                                              ; preds = %148
  %155 = load i32, ptr %23, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %23, align 4, !tbaa !5
  br label %144, !llvm.loop !32

157:                                              ; preds = %144
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  call void @ran_start(i64 noundef %159)
  %160 = load ptr, ptr %15, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.ScsMatrix, ptr %160, i32 0, i32 2
  %162 = load ptr, ptr %161, align 8, !tbaa !23
  %163 = getelementptr inbounds i32, ptr %162, i64 0
  store i32 0, ptr %163, align 4, !tbaa !5
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %289, %157
  %165 = load i32, ptr %24, align 4, !tbaa !5
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %168, label %292

168:                                              ; preds = %164
  store i32 0, ptr %25, align 4, !tbaa !5
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %274, %168
  %170 = load i32, ptr %23, align 4, !tbaa !5
  %171 = load i32, ptr %14, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %173, label %177

173:                                              ; preds = %169
  %174 = load i32, ptr %25, align 4, !tbaa !5
  %175 = load i32, ptr %8, align 4, !tbaa !5
  %176 = icmp slt i32 %174, %175
  br label %177

177:                                              ; preds = %173, %169
  %178 = phi i1 [ false, %169 ], [ %176, %173 ]
  br i1 %178, label %179, label %277

179:                                              ; preds = %177
  %180 = load i32, ptr %14, align 4, !tbaa !5
  %181 = load i32, ptr %23, align 4, !tbaa !5
  %182 = sub nsw i32 %180, %181
  store i32 %182, ptr %26, align 4, !tbaa !5
  %183 = load i32, ptr %8, align 4, !tbaa !5
  %184 = load i32, ptr %25, align 4, !tbaa !5
  %185 = sub nsw i32 %183, %184
  store i32 %185, ptr %27, align 4, !tbaa !5
  %186 = load ptr, ptr @ran_arr_ptr, align 8, !tbaa !9
  %187 = load i64, ptr %186, align 8, !tbaa !33
  %188 = icmp sge i64 %187, 0
  br i1 %188, label %189, label %193

189:                                              ; preds = %179
  %190 = load ptr, ptr @ran_arr_ptr, align 8, !tbaa !9
  %191 = getelementptr inbounds i64, ptr %190, i32 1
  store ptr %191, ptr @ran_arr_ptr, align 8, !tbaa !9
  %192 = load i64, ptr %190, align 8, !tbaa !33
  br label %195

193:                                              ; preds = %179
  %194 = call i64 @ran_arr_cycle()
  br label %195

195:                                              ; preds = %193, %189
  %196 = phi i64 [ %192, %189 ], [ %194, %193 ]
  %197 = load i32, ptr %26, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = srem i64 %196, %198
  %200 = load i32, ptr %27, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = icmp slt i64 %199, %201
  br i1 %202, label %203, label %273

203:                                              ; preds = %195
  %204 = call double @rand_scs_float()
  %205 = load ptr, ptr %15, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.ScsMatrix, ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !24
  %208 = load i32, ptr %25, align 4, !tbaa !5
  %209 = load i32, ptr %24, align 4, !tbaa !5
  %210 = load i32, ptr %8, align 4, !tbaa !5
  %211 = mul nsw i32 %209, %210
  %212 = add nsw i32 %208, %211
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %207, i64 %213
  store double %204, ptr %214, align 8, !tbaa !27
  %215 = load i32, ptr %23, align 4, !tbaa !5
  %216 = load ptr, ptr %15, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.ScsMatrix, ptr %216, i32 0, i32 1
  %218 = load ptr, ptr %217, align 8, !tbaa !21
  %219 = load i32, ptr %25, align 4, !tbaa !5
  %220 = load i32, ptr %24, align 4, !tbaa !5
  %221 = load i32, ptr %8, align 4, !tbaa !5
  %222 = mul nsw i32 %220, %221
  %223 = add nsw i32 %219, %222
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds i32, ptr %218, i64 %224
  store i32 %215, ptr %225, align 4, !tbaa !5
  %226 = load ptr, ptr %15, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct.ScsMatrix, ptr %226, i32 0, i32 0
  %228 = load ptr, ptr %227, align 8, !tbaa !24
  %229 = load i32, ptr %25, align 4, !tbaa !5
  %230 = load i32, ptr %24, align 4, !tbaa !5
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = mul nsw i32 %230, %231
  %233 = add nsw i32 %229, %232
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %228, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !27
  %237 = load ptr, ptr %18, align 8, !tbaa !9
  %238 = load i32, ptr %24, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !27
  %242 = load ptr, ptr %16, align 8, !tbaa !9
  %243 = load i32, ptr %23, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !27
  %247 = call double @llvm.fmuladd.f64(double %236, double %241, double %246)
  store double %247, ptr %245, align 8, !tbaa !27
  %248 = load ptr, ptr %15, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.ScsMatrix, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !24
  %251 = load i32, ptr %25, align 4, !tbaa !5
  %252 = load i32, ptr %24, align 4, !tbaa !5
  %253 = load i32, ptr %8, align 4, !tbaa !5
  %254 = mul nsw i32 %252, %253
  %255 = add nsw i32 %251, %254
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %250, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !27
  %259 = load ptr, ptr %19, align 8, !tbaa !9
  %260 = load i32, ptr %23, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds double, ptr %259, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !27
  %264 = load ptr, ptr %17, align 8, !tbaa !9
  %265 = load i32, ptr %24, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !27
  %269 = fneg double %258
  %270 = call double @llvm.fmuladd.f64(double %269, double %263, double %268)
  store double %270, ptr %267, align 8, !tbaa !27
  %271 = load i32, ptr %25, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %25, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %203, %195
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %23, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %23, align 4, !tbaa !5
  br label %169, !llvm.loop !35

277:                                              ; preds = %177
  %278 = load i32, ptr %24, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  %280 = load i32, ptr %8, align 4, !tbaa !5
  %281 = mul nsw i32 %279, %280
  %282 = load ptr, ptr %15, align 8, !tbaa !9
  %283 = getelementptr inbounds %struct.ScsMatrix, ptr %282, i32 0, i32 2
  %284 = load ptr, ptr %283, align 8, !tbaa !23
  %285 = load i32, ptr %24, align 4, !tbaa !5
  %286 = add nsw i32 %285, 1
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds i32, ptr %284, i64 %287
  store i32 %281, ptr %288, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %277
  %290 = load i32, ptr %24, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %24, align 4, !tbaa !5
  br label %164, !llvm.loop !36

292:                                              ; preds = %164
  %293 = load ptr, ptr %21, align 8, !tbaa !9
  call void @free(ptr noundef %293) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  ret void
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden double @rand_scs_float() #1

declare ptr @_scs_init_cone(ptr noundef, i32 noundef) #3

declare i32 @_scs_proj_dual_cone(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_scs_finish_cone(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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

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

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


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

@ran_arr_ptr = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @ran_start(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @ran_arr_cycle() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @gen_random_prob_data(i32 noundef %0, i32 noundef %1, ptr nocapture noundef %2, ptr noundef %3, ptr nocapture noundef writeonly %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %2, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = load i32, ptr %2, align 8, !tbaa !11
  %10 = tail call noalias dereferenceable_or_null(32) ptr @calloc(i64 noundef 1, i64 noundef 32) #5
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %10, ptr %11, align 8, !tbaa !12
  %12 = sext i32 %9 to i64
  %13 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #5
  %14 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %13, ptr %14, align 8, !tbaa !13
  %15 = sext i32 %8 to i64
  %16 = tail call noalias ptr @calloc(i64 noundef %15, i64 noundef 8) #5
  %17 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr %16, ptr %17, align 8, !tbaa !14
  %18 = tail call noalias ptr @calloc(i64 noundef %15, i64 noundef 8) #5
  store ptr %18, ptr %4, align 8, !tbaa !15
  %19 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #5
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %19, ptr %20, align 8, !tbaa !17
  %21 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #5
  %22 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %21, ptr %22, align 8, !tbaa !18
  %23 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #5
  %24 = sext i32 %0 to i64
  %25 = tail call noalias ptr @calloc(i64 noundef %24, i64 noundef 4) #5
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %25, ptr %26, align 8, !tbaa !19
  %27 = add nsw i32 %8, 1
  %28 = sext i32 %27 to i64
  %29 = tail call noalias ptr @calloc(i64 noundef %28, i64 noundef 4) #5
  %30 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %29, ptr %30, align 8, !tbaa !21
  %31 = tail call noalias ptr @calloc(i64 noundef %24, i64 noundef 8) #5
  store ptr %31, ptr %10, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %10, i64 28
  store i32 %8, ptr %32, align 4, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %10, i64 24
  store i32 %9, ptr %33, align 8, !tbaa !24
  %34 = icmp sgt i32 %9, 0
  br i1 %34, label %.lr.ph.preheader, label %.preheader104.critedge

.lr.ph.preheader:                                 ; preds = %6
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %35 = tail call double @rand_scs_float()
  %36 = getelementptr inbounds double, ptr %23, i64 %indvars.iv
  store double %35, ptr %36, align 8, !tbaa !25
  %37 = getelementptr inbounds double, ptr %19, i64 %indvars.iv
  store double %35, ptr %37, align 8, !tbaa !25
  %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 %.lr.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph
  %38 = tail call ptr @_scs_init_cone(ptr noundef %3, i32 noundef %9) #6
  %39 = tail call i32 @_scs_proj_dual_cone(ptr noundef %19, ptr noundef %38, ptr noundef null, ptr noundef null) #6
  tail call void @_scs_finish_cone(ptr noundef %38) #6
  br i1 %34, label %.lr.ph108.preheader, label %.preheader104

.lr.ph108.preheader:                              ; preds = %._crit_edge
  %wide.trip.count123 = zext nneg i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 4
  br i1 %min.iters.check, label %.lr.ph108.preheader161, label %vector.ph

.lr.ph108.preheader161:                           ; preds = %middle.block, %.lr.ph108.preheader
  %indvars.iv120.ph = phi i64 [ 0, %.lr.ph108.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph108

vector.ph:                                        ; preds = %.lr.ph108.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 ]
  %40 = getelementptr inbounds double, ptr %19, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %wide.load = load <2 x double>, ptr %40, align 8, !tbaa !25
  %wide.load145 = load <2 x double>, ptr %41, align 8, !tbaa !25
  %42 = getelementptr inbounds double, ptr %23, i64 %index
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load146 = load <2 x double>, ptr %42, align 8, !tbaa !25
  %wide.load147 = load <2 x double>, ptr %43, align 8, !tbaa !25
  %44 = fsub <2 x double> %wide.load, %wide.load146
  %45 = fsub <2 x double> %wide.load145, %wide.load147
  %46 = getelementptr inbounds double, ptr %21, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store <2 x double> %44, ptr %46, align 8, !tbaa !25
  store <2 x double> %45, ptr %47, align 8, !tbaa !25
  %48 = getelementptr inbounds double, ptr %13, i64 %index
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  store <2 x double> %44, ptr %48, align 8, !tbaa !25
  store <2 x double> %45, ptr %49, align 8, !tbaa !25
  %index.next = add nuw i64 %index, 4
  %50 = icmp eq i64 %index.next, %n.vec
  br i1 %50, label %middle.block, label %vector.body, !llvm.loop !29

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

.preheader104.critedge:                           ; preds = %6
  %51 = tail call ptr @_scs_init_cone(ptr noundef %3, i32 noundef %9) #6
  %52 = tail call i32 @_scs_proj_dual_cone(ptr noundef %19, ptr noundef %51, ptr noundef null, ptr noundef null) #6
  tail call void @_scs_finish_cone(ptr noundef %51) #6
  br label %.preheader104

.preheader104:                                    ; preds = %.lr.ph108, %middle.block, %.preheader104.critedge, %._crit_edge
  %53 = icmp sgt i32 %8, 0
  br i1 %53, label %.lr.ph110.preheader, label %._crit_edge111

.lr.ph110.preheader:                              ; preds = %.preheader104
  %wide.trip.count128 = zext nneg i32 %8 to i64
  br label %.lr.ph110

.lr.ph108:                                        ; preds = %.lr.ph108.preheader161, %.lr.ph108
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %.lr.ph108 ], [ %indvars.iv120.ph, %.lr.ph108.preheader161 ]
  %54 = getelementptr inbounds double, ptr %19, i64 %indvars.iv120
  %55 = load double, ptr %54, align 8, !tbaa !25
  %56 = getelementptr inbounds double, ptr %23, i64 %indvars.iv120
  %57 = load double, ptr %56, align 8, !tbaa !25
  %58 = fsub double %55, %57
  %59 = getelementptr inbounds double, ptr %21, i64 %indvars.iv120
  store double %58, ptr %59, align 8, !tbaa !25
  %60 = getelementptr inbounds double, ptr %13, i64 %indvars.iv120
  store double %58, ptr %60, align 8, !tbaa !25
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %wide.trip.count123
  br i1 %exitcond124.not, label %.preheader104, label %.lr.ph108, !llvm.loop !32

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %.lr.ph110
  %indvars.iv125 = phi i64 [ 0, %.lr.ph110.preheader ], [ %indvars.iv.next126, %.lr.ph110 ]
  %61 = tail call double @rand_scs_float()
  %62 = getelementptr inbounds double, ptr %18, i64 %indvars.iv125
  store double %61, ptr %62, align 8, !tbaa !25
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %._crit_edge111, label %.lr.ph110, !llvm.loop !33

._crit_edge111:                                   ; preds = %.lr.ph110, %.preheader104
  %63 = sext i32 %5 to i64
  tail call void @ran_start(i64 noundef %63)
  %64 = load ptr, ptr %30, align 8, !tbaa !21
  store i32 0, ptr %64, align 4, !tbaa !34
  br i1 %53, label %.preheader.lr.ph, label %._crit_edge117

.preheader.lr.ph:                                 ; preds = %._crit_edge111
  %65 = icmp sgt i32 %1, 0
  %66 = and i1 %34, %65
  %wide.trip.count141 = zext nneg i32 %8 to i64
  br i1 %66, label %.preheader.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %min.iters.check150 = icmp ult i32 %8, 8
  br i1 %min.iters.check150, label %.preheader.preheader159, label %vector.ph151

.preheader.preheader159:                          ; preds = %middle.block148, %.preheader.preheader
  %indvars.iv130.ph = phi i64 [ 0, %.preheader.preheader ], [ %n.vec153, %middle.block148 ]
  br label %.preheader

vector.ph151:                                     ; preds = %.preheader.preheader
  %n.vec153 = and i64 %wide.trip.count141, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %1, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body155

vector.body155:                                   ; preds = %vector.body155, %vector.ph151
  %index156 = phi i64 [ 0, %vector.ph151 ], [ %index.next157, %vector.body155 ]
  %67 = insertelement <4 x i64> poison, i64 %index156, i64 0
  %68 = shufflevector <4 x i64> %67, <4 x i64> poison, <4 x i32> zeroinitializer
  %69 = or disjoint <4 x i64> %68, <i64 1, i64 2, i64 3, i64 4>
  %70 = extractelement <4 x i64> %69, i64 0
  %71 = getelementptr inbounds i32, ptr %64, i64 %70
  %72 = trunc <4 x i64> %69 to <4 x i32>
  %73 = trunc <4 x i64> %68 to <4 x i32>
  %74 = add <4 x i32> %73, <i32 5, i32 6, i32 7, i32 8>
  %75 = mul <4 x i32> %broadcast.splat, %72
  %76 = mul <4 x i32> %broadcast.splat, %74
  %77 = getelementptr inbounds i8, ptr %71, i64 16
  store <4 x i32> %75, ptr %71, align 4, !tbaa !34
  store <4 x i32> %76, ptr %77, align 4, !tbaa !34
  %index.next157 = add nuw i64 %index156, 8
  %78 = icmp eq i64 %index.next157, %n.vec153
  br i1 %78, label %middle.block148, label %vector.body155, !llvm.loop !35

middle.block148:                                  ; preds = %vector.body155
  %cmp.n158 = icmp eq i64 %n.vec153, %wide.trip.count141
  br i1 %cmp.n158, label %._crit_edge117, label %.preheader.preheader159

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge115.us
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %._crit_edge115.us ], [ 0, %.preheader.lr.ph ]
  %79 = getelementptr inbounds double, ptr %18, i64 %indvars.iv138
  %80 = getelementptr inbounds double, ptr %16, i64 %indvars.iv138
  %81 = trunc i64 %indvars.iv138 to i32
  %82 = mul i32 %81, %1
  br label %83

83:                                               ; preds = %.preheader.us, %118
  %indvars.iv135 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next136, %118 ]
  %.099112.us = phi i32 [ 0, %.preheader.us ], [ %.1100.us, %118 ]
  %84 = sub nsw i64 %12, %indvars.iv135
  %85 = sub nsw i32 %1, %.099112.us
  %86 = load ptr, ptr @ran_arr_ptr, align 8, !tbaa !36
  %87 = load i64, ptr %86, align 8, !tbaa !37
  %88 = icmp sgt i64 %87, -1
  br i1 %88, label %91, label %89

89:                                               ; preds = %83
  %90 = tail call i64 @ran_arr_cycle()
  br label %93

91:                                               ; preds = %83
  %92 = getelementptr inbounds i8, ptr %86, i64 8
  store ptr %92, ptr @ran_arr_ptr, align 8, !tbaa !36
  br label %93

93:                                               ; preds = %91, %89
  %94 = phi i64 [ %87, %91 ], [ %90, %89 ]
  %95 = srem i64 %94, %84
  %96 = sext i32 %85 to i64
  %97 = icmp slt i64 %95, %96
  br i1 %97, label %98, label %118

98:                                               ; preds = %93
  %99 = tail call double @rand_scs_float()
  %100 = load ptr, ptr %10, align 8, !tbaa !22
  %101 = add nsw i32 %.099112.us, %82
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  store double %99, ptr %103, align 8, !tbaa !25
  %104 = load ptr, ptr %26, align 8, !tbaa !19
  %105 = getelementptr inbounds i32, ptr %104, i64 %102
  %106 = trunc nuw nsw i64 %indvars.iv135 to i32
  store i32 %106, ptr %105, align 4, !tbaa !34
  %107 = load double, ptr %79, align 8, !tbaa !25
  %108 = getelementptr inbounds double, ptr %13, i64 %indvars.iv135
  %109 = load double, ptr %108, align 8, !tbaa !25
  %110 = tail call double @llvm.fmuladd.f64(double %99, double %107, double %109)
  store double %110, ptr %108, align 8, !tbaa !25
  %111 = load double, ptr %103, align 8, !tbaa !25
  %112 = getelementptr inbounds double, ptr %19, i64 %indvars.iv135
  %113 = load double, ptr %112, align 8, !tbaa !25
  %114 = load double, ptr %80, align 8, !tbaa !25
  %115 = fneg double %111
  %116 = tail call double @llvm.fmuladd.f64(double %115, double %113, double %114)
  store double %116, ptr %80, align 8, !tbaa !25
  %117 = add nsw i32 %.099112.us, 1
  br label %118

118:                                              ; preds = %98, %93
  %.1100.us = phi i32 [ %117, %98 ], [ %.099112.us, %93 ]
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %119 = icmp slt i64 %indvars.iv.next136, %12
  %120 = icmp slt i32 %.1100.us, %1
  %121 = select i1 %119, i1 %120, i1 false
  br i1 %121, label %83, label %._crit_edge115.us, !llvm.loop !39

._crit_edge115.us:                                ; preds = %118
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %122 = load ptr, ptr %30, align 8, !tbaa !21
  %123 = getelementptr inbounds i32, ptr %122, i64 %indvars.iv.next139
  %124 = trunc i64 %indvars.iv.next139 to i32
  %125 = mul i32 %124, %1
  store i32 %125, ptr %123, align 4, !tbaa !34
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge117, label %.preheader.us, !llvm.loop !40

.preheader:                                       ; preds = %.preheader.preheader159, %.preheader
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.preheader ], [ %indvars.iv130.ph, %.preheader.preheader159 ]
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %126 = getelementptr inbounds i32, ptr %64, i64 %indvars.iv.next131
  %127 = trunc i64 %indvars.iv.next131 to i32
  %128 = mul i32 %127, %1
  store i32 %128, ptr %126, align 4, !tbaa !34
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count141
  br i1 %exitcond134.not, label %._crit_edge117, label %.preheader, !llvm.loop !41

._crit_edge117:                                   ; preds = %.preheader, %._crit_edge115.us, %middle.block148, %._crit_edge111
  tail call void @free(ptr noundef %23) #6
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden double @rand_scs_float() local_unnamed_addr #0

declare ptr @_scs_init_cone(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @_scs_proj_dual_cone(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_scs_finish_cone(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0,1) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !10, i64 32}
!15 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!16, !10, i64 8}
!18 = !{!16, !10, i64 16}
!19 = !{!20, !10, i64 8}
!20 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28}
!21 = !{!20, !10, i64 16}
!22 = !{!20, !10, i64 0}
!23 = !{!20, !7, i64 28}
!24 = !{!20, !7, i64 24}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28, !30, !31}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !28, !31, !30}
!33 = distinct !{!33, !28}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !28, !30, !31}
!36 = !{!10, !10, i64 0}
!37 = !{!38, !38, i64 0}
!38 = !{!"long", !8, i64 0}
!39 = distinct !{!39, !28}
!40 = distinct !{!40, !28}
!41 = distinct !{!41, !28, !31, !30}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass