; LLVM IR from gem5/gem5 :: ext/mcpat/cacti/subarray.ll (ZN8SubarrayC2ERK16DynamicParameterb)

; 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 }
%class.Subarray = type { %class.Component, ptr, i32, i32, i32, i32, %class.Area, %class.Area, i8, double, double, double, double, double, double, double, double }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%class.Area = type { double, double, double }
%class.DynamicParameter = type <{ i8, i8, i8, i8, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], double, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], double, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], %class.Area, %class.Area, i8, [7 x i8] }>
%class.InputParameter = type { i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i8, i8, i32, i32, i8, double, double, i8, i32, i32, i8 }

@g_ip = external global ptr, align 8
@g_tp = external global %class.TechnologyParameter, align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__PRETTY_FUNCTION__._ZN8SubarrayC2ERK16DynamicParameterb = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8SubarrayC2ERK16DynamicParameterb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(265) %1, i1 noundef zeroext %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = zext i1 %2 to i8
  store i8 %10, ptr %6, align 1, !tbaa !9
  %11 = load ptr, ptr %4, align 8
  call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %11)
  %12 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %13, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 2
  %15 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds %class.DynamicParameter, ptr %16, i32 0, i32 35
  %18 = load i32, ptr %17, align 8, !tbaa !19
  store i32 %18, ptr %14, align 8, !tbaa !21
  %19 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  %20 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %class.DynamicParameter, ptr %21, i32 0, i32 36
  %23 = load i32, ptr %22, align 4, !tbaa !22
  store i32 %23, ptr %19, align 4, !tbaa !23
  %24 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %25 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %class.DynamicParameter, ptr %26, i32 0, i32 38
  %28 = load i32, ptr %27, align 4, !tbaa !24
  store i32 %28, ptr %24, align 8, !tbaa !25
  %29 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  %30 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds %class.DynamicParameter, ptr %31, i32 0, i32 40
  %33 = load i32, ptr %32, align 4, !tbaa !26
  store i32 %33, ptr %29, align 4, !tbaa !27
  %34 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 6
  %35 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %class.DynamicParameter, ptr %36, i32 0, i32 55
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %37, i64 24, i1 false), !tbaa.struct !28
  %38 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 7
  %39 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %class.DynamicParameter, ptr %40, i32 0, i32 56
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %41, i64 24, i1 false), !tbaa.struct !28
  %42 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 8
  %43 = load i8, ptr %6, align 1, !tbaa !9, !range !30, !noundef !31
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %42, align 8, !tbaa !32
  %46 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 8
  %47 = load i8, ptr %46, align 8, !tbaa !32, !range !30, !noundef !31
  %48 = trunc i8 %47 to i1
  br i1 %48, label %119, label %49

49:                                               ; preds = %3
  %50 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %class.DynamicParameter, ptr %51, i32 0, i32 2
  %53 = load i8, ptr %52, align 2, !tbaa !33, !range !30, !noundef !31
  %54 = trunc i8 %53 to i1
  br i1 %54, label %119, label %55

55:                                               ; preds = %49
  %56 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.InputParameter, ptr %56, i32 0, i32 84
  %58 = load i8, ptr %57, align 8, !tbaa !34, !range !30, !noundef !31
  %59 = trunc i8 %58 to i1
  br i1 %59, label %60, label %67

60:                                               ; preds = %55
  %61 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  %62 = load i32, ptr %61, align 4, !tbaa !23
  %63 = uitofp i32 %62 to double
  %64 = fdiv double %63, 8.000000e+00
  %65 = call double @llvm.ceil.f64(double %64)
  %66 = fptosi double %65 to i32
  br label %68

67:                                               ; preds = %55
  br label %68

68:                                               ; preds = %67, %60
  %69 = phi i32 [ %66, %60 ], [ 0, %67 ]
  %70 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  %71 = load i32, ptr %70, align 4, !tbaa !23
  %72 = add i32 %71, %69
  store i32 %72, ptr %70, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %73 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds %class.DynamicParameter, ptr %74, i32 0, i32 43
  %76 = load i32, ptr %75, align 8, !tbaa !37
  %77 = icmp eq i32 %76, 3
  br i1 %77, label %78, label %79

78:                                               ; preds = %68
  br label %87

79:                                               ; preds = %68
  %80 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %class.DynamicParameter, ptr %81, i32 0, i32 43
  %83 = load i32, ptr %82, align 8, !tbaa !37
  %84 = icmp eq i32 %83, 4
  %85 = zext i1 %84 to i64
  %86 = select i1 %84, i32 256, i32 16
  br label %87

87:                                               ; preds = %79, %78
  %88 = phi i32 [ 64, %78 ], [ %86, %79 ]
  store i32 %88, ptr %7, align 4, !tbaa !38
  %89 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 6
  %90 = getelementptr inbounds %class.Area, ptr %89, i32 0, i32 1
  %91 = load double, ptr %90, align 8, !tbaa !39
  %92 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 2
  %93 = load i32, ptr %92, align 8, !tbaa !21
  %94 = uitofp i32 %93 to double
  %95 = fmul double %91, %94
  %96 = getelementptr inbounds %class.Component, ptr %11, i32 0, i32 0
  %97 = getelementptr inbounds %class.Area, ptr %96, i32 0, i32 1
  store double %95, ptr %97, align 8, !tbaa !40
  %98 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 6
  %99 = getelementptr inbounds %class.Area, ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !41
  %101 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  %102 = load i32, ptr %101, align 4, !tbaa !23
  %103 = uitofp i32 %102 to double
  %104 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !23
  %106 = load i32, ptr %7, align 4, !tbaa !38
  %107 = udiv i32 %105, %106
  %108 = invoke noundef double @_ZSt4ceilIjEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %107)
          to label %109 unwind label %115

109:                                              ; preds = %87
  %110 = load double, ptr @g_tp, align 8, !tbaa !42
  %111 = fmul double %108, %110
  %112 = call double @llvm.fmuladd.f64(double %100, double %103, double %111)
  %113 = getelementptr inbounds %class.Component, ptr %11, i32 0, i32 0
  %114 = getelementptr inbounds %class.Area, ptr %113, i32 0, i32 0
  store double %112, ptr %114, align 8, !tbaa !49
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %231

115:                                              ; preds = %87
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %8, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %249

119:                                              ; preds = %49, %3
  %120 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 8
  %121 = load i8, ptr %120, align 8, !tbaa !32, !range !30, !noundef !31
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %164

123:                                              ; preds = %119
  %124 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.InputParameter, ptr %124, i32 0, i32 84
  %126 = load i8, ptr %125, align 8, !tbaa !34, !range !30, !noundef !31
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %135

128:                                              ; preds = %123
  %129 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %130 = load i32, ptr %129, align 8, !tbaa !25
  %131 = sitofp i32 %130 to double
  %132 = fdiv double %131, 8.000000e+00
  %133 = call double @llvm.ceil.f64(double %132)
  %134 = fptosi double %133 to i32
  br label %136

135:                                              ; preds = %123
  br label %136

136:                                              ; preds = %135, %128
  %137 = phi i32 [ %134, %128 ], [ 0, %135 ]
  %138 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %139 = load i32, ptr %138, align 8, !tbaa !25
  %140 = add nsw i32 %139, %137
  store i32 %140, ptr %138, align 8, !tbaa !25
  %141 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.InputParameter, ptr %141, i32 0, i32 84
  %143 = load i8, ptr %142, align 8, !tbaa !34, !range !30, !noundef !31
  %144 = trunc i8 %143 to i1
  br i1 %144, label %145, label %152

145:                                              ; preds = %136
  %146 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  %147 = load i32, ptr %146, align 4, !tbaa !27
  %148 = sitofp i32 %147 to double
  %149 = fdiv double %148, 8.000000e+00
  %150 = call double @llvm.ceil.f64(double %149)
  %151 = fptosi double %150 to i32
  br label %153

152:                                              ; preds = %136
  br label %153

153:                                              ; preds = %152, %145
  %154 = phi i32 [ %151, %145 ], [ 0, %152 ]
  %155 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  %156 = load i32, ptr %155, align 4, !tbaa !27
  %157 = add nsw i32 %156, %154
  store i32 %157, ptr %155, align 4, !tbaa !27
  %158 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %159 = load i32, ptr %158, align 8, !tbaa !25
  %160 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  %161 = load i32, ptr %160, align 4, !tbaa !27
  %162 = add nsw i32 %159, %161
  %163 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  store i32 %162, ptr %163, align 4, !tbaa !23
  br label %186

164:                                              ; preds = %119
  %165 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %166 = getelementptr inbounds %class.InputParameter, ptr %165, i32 0, i32 84
  %167 = load i8, ptr %166, align 8, !tbaa !34, !range !30, !noundef !31
  %168 = trunc i8 %167 to i1
  br i1 %168, label %169, label %176

169:                                              ; preds = %164
  %170 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %171 = load i32, ptr %170, align 8, !tbaa !25
  %172 = sitofp i32 %171 to double
  %173 = fdiv double %172, 8.000000e+00
  %174 = call double @llvm.ceil.f64(double %173)
  %175 = fptosi double %174 to i32
  br label %177

176:                                              ; preds = %164
  br label %177

177:                                              ; preds = %176, %169
  %178 = phi i32 [ %175, %169 ], [ 0, %176 ]
  %179 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %180 = load i32, ptr %179, align 8, !tbaa !25
  %181 = add nsw i32 %180, %178
  store i32 %181, ptr %179, align 8, !tbaa !25
  %182 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  store i32 0, ptr %182, align 4, !tbaa !27
  %183 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %184 = load i32, ptr %183, align 8, !tbaa !25
  %185 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 3
  store i32 %184, ptr %185, align 4, !tbaa !23
  br label %186

186:                                              ; preds = %177, %153
  %187 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 7
  %188 = getelementptr inbounds %class.Area, ptr %187, i32 0, i32 1
  %189 = load double, ptr %188, align 8, !tbaa !50
  %190 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 2
  %191 = load i32, ptr %190, align 8, !tbaa !21
  %192 = add i32 %191, 1
  %193 = uitofp i32 %192 to double
  %194 = fmul double %189, %193
  %195 = getelementptr inbounds %class.Component, ptr %11, i32 0, i32 0
  %196 = getelementptr inbounds %class.Area, ptr %195, i32 0, i32 1
  store double %194, ptr %196, align 8, !tbaa !40
  %197 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 7
  %198 = getelementptr inbounds %class.Area, ptr %197, i32 0, i32 0
  %199 = load double, ptr %198, align 8, !tbaa !51
  %200 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %201 = load i32, ptr %200, align 8, !tbaa !25
  %202 = sitofp i32 %201 to double
  %203 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 6
  %204 = getelementptr inbounds %class.Area, ptr %203, i32 0, i32 0
  %205 = load double, ptr %204, align 8, !tbaa !41
  %206 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  %207 = load i32, ptr %206, align 4, !tbaa !27
  %208 = sitofp i32 %207 to double
  %209 = fmul double %205, %208
  %210 = call double @llvm.fmuladd.f64(double %199, double %202, double %209)
  %211 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 4
  %212 = load i32, ptr %211, align 8, !tbaa !25
  %213 = getelementptr inbounds %class.Subarray, ptr %11, i32 0, i32 5
  %214 = load i32, ptr %213, align 4, !tbaa !27
  %215 = add nsw i32 %212, %214
  %216 = udiv i32 %215, 16
  %217 = invoke noundef double @_ZSt4ceilIjEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %216)
          to label %218 unwind label %227

218:                                              ; preds = %186
  %219 = load double, ptr @g_tp, align 8, !tbaa !42
  %220 = call double @llvm.fmuladd.f64(double %217, double %219, double %210)
  %221 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), align 8, !tbaa !52
  %222 = call double @llvm.fmuladd.f64(double 1.600000e+01, double %221, double %220)
  %223 = load double, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 50), align 8, !tbaa !52
  %224 = call double @llvm.fmuladd.f64(double 1.280000e+02, double %223, double %222)
  %225 = getelementptr inbounds %class.Component, ptr %11, i32 0, i32 0
  %226 = getelementptr inbounds %class.Area, ptr %225, i32 0, i32 0
  store double %224, ptr %226, align 8, !tbaa !49
  br label %231

227:                                              ; preds = %247, %186
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %8, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %9, align 4
  br label %249

231:                                              ; preds = %218, %109
  %232 = getelementptr inbounds %class.Component, ptr %11, i32 0, i32 0
  %233 = getelementptr inbounds %class.Area, ptr %232, i32 0, i32 1
  %234 = load double, ptr %233, align 8, !tbaa !40
  %235 = fcmp ogt double %234, 0.000000e+00
  br i1 %235, label %236, label %237

236:                                              ; preds = %231
  br label %239

237:                                              ; preds = %231
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 84, ptr noundef @__PRETTY_FUNCTION__._ZN8SubarrayC2ERK16DynamicParameterb) #9
  unreachable

238:                                              ; No predecessors!
  br label %239

239:                                              ; preds = %238, %236
  %240 = getelementptr inbounds %class.Component, ptr %11, i32 0, i32 0
  %241 = getelementptr inbounds %class.Area, ptr %240, i32 0, i32 0
  %242 = load double, ptr %241, align 8, !tbaa !49
  %243 = fcmp ogt double %242, 0.000000e+00
  br i1 %243, label %244, label %245

244:                                              ; preds = %239
  br label %247

245:                                              ; preds = %239
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 85, ptr noundef @__PRETTY_FUNCTION__._ZN8SubarrayC2ERK16DynamicParameterb) #9
  unreachable

246:                                              ; No predecessors!
  br label %247

247:                                              ; preds = %246, %244
  invoke void @_ZN8Subarray9compute_CEv(ptr noundef nonnull align 8 dereferenceable(424) %11)
          to label %248 unwind label %227

248:                                              ; preds = %247
  ret void

249:                                              ; preds = %227, %115
  call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %11) #8
  br label %250

250:                                              ; preds = %249
  %251 = load ptr, ptr %8, align 8
  %252 = load i32, ptr %9, align 4
  %253 = insertvalue { ptr, i32 } poison, ptr %251, 0
  %254 = insertvalue { ptr, i32 } %253, i32 %252, 1
  resume { ptr, i32 } %254
}

declare void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4ceilIjEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #5

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8Subarray9compute_CEv(ptr noundef nonnull align 8 dereferenceable(424)) #0 align 2

; Function Attrs: nounwind
declare void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #7

attributes #0 = { 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 #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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #6 = { noreturn 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 280}
!12 = !{!"_ZTS8Subarray", !13, i64 0, !6, i64 280, !18, i64 288, !18, i64 292, !18, i64 296, !18, i64 300, !14, i64 304, !14, i64 328, !10, i64 352, !15, i64 360, !15, i64 368, !15, i64 376, !15, i64 384, !15, i64 392, !15, i64 400, !15, i64 408, !15, i64 416}
!13 = !{!"_ZTS9Component", !14, i64 0, !16, i64 24, !16, i64 144, !15, i64 264, !15, i64 272}
!14 = !{!"_ZTS4Area", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTS8powerDef", !17, i64 0, !17, i64 40, !17, i64 80}
!17 = !{!"_ZTS15powerComponents", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !18, i64 136}
!20 = !{!"_ZTS16DynamicParameter", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !18, i64 4, !18, i64 8, !18, i64 12, !15, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !18, i64 80, !18, i64 84, !18, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !10, i64 120, !15, i64 128, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !18, i64 152, !18, i64 156, !18, i64 160, !18, i64 164, !18, i64 168, !15, i64 176, !18, i64 184, !18, i64 188, !18, i64 192, !18, i64 196, !18, i64 200, !18, i64 204, !18, i64 208, !10, i64 212, !14, i64 216, !14, i64 240, !10, i64 264}
!21 = !{!12, !18, i64 288}
!22 = !{!20, !18, i64 140}
!23 = !{!12, !18, i64 292}
!24 = !{!20, !18, i64 148}
!25 = !{!12, !18, i64 296}
!26 = !{!20, !18, i64 156}
!27 = !{!12, !18, i64 300}
!28 = !{i64 0, i64 8, !29, i64 8, i64 8, !29, i64 16, i64 8, !29}
!29 = !{!15, !15, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!12, !10, i64 352}
!33 = !{!20, !10, i64 2}
!34 = !{!35, !10, i64 328}
!35 = !{!"_ZTS14InputParameter", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !10, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !15, i64 48, !15, i64 56, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !18, i64 80, !10, i64 84, !10, i64 85, !10, i64 86, !10, i64 87, !10, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !36, i64 152, !18, i64 156, !10, i64 160, !18, i64 164, !18, i64 168, !18, i64 172, !18, i64 176, !18, i64 180, !18, i64 184, !18, i64 188, !10, i64 192, !18, i64 196, !18, i64 200, !18, i64 204, !18, i64 208, !18, i64 212, !18, i64 216, !18, i64 220, !18, i64 224, !18, i64 228, !18, i64 232, !18, i64 236, !18, i64 240, !18, i64 244, !18, i64 248, !18, i64 252, !18, i64 256, !18, i64 260, !18, i64 264, !18, i64 268, !18, i64 272, !18, i64 276, !18, i64 280, !18, i64 284, !18, i64 288, !18, i64 292, !18, i64 296, !10, i64 300, !18, i64 304, !18, i64 308, !18, i64 312, !10, i64 316, !10, i64 317, !18, i64 320, !18, i64 324, !10, i64 328, !15, i64 336, !15, i64 344, !10, i64 352, !18, i64 356, !18, i64 360, !10, i64 364}
!36 = !{!"_ZTS9Wire_type", !7, i64 0}
!37 = !{!20, !18, i64 168}
!38 = !{!18, !18, i64 0}
!39 = !{!12, !15, i64 312}
!40 = !{!13, !15, i64 8}
!41 = !{!12, !15, i64 304}
!42 = !{!43, !15, i64 0}
!43 = !{!"_ZTS19TechnologyParameter", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !15, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !15, i64 264, !15, i64 272, !15, i64 280, !15, i64 288, !15, i64 296, !15, i64 304, !15, i64 312, !15, i64 320, !15, i64 328, !15, i64 336, !15, i64 344, !44, i64 352, !45, i64 360, !45, i64 528, !45, i64 696, !45, i64 864, !45, i64 1032, !46, i64 1200, !46, i64 1264, !46, i64 1328, !47, i64 1392, !48, i64 1416, !48, i64 1464, !48, i64 1512}
!44 = !{!"long", !7, i64 0}
!45 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160}
!46 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56}
!47 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !15, i64 0, !15, i64 8, !15, i64 16}
!48 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!49 = !{!13, !15, i64 0}
!50 = !{!12, !15, i64 336}
!51 = !{!12, !15, i64 328}
!52 = !{!43, !15, i64 1200}


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

@g_ip = external local_unnamed_addr global ptr, align 8
@g_tp = external local_unnamed_addr global %class.TechnologyParameter, align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__PRETTY_FUNCTION__._ZN8SubarrayC2ERK16DynamicParameterb = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8SubarrayC2ERK16DynamicParameterb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(265) %1, i1 noundef zeroext %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = zext i1 %2 to i8
  tail call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0)
  %5 = getelementptr inbounds i8, ptr %0, i64 280
  store ptr %1, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 288
  %7 = getelementptr inbounds i8, ptr %1, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !9
  store i32 %8, ptr %6, align 8, !tbaa !15
  %9 = getelementptr inbounds i8, ptr %0, i64 292
  %10 = getelementptr inbounds i8, ptr %1, i64 140
  %11 = load i32, ptr %10, align 4, !tbaa !20
  store i32 %11, ptr %9, align 4, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %0, i64 296
  %13 = getelementptr inbounds i8, ptr %1, i64 148
  %14 = load i32, ptr %13, align 4, !tbaa !22
  store i32 %14, ptr %12, align 8, !tbaa !23
  %15 = getelementptr inbounds i8, ptr %0, i64 300
  %16 = getelementptr inbounds i8, ptr %1, i64 156
  %17 = load i32, ptr %16, align 4, !tbaa !24
  store i32 %17, ptr %15, align 4, !tbaa !25
  %18 = getelementptr inbounds i8, ptr %0, i64 304
  %19 = getelementptr inbounds i8, ptr %1, i64 216
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, i64 24, i1 false), !tbaa.struct !26
  %20 = getelementptr inbounds i8, ptr %0, i64 328
  %21 = getelementptr inbounds i8, ptr %1, i64 240
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, i64 24, i1 false), !tbaa.struct !26
  %22 = getelementptr inbounds i8, ptr %0, i64 352
  store i8 %4, ptr %22, align 8, !tbaa !28
  br i1 %2, label %58, label %23

23:                                               ; preds = %3
  %24 = getelementptr inbounds i8, ptr %1, i64 2
  %25 = load i8, ptr %24, align 2, !tbaa !29, !range !30, !noundef !31
  %26 = trunc nuw i8 %25 to i1
  %27 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 328
  %29 = load i8, ptr %28, align 8, !tbaa !32, !range !30, !noundef !31
  %30 = trunc nuw i8 %29 to i1
  br i1 %26, label %77, label %31

31:                                               ; preds = %23
  br i1 %30, label %32, label %37

32:                                               ; preds = %31
  %33 = uitofp i32 %11 to double
  %34 = fmul double %33, 1.250000e-01
  %35 = tail call double @llvm.ceil.f64(double %34)
  %36 = fptosi double %35 to i32
  br label %37

37:                                               ; preds = %31, %32
  %38 = phi i32 [ %36, %32 ], [ 0, %31 ]
  %39 = add i32 %38, %11
  store i32 %39, ptr %9, align 4, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %1, i64 168
  %41 = load i32, ptr %40, align 8, !tbaa !35
  %42 = icmp eq i32 %41, 3
  %43 = icmp eq i32 %41, 4
  %44 = getelementptr inbounds i8, ptr %0, i64 312
  %45 = load double, ptr %44, align 8, !tbaa !36
  %46 = uitofp i32 %8 to double
  %47 = fmul double %45, %46
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  store double %47, ptr %48, align 8, !tbaa !37
  %49 = load double, ptr %18, align 8, !tbaa !38
  %50 = uitofp i32 %39 to double
  %51 = select i1 %43, i32 8, i32 4
  %52 = select i1 %42, i32 6, i32 %51
  %53 = lshr i32 %39, %52
  %54 = tail call noundef double @_ZSt4ceilIjEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %53)
  %55 = load double, ptr @g_tp, align 8, !tbaa !39
  %56 = fmul double %54, %55
  %57 = tail call double @llvm.fmuladd.f64(double %49, double %50, double %56)
  br label %111

58:                                               ; preds = %3
  %59 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 328
  %61 = load i8, ptr %60, align 8, !tbaa !32, !range !30, !noundef !31
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %73

63:                                               ; preds = %58
  %64 = sitofp i32 %14 to double
  %65 = fmul double %64, 1.250000e-01
  %66 = tail call double @llvm.ceil.f64(double %65)
  %67 = fptosi double %66 to i32
  %68 = add nsw i32 %14, %67
  %69 = sitofp i32 %17 to double
  %70 = fmul double %69, 1.250000e-01
  %71 = tail call double @llvm.ceil.f64(double %70)
  %72 = fptosi double %71 to i32
  br label %73

73:                                               ; preds = %58, %63
  %.sink = phi i32 [ %68, %63 ], [ %14, %58 ]
  %74 = phi i32 [ %72, %63 ], [ 0, %58 ]
  store i32 %.sink, ptr %12, align 8
  %75 = add nsw i32 %74, %17
  store i32 %75, ptr %15, align 4, !tbaa !25
  %76 = add nsw i32 %75, %.sink
  br label %86

77:                                               ; preds = %23
  br i1 %30, label %78, label %83

78:                                               ; preds = %77
  %79 = sitofp i32 %14 to double
  %80 = fmul double %79, 1.250000e-01
  %81 = tail call double @llvm.ceil.f64(double %80)
  %82 = fptosi double %81 to i32
  br label %83

83:                                               ; preds = %77, %78
  %84 = phi i32 [ %82, %78 ], [ 0, %77 ]
  %85 = add nsw i32 %84, %14
  store i32 %85, ptr %12, align 8, !tbaa !23
  store i32 0, ptr %15, align 4, !tbaa !25
  br label %86

86:                                               ; preds = %83, %73
  %87 = phi i32 [ 0, %83 ], [ %75, %73 ]
  %88 = phi i32 [ %85, %83 ], [ %.sink, %73 ]
  %storemerge5 = phi i32 [ %85, %83 ], [ %76, %73 ]
  store i32 %storemerge5, ptr %9, align 4, !tbaa !21
  %89 = getelementptr inbounds i8, ptr %0, i64 336
  %90 = load double, ptr %89, align 8, !tbaa !46
  %91 = add i32 %8, 1
  %92 = uitofp i32 %91 to double
  %93 = fmul double %90, %92
  %94 = getelementptr inbounds i8, ptr %0, i64 8
  store double %93, ptr %94, align 8, !tbaa !37
  %95 = load double, ptr %20, align 8, !tbaa !47
  %96 = sitofp i32 %88 to double
  %97 = load double, ptr %18, align 8, !tbaa !38
  %98 = sitofp i32 %87 to double
  %99 = fmul double %97, %98
  %100 = tail call double @llvm.fmuladd.f64(double %95, double %96, double %99)
  %101 = add nsw i32 %87, %88
  %102 = lshr i32 %101, 4
  %103 = tail call noundef double @_ZSt4ceilIjEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %102)
  %104 = load double, ptr @g_tp, align 8, !tbaa !39
  %105 = tail call double @llvm.fmuladd.f64(double %103, double %104, double %100)
  %106 = load double, ptr getelementptr inbounds (i8, ptr @g_tp, i64 1200), align 8, !tbaa !48
  %107 = tail call double @llvm.fmuladd.f64(double %106, double 1.600000e+01, double %105)
  %108 = tail call double @llvm.fmuladd.f64(double %106, double 1.280000e+02, double %107)
  br label %111

109:                                              ; preds = %119
  %110 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) #7
  resume { ptr, i32 } %110

111:                                              ; preds = %86, %37
  %storemerge = phi double [ %57, %37 ], [ %108, %86 ]
  store double %storemerge, ptr %0, align 8, !tbaa !49
  %112 = getelementptr inbounds i8, ptr %0, i64 8
  %113 = load double, ptr %112, align 8, !tbaa !37
  %114 = fcmp ogt double %113, 0.000000e+00
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 84, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8SubarrayC2ERK16DynamicParameterb) #8
  unreachable

116:                                              ; preds = %111
  %117 = fcmp ogt double %storemerge, 0.000000e+00
  br i1 %117, label %119, label %118

118:                                              ; preds = %116
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 85, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8SubarrayC2ERK16DynamicParameterb) #8
  unreachable

119:                                              ; preds = %116
  invoke void @_ZN8Subarray9compute_CEv(ptr noundef nonnull align 8 dereferenceable(424) %0)
          to label %120 unwind label %109

120:                                              ; preds = %119
  ret void
}

declare void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4ceilIjEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8Subarray9compute_CEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #6

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint 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 #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "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 #7 = { nounwind }
attributes #8 = { noreturn 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, !12, i64 136}
!10 = !{!"_ZTS16DynamicParameter", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !12, i64 4, !12, i64 8, !12, i64 12, !13, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !11, i64 120, !13, i64 128, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !13, i64 176, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !11, i64 212, !14, i64 216, !14, i64 240, !11, i64 264}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTS4Area", !13, i64 0, !13, i64 8, !13, i64 16}
!15 = !{!16, !12, i64 288}
!16 = !{!"_ZTS8Subarray", !17, i64 0, !6, i64 280, !12, i64 288, !12, i64 292, !12, i64 296, !12, i64 300, !14, i64 304, !14, i64 328, !11, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !13, i64 408, !13, i64 416}
!17 = !{!"_ZTS9Component", !14, i64 0, !18, i64 24, !18, i64 144, !13, i64 264, !13, i64 272}
!18 = !{!"_ZTS8powerDef", !19, i64 0, !19, i64 40, !19, i64 80}
!19 = !{!"_ZTS15powerComponents", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!20 = !{!10, !12, i64 140}
!21 = !{!16, !12, i64 292}
!22 = !{!10, !12, i64 148}
!23 = !{!16, !12, i64 296}
!24 = !{!10, !12, i64 156}
!25 = !{!16, !12, i64 300}
!26 = !{i64 0, i64 8, !27, i64 8, i64 8, !27, i64 16, i64 8, !27}
!27 = !{!13, !13, i64 0}
!28 = !{!16, !11, i64 352}
!29 = !{!10, !11, i64 2}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!33, !11, i64 328}
!33 = !{!"_ZTS14InputParameter", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !11, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !13, i64 48, !13, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !11, i64 84, !11, i64 85, !11, i64 86, !11, i64 87, !11, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !34, i64 152, !12, i64 156, !11, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !11, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !11, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !11, i64 316, !11, i64 317, !12, i64 320, !12, i64 324, !11, i64 328, !13, i64 336, !13, i64 344, !11, i64 352, !12, i64 356, !12, i64 360, !11, i64 364}
!34 = !{!"_ZTS9Wire_type", !7, i64 0}
!35 = !{!10, !12, i64 168}
!36 = !{!16, !13, i64 312}
!37 = !{!17, !13, i64 8}
!38 = !{!16, !13, i64 304}
!39 = !{!40, !13, i64 0}
!40 = !{!"_ZTS19TechnologyParameter", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !41, i64 352, !42, i64 360, !42, i64 528, !42, i64 696, !42, i64 864, !42, i64 1032, !43, i64 1200, !43, i64 1264, !43, i64 1328, !44, i64 1392, !45, i64 1416, !45, i64 1464, !45, i64 1512}
!41 = !{!"long", !7, i64 0}
!42 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160}
!43 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56}
!44 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !13, i64 0, !13, i64 8, !13, i64 16}
!45 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!46 = !{!16, !13, i64 336}
!47 = !{!16, !13, i64 328}
!48 = !{!40, !13, i64 1200}
!49 = !{!17, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass