; LLVM IR from cvxgrp/scs :: src/exp_cone.ll (scs_proj_pd_exp_cone)

; 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 double @_scs_proj_pd_exp_cone(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca [3 x double], align 16
  %15 = alloca [3 x double], align 16
  %16 = alloca [3 x double], align 16
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 1.000000e-08, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %19 = load i32, ptr %5, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %34, label %21

21:                                               ; preds = %2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i64 0
  %24 = load double, ptr %23, align 8, !tbaa !11
  %25 = fmul double %24, -1.000000e+00
  store double %25, ptr %23, align 8, !tbaa !11
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i64 1
  %28 = load double, ptr %27, align 8, !tbaa !11
  %29 = fmul double %28, -1.000000e+00
  store double %29, ptr %27, align 8, !tbaa !11
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 2
  %32 = load double, ptr %31, align 8, !tbaa !11
  %33 = fmul double %32, -1.000000e+00
  store double %33, ptr %31, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %21, %2
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %37 = call double @proj_primal_exp_cone_heuristic(ptr noundef %35, ptr noundef %36)
  store double %37, ptr %9, align 8, !tbaa !11
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %40 = call double @proj_polar_exp_cone_heuristic(ptr noundef %38, ptr noundef %39)
  store double %40, ptr %10, align 8, !tbaa !11
  %41 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %42 = load double, ptr %41, align 16, !tbaa !11
  %43 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %44 = load double, ptr %43, align 16, !tbaa !11
  %45 = fadd double %42, %44
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i64 0
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = fsub double %45, %48
  %50 = fcmp olt double %49, 0.000000e+00
  br i1 %50, label %51, label %62

51:                                               ; preds = %34
  %52 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %53 = load double, ptr %52, align 16, !tbaa !11
  %54 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %55 = load double, ptr %54, align 16, !tbaa !11
  %56 = fadd double %53, %55
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 0
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = fsub double %56, %59
  %61 = fneg double %60
  br label %72

62:                                               ; preds = %34
  %63 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %64 = load double, ptr %63, align 16, !tbaa !11
  %65 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %66 = load double, ptr %65, align 16, !tbaa !11
  %67 = fadd double %64, %66
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 0
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = fsub double %67, %70
  br label %72

72:                                               ; preds = %62, %51
  %73 = phi double [ %61, %51 ], [ %71, %62 ]
  store double %73, ptr %11, align 8, !tbaa !11
  %74 = load double, ptr %11, align 8, !tbaa !11
  %75 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = fadd double %76, %78
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 1
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = fsub double %79, %82
  %84 = fcmp olt double %83, 0.000000e+00
  br i1 %84, label %85, label %96

85:                                               ; preds = %72
  %86 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = fadd double %87, %89
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %91, i64 1
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = fsub double %90, %93
  %95 = fneg double %94
  br label %106

96:                                               ; preds = %72
  %97 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fadd double %98, %100
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 1
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = fsub double %101, %104
  br label %106

106:                                              ; preds = %96, %85
  %107 = phi double [ %95, %85 ], [ %105, %96 ]
  %108 = fcmp ogt double %74, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %106
  %110 = load double, ptr %11, align 8, !tbaa !11
  br label %145

111:                                              ; preds = %106
  %112 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = fadd double %113, %115
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds double, ptr %117, i64 1
  %119 = load double, ptr %118, align 8, !tbaa !11
  %120 = fsub double %116, %119
  %121 = fcmp olt double %120, 0.000000e+00
  br i1 %121, label %122, label %133

122:                                              ; preds = %111
  %123 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %124 = load double, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = fadd double %124, %126
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds double, ptr %128, i64 1
  %130 = load double, ptr %129, align 8, !tbaa !11
  %131 = fsub double %127, %130
  %132 = fneg double %131
  br label %143

133:                                              ; preds = %111
  %134 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %135 = load double, ptr %134, align 8, !tbaa !11
  %136 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = fadd double %135, %137
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 1
  %141 = load double, ptr %140, align 8, !tbaa !11
  %142 = fsub double %138, %141
  br label %143

143:                                              ; preds = %133, %122
  %144 = phi double [ %132, %122 ], [ %142, %133 ]
  br label %145

145:                                              ; preds = %143, %109
  %146 = phi double [ %110, %109 ], [ %144, %143 ]
  store double %146, ptr %11, align 8, !tbaa !11
  %147 = load double, ptr %11, align 8, !tbaa !11
  %148 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %149 = load double, ptr %148, align 16, !tbaa !11
  %150 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %151 = load double, ptr %150, align 16, !tbaa !11
  %152 = fadd double %149, %151
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 2
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = fsub double %152, %155
  %157 = fcmp olt double %156, 0.000000e+00
  br i1 %157, label %158, label %169

158:                                              ; preds = %145
  %159 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %160 = load double, ptr %159, align 16, !tbaa !11
  %161 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %162 = load double, ptr %161, align 16, !tbaa !11
  %163 = fadd double %160, %162
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %164, i64 2
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = fsub double %163, %166
  %168 = fneg double %167
  br label %179

169:                                              ; preds = %145
  %170 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %171 = load double, ptr %170, align 16, !tbaa !11
  %172 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %173 = load double, ptr %172, align 16, !tbaa !11
  %174 = fadd double %171, %173
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 2
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = fsub double %174, %177
  br label %179

179:                                              ; preds = %169, %158
  %180 = phi double [ %168, %158 ], [ %178, %169 ]
  %181 = fcmp ogt double %147, %180
  br i1 %181, label %182, label %184

182:                                              ; preds = %179
  %183 = load double, ptr %11, align 8, !tbaa !11
  br label %218

184:                                              ; preds = %179
  %185 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %186 = load double, ptr %185, align 16, !tbaa !11
  %187 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %188 = load double, ptr %187, align 16, !tbaa !11
  %189 = fadd double %186, %188
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds double, ptr %190, i64 2
  %192 = load double, ptr %191, align 8, !tbaa !11
  %193 = fsub double %189, %192
  %194 = fcmp olt double %193, 0.000000e+00
  br i1 %194, label %195, label %206

195:                                              ; preds = %184
  %196 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %197 = load double, ptr %196, align 16, !tbaa !11
  %198 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %199 = load double, ptr %198, align 16, !tbaa !11
  %200 = fadd double %197, %199
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 2
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = fsub double %200, %203
  %205 = fneg double %204
  br label %216

206:                                              ; preds = %184
  %207 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %208 = load double, ptr %207, align 16, !tbaa !11
  %209 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %210 = load double, ptr %209, align 16, !tbaa !11
  %211 = fadd double %208, %210
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 2
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = fsub double %211, %214
  br label %216

216:                                              ; preds = %206, %195
  %217 = phi double [ %205, %195 ], [ %215, %206 ]
  br label %218

218:                                              ; preds = %216, %182
  %219 = phi double [ %183, %182 ], [ %217, %216 ]
  store double %219, ptr %11, align 8, !tbaa !11
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 1
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = fcmp ole double %222, 0.000000e+00
  br i1 %223, label %224, label %229

224:                                              ; preds = %218
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds double, ptr %225, i64 0
  %227 = load double, ptr %226, align 8, !tbaa !11
  %228 = fcmp ole double %227, 0.000000e+00
  br label %229

229:                                              ; preds = %224, %218
  %230 = phi i1 [ false, %218 ], [ %228, %224 ]
  %231 = zext i1 %230 to i32
  store i32 %231, ptr %17, align 4, !tbaa !9
  %232 = load double, ptr %9, align 8, !tbaa !11
  %233 = load double, ptr %10, align 8, !tbaa !11
  %234 = fcmp olt double %232, %233
  br i1 %234, label %235, label %237

235:                                              ; preds = %229
  %236 = load double, ptr %9, align 8, !tbaa !11
  br label %239

237:                                              ; preds = %229
  %238 = load double, ptr %10, align 8, !tbaa !11
  br label %239

239:                                              ; preds = %237, %235
  %240 = phi double [ %236, %235 ], [ %238, %237 ]
  %241 = load double, ptr %6, align 8, !tbaa !11
  %242 = fcmp ole double %240, %241
  %243 = zext i1 %242 to i32
  %244 = load i32, ptr %17, align 4, !tbaa !9
  %245 = or i32 %244, %243
  store i32 %245, ptr %17, align 4, !tbaa !9
  %246 = load double, ptr %11, align 8, !tbaa !11
  %247 = load double, ptr %6, align 8, !tbaa !11
  %248 = fcmp ole double %246, %247
  br i1 %248, label %249, label %255

249:                                              ; preds = %239
  %250 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %251 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %252 = call double @_scs_dot(ptr noundef %250, ptr noundef %251, i32 noundef 3)
  %253 = load double, ptr %6, align 8, !tbaa !11
  %254 = fcmp ole double %252, %253
  br label %255

255:                                              ; preds = %249, %239
  %256 = phi i1 [ false, %239 ], [ %254, %249 ]
  %257 = zext i1 %256 to i32
  %258 = load i32, ptr %17, align 4, !tbaa !9
  %259 = or i32 %258, %257
  store i32 %259, ptr %17, align 4, !tbaa !9
  %260 = load i32, ptr %17, align 4, !tbaa !9
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %286

262:                                              ; preds = %255
  %263 = load i32, ptr %5, align 4, !tbaa !9
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %269

265:                                              ; preds = %262
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  call void @_copy(ptr noundef %266, ptr noundef %267)
  %268 = load double, ptr %9, align 8, !tbaa !11
  store double %268, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %345

269:                                              ; preds = %262
  %270 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %271 = load double, ptr %270, align 16, !tbaa !11
  %272 = fneg double %271
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds double, ptr %273, i64 0
  store double %272, ptr %274, align 8, !tbaa !11
  %275 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %276 = load double, ptr %275, align 8, !tbaa !11
  %277 = fneg double %276
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds double, ptr %278, i64 1
  store double %277, ptr %279, align 8, !tbaa !11
  %280 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %281 = load double, ptr %280, align 16, !tbaa !11
  %282 = fneg double %281
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds double, ptr %283, i64 2
  store double %282, ptr %284, align 8, !tbaa !11
  %285 = load double, ptr %10, align 8, !tbaa !11
  store double %285, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %345

286:                                              ; preds = %255
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = load double, ptr %9, align 8, !tbaa !11
  %289 = load double, ptr %10, align 8, !tbaa !11
  call void @exp_search_bracket(ptr noundef %287, double noundef %288, double noundef %289, ptr noundef %7, ptr noundef %8)
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = load double, ptr %7, align 8, !tbaa !11
  %292 = load double, ptr %8, align 8, !tbaa !11
  %293 = load double, ptr %7, align 8, !tbaa !11
  %294 = load double, ptr %8, align 8, !tbaa !11
  %295 = fadd double %293, %294
  %296 = fmul double 5.000000e-01, %295
  %297 = call double @root_search_newton(ptr noundef %290, double noundef %291, double noundef %292, double noundef %296)
  store double %297, ptr %12, align 8, !tbaa !11
  %298 = load i32, ptr %5, align 4, !tbaa !9
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %316

300:                                              ; preds = %286
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = load double, ptr %12, align 8, !tbaa !11
  %303 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %304 = call double @proj_sol_primal_exp_cone(ptr noundef %301, double noundef %302, ptr noundef %303)
  store double %304, ptr %13, align 8, !tbaa !11
  %305 = load double, ptr %13, align 8, !tbaa !11
  %306 = load double, ptr %9, align 8, !tbaa !11
  %307 = fcmp ole double %305, %306
  br i1 %307, label %308, label %312

308:                                              ; preds = %300
  %309 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %310 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @_copy(ptr noundef %309, ptr noundef %310)
  %311 = load double, ptr %13, align 8, !tbaa !11
  store double %311, ptr %9, align 8, !tbaa !11
  br label %312

312:                                              ; preds = %308, %300
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  call void @_copy(ptr noundef %313, ptr noundef %314)
  %315 = load double, ptr %9, align 8, !tbaa !11
  store double %315, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %345

316:                                              ; preds = %286
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = load double, ptr %12, align 8, !tbaa !11
  %319 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %320 = call double @proj_sol_polar_exp_cone(ptr noundef %317, double noundef %318, ptr noundef %319)
  store double %320, ptr %13, align 8, !tbaa !11
  %321 = load double, ptr %13, align 8, !tbaa !11
  %322 = load double, ptr %10, align 8, !tbaa !11
  %323 = fcmp ole double %321, %322
  br i1 %323, label %324, label %328

324:                                              ; preds = %316
  %325 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %326 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @_copy(ptr noundef %325, ptr noundef %326)
  %327 = load double, ptr %13, align 8, !tbaa !11
  store double %327, ptr %10, align 8, !tbaa !11
  br label %328

328:                                              ; preds = %324, %316
  %329 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %330 = load double, ptr %329, align 16, !tbaa !11
  %331 = fneg double %330
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = getelementptr inbounds double, ptr %332, i64 0
  store double %331, ptr %333, align 8, !tbaa !11
  %334 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %335 = load double, ptr %334, align 8, !tbaa !11
  %336 = fneg double %335
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  %338 = getelementptr inbounds double, ptr %337, i64 1
  store double %336, ptr %338, align 8, !tbaa !11
  %339 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %340 = load double, ptr %339, align 16, !tbaa !11
  %341 = fneg double %340
  %342 = load ptr, ptr %4, align 8, !tbaa !5
  %343 = getelementptr inbounds double, ptr %342, i64 2
  store double %341, ptr %343, align 8, !tbaa !11
  %344 = load double, ptr %10, align 8, !tbaa !11
  store double %344, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %345

345:                                              ; preds = %328, %312, %269, %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %346 = load double, ptr %3, align 8
  ret double %346
}

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

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

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

declare double @_scs_dot(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @_copy(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @exp_search_bracket(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef) #0

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = !{!"double", !7, i64 0}


; 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 double @_scs_proj_pd_exp_cone(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca [3 x double], align 16
  %6 = alloca [3 x double], align 16
  %7 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %8, label %14

8:                                                ; preds = %2
  %9 = load <2 x double>, ptr %0, align 8, !tbaa !5
  %10 = fneg <2 x double> %9
  store <2 x double> %10, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load double, ptr %11, align 8, !tbaa !5
  %13 = fneg double %12
  store double %13, ptr %11, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %8, %2
  %15 = call double @proj_primal_exp_cone_heuristic(ptr noundef %0, ptr noundef nonnull %5)
  %16 = call double @proj_polar_exp_cone_heuristic(ptr noundef %0, ptr noundef nonnull %6)
  %17 = load <2 x double>, ptr %5, align 16, !tbaa !5
  %18 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %19 = fadd <2 x double> %17, %18
  %20 = load <2 x double>, ptr %0, align 8, !tbaa !5
  %21 = fsub <2 x double> %19, %20
  %22 = fcmp olt <2 x double> %21, zeroinitializer
  %23 = fcmp uge <2 x double> %21, zeroinitializer
  %24 = shufflevector <2 x i1> %22, <2 x i1> %23, <2 x i32> <i32 0, i32 3>
  %25 = fneg <2 x double> %21
  %26 = shufflevector <2 x double> %25, <2 x double> %21, <2 x i32> <i32 0, i32 3>
  %27 = fneg <2 x double> %21
  %28 = shufflevector <2 x double> %21, <2 x double> %27, <2 x i32> <i32 0, i32 3>
  %29 = select <2 x i1> %24, <2 x double> %26, <2 x double> %28
  %30 = extractelement <2 x double> %29, i64 0
  %31 = extractelement <2 x double> %29, i64 1
  %32 = fcmp ogt double %30, %31
  %33 = select i1 %32, double %30, double %31
  %34 = getelementptr inbounds i8, ptr %5, i64 16
  %35 = load double, ptr %34, align 16, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %6, i64 16
  %37 = load double, ptr %36, align 16, !tbaa !5
  %38 = fadd double %35, %37
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = fsub double %38, %40
  %42 = fcmp uge double %41, 0.000000e+00
  %43 = fneg double %41
  %44 = select i1 %42, double %41, double %43
  %45 = fcmp ogt double %33, %44
  %46 = select i1 %45, double %33, double %44
  %47 = extractelement <2 x double> %20, i64 1
  %48 = fcmp ole double %47, 0.000000e+00
  %49 = extractelement <2 x double> %20, i64 0
  %50 = fcmp ole double %49, 0.000000e+00
  %narrow = select i1 %48, i1 %50, i1 false
  %51 = fcmp olt double %15, %16
  %52 = select i1 %51, double %15, double %16
  %53 = fcmp ole double %52, 1.000000e-08
  %54 = or i1 %53, %narrow
  %55 = zext i1 %54 to i32
  %56 = fcmp ugt double %46, 1.000000e-08
  br i1 %56, label %61, label %57

57:                                               ; preds = %14
  %58 = call double @_scs_dot(ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 3) #4
  %59 = fcmp ole double %58, 1.000000e-08
  %60 = zext i1 %59 to i32
  br label %61

61:                                               ; preds = %57, %14
  %62 = phi i32 [ 0, %14 ], [ %60, %57 ]
  %63 = or i32 %62, %55
  %.not83 = icmp eq i32 %63, 0
  br i1 %.not83, label %71, label %64

64:                                               ; preds = %61
  br i1 %.not, label %66, label %65

65:                                               ; preds = %64
  call void @_copy(ptr noundef nonnull %0, ptr noundef nonnull %5)
  br label %91

66:                                               ; preds = %64
  %67 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %68 = fneg <2 x double> %67
  store <2 x double> %68, ptr %0, align 8, !tbaa !5
  %69 = load double, ptr %36, align 16, !tbaa !5
  %70 = fneg double %69
  store double %70, ptr %39, align 8, !tbaa !5
  br label %91

71:                                               ; preds = %61
  call void @exp_search_bracket(ptr noundef nonnull %0, double noundef %15, double noundef %16, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %72 = load double, ptr %3, align 8, !tbaa !5
  %73 = load double, ptr %4, align 8, !tbaa !5
  %74 = fadd double %72, %73
  %75 = fmul double %74, 5.000000e-01
  %76 = call double @root_search_newton(ptr noundef nonnull %0, double noundef %72, double noundef %73, double noundef %75)
  br i1 %.not, label %82, label %77

77:                                               ; preds = %71
  %78 = call double @proj_sol_primal_exp_cone(ptr noundef nonnull %0, double noundef %76, ptr noundef nonnull %7)
  %79 = fcmp ugt double %78, %15
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  call void @_copy(ptr noundef nonnull %5, ptr noundef nonnull %7)
  br label %81

81:                                               ; preds = %80, %77
  %.067 = phi double [ %78, %80 ], [ %15, %77 ]
  call void @_copy(ptr noundef nonnull %0, ptr noundef nonnull %5)
  br label %91

82:                                               ; preds = %71
  %83 = call double @proj_sol_polar_exp_cone(ptr noundef nonnull %0, double noundef %76, ptr noundef nonnull %7)
  %84 = fcmp ugt double %83, %16
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  call void @_copy(ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %86

86:                                               ; preds = %85, %82
  %.066 = phi double [ %83, %85 ], [ %16, %82 ]
  %87 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %88 = fneg <2 x double> %87
  store <2 x double> %88, ptr %0, align 8, !tbaa !5
  %89 = load double, ptr %36, align 16, !tbaa !5
  %90 = fneg double %89
  store double %90, ptr %39, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %86, %81, %66, %65
  %.0 = phi double [ %15, %65 ], [ %16, %66 ], [ %.067, %81 ], [ %.066, %86 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret double %.0
}

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

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

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

declare double @_scs_dot(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @_copy(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @exp_search_bracket(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass