; LLVM IR from gem5/gem5 :: ext/mcpat/cacti/decoder.ll (ZN12PredecBlkDrv14compute_delaysEdd)

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

%class.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }
%"struct.std::pair" = type { double, double }
%class.PredecBlkDrv = type { %class.Component, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, [20 x double], [20 x double], [20 x double], [20 x double], double, double, %class.powerDef, %class.powerDef, ptr, ptr, i8, i32 }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }

@g_tp = external global %class.TechnologyParameter, align 8

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

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

declare noundef double @_Z6gate_Cddbbb(double noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1

declare noundef double @_Z7tr_R_ondiibbb(double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1

declare noundef double @_Z8drain_C_diiidbbb(double noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1

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

declare noundef double @_Z8horowitzddddi(double noundef, double noundef, double noundef, double noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN12PredecBlkDrv14compute_delaysEdd(ptr noundef nonnull align 8 dereferenceable(1280) %0, double noundef %1, double noundef %2) #4 align 2 {
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %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
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8
  call void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %17 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 0
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  %18 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 1
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %19 = load double, ptr getelementptr inbounds (%"class.TechnologyParameter::DeviceType", ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48), i32 0, i32 9), align 8, !tbaa !14
  store double %19, ptr %15, align 8, !tbaa !9
  %20 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !21
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %336

23:                                               ; preds = %3
  store i32 0, ptr %8, align 4, !tbaa !29
  br label %24

24:                                               ; preds = %104, %23
  %25 = load i32, ptr %8, align 4, !tbaa !29
  %26 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !30
  %28 = sub nsw i32 %27, 1
  %29 = icmp slt i32 %25, %28
  br i1 %29, label %30, label %107

30:                                               ; preds = %24
  %31 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 16
  %32 = load i32, ptr %8, align 4, !tbaa !29
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [20 x double], ptr %31, i64 0, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %37 = load i8, ptr %36, align 8, !tbaa !31, !range !32, !noundef !33
  %38 = trunc i8 %37 to i1
  %39 = call noundef double @_Z7tr_R_ondiibbb(double noundef %35, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %38, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %39, ptr %9, align 8, !tbaa !9
  %40 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 17
  %41 = load i32, ptr %8, align 4, !tbaa !29
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [20 x double], ptr %40, i64 0, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 16
  %47 = load i32, ptr %8, align 4, !tbaa !29
  %48 = add nsw i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [20 x double], ptr %46, i64 0, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = fadd double %45, %51
  %53 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %54 = load i8, ptr %53, align 8, !tbaa !31, !range !32, !noundef !33
  %55 = trunc i8 %54 to i1
  %56 = call noundef double @_Z6gate_Cddbbb(double noundef %52, double noundef 0.000000e+00, i1 noundef zeroext %55, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %56, ptr %10, align 8, !tbaa !9
  %57 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 17
  %58 = load i32, ptr %8, align 4, !tbaa !29
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [20 x double], ptr %57, i64 0, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %63 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %64 = load i8, ptr %63, align 8, !tbaa !31, !range !32, !noundef !33
  %65 = trunc i8 %64 to i1
  %66 = call noundef double @_Z8drain_C_diiidbbb(double noundef %61, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %62, i1 noundef zeroext %65, i1 noundef zeroext false, i1 noundef zeroext false)
  %67 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 16
  %68 = load i32, ptr %8, align 4, !tbaa !29
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [20 x double], ptr %67, i64 0, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %73 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %74 = load i8, ptr %73, align 8, !tbaa !31, !range !32, !noundef !33
  %75 = trunc i8 %74 to i1
  %76 = call noundef double @_Z8drain_C_diiidbbb(double noundef %71, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %72, i1 noundef zeroext %75, i1 noundef zeroext false, i1 noundef zeroext false)
  %77 = fadd double %66, %76
  store double %77, ptr %12, align 8, !tbaa !9
  %78 = load double, ptr %9, align 8, !tbaa !9
  %79 = load double, ptr %12, align 8, !tbaa !9
  %80 = load double, ptr %10, align 8, !tbaa !9
  %81 = fadd double %79, %80
  %82 = fmul double %78, %81
  store double %82, ptr %13, align 8, !tbaa !9
  %83 = load double, ptr %6, align 8, !tbaa !9
  %84 = load double, ptr %13, align 8, !tbaa !9
  %85 = call noundef double @_Z8horowitzddddi(double noundef %83, double noundef %84, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %85, ptr %14, align 8, !tbaa !9
  %86 = load double, ptr %14, align 8, !tbaa !9
  %87 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 20
  %88 = load double, ptr %87, align 8, !tbaa !35
  %89 = fadd double %88, %86
  store double %89, ptr %87, align 8, !tbaa !35
  %90 = load double, ptr %14, align 8, !tbaa !9
  %91 = fdiv double %90, 5.000000e-01
  store double %91, ptr %6, align 8, !tbaa !9
  %92 = load double, ptr %10, align 8, !tbaa !9
  %93 = load double, ptr %12, align 8, !tbaa !9
  %94 = fadd double %92, %93
  %95 = fmul double %94, 5.000000e-01
  %96 = load double, ptr %15, align 8, !tbaa !9
  %97 = fmul double %95, %96
  %98 = load double, ptr %15, align 8, !tbaa !9
  %99 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 22
  %100 = getelementptr inbounds %class.powerDef, ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds %class.powerComponents, ptr %100, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !36
  %103 = call double @llvm.fmuladd.f64(double %97, double %98, double %102)
  store double %103, ptr %101, align 8, !tbaa !36
  br label %104

104:                                              ; preds = %30
  %105 = load i32, ptr %8, align 4, !tbaa !29
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %8, align 4, !tbaa !29
  br label %24, !llvm.loop !37

107:                                              ; preds = %24
  %108 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 3
  %109 = load i32, ptr %108, align 8, !tbaa !30
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %179

111:                                              ; preds = %107
  %112 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 3
  %113 = load i32, ptr %112, align 8, !tbaa !30
  %114 = sub nsw i32 %113, 1
  store i32 %114, ptr %8, align 4, !tbaa !29
  %115 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 16
  %116 = load i32, ptr %8, align 4, !tbaa !29
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [20 x double], ptr %115, i64 0, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %121 = load i8, ptr %120, align 8, !tbaa !31, !range !32, !noundef !33
  %122 = trunc i8 %121 to i1
  %123 = call noundef double @_Z7tr_R_ondiibbb(double noundef %119, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %122, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %123, ptr %9, align 8, !tbaa !9
  %124 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 17
  %125 = load i32, ptr %8, align 4, !tbaa !29
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [20 x double], ptr %124, i64 0, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %130 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %131 = load i8, ptr %130, align 8, !tbaa !31, !range !32, !noundef !33
  %132 = trunc i8 %131 to i1
  %133 = call noundef double @_Z8drain_C_diiidbbb(double noundef %128, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %129, i1 noundef zeroext %132, i1 noundef zeroext false, i1 noundef zeroext false)
  %134 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 16
  %135 = load i32, ptr %8, align 4, !tbaa !29
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [20 x double], ptr %134, i64 0, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %140 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %141 = load i8, ptr %140, align 8, !tbaa !31, !range !32, !noundef !33
  %142 = trunc i8 %141 to i1
  %143 = call noundef double @_Z8drain_C_diiidbbb(double noundef %138, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %139, i1 noundef zeroext %142, i1 noundef zeroext false, i1 noundef zeroext false)
  %144 = fadd double %133, %143
  store double %144, ptr %12, align 8, !tbaa !9
  %145 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 12
  %146 = load double, ptr %145, align 8, !tbaa !39
  store double %146, ptr %11, align 8, !tbaa !9
  %147 = load double, ptr %9, align 8, !tbaa !9
  %148 = load double, ptr %12, align 8, !tbaa !9
  %149 = load double, ptr %11, align 8, !tbaa !9
  %150 = fadd double %148, %149
  %151 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 14
  %152 = load double, ptr %151, align 8, !tbaa !40
  %153 = load double, ptr %11, align 8, !tbaa !9
  %154 = fmul double %152, %153
  %155 = fdiv double %154, 2.000000e+00
  %156 = call double @llvm.fmuladd.f64(double %147, double %150, double %155)
  store double %156, ptr %13, align 8, !tbaa !9
  %157 = load double, ptr %6, align 8, !tbaa !9
  %158 = load double, ptr %13, align 8, !tbaa !9
  %159 = call noundef double @_Z8horowitzddddi(double noundef %157, double noundef %158, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %159, ptr %14, align 8, !tbaa !9
  %160 = load double, ptr %14, align 8, !tbaa !9
  %161 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 20
  %162 = load double, ptr %161, align 8, !tbaa !35
  %163 = fadd double %162, %160
  store double %163, ptr %161, align 8, !tbaa !35
  %164 = load double, ptr %14, align 8, !tbaa !9
  %165 = fdiv double %164, 5.000000e-01
  %166 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 0
  store double %165, ptr %166, align 8, !tbaa !11
  %167 = load double, ptr %12, align 8, !tbaa !9
  %168 = load double, ptr %11, align 8, !tbaa !9
  %169 = fadd double %167, %168
  %170 = fmul double %169, 5.000000e-01
  %171 = load double, ptr %15, align 8, !tbaa !9
  %172 = fmul double %170, %171
  %173 = load double, ptr %15, align 8, !tbaa !9
  %174 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 22
  %175 = getelementptr inbounds %class.powerDef, ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %class.powerComponents, ptr %175, i32 0, i32 0
  %177 = load double, ptr %176, align 8, !tbaa !36
  %178 = call double @llvm.fmuladd.f64(double %172, double %173, double %177)
  store double %178, ptr %176, align 8, !tbaa !36
  br label %179

179:                                              ; preds = %111, %107
  store i32 0, ptr %8, align 4, !tbaa !29
  br label %180

180:                                              ; preds = %260, %179
  %181 = load i32, ptr %8, align 4, !tbaa !29
  %182 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 4
  %183 = load i32, ptr %182, align 4, !tbaa !41
  %184 = sub nsw i32 %183, 1
  %185 = icmp slt i32 %181, %184
  br i1 %185, label %186, label %263

186:                                              ; preds = %180
  %187 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 18
  %188 = load i32, ptr %8, align 4, !tbaa !29
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [20 x double], ptr %187, i64 0, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %193 = load i8, ptr %192, align 8, !tbaa !31, !range !32, !noundef !33
  %194 = trunc i8 %193 to i1
  %195 = call noundef double @_Z7tr_R_ondiibbb(double noundef %191, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %194, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %195, ptr %9, align 8, !tbaa !9
  %196 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 19
  %197 = load i32, ptr %8, align 4, !tbaa !29
  %198 = add nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [20 x double], ptr %196, i64 0, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 18
  %203 = load i32, ptr %8, align 4, !tbaa !29
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [20 x double], ptr %202, i64 0, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !9
  %208 = fadd double %201, %207
  %209 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %210 = load i8, ptr %209, align 8, !tbaa !31, !range !32, !noundef !33
  %211 = trunc i8 %210 to i1
  %212 = call noundef double @_Z6gate_Cddbbb(double noundef %208, double noundef 0.000000e+00, i1 noundef zeroext %211, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %212, ptr %10, align 8, !tbaa !9
  %213 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 19
  %214 = load i32, ptr %8, align 4, !tbaa !29
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [20 x double], ptr %213, i64 0, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !9
  %218 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %219 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %220 = load i8, ptr %219, align 8, !tbaa !31, !range !32, !noundef !33
  %221 = trunc i8 %220 to i1
  %222 = call noundef double @_Z8drain_C_diiidbbb(double noundef %217, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %218, i1 noundef zeroext %221, i1 noundef zeroext false, i1 noundef zeroext false)
  %223 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 18
  %224 = load i32, ptr %8, align 4, !tbaa !29
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [20 x double], ptr %223, i64 0, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !9
  %228 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %229 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %230 = load i8, ptr %229, align 8, !tbaa !31, !range !32, !noundef !33
  %231 = trunc i8 %230 to i1
  %232 = call noundef double @_Z8drain_C_diiidbbb(double noundef %227, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %228, i1 noundef zeroext %231, i1 noundef zeroext false, i1 noundef zeroext false)
  %233 = fadd double %222, %232
  store double %233, ptr %12, align 8, !tbaa !9
  %234 = load double, ptr %9, align 8, !tbaa !9
  %235 = load double, ptr %12, align 8, !tbaa !9
  %236 = load double, ptr %10, align 8, !tbaa !9
  %237 = fadd double %235, %236
  %238 = fmul double %234, %237
  store double %238, ptr %13, align 8, !tbaa !9
  %239 = load double, ptr %7, align 8, !tbaa !9
  %240 = load double, ptr %13, align 8, !tbaa !9
  %241 = call noundef double @_Z8horowitzddddi(double noundef %239, double noundef %240, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %241, ptr %14, align 8, !tbaa !9
  %242 = load double, ptr %14, align 8, !tbaa !9
  %243 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 21
  %244 = load double, ptr %243, align 8, !tbaa !42
  %245 = fadd double %244, %242
  store double %245, ptr %243, align 8, !tbaa !42
  %246 = load double, ptr %14, align 8, !tbaa !9
  %247 = fdiv double %246, 5.000000e-01
  store double %247, ptr %7, align 8, !tbaa !9
  %248 = load double, ptr %10, align 8, !tbaa !9
  %249 = load double, ptr %12, align 8, !tbaa !9
  %250 = fadd double %248, %249
  %251 = fmul double %250, 5.000000e-01
  %252 = load double, ptr %15, align 8, !tbaa !9
  %253 = fmul double %251, %252
  %254 = load double, ptr %15, align 8, !tbaa !9
  %255 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 23
  %256 = getelementptr inbounds %class.powerDef, ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %class.powerComponents, ptr %256, i32 0, i32 0
  %258 = load double, ptr %257, align 8, !tbaa !43
  %259 = call double @llvm.fmuladd.f64(double %253, double %254, double %258)
  store double %259, ptr %257, align 8, !tbaa !43
  br label %260

260:                                              ; preds = %186
  %261 = load i32, ptr %8, align 4, !tbaa !29
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %8, align 4, !tbaa !29
  br label %180, !llvm.loop !44

263:                                              ; preds = %180
  %264 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 4
  %265 = load i32, ptr %264, align 4, !tbaa !41
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %267, label %335

267:                                              ; preds = %263
  %268 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 4
  %269 = load i32, ptr %268, align 4, !tbaa !41
  %270 = sub nsw i32 %269, 1
  store i32 %270, ptr %8, align 4, !tbaa !29
  %271 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 18
  %272 = load i32, ptr %8, align 4, !tbaa !29
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [20 x double], ptr %271, i64 0, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !9
  %276 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %277 = load i8, ptr %276, align 8, !tbaa !31, !range !32, !noundef !33
  %278 = trunc i8 %277 to i1
  %279 = call noundef double @_Z7tr_R_ondiibbb(double noundef %275, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %278, i1 noundef zeroext false, i1 noundef zeroext false)
  store double %279, ptr %9, align 8, !tbaa !9
  %280 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 19
  %281 = load i32, ptr %8, align 4, !tbaa !29
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [20 x double], ptr %280, i64 0, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !9
  %285 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %286 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %287 = load i8, ptr %286, align 8, !tbaa !31, !range !32, !noundef !33
  %288 = trunc i8 %287 to i1
  %289 = call noundef double @_Z8drain_C_diiidbbb(double noundef %284, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %285, i1 noundef zeroext %288, i1 noundef zeroext false, i1 noundef zeroext false)
  %290 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 18
  %291 = load i32, ptr %8, align 4, !tbaa !29
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [20 x double], ptr %290, i64 0, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !9
  %295 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 39), align 8, !tbaa !34
  %296 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 26
  %297 = load i8, ptr %296, align 8, !tbaa !31, !range !32, !noundef !33
  %298 = trunc i8 %297 to i1
  %299 = call noundef double @_Z8drain_C_diiidbbb(double noundef %294, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %295, i1 noundef zeroext %298, i1 noundef zeroext false, i1 noundef zeroext false)
  %300 = fadd double %289, %299
  store double %300, ptr %12, align 8, !tbaa !9
  %301 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 13
  %302 = load double, ptr %301, align 8, !tbaa !45
  store double %302, ptr %11, align 8, !tbaa !9
  %303 = load double, ptr %9, align 8, !tbaa !9
  %304 = load double, ptr %12, align 8, !tbaa !9
  %305 = load double, ptr %11, align 8, !tbaa !9
  %306 = fadd double %304, %305
  %307 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 15
  %308 = load double, ptr %307, align 8, !tbaa !46
  %309 = load double, ptr %11, align 8, !tbaa !9
  %310 = fmul double %308, %309
  %311 = fdiv double %310, 2.000000e+00
  %312 = call double @llvm.fmuladd.f64(double %303, double %306, double %311)
  store double %312, ptr %13, align 8, !tbaa !9
  %313 = load double, ptr %7, align 8, !tbaa !9
  %314 = load double, ptr %13, align 8, !tbaa !9
  %315 = call noundef double @_Z8horowitzddddi(double noundef %313, double noundef %314, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  store double %315, ptr %14, align 8, !tbaa !9
  %316 = load double, ptr %14, align 8, !tbaa !9
  %317 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 21
  %318 = load double, ptr %317, align 8, !tbaa !42
  %319 = fadd double %318, %316
  store double %319, ptr %317, align 8, !tbaa !42
  %320 = load double, ptr %14, align 8, !tbaa !9
  %321 = fdiv double %320, 5.000000e-01
  %322 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 1
  store double %321, ptr %322, align 8, !tbaa !13
  %323 = load double, ptr %12, align 8, !tbaa !9
  %324 = load double, ptr %11, align 8, !tbaa !9
  %325 = fadd double %323, %324
  %326 = fmul double %325, 5.000000e-01
  %327 = load double, ptr %15, align 8, !tbaa !9
  %328 = fmul double %326, %327
  %329 = load double, ptr %15, align 8, !tbaa !9
  %330 = getelementptr inbounds %class.PredecBlkDrv, ptr %16, i32 0, i32 23
  %331 = getelementptr inbounds %class.powerDef, ptr %330, i32 0, i32 0
  %332 = getelementptr inbounds %class.powerComponents, ptr %331, i32 0, i32 0
  %333 = load double, ptr %332, align 8, !tbaa !43
  %334 = call double @llvm.fmuladd.f64(double %328, double %329, double %333)
  store double %334, ptr %332, align 8, !tbaa !43
  br label %335

335:                                              ; preds = %267, %263
  br label %336

336:                                              ; preds = %335, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %337 = load { double, double }, ptr %4, align 8
  ret { double, double } %337
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !10, i64 0}
!12 = !{!"_ZTSSt4pairIddE", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !10, i64 936}
!15 = !{!"_ZTS19TechnologyParameter", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !16, i64 352, !17, i64 360, !17, i64 528, !17, i64 696, !17, i64 864, !17, i64 1032, !18, i64 1200, !18, i64 1264, !18, i64 1328, !19, i64 1392, !20, i64 1416, !20, i64 1464, !20, i64 1512}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160}
!18 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!19 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!21 = !{!22, !27, i64 280}
!22 = !{!"_ZTS12PredecBlkDrv", !23, i64 0, !27, i64 280, !27, i64 284, !27, i64 288, !27, i64 292, !27, i64 296, !27, i64 300, !27, i64 304, !27, i64 308, !27, i64 312, !27, i64 316, !27, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !7, i64 360, !7, i64 520, !7, i64 680, !7, i64 840, !10, i64 1000, !10, i64 1008, !25, i64 1016, !25, i64 1136, !6, i64 1256, !6, i64 1264, !28, i64 1272, !27, i64 1276}
!23 = !{!"_ZTS9Component", !24, i64 0, !25, i64 24, !25, i64 144, !10, i64 264, !10, i64 272}
!24 = !{!"_ZTS4Area", !10, i64 0, !10, i64 8, !10, i64 16}
!25 = !{!"_ZTS8powerDef", !26, i64 0, !26, i64 40, !26, i64 80}
!26 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!27 = !{!"int", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!27, !27, i64 0}
!30 = !{!22, !27, i64 288}
!31 = !{!22, !28, i64 1272}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!15, !10, i64 312}
!35 = !{!22, !10, i64 1000}
!36 = !{!22, !10, i64 1016}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!22, !10, i64 328}
!40 = !{!22, !10, i64 344}
!41 = !{!22, !27, i64 292}
!42 = !{!22, !10, i64 1008}
!43 = !{!22, !10, i64 1136}
!44 = distinct !{!44, !38}
!45 = !{!22, !10, i64 336}
!46 = !{!22, !10, i64 352}


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

%class.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }
%"struct.std::pair" = type { double, double }

@g_tp = external local_unnamed_addr global %class.TechnologyParameter, align 8

declare noundef double @_Z6gate_Cddbbb(double noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

declare noundef double @_Z7tr_R_ondiibbb(double noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

declare noundef double @_Z8drain_C_diiidbbb(double noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

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

declare noundef double @_Z8horowitzddddi(double noundef, double noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN12PredecBlkDrv14compute_delaysEdd(ptr nocapture noundef nonnull align 8 dereferenceable(1280) %0, double noundef %1, double noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"struct.std::pair", align 8
  call void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %6 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 936), align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 280
  %8 = load i32, ptr %7, align 8, !tbaa !15
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %188, label %.preheader

.preheader:                                       ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 288
  %10 = load i32, ptr %9, align 8, !tbaa !24
  %11 = add nsw i32 %10, -1
  %12 = icmp sgt i32 %10, 1
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  %14 = getelementptr inbounds i8, ptr %0, i64 1272
  %15 = getelementptr inbounds i8, ptr %0, i64 520
  %16 = getelementptr inbounds i8, ptr %0, i64 1000
  %17 = getelementptr inbounds i8, ptr %0, i64 1016
  br label %18

18:                                               ; preds = %.lr.ph, %18
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %18 ]
  %.076 = phi double [ %1, %.lr.ph ], [ %49, %18 ]
  %19 = getelementptr inbounds [20 x double], ptr %13, i64 0, i64 %indvars.iv
  %20 = load double, ptr %19, align 8, !tbaa !25
  %21 = load i8, ptr %14, align 8, !tbaa !26, !range !27, !noundef !28
  %22 = trunc nuw i8 %21 to i1
  %23 = call noundef double @_Z7tr_R_ondiibbb(double noundef %20, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %22, i1 noundef zeroext false, i1 noundef zeroext false)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = getelementptr inbounds [20 x double], ptr %15, i64 0, i64 %indvars.iv.next
  %25 = load double, ptr %24, align 8, !tbaa !25
  %26 = getelementptr inbounds [20 x double], ptr %13, i64 0, i64 %indvars.iv.next
  %27 = load double, ptr %26, align 8, !tbaa !25
  %28 = fadd double %25, %27
  %29 = load i8, ptr %14, align 8, !tbaa !26, !range !27, !noundef !28
  %30 = trunc nuw i8 %29 to i1
  %31 = call noundef double @_Z6gate_Cddbbb(double noundef %28, double noundef 0.000000e+00, i1 noundef zeroext %30, i1 noundef zeroext false, i1 noundef zeroext false)
  %32 = getelementptr inbounds [20 x double], ptr %15, i64 0, i64 %indvars.iv
  %33 = load double, ptr %32, align 8, !tbaa !25
  %34 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %35 = load i8, ptr %14, align 8, !tbaa !26, !range !27, !noundef !28
  %36 = trunc nuw i8 %35 to i1
  %37 = call noundef double @_Z8drain_C_diiidbbb(double noundef %33, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %34, i1 noundef zeroext %36, i1 noundef zeroext false, i1 noundef zeroext false)
  %38 = load double, ptr %19, align 8, !tbaa !25
  %39 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %40 = load i8, ptr %14, align 8, !tbaa !26, !range !27, !noundef !28
  %41 = trunc nuw i8 %40 to i1
  %42 = call noundef double @_Z8drain_C_diiidbbb(double noundef %38, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %39, i1 noundef zeroext %41, i1 noundef zeroext false, i1 noundef zeroext false)
  %43 = fadd double %37, %42
  %44 = fadd double %31, %43
  %45 = fmul double %23, %44
  %46 = call noundef double @_Z8horowitzddddi(double noundef %.076, double noundef %45, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %47 = load double, ptr %16, align 8, !tbaa !30
  %48 = fadd double %46, %47
  store double %48, ptr %16, align 8, !tbaa !30
  %49 = fmul double %46, 2.000000e+00
  %50 = fmul double %44, 5.000000e-01
  %51 = fmul double %6, %50
  %52 = load double, ptr %17, align 8, !tbaa !31
  %53 = call double @llvm.fmuladd.f64(double %51, double %6, double %52)
  store double %53, ptr %17, align 8, !tbaa !31
  %54 = load i32, ptr %9, align 8, !tbaa !24
  %55 = add nsw i32 %54, -1
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv.next, %56
  br i1 %57, label %18, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %18, %.preheader
  %.0.lcssa = phi double [ %1, %.preheader ], [ %49, %18 ]
  %.lcssa74 = phi i32 [ %10, %.preheader ], [ %54, %18 ]
  %.lcssa73 = phi i32 [ %11, %.preheader ], [ %55, %18 ]
  %.not70 = icmp eq i32 %.lcssa74, 0
  br i1 %.not70, label %98, label %58

58:                                               ; preds = %._crit_edge
  %59 = getelementptr inbounds i8, ptr %0, i64 360
  %60 = sext i32 %.lcssa73 to i64
  %61 = getelementptr inbounds [20 x double], ptr %59, i64 0, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !25
  %63 = getelementptr inbounds i8, ptr %0, i64 1272
  %64 = load i8, ptr %63, align 8, !tbaa !26, !range !27, !noundef !28
  %65 = trunc nuw i8 %64 to i1
  %66 = call noundef double @_Z7tr_R_ondiibbb(double noundef %62, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %65, i1 noundef zeroext false, i1 noundef zeroext false)
  %67 = getelementptr inbounds i8, ptr %0, i64 520
  %68 = getelementptr inbounds [20 x double], ptr %67, i64 0, i64 %60
  %69 = load double, ptr %68, align 8, !tbaa !25
  %70 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %71 = load i8, ptr %63, align 8, !tbaa !26, !range !27, !noundef !28
  %72 = trunc nuw i8 %71 to i1
  %73 = call noundef double @_Z8drain_C_diiidbbb(double noundef %69, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %70, i1 noundef zeroext %72, i1 noundef zeroext false, i1 noundef zeroext false)
  %74 = load double, ptr %61, align 8, !tbaa !25
  %75 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %76 = load i8, ptr %63, align 8, !tbaa !26, !range !27, !noundef !28
  %77 = trunc nuw i8 %76 to i1
  %78 = call noundef double @_Z8drain_C_diiidbbb(double noundef %74, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %75, i1 noundef zeroext %77, i1 noundef zeroext false, i1 noundef zeroext false)
  %79 = fadd double %73, %78
  %80 = getelementptr inbounds i8, ptr %0, i64 328
  %81 = load double, ptr %80, align 8, !tbaa !34
  %82 = fadd double %79, %81
  %83 = getelementptr inbounds i8, ptr %0, i64 344
  %84 = load double, ptr %83, align 8, !tbaa !35
  %85 = fmul double %81, %84
  %86 = fmul double %85, 5.000000e-01
  %87 = call double @llvm.fmuladd.f64(double %66, double %82, double %86)
  %88 = call noundef double @_Z8horowitzddddi(double noundef %.0.lcssa, double noundef %87, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %89 = getelementptr inbounds i8, ptr %0, i64 1000
  %90 = load double, ptr %89, align 8, !tbaa !30
  %91 = fadd double %88, %90
  store double %91, ptr %89, align 8, !tbaa !30
  %92 = fmul double %88, 2.000000e+00
  store double %92, ptr %4, align 8, !tbaa !36
  %93 = fmul double %82, 5.000000e-01
  %94 = fmul double %6, %93
  %95 = getelementptr inbounds i8, ptr %0, i64 1016
  %96 = load double, ptr %95, align 8, !tbaa !31
  %97 = call double @llvm.fmuladd.f64(double %94, double %6, double %96)
  store double %97, ptr %95, align 8, !tbaa !31
  br label %98

98:                                               ; preds = %58, %._crit_edge
  %99 = getelementptr inbounds i8, ptr %0, i64 292
  %100 = load i32, ptr %99, align 4, !tbaa !38
  %101 = add nsw i32 %100, -1
  %102 = icmp sgt i32 %100, 1
  br i1 %102, label %.lr.ph82, label %._crit_edge83

.lr.ph82:                                         ; preds = %98
  %103 = getelementptr inbounds i8, ptr %0, i64 680
  %104 = getelementptr inbounds i8, ptr %0, i64 1272
  %105 = getelementptr inbounds i8, ptr %0, i64 840
  %106 = getelementptr inbounds i8, ptr %0, i64 1008
  %107 = getelementptr inbounds i8, ptr %0, i64 1136
  br label %108

108:                                              ; preds = %.lr.ph82, %108
  %indvars.iv94 = phi i64 [ 0, %.lr.ph82 ], [ %indvars.iv.next95, %108 ]
  %.06779 = phi double [ %2, %.lr.ph82 ], [ %139, %108 ]
  %109 = getelementptr inbounds [20 x double], ptr %103, i64 0, i64 %indvars.iv94
  %110 = load double, ptr %109, align 8, !tbaa !25
  %111 = load i8, ptr %104, align 8, !tbaa !26, !range !27, !noundef !28
  %112 = trunc nuw i8 %111 to i1
  %113 = call noundef double @_Z7tr_R_ondiibbb(double noundef %110, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %112, i1 noundef zeroext false, i1 noundef zeroext false)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %114 = getelementptr inbounds [20 x double], ptr %105, i64 0, i64 %indvars.iv.next95
  %115 = load double, ptr %114, align 8, !tbaa !25
  %116 = getelementptr inbounds [20 x double], ptr %103, i64 0, i64 %indvars.iv.next95
  %117 = load double, ptr %116, align 8, !tbaa !25
  %118 = fadd double %115, %117
  %119 = load i8, ptr %104, align 8, !tbaa !26, !range !27, !noundef !28
  %120 = trunc nuw i8 %119 to i1
  %121 = call noundef double @_Z6gate_Cddbbb(double noundef %118, double noundef 0.000000e+00, i1 noundef zeroext %120, i1 noundef zeroext false, i1 noundef zeroext false)
  %122 = getelementptr inbounds [20 x double], ptr %105, i64 0, i64 %indvars.iv94
  %123 = load double, ptr %122, align 8, !tbaa !25
  %124 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %125 = load i8, ptr %104, align 8, !tbaa !26, !range !27, !noundef !28
  %126 = trunc nuw i8 %125 to i1
  %127 = call noundef double @_Z8drain_C_diiidbbb(double noundef %123, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %124, i1 noundef zeroext %126, i1 noundef zeroext false, i1 noundef zeroext false)
  %128 = load double, ptr %109, align 8, !tbaa !25
  %129 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %130 = load i8, ptr %104, align 8, !tbaa !26, !range !27, !noundef !28
  %131 = trunc nuw i8 %130 to i1
  %132 = call noundef double @_Z8drain_C_diiidbbb(double noundef %128, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %129, i1 noundef zeroext %131, i1 noundef zeroext false, i1 noundef zeroext false)
  %133 = fadd double %127, %132
  %134 = fadd double %121, %133
  %135 = fmul double %113, %134
  %136 = call noundef double @_Z8horowitzddddi(double noundef %.06779, double noundef %135, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %137 = load double, ptr %106, align 8, !tbaa !39
  %138 = fadd double %136, %137
  store double %138, ptr %106, align 8, !tbaa !39
  %139 = fmul double %136, 2.000000e+00
  %140 = fmul double %134, 5.000000e-01
  %141 = fmul double %6, %140
  %142 = load double, ptr %107, align 8, !tbaa !40
  %143 = call double @llvm.fmuladd.f64(double %141, double %6, double %142)
  store double %143, ptr %107, align 8, !tbaa !40
  %144 = load i32, ptr %99, align 4, !tbaa !38
  %145 = add nsw i32 %144, -1
  %146 = sext i32 %145 to i64
  %147 = icmp slt i64 %indvars.iv.next95, %146
  br i1 %147, label %108, label %._crit_edge83, !llvm.loop !41

._crit_edge83:                                    ; preds = %108, %98
  %.067.lcssa = phi double [ %2, %98 ], [ %139, %108 ]
  %.lcssa72 = phi i32 [ %100, %98 ], [ %144, %108 ]
  %.lcssa = phi i32 [ %101, %98 ], [ %145, %108 ]
  %.not71 = icmp eq i32 %.lcssa72, 0
  br i1 %.not71, label %._crit_edge83._crit_edge, label %148

._crit_edge83._crit_edge:                         ; preds = %._crit_edge83
  %.fca.1.load.pre = load double, ptr %5, align 8
  br label %188

148:                                              ; preds = %._crit_edge83
  %149 = getelementptr inbounds i8, ptr %0, i64 680
  %150 = sext i32 %.lcssa to i64
  %151 = getelementptr inbounds [20 x double], ptr %149, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !25
  %153 = getelementptr inbounds i8, ptr %0, i64 1272
  %154 = load i8, ptr %153, align 8, !tbaa !26, !range !27, !noundef !28
  %155 = trunc nuw i8 %154 to i1
  %156 = call noundef double @_Z7tr_R_ondiibbb(double noundef %152, i32 noundef 1, i32 noundef 1, i1 noundef zeroext %155, i1 noundef zeroext false, i1 noundef zeroext false)
  %157 = getelementptr inbounds i8, ptr %0, i64 840
  %158 = getelementptr inbounds [20 x double], ptr %157, i64 0, i64 %150
  %159 = load double, ptr %158, align 8, !tbaa !25
  %160 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %161 = load i8, ptr %153, align 8, !tbaa !26, !range !27, !noundef !28
  %162 = trunc nuw i8 %161 to i1
  %163 = call noundef double @_Z8drain_C_diiidbbb(double noundef %159, i32 noundef 0, i32 noundef 1, i32 noundef 1, double noundef %160, i1 noundef zeroext %162, i1 noundef zeroext false, i1 noundef zeroext false)
  %164 = load double, ptr %151, align 8, !tbaa !25
  %165 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 312), align 8, !tbaa !29
  %166 = load i8, ptr %153, align 8, !tbaa !26, !range !27, !noundef !28
  %167 = trunc nuw i8 %166 to i1
  %168 = call noundef double @_Z8drain_C_diiidbbb(double noundef %164, i32 noundef 1, i32 noundef 1, i32 noundef 1, double noundef %165, i1 noundef zeroext %167, i1 noundef zeroext false, i1 noundef zeroext false)
  %169 = fadd double %163, %168
  %170 = getelementptr inbounds i8, ptr %0, i64 336
  %171 = load double, ptr %170, align 8, !tbaa !42
  %172 = fadd double %169, %171
  %173 = getelementptr inbounds i8, ptr %0, i64 352
  %174 = load double, ptr %173, align 8, !tbaa !43
  %175 = fmul double %171, %174
  %176 = fmul double %175, 5.000000e-01
  %177 = call double @llvm.fmuladd.f64(double %156, double %172, double %176)
  %178 = call noundef double @_Z8horowitzddddi(double noundef %.067.lcssa, double noundef %177, double noundef 5.000000e-01, double noundef 5.000000e-01, i32 noundef 1)
  %179 = getelementptr inbounds i8, ptr %0, i64 1008
  %180 = load double, ptr %179, align 8, !tbaa !39
  %181 = fadd double %178, %180
  store double %181, ptr %179, align 8, !tbaa !39
  %182 = fmul double %178, 2.000000e+00
  %183 = fmul double %172, 5.000000e-01
  %184 = fmul double %6, %183
  %185 = getelementptr inbounds i8, ptr %0, i64 1136
  %186 = load double, ptr %185, align 8, !tbaa !40
  %187 = call double @llvm.fmuladd.f64(double %184, double %6, double %186)
  store double %187, ptr %185, align 8, !tbaa !40
  br label %188

188:                                              ; preds = %._crit_edge83._crit_edge, %148, %3
  %.fca.1.load = phi double [ %.fca.1.load.pre, %._crit_edge83._crit_edge ], [ %182, %148 ], [ 0.000000e+00, %3 ]
  %.fca.0.load = load double, ptr %4, align 8
  %.fca.0.insert = insertvalue { double, double } poison, double %.fca.0.load, 0
  %.fca.1.insert = insertvalue { double, double } %.fca.0.insert, double %.fca.1.load, 1
  ret { double, double } %.fca.1.insert
}

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

attributes #0 = { "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) }
attributes #2 = { 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 #3 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 936}
!6 = !{!"_ZTS19TechnologyParameter", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !10, i64 352, !11, i64 360, !11, i64 528, !11, i64 696, !11, i64 864, !11, i64 1032, !12, i64 1200, !12, i64 1264, !12, i64 1328, !13, i64 1392, !14, i64 1416, !14, i64 1464, !14, i64 1512}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160}
!12 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!13 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!15 = !{!16, !21, i64 280}
!16 = !{!"_ZTS12PredecBlkDrv", !17, i64 0, !21, i64 280, !21, i64 284, !21, i64 288, !21, i64 292, !21, i64 296, !21, i64 300, !21, i64 304, !21, i64 308, !21, i64 312, !21, i64 316, !21, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !8, i64 360, !8, i64 520, !8, i64 680, !8, i64 840, !7, i64 1000, !7, i64 1008, !19, i64 1016, !19, i64 1136, !22, i64 1256, !22, i64 1264, !23, i64 1272, !21, i64 1276}
!17 = !{!"_ZTS9Component", !18, i64 0, !19, i64 24, !19, i64 144, !7, i64 264, !7, i64 272}
!18 = !{!"_ZTS4Area", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTS8powerDef", !20, i64 0, !20, i64 40, !20, i64 80}
!20 = !{!"_ZTS15powerComponents", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!21 = !{!"int", !8, i64 0}
!22 = !{!"any pointer", !8, i64 0}
!23 = !{!"bool", !8, i64 0}
!24 = !{!16, !21, i64 288}
!25 = !{!7, !7, i64 0}
!26 = !{!16, !23, i64 1272}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!6, !7, i64 312}
!30 = !{!16, !7, i64 1000}
!31 = !{!16, !7, i64 1016}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!16, !7, i64 328}
!35 = !{!16, !7, i64 344}
!36 = !{!37, !7, i64 0}
!37 = !{!"_ZTSSt4pairIddE", !7, i64 0, !7, i64 8}
!38 = !{!16, !21, i64 292}
!39 = !{!16, !7, i64 1008}
!40 = !{!16, !7, i64 1136}
!41 = distinct !{!41, !33}
!42 = !{!16, !7, i64 336}
!43 = !{!16, !7, i64 352}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass