; LLVM IR from zhenrong-wang/co2 :: co2_property_calc_origeqns (phir)

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

@coeffr1 = external dso_local constant [7 x [3 x double]], align 16
@coeffr2 = external dso_local constant [27 x [4 x double]], align 16
@coeffr3 = external dso_local constant [5 x [7 x double]], align 16
@coeffr4 = external dso_local constant [3 x [8 x double]], align 16

; 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind
declare double @exp(double noundef) #2

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
define dso_local double @phir(double noundef %0, double noundef %1) #3 {
  %3 = alloca double, align 8
  %4 = alloca double, 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 double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store double %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  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 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %53, %2
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 7
  br i1 %26, label %27, label %56

27:                                               ; preds = %24
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [7 x [3 x double]], ptr @coeffr1, i64 0, i64 %29
  %31 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 0
  %32 = load double, ptr %31, align 8, !tbaa !5
  store double %32, ptr %6, align 8, !tbaa !5
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [7 x [3 x double]], ptr @coeffr1, i64 0, i64 %34
  %36 = getelementptr inbounds [3 x double], ptr %35, i64 0, i64 1
  %37 = load double, ptr %36, align 8, !tbaa !5
  store double %37, ptr %7, align 8, !tbaa !5
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [7 x [3 x double]], ptr @coeffr1, i64 0, i64 %39
  %41 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 2
  %42 = load double, ptr %41, align 8, !tbaa !5
  store double %42, ptr %8, align 8, !tbaa !5
  %43 = load double, ptr %6, align 8, !tbaa !5
  %44 = load double, ptr %3, align 8, !tbaa !5
  %45 = load double, ptr %7, align 8, !tbaa !5
  %46 = call double @pow(double noundef %44, double noundef %45) #4
  %47 = fmul double %43, %46
  %48 = load double, ptr %4, align 8, !tbaa !5
  %49 = load double, ptr %8, align 8, !tbaa !5
  %50 = call double @pow(double noundef %48, double noundef %49) #4
  %51 = load double, ptr %23, align 8, !tbaa !5
  %52 = call double @llvm.fmuladd.f64(double %47, double %50, double %51)
  store double %52, ptr %23, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %27
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %5, align 4, !tbaa !9
  br label %24, !llvm.loop !11

56:                                               ; preds = %24
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %97, %56
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = icmp slt i32 %58, 27
  br i1 %59, label %60, label %100

60:                                               ; preds = %57
  %61 = load i32, ptr %5, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [27 x [4 x double]], ptr @coeffr2, i64 0, i64 %62
  %64 = getelementptr inbounds [4 x double], ptr %63, i64 0, i64 0
  %65 = load double, ptr %64, align 16, !tbaa !5
  store double %65, ptr %6, align 8, !tbaa !5
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [27 x [4 x double]], ptr @coeffr2, i64 0, i64 %67
  %69 = getelementptr inbounds [4 x double], ptr %68, i64 0, i64 1
  %70 = load double, ptr %69, align 8, !tbaa !5
  store double %70, ptr %7, align 8, !tbaa !5
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [27 x [4 x double]], ptr @coeffr2, i64 0, i64 %72
  %74 = getelementptr inbounds [4 x double], ptr %73, i64 0, i64 2
  %75 = load double, ptr %74, align 16, !tbaa !5
  store double %75, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [27 x [4 x double]], ptr @coeffr2, i64 0, i64 %77
  %79 = getelementptr inbounds [4 x double], ptr %78, i64 0, i64 3
  %80 = load double, ptr %79, align 8, !tbaa !5
  store double %80, ptr %9, align 8, !tbaa !5
  %81 = load double, ptr %6, align 8, !tbaa !5
  %82 = load double, ptr %3, align 8, !tbaa !5
  %83 = load double, ptr %7, align 8, !tbaa !5
  %84 = call double @pow(double noundef %82, double noundef %83) #4
  %85 = fmul double %81, %84
  %86 = load double, ptr %4, align 8, !tbaa !5
  %87 = load double, ptr %8, align 8, !tbaa !5
  %88 = call double @pow(double noundef %86, double noundef %87) #4
  %89 = fmul double %85, %88
  %90 = load double, ptr %3, align 8, !tbaa !5
  %91 = load double, ptr %9, align 8, !tbaa !5
  %92 = call double @pow(double noundef %90, double noundef %91) #4
  %93 = fneg double %92
  %94 = call double @exp(double noundef %93) #4
  %95 = load double, ptr %23, align 8, !tbaa !5
  %96 = call double @llvm.fmuladd.f64(double %89, double %94, double %95)
  store double %96, ptr %23, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %60
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %5, align 4, !tbaa !9
  br label %57, !llvm.loop !13

100:                                              ; preds = %57
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %172, %100
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 5
  br i1 %103, label %104, label %175

104:                                              ; preds = %101
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %106
  %108 = getelementptr inbounds [7 x double], ptr %107, i64 0, i64 0
  %109 = load double, ptr %108, align 8, !tbaa !5
  store double %109, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr %5, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %111
  %113 = getelementptr inbounds [7 x double], ptr %112, i64 0, i64 1
  %114 = load double, ptr %113, align 8, !tbaa !5
  store double %114, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %116
  %118 = getelementptr inbounds [7 x double], ptr %117, i64 0, i64 2
  %119 = load double, ptr %118, align 8, !tbaa !5
  store double %119, ptr %8, align 8, !tbaa !5
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %121
  %123 = getelementptr inbounds [7 x double], ptr %122, i64 0, i64 3
  %124 = load double, ptr %123, align 8, !tbaa !5
  store double %124, ptr %10, align 8, !tbaa !5
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %126
  %128 = getelementptr inbounds [7 x double], ptr %127, i64 0, i64 4
  %129 = load double, ptr %128, align 8, !tbaa !5
  store double %129, ptr %11, align 8, !tbaa !5
  %130 = load i32, ptr %5, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %131
  %133 = getelementptr inbounds [7 x double], ptr %132, i64 0, i64 5
  %134 = load double, ptr %133, align 8, !tbaa !5
  store double %134, ptr %12, align 8, !tbaa !5
  %135 = load i32, ptr %5, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [5 x [7 x double]], ptr @coeffr3, i64 0, i64 %136
  %138 = getelementptr inbounds [7 x double], ptr %137, i64 0, i64 6
  %139 = load double, ptr %138, align 8, !tbaa !5
  store double %139, ptr %13, align 8, !tbaa !5
  %140 = load double, ptr %6, align 8, !tbaa !5
  %141 = load double, ptr %3, align 8, !tbaa !5
  %142 = load double, ptr %7, align 8, !tbaa !5
  %143 = call double @pow(double noundef %141, double noundef %142) #4
  %144 = fmul double %140, %143
  %145 = load double, ptr %4, align 8, !tbaa !5
  %146 = load double, ptr %8, align 8, !tbaa !5
  %147 = call double @pow(double noundef %145, double noundef %146) #4
  %148 = fmul double %144, %147
  %149 = load double, ptr %10, align 8, !tbaa !5
  %150 = fneg double %149
  %151 = load double, ptr %3, align 8, !tbaa !5
  %152 = load double, ptr %13, align 8, !tbaa !5
  %153 = fsub double %151, %152
  %154 = fmul double %150, %153
  %155 = load double, ptr %3, align 8, !tbaa !5
  %156 = load double, ptr %13, align 8, !tbaa !5
  %157 = fsub double %155, %156
  %158 = load double, ptr %11, align 8, !tbaa !5
  %159 = load double, ptr %4, align 8, !tbaa !5
  %160 = load double, ptr %12, align 8, !tbaa !5
  %161 = fsub double %159, %160
  %162 = fmul double %158, %161
  %163 = load double, ptr %4, align 8, !tbaa !5
  %164 = load double, ptr %12, align 8, !tbaa !5
  %165 = fsub double %163, %164
  %166 = fmul double %162, %165
  %167 = fneg double %166
  %168 = call double @llvm.fmuladd.f64(double %154, double %157, double %167)
  %169 = call double @exp(double noundef %168) #4
  %170 = load double, ptr %23, align 8, !tbaa !5
  %171 = call double @llvm.fmuladd.f64(double %148, double %169, double %170)
  store double %171, ptr %23, align 8, !tbaa !5
  br label %172

172:                                              ; preds = %104
  %173 = load i32, ptr %5, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %5, align 4, !tbaa !9
  br label %101, !llvm.loop !14

175:                                              ; preds = %101
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %269, %175
  %177 = load i32, ptr %5, align 4, !tbaa !9
  %178 = icmp slt i32 %177, 3
  br i1 %178, label %179, label %272

179:                                              ; preds = %176
  %180 = load i32, ptr %5, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %181
  %183 = getelementptr inbounds [8 x double], ptr %182, i64 0, i64 0
  %184 = load double, ptr %183, align 16, !tbaa !5
  store double %184, ptr %6, align 8, !tbaa !5
  %185 = load i32, ptr %5, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %186
  %188 = getelementptr inbounds [8 x double], ptr %187, i64 0, i64 1
  %189 = load double, ptr %188, align 8, !tbaa !5
  store double %189, ptr %14, align 8, !tbaa !5
  %190 = load i32, ptr %5, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %191
  %193 = getelementptr inbounds [8 x double], ptr %192, i64 0, i64 2
  %194 = load double, ptr %193, align 16, !tbaa !5
  store double %194, ptr %15, align 8, !tbaa !5
  %195 = load i32, ptr %5, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %196
  %198 = getelementptr inbounds [8 x double], ptr %197, i64 0, i64 3
  %199 = load double, ptr %198, align 8, !tbaa !5
  store double %199, ptr %11, align 8, !tbaa !5
  %200 = load i32, ptr %5, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %201
  %203 = getelementptr inbounds [8 x double], ptr %202, i64 0, i64 4
  %204 = load double, ptr %203, align 16, !tbaa !5
  store double %204, ptr %16, align 8, !tbaa !5
  %205 = load i32, ptr %5, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %206
  %208 = getelementptr inbounds [8 x double], ptr %207, i64 0, i64 5
  %209 = load double, ptr %208, align 8, !tbaa !5
  store double %209, ptr %17, align 8, !tbaa !5
  %210 = load i32, ptr %5, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %211
  %213 = getelementptr inbounds [8 x double], ptr %212, i64 0, i64 6
  %214 = load double, ptr %213, align 16, !tbaa !5
  store double %214, ptr %18, align 8, !tbaa !5
  %215 = load i32, ptr %5, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [3 x [8 x double]], ptr @coeffr4, i64 0, i64 %216
  %218 = getelementptr inbounds [8 x double], ptr %217, i64 0, i64 7
  %219 = load double, ptr %218, align 8, !tbaa !5
  store double %219, ptr %19, align 8, !tbaa !5
  %220 = load double, ptr %4, align 8, !tbaa !5
  %221 = fsub double 1.000000e+00, %220
  %222 = load double, ptr %16, align 8, !tbaa !5
  %223 = load double, ptr %3, align 8, !tbaa !5
  %224 = fsub double %223, 1.000000e+00
  %225 = load double, ptr %3, align 8, !tbaa !5
  %226 = fsub double %225, 1.000000e+00
  %227 = fmul double %224, %226
  %228 = load double, ptr %11, align 8, !tbaa !5
  %229 = fdiv double 5.000000e-01, %228
  %230 = call double @pow(double noundef %227, double noundef %229) #4
  %231 = call double @llvm.fmuladd.f64(double %222, double %230, double %221)
  %232 = call double @pow(double noundef %231, double noundef 2.000000e+00) #4
  %233 = load double, ptr %17, align 8, !tbaa !5
  %234 = load double, ptr %3, align 8, !tbaa !5
  %235 = fsub double %234, 1.000000e+00
  %236 = load double, ptr %3, align 8, !tbaa !5
  %237 = fsub double %236, 1.000000e+00
  %238 = fmul double %235, %237
  %239 = load double, ptr %14, align 8, !tbaa !5
  %240 = call double @pow(double noundef %238, double noundef %239) #4
  %241 = call double @llvm.fmuladd.f64(double %233, double %240, double %232)
  store double %241, ptr %20, align 8, !tbaa !5
  %242 = load double, ptr %18, align 8, !tbaa !5
  %243 = fneg double %242
  %244 = load double, ptr %3, align 8, !tbaa !5
  %245 = fsub double %244, 1.000000e+00
  %246 = fmul double %243, %245
  %247 = load double, ptr %3, align 8, !tbaa !5
  %248 = fsub double %247, 1.000000e+00
  %249 = load double, ptr %19, align 8, !tbaa !5
  %250 = load double, ptr %4, align 8, !tbaa !5
  %251 = fsub double %250, 1.000000e+00
  %252 = fmul double %249, %251
  %253 = load double, ptr %4, align 8, !tbaa !5
  %254 = fsub double %253, 1.000000e+00
  %255 = fmul double %252, %254
  %256 = fneg double %255
  %257 = call double @llvm.fmuladd.f64(double %246, double %248, double %256)
  %258 = call double @exp(double noundef %257) #4
  store double %258, ptr %22, align 8, !tbaa !5
  %259 = load double, ptr %6, align 8, !tbaa !5
  %260 = load double, ptr %20, align 8, !tbaa !5
  %261 = load double, ptr %15, align 8, !tbaa !5
  %262 = call double @pow(double noundef %260, double noundef %261) #4
  %263 = fmul double %259, %262
  %264 = load double, ptr %3, align 8, !tbaa !5
  %265 = fmul double %263, %264
  %266 = load double, ptr %22, align 8, !tbaa !5
  %267 = load double, ptr %23, align 8, !tbaa !5
  %268 = call double @llvm.fmuladd.f64(double %265, double %266, double %267)
  store double %268, ptr %23, align 8, !tbaa !5
  br label %269

269:                                              ; preds = %179
  %270 = load i32, ptr %5, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %5, align 4, !tbaa !9
  br label %176, !llvm.loop !15

272:                                              ; preds = %176
  %273 = load double, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %273
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@coeffr1 = external dso_local local_unnamed_addr constant [7 x [3 x double]], align 16
@coeffr2 = external dso_local local_unnamed_addr constant [27 x [4 x double]], align 16
@coeffr3 = external dso_local local_unnamed_addr constant [5 x [7 x double]], align 16
@coeffr4 = external dso_local local_unnamed_addr constant [3 x [8 x double]], align 16

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind memory(write) uwtable
define dso_local double @phir(double noundef %0, double noundef %1) local_unnamed_addr #2 {
.preheader86.preheader:
  %2 = load double, ptr @coeffr1, align 16, !tbaa !5
  %3 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 8), align 8, !tbaa !5
  %4 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 16), align 16, !tbaa !5
  %5 = tail call double @pow(double noundef %0, double noundef %3) #3
  %6 = fmul double %2, %5
  %7 = tail call double @pow(double noundef %1, double noundef %4) #3
  %8 = tail call double @llvm.fmuladd.f64(double %6, double %7, double 0.000000e+00)
  %9 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 24), align 8, !tbaa !5
  %10 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 32), align 16, !tbaa !5
  %11 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 40), align 8, !tbaa !5
  %12 = tail call double @pow(double noundef %0, double noundef %10) #3
  %13 = fmul double %9, %12
  %14 = tail call double @pow(double noundef %1, double noundef %11) #3
  %15 = tail call double @llvm.fmuladd.f64(double %13, double %14, double %8)
  %16 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 48), align 16, !tbaa !5
  %17 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 56), align 8, !tbaa !5
  %18 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 64), align 16, !tbaa !5
  %19 = tail call double @pow(double noundef %0, double noundef %17) #3
  %20 = fmul double %16, %19
  %21 = tail call double @pow(double noundef %1, double noundef %18) #3
  %22 = tail call double @llvm.fmuladd.f64(double %20, double %21, double %15)
  %23 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 72), align 8, !tbaa !5
  %24 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 80), align 16, !tbaa !5
  %25 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 88), align 8, !tbaa !5
  %26 = tail call double @pow(double noundef %0, double noundef %24) #3
  %27 = fmul double %23, %26
  %28 = tail call double @pow(double noundef %1, double noundef %25) #3
  %29 = tail call double @llvm.fmuladd.f64(double %27, double %28, double %22)
  %30 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 96), align 16, !tbaa !5
  %31 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 104), align 8, !tbaa !5
  %32 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 112), align 16, !tbaa !5
  %33 = tail call double @pow(double noundef %0, double noundef %31) #3
  %34 = fmul double %30, %33
  %35 = tail call double @pow(double noundef %1, double noundef %32) #3
  %36 = tail call double @llvm.fmuladd.f64(double %34, double %35, double %29)
  %37 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 120), align 8, !tbaa !5
  %38 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 128), align 16, !tbaa !5
  %39 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 136), align 8, !tbaa !5
  %40 = tail call double @pow(double noundef %0, double noundef %38) #3
  %41 = fmul double %37, %40
  %42 = tail call double @pow(double noundef %1, double noundef %39) #3
  %43 = tail call double @llvm.fmuladd.f64(double %41, double %42, double %36)
  %44 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 144), align 16, !tbaa !5
  %45 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 152), align 8, !tbaa !5
  %46 = load double, ptr getelementptr inbounds (i8, ptr @coeffr1, i64 160), align 16, !tbaa !5
  %47 = tail call double @pow(double noundef %0, double noundef %45) #3
  %48 = fmul double %44, %47
  %49 = tail call double @pow(double noundef %1, double noundef %46) #3
  %50 = tail call double @llvm.fmuladd.f64(double %48, double %49, double %43)
  br label %.preheader86

.preheader86:                                     ; preds = %.preheader86.preheader, %.preheader86
  %indvars.iv = phi i64 [ 0, %.preheader86.preheader ], [ %indvars.iv.next, %.preheader86 ]
  %.190 = phi double [ %50, %.preheader86.preheader ], [ %66, %.preheader86 ]
  %51 = getelementptr inbounds [27 x [4 x double]], ptr @coeffr2, i64 0, i64 %indvars.iv
  %52 = load double, ptr %51, align 16, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %51, i64 8
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %51, i64 16
  %56 = load double, ptr %55, align 16, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %51, i64 24
  %58 = load double, ptr %57, align 8, !tbaa !5
  %59 = tail call double @pow(double noundef %0, double noundef %54) #3
  %60 = fmul double %52, %59
  %61 = tail call double @pow(double noundef %1, double noundef %56) #3
  %62 = fmul double %60, %61
  %63 = tail call double @pow(double noundef %0, double noundef %58) #3
  %64 = fneg double %63
  %65 = tail call double @exp(double noundef %64) #3
  %66 = tail call double @llvm.fmuladd.f64(double %62, double %65, double %.190)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 27
  br i1 %exitcond.not, label %.preheader85.preheader, label %.preheader86, !llvm.loop !9

.preheader85.preheader:                           ; preds = %.preheader86
  %67 = load double, ptr @coeffr3, align 16, !tbaa !5
  %68 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 8), align 8, !tbaa !5
  %69 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 16), align 16, !tbaa !5
  %70 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 24), align 8, !tbaa !5
  %71 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 32), align 16, !tbaa !5
  %72 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 40), align 8, !tbaa !5
  %73 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 48), align 16, !tbaa !5
  %74 = tail call double @pow(double noundef %0, double noundef %68) #3
  %75 = fmul double %67, %74
  %76 = tail call double @pow(double noundef %1, double noundef %69) #3
  %77 = fmul double %75, %76
  %78 = fneg double %70
  %79 = fsub double %0, %73
  %80 = fmul double %79, %78
  %81 = fsub double %1, %72
  %82 = fneg double %71
  %83 = fmul double %81, %82
  %84 = fmul double %81, %83
  %85 = tail call double @llvm.fmuladd.f64(double %80, double %79, double %84)
  %86 = tail call double @exp(double noundef %85) #3
  %87 = tail call double @llvm.fmuladd.f64(double %77, double %86, double %66)
  %88 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 56), align 8, !tbaa !5
  %89 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 64), align 16, !tbaa !5
  %90 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 72), align 8, !tbaa !5
  %91 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 80), align 16, !tbaa !5
  %92 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 88), align 8, !tbaa !5
  %93 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 96), align 16, !tbaa !5
  %94 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 104), align 8, !tbaa !5
  %95 = tail call double @pow(double noundef %0, double noundef %89) #3
  %96 = fmul double %88, %95
  %97 = tail call double @pow(double noundef %1, double noundef %90) #3
  %98 = fmul double %96, %97
  %99 = fneg double %91
  %100 = fsub double %0, %94
  %101 = fmul double %100, %99
  %102 = fsub double %1, %93
  %103 = fneg double %92
  %104 = fmul double %102, %103
  %105 = fmul double %102, %104
  %106 = tail call double @llvm.fmuladd.f64(double %101, double %100, double %105)
  %107 = tail call double @exp(double noundef %106) #3
  %108 = tail call double @llvm.fmuladd.f64(double %98, double %107, double %87)
  %109 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 112), align 16, !tbaa !5
  %110 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 120), align 8, !tbaa !5
  %111 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 128), align 16, !tbaa !5
  %112 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 136), align 8, !tbaa !5
  %113 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 144), align 16, !tbaa !5
  %114 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 152), align 8, !tbaa !5
  %115 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 160), align 16, !tbaa !5
  %116 = tail call double @pow(double noundef %0, double noundef %110) #3
  %117 = fmul double %109, %116
  %118 = tail call double @pow(double noundef %1, double noundef %111) #3
  %119 = fmul double %117, %118
  %120 = fneg double %112
  %121 = fsub double %0, %115
  %122 = fmul double %121, %120
  %123 = fsub double %1, %114
  %124 = fneg double %113
  %125 = fmul double %123, %124
  %126 = fmul double %123, %125
  %127 = tail call double @llvm.fmuladd.f64(double %122, double %121, double %126)
  %128 = tail call double @exp(double noundef %127) #3
  %129 = tail call double @llvm.fmuladd.f64(double %119, double %128, double %108)
  %130 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 168), align 8, !tbaa !5
  %131 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 176), align 16, !tbaa !5
  %132 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 184), align 8, !tbaa !5
  %133 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 192), align 16, !tbaa !5
  %134 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 200), align 8, !tbaa !5
  %135 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 208), align 16, !tbaa !5
  %136 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 216), align 8, !tbaa !5
  %137 = tail call double @pow(double noundef %0, double noundef %131) #3
  %138 = fmul double %130, %137
  %139 = tail call double @pow(double noundef %1, double noundef %132) #3
  %140 = fmul double %138, %139
  %141 = fneg double %133
  %142 = fsub double %0, %136
  %143 = fmul double %142, %141
  %144 = fsub double %1, %135
  %145 = fneg double %134
  %146 = fmul double %144, %145
  %147 = fmul double %144, %146
  %148 = tail call double @llvm.fmuladd.f64(double %143, double %142, double %147)
  %149 = tail call double @exp(double noundef %148) #3
  %150 = tail call double @llvm.fmuladd.f64(double %140, double %149, double %129)
  %151 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 224), align 16, !tbaa !5
  %152 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 232), align 8, !tbaa !5
  %153 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 240), align 16, !tbaa !5
  %154 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 248), align 8, !tbaa !5
  %155 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 256), align 16, !tbaa !5
  %156 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 264), align 8, !tbaa !5
  %157 = load double, ptr getelementptr inbounds (i8, ptr @coeffr3, i64 272), align 16, !tbaa !5
  %158 = tail call double @pow(double noundef %0, double noundef %152) #3
  %159 = fmul double %151, %158
  %160 = tail call double @pow(double noundef %1, double noundef %153) #3
  %161 = fmul double %159, %160
  %162 = fneg double %154
  %163 = fsub double %0, %157
  %164 = fmul double %163, %162
  %165 = fsub double %1, %156
  %166 = fneg double %155
  %167 = fmul double %165, %166
  %168 = fmul double %165, %167
  %169 = tail call double @llvm.fmuladd.f64(double %164, double %163, double %168)
  %170 = tail call double @exp(double noundef %169) #3
  %171 = tail call double @llvm.fmuladd.f64(double %161, double %170, double %150)
  %172 = fsub double 1.000000e+00, %1
  %173 = fadd double %0, -1.000000e+00
  %174 = fmul double %173, %173
  %175 = fadd double %1, -1.000000e+00
  %176 = load double, ptr @coeffr4, align 16, !tbaa !5
  %177 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 8), align 8, !tbaa !5
  %178 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 16), align 16, !tbaa !5
  %179 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 24), align 8, !tbaa !5
  %180 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 32), align 16, !tbaa !5
  %181 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 40), align 8, !tbaa !5
  %182 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 48), align 16, !tbaa !5
  %183 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 56), align 8, !tbaa !5
  %184 = fdiv double 5.000000e-01, %179
  %185 = tail call double @pow(double noundef %174, double noundef %184) #3
  %186 = tail call double @llvm.fmuladd.f64(double %180, double %185, double %172)
  %square = fmul double %186, %186
  %187 = tail call double @pow(double noundef %174, double noundef %177) #3
  %188 = tail call double @llvm.fmuladd.f64(double %181, double %187, double %square)
  %189 = fneg double %182
  %190 = fmul double %173, %189
  %191 = fneg double %183
  %192 = fmul double %175, %191
  %193 = fmul double %175, %192
  %194 = tail call double @llvm.fmuladd.f64(double %190, double %173, double %193)
  %195 = tail call double @exp(double noundef %194) #3
  %196 = tail call double @pow(double noundef %188, double noundef %178) #3
  %197 = fmul double %176, %196
  %198 = fmul double %197, %0
  %199 = tail call double @llvm.fmuladd.f64(double %198, double %195, double %171)
  %200 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 64), align 16, !tbaa !5
  %201 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 72), align 8, !tbaa !5
  %202 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 80), align 16, !tbaa !5
  %203 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 88), align 8, !tbaa !5
  %204 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 96), align 16, !tbaa !5
  %205 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 104), align 8, !tbaa !5
  %206 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 112), align 16, !tbaa !5
  %207 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 120), align 8, !tbaa !5
  %208 = fdiv double 5.000000e-01, %203
  %209 = tail call double @pow(double noundef %174, double noundef %208) #3
  %210 = tail call double @llvm.fmuladd.f64(double %204, double %209, double %172)
  %square.1 = fmul double %210, %210
  %211 = tail call double @pow(double noundef %174, double noundef %201) #3
  %212 = tail call double @llvm.fmuladd.f64(double %205, double %211, double %square.1)
  %213 = fneg double %206
  %214 = fmul double %173, %213
  %215 = fneg double %207
  %216 = fmul double %175, %215
  %217 = fmul double %175, %216
  %218 = tail call double @llvm.fmuladd.f64(double %214, double %173, double %217)
  %219 = tail call double @exp(double noundef %218) #3
  %220 = tail call double @pow(double noundef %212, double noundef %202) #3
  %221 = fmul double %200, %220
  %222 = fmul double %221, %0
  %223 = tail call double @llvm.fmuladd.f64(double %222, double %219, double %199)
  %224 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 128), align 16, !tbaa !5
  %225 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 136), align 8, !tbaa !5
  %226 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 144), align 16, !tbaa !5
  %227 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 152), align 8, !tbaa !5
  %228 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 160), align 16, !tbaa !5
  %229 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 168), align 8, !tbaa !5
  %230 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 176), align 16, !tbaa !5
  %231 = load double, ptr getelementptr inbounds (i8, ptr @coeffr4, i64 184), align 8, !tbaa !5
  %232 = fdiv double 5.000000e-01, %227
  %233 = tail call double @pow(double noundef %174, double noundef %232) #3
  %234 = tail call double @llvm.fmuladd.f64(double %228, double %233, double %172)
  %square.2 = fmul double %234, %234
  %235 = tail call double @pow(double noundef %174, double noundef %225) #3
  %236 = tail call double @llvm.fmuladd.f64(double %229, double %235, double %square.2)
  %237 = fneg double %230
  %238 = fmul double %173, %237
  %239 = fneg double %231
  %240 = fmul double %175, %239
  %241 = fmul double %175, %240
  %242 = tail call double @llvm.fmuladd.f64(double %238, double %173, double %241)
  %243 = tail call double @exp(double noundef %242) #3
  %244 = tail call double @pow(double noundef %236, double noundef %226) #3
  %245 = fmul double %224, %244
  %246 = fmul double %245, %0
  %247 = tail call double @llvm.fmuladd.f64(double %246, double %243, double %223)
  ret double %247
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nofree nounwind memory(write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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