; LLVM IR from bohanwang/libpgo :: third-party/CCD/SafeCCD (safeCCDWrapper)

; 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: 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: mustprogress nounwind uwtable
define dso_local noundef double @_ZN14SafeCCDWrapper8computeBEPKdS1_S1_S1_S1_S1_S1_S1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #1 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [6 x [3 x double]], align 16
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %17) #3
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i64 0
  %24 = load double, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = getelementptr inbounds double, ptr %25, i64 0
  %27 = load double, ptr %26, align 8, !tbaa !9
  %28 = fsub double %24, %27
  %29 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 0
  %30 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
  store double %28, ptr %30, align 16, !tbaa !9
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds double, ptr %31, i64 1
  %33 = load double, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i64 1
  %36 = load double, ptr %35, align 8, !tbaa !9
  %37 = fsub double %33, %36
  %38 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 0
  %39 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 1
  store double %37, ptr %39, align 8, !tbaa !9
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 2
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 2
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fsub double %42, %45
  %47 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 0
  %48 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 2
  store double %46, ptr %48, align 16, !tbaa !9
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds double, ptr %49, i64 0
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 0
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fsub double %51, %54
  %56 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 1
  %57 = getelementptr inbounds [3 x double], ptr %56, i64 0, i64 0
  store double %55, ptr %57, align 8, !tbaa !9
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 1
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 1
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = fsub double %60, %63
  %65 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 1
  %66 = getelementptr inbounds [3 x double], ptr %65, i64 0, i64 1
  store double %64, ptr %66, align 8, !tbaa !9
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i64 2
  %69 = load double, ptr %68, align 8, !tbaa !9
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 2
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fsub double %69, %72
  %74 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 1
  %75 = getelementptr inbounds [3 x double], ptr %74, i64 0, i64 2
  store double %73, ptr %75, align 8, !tbaa !9
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 0
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %79, i64 0
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fsub double %78, %81
  %83 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 2
  %84 = getelementptr inbounds [3 x double], ptr %83, i64 0, i64 0
  store double %82, ptr %84, align 16, !tbaa !9
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 1
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 1
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = fsub double %87, %90
  %92 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 2
  %93 = getelementptr inbounds [3 x double], ptr %92, i64 0, i64 1
  store double %91, ptr %93, align 8, !tbaa !9
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 2
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds double, ptr %97, i64 2
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = fsub double %96, %99
  %101 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 2
  %102 = getelementptr inbounds [3 x double], ptr %101, i64 0, i64 2
  store double %100, ptr %102, align 16, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds double, ptr %103, i64 0
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 0
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = fsub double %105, %108
  %110 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 3
  %111 = getelementptr inbounds [3 x double], ptr %110, i64 0, i64 0
  store double %109, ptr %111, align 8, !tbaa !9
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds double, ptr %112, i64 1
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 1
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = fsub double %114, %117
  %119 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 3
  %120 = getelementptr inbounds [3 x double], ptr %119, i64 0, i64 1
  store double %118, ptr %120, align 8, !tbaa !9
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %121, i64 2
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %124, i64 2
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = fsub double %123, %126
  %128 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 3
  %129 = getelementptr inbounds [3 x double], ptr %128, i64 0, i64 2
  store double %127, ptr %129, align 8, !tbaa !9
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds double, ptr %130, i64 0
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 0
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = fsub double %132, %135
  %137 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 4
  %138 = getelementptr inbounds [3 x double], ptr %137, i64 0, i64 0
  store double %136, ptr %138, align 16, !tbaa !9
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 1
  %141 = load double, ptr %140, align 8, !tbaa !9
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 1
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = fsub double %141, %144
  %146 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 4
  %147 = getelementptr inbounds [3 x double], ptr %146, i64 0, i64 1
  store double %145, ptr %147, align 8, !tbaa !9
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = getelementptr inbounds double, ptr %148, i64 2
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %151, i64 2
  %153 = load double, ptr %152, align 8, !tbaa !9
  %154 = fsub double %150, %153
  %155 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 4
  %156 = getelementptr inbounds [3 x double], ptr %155, i64 0, i64 2
  store double %154, ptr %156, align 16, !tbaa !9
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 0
  %159 = load double, ptr %158, align 8, !tbaa !9
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 0
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = fsub double %159, %162
  %164 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 5
  %165 = getelementptr inbounds [3 x double], ptr %164, i64 0, i64 0
  store double %163, ptr %165, align 8, !tbaa !9
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 1
  %168 = load double, ptr %167, align 8, !tbaa !9
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = getelementptr inbounds double, ptr %169, i64 1
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = fsub double %168, %171
  %173 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 5
  %174 = getelementptr inbounds [3 x double], ptr %173, i64 0, i64 1
  store double %172, ptr %174, align 8, !tbaa !9
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 2
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 2
  %180 = load double, ptr %179, align 8, !tbaa !9
  %181 = fsub double %177, %180
  %182 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 5
  %183 = getelementptr inbounds [3 x double], ptr %182, i64 0, i64 2
  store double %181, ptr %183, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %213, %8
  %185 = load i32, ptr %19, align 4, !tbaa !11
  %186 = icmp slt i32 %185, 6
  br i1 %186, label %188, label %187

187:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %216

188:                                              ; preds = %184
  %189 = load double, ptr %18, align 8, !tbaa !9
  %190 = load i32, ptr %19, align 4, !tbaa !11
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 %191
  %193 = getelementptr inbounds [3 x double], ptr %192, i64 0, i64 0
  %194 = load double, ptr %193, align 8, !tbaa !9
  %195 = call double @llvm.fabs.f64(double %194)
  %196 = call double @llvm.maxnum.f64(double %189, double %195)
  store double %196, ptr %18, align 8, !tbaa !9
  %197 = load double, ptr %18, align 8, !tbaa !9
  %198 = load i32, ptr %19, align 4, !tbaa !11
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 %199
  %201 = getelementptr inbounds [3 x double], ptr %200, i64 0, i64 1
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = call double @llvm.fabs.f64(double %202)
  %204 = call double @llvm.maxnum.f64(double %197, double %203)
  store double %204, ptr %18, align 8, !tbaa !9
  %205 = load double, ptr %18, align 8, !tbaa !9
  %206 = load i32, ptr %19, align 4, !tbaa !11
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 %207
  %209 = getelementptr inbounds [3 x double], ptr %208, i64 0, i64 2
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = call double @llvm.fabs.f64(double %210)
  %212 = call double @llvm.maxnum.f64(double %205, double %211)
  store double %212, ptr %18, align 8, !tbaa !9
  br label %213

213:                                              ; preds = %188
  %214 = load i32, ptr %19, align 4, !tbaa !11
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %19, align 4, !tbaa !11
  br label %184, !llvm.loop !13

216:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 0
  %219 = load double, ptr %218, align 8, !tbaa !9
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 0
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = fsub double %219, %222
  %224 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 0
  %225 = getelementptr inbounds [3 x double], ptr %224, i64 0, i64 0
  store double %223, ptr %225, align 16, !tbaa !9
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  %227 = getelementptr inbounds double, ptr %226, i64 1
  %228 = load double, ptr %227, align 8, !tbaa !9
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i64 1
  %231 = load double, ptr %230, align 8, !tbaa !9
  %232 = fsub double %228, %231
  %233 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 0
  %234 = getelementptr inbounds [3 x double], ptr %233, i64 0, i64 1
  store double %232, ptr %234, align 8, !tbaa !9
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = getelementptr inbounds double, ptr %235, i64 2
  %237 = load double, ptr %236, align 8, !tbaa !9
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = getelementptr inbounds double, ptr %238, i64 2
  %240 = load double, ptr %239, align 8, !tbaa !9
  %241 = fsub double %237, %240
  %242 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 0
  %243 = getelementptr inbounds [3 x double], ptr %242, i64 0, i64 2
  store double %241, ptr %243, align 16, !tbaa !9
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %244, i64 0
  %246 = load double, ptr %245, align 8, !tbaa !9
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  %248 = getelementptr inbounds double, ptr %247, i64 0
  %249 = load double, ptr %248, align 8, !tbaa !9
  %250 = fsub double %246, %249
  %251 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 1
  %252 = getelementptr inbounds [3 x double], ptr %251, i64 0, i64 0
  store double %250, ptr %252, align 8, !tbaa !9
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = getelementptr inbounds double, ptr %253, i64 1
  %255 = load double, ptr %254, align 8, !tbaa !9
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = getelementptr inbounds double, ptr %256, i64 1
  %258 = load double, ptr %257, align 8, !tbaa !9
  %259 = fsub double %255, %258
  %260 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 1
  %261 = getelementptr inbounds [3 x double], ptr %260, i64 0, i64 1
  store double %259, ptr %261, align 8, !tbaa !9
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = getelementptr inbounds double, ptr %262, i64 2
  %264 = load double, ptr %263, align 8, !tbaa !9
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = getelementptr inbounds double, ptr %265, i64 2
  %267 = load double, ptr %266, align 8, !tbaa !9
  %268 = fsub double %264, %267
  %269 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 1
  %270 = getelementptr inbounds [3 x double], ptr %269, i64 0, i64 2
  store double %268, ptr %270, align 8, !tbaa !9
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = getelementptr inbounds double, ptr %271, i64 0
  %273 = load double, ptr %272, align 8, !tbaa !9
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = getelementptr inbounds double, ptr %274, i64 0
  %276 = load double, ptr %275, align 8, !tbaa !9
  %277 = fsub double %273, %276
  %278 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 2
  %279 = getelementptr inbounds [3 x double], ptr %278, i64 0, i64 0
  store double %277, ptr %279, align 16, !tbaa !9
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds double, ptr %280, i64 1
  %282 = load double, ptr %281, align 8, !tbaa !9
  %283 = load ptr, ptr %14, align 8, !tbaa !5
  %284 = getelementptr inbounds double, ptr %283, i64 1
  %285 = load double, ptr %284, align 8, !tbaa !9
  %286 = fsub double %282, %285
  %287 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 2
  %288 = getelementptr inbounds [3 x double], ptr %287, i64 0, i64 1
  store double %286, ptr %288, align 8, !tbaa !9
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  %290 = getelementptr inbounds double, ptr %289, i64 2
  %291 = load double, ptr %290, align 8, !tbaa !9
  %292 = load ptr, ptr %14, align 8, !tbaa !5
  %293 = getelementptr inbounds double, ptr %292, i64 2
  %294 = load double, ptr %293, align 8, !tbaa !9
  %295 = fsub double %291, %294
  %296 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 2
  %297 = getelementptr inbounds [3 x double], ptr %296, i64 0, i64 2
  store double %295, ptr %297, align 16, !tbaa !9
  %298 = load ptr, ptr %15, align 8, !tbaa !5
  %299 = getelementptr inbounds double, ptr %298, i64 0
  %300 = load double, ptr %299, align 8, !tbaa !9
  %301 = load ptr, ptr %16, align 8, !tbaa !5
  %302 = getelementptr inbounds double, ptr %301, i64 0
  %303 = load double, ptr %302, align 8, !tbaa !9
  %304 = fsub double %300, %303
  %305 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 3
  %306 = getelementptr inbounds [3 x double], ptr %305, i64 0, i64 0
  store double %304, ptr %306, align 8, !tbaa !9
  %307 = load ptr, ptr %15, align 8, !tbaa !5
  %308 = getelementptr inbounds double, ptr %307, i64 1
  %309 = load double, ptr %308, align 8, !tbaa !9
  %310 = load ptr, ptr %16, align 8, !tbaa !5
  %311 = getelementptr inbounds double, ptr %310, i64 1
  %312 = load double, ptr %311, align 8, !tbaa !9
  %313 = fsub double %309, %312
  %314 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 3
  %315 = getelementptr inbounds [3 x double], ptr %314, i64 0, i64 1
  store double %313, ptr %315, align 8, !tbaa !9
  %316 = load ptr, ptr %15, align 8, !tbaa !5
  %317 = getelementptr inbounds double, ptr %316, i64 2
  %318 = load double, ptr %317, align 8, !tbaa !9
  %319 = load ptr, ptr %16, align 8, !tbaa !5
  %320 = getelementptr inbounds double, ptr %319, i64 2
  %321 = load double, ptr %320, align 8, !tbaa !9
  %322 = fsub double %318, %321
  %323 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 3
  %324 = getelementptr inbounds [3 x double], ptr %323, i64 0, i64 2
  store double %322, ptr %324, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %325

325:                                              ; preds = %354, %216
  %326 = load i32, ptr %21, align 4, !tbaa !11
  %327 = icmp slt i32 %326, 4
  br i1 %327, label %329, label %328

328:                                              ; preds = %325
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %357

329:                                              ; preds = %325
  %330 = load double, ptr %20, align 8, !tbaa !9
  %331 = load i32, ptr %21, align 4, !tbaa !11
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 %332
  %334 = getelementptr inbounds [3 x double], ptr %333, i64 0, i64 0
  %335 = load double, ptr %334, align 8, !tbaa !9
  %336 = call double @llvm.fabs.f64(double %335)
  %337 = call double @llvm.maxnum.f64(double %330, double %336)
  store double %337, ptr %20, align 8, !tbaa !9
  %338 = load double, ptr %20, align 8, !tbaa !9
  %339 = load i32, ptr %21, align 4, !tbaa !11
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 %340
  %342 = getelementptr inbounds [3 x double], ptr %341, i64 0, i64 1
  %343 = load double, ptr %342, align 8, !tbaa !9
  %344 = call double @llvm.fabs.f64(double %343)
  %345 = call double @llvm.maxnum.f64(double %338, double %344)
  store double %345, ptr %20, align 8, !tbaa !9
  %346 = load double, ptr %20, align 8, !tbaa !9
  %347 = load i32, ptr %21, align 4, !tbaa !11
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [6 x [3 x double]], ptr %17, i64 0, i64 %348
  %350 = getelementptr inbounds [3 x double], ptr %349, i64 0, i64 2
  %351 = load double, ptr %350, align 8, !tbaa !9
  %352 = call double @llvm.fabs.f64(double %351)
  %353 = call double @llvm.maxnum.f64(double %346, double %352)
  store double %353, ptr %20, align 8, !tbaa !9
  br label %354

354:                                              ; preds = %329
  %355 = load i32, ptr %21, align 4, !tbaa !11
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %21, align 4, !tbaa !11
  br label %325, !llvm.loop !15

357:                                              ; preds = %328
  %358 = load double, ptr %18, align 8, !tbaa !9
  %359 = load double, ptr %20, align 8, !tbaa !9
  %360 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %359, double %358)
  %361 = fmul double %360, 1.000000e+00
  %362 = fmul double %361, 1.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #3
  ret double %362
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local noundef double @_ZN14SafeCCDWrapper8computeBEPKdS1_S1_S1_S1_S1_S1_S1_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 align 2 {
  %9 = load double, ptr %0, align 8, !tbaa !5
  %10 = load double, ptr %2, align 8, !tbaa !5
  %11 = fsub double %9, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = load double, ptr %14, align 8, !tbaa !5
  %16 = fsub double %13, %15
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %2, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fsub double %18, %20
  %22 = load double, ptr %4, align 8, !tbaa !5
  %23 = fsub double %9, %22
  %24 = getelementptr inbounds i8, ptr %4, i64 8
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = fsub double %13, %25
  %27 = getelementptr inbounds i8, ptr %4, i64 16
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fsub double %18, %28
  %30 = load double, ptr %6, align 8, !tbaa !5
  %31 = fsub double %9, %30
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = fsub double %13, %33
  %35 = getelementptr inbounds i8, ptr %6, i64 16
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = fsub double %18, %36
  %38 = fsub double %10, %22
  %39 = fsub double %15, %25
  %40 = fsub double %20, %28
  %41 = fsub double %10, %30
  %42 = fsub double %15, %33
  %43 = fsub double %20, %36
  %44 = fsub double %22, %30
  %45 = fsub double %25, %33
  %46 = fsub double %28, %36
  %47 = tail call double @llvm.fabs.f64(double %11)
  %48 = tail call double @llvm.fabs.f64(double %16)
  %49 = tail call double @llvm.fabs.f64(double %21)
  %50 = tail call double @llvm.fabs.f64(double %23)
  %51 = tail call double @llvm.fabs.f64(double %26)
  %52 = tail call double @llvm.fabs.f64(double %29)
  %53 = tail call double @llvm.fabs.f64(double %31)
  %54 = tail call double @llvm.fabs.f64(double %34)
  %55 = tail call double @llvm.fabs.f64(double %37)
  %56 = tail call double @llvm.fabs.f64(double %38)
  %57 = tail call double @llvm.fabs.f64(double %39)
  %58 = tail call double @llvm.fabs.f64(double %40)
  %59 = tail call double @llvm.fabs.f64(double %41)
  %60 = tail call double @llvm.fabs.f64(double %42)
  %61 = tail call double @llvm.fabs.f64(double %43)
  %62 = tail call double @llvm.fabs.f64(double %44)
  %63 = tail call double @llvm.fabs.f64(double %45)
  %64 = tail call double @llvm.fabs.f64(double %46)
  %65 = load double, ptr %1, align 8, !tbaa !5
  %66 = fsub double %9, %65
  %67 = getelementptr inbounds i8, ptr %1, i64 8
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = fsub double %13, %68
  %70 = getelementptr inbounds i8, ptr %1, i64 16
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = fsub double %18, %71
  %73 = load double, ptr %3, align 8, !tbaa !5
  %74 = fsub double %10, %73
  %75 = getelementptr inbounds i8, ptr %3, i64 8
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = fsub double %15, %76
  %78 = getelementptr inbounds i8, ptr %3, i64 16
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = fsub double %20, %79
  %81 = load double, ptr %5, align 8, !tbaa !5
  %82 = fsub double %22, %81
  %83 = getelementptr inbounds i8, ptr %5, i64 8
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = fsub double %25, %84
  %86 = getelementptr inbounds i8, ptr %5, i64 16
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = fsub double %28, %87
  %89 = load double, ptr %7, align 8, !tbaa !5
  %90 = fsub double %30, %89
  %91 = getelementptr inbounds i8, ptr %7, i64 8
  %92 = load double, ptr %91, align 8, !tbaa !5
  %93 = fsub double %33, %92
  %94 = getelementptr inbounds i8, ptr %7, i64 16
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = fsub double %36, %95
  %97 = tail call double @llvm.fabs.f64(double %66)
  %98 = tail call double @llvm.maxnum.f64(double %97, double 0.000000e+00)
  %99 = tail call double @llvm.fabs.f64(double %69)
  %100 = tail call double @llvm.maxnum.f64(double %98, double %99)
  %101 = tail call double @llvm.fabs.f64(double %72)
  %102 = tail call double @llvm.maxnum.f64(double %100, double %101)
  %103 = tail call double @llvm.fabs.f64(double %74)
  %104 = tail call double @llvm.maxnum.f64(double %102, double %103)
  %105 = tail call double @llvm.fabs.f64(double %77)
  %106 = tail call double @llvm.maxnum.f64(double %104, double %105)
  %107 = tail call double @llvm.fabs.f64(double %80)
  %108 = tail call double @llvm.maxnum.f64(double %106, double %107)
  %109 = tail call double @llvm.fabs.f64(double %82)
  %110 = tail call double @llvm.maxnum.f64(double %108, double %109)
  %111 = tail call double @llvm.fabs.f64(double %85)
  %112 = tail call double @llvm.maxnum.f64(double %110, double %111)
  %113 = tail call double @llvm.fabs.f64(double %88)
  %114 = tail call double @llvm.maxnum.f64(double %112, double %113)
  %115 = tail call double @llvm.fabs.f64(double %90)
  %116 = tail call double @llvm.maxnum.f64(double %114, double %115)
  %117 = tail call double @llvm.fabs.f64(double %93)
  %118 = tail call double @llvm.maxnum.f64(double %116, double %117)
  %119 = tail call double @llvm.fabs.f64(double %96)
  %120 = tail call double @llvm.maxnum.f64(double %118, double %119)
  %121 = tail call double @llvm.maxnum.f64(double %47, double 0.000000e+00)
  %122 = tail call double @llvm.maxnum.f64(double %121, double %48)
  %123 = tail call double @llvm.maxnum.f64(double %122, double %49)
  %124 = tail call double @llvm.maxnum.f64(double %123, double %50)
  %125 = tail call double @llvm.maxnum.f64(double %124, double %51)
  %126 = tail call double @llvm.maxnum.f64(double %125, double %52)
  %127 = tail call double @llvm.maxnum.f64(double %126, double %53)
  %128 = tail call double @llvm.maxnum.f64(double %127, double %54)
  %129 = tail call double @llvm.maxnum.f64(double %128, double %55)
  %130 = tail call double @llvm.maxnum.f64(double %129, double %56)
  %131 = tail call double @llvm.maxnum.f64(double %130, double %57)
  %132 = tail call double @llvm.maxnum.f64(double %131, double %58)
  %133 = tail call double @llvm.maxnum.f64(double %132, double %59)
  %134 = tail call double @llvm.maxnum.f64(double %133, double %60)
  %135 = tail call double @llvm.maxnum.f64(double %134, double %61)
  %136 = tail call double @llvm.maxnum.f64(double %135, double %62)
  %137 = tail call double @llvm.maxnum.f64(double %136, double %63)
  %138 = tail call double @llvm.maxnum.f64(double %137, double %64)
  %139 = tail call double @llvm.fmuladd.f64(double %120, double 2.000000e+00, double %138)
  ret double %139
}

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

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

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) 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 speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass