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

; 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.PredecBlk = type <{ %class.Component, ptr, i8, [3 x i8], i32, double, double, i32, i32, i8, [3 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, [20 x double], [20 x double], [20 x double], [20 x double], [20 x double], [20 x double], double, double, %class.powerDef, %class.powerDef, %class.powerDef, i8, [7 x i8] }>
%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 }
%class.Decoder = type { %class.Component, i8, i32, double, double, i32, i32, [20 x double], [20 x double], double, i8, i8, i8, ptr }

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

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

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

declare noundef i32 @_Z5_log2m(i64 noundef) #0

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9PredecBlkC2EiP7Decoderddibb(ptr noundef nonnull align 8 dereferenceable(1697) %0, i32 noundef %1, ptr noundef %2, double noundef %3, double noundef %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store double %3, ptr %12, align 8, !tbaa !11
  store double %4, ptr %13, align 8, !tbaa !11
  store i32 %5, ptr %14, align 4, !tbaa !9
  %25 = zext i1 %6 to i8
  store i8 %25, ptr %15, align 1, !tbaa !13
  %26 = zext i1 %7 to i8
  store i8 %26, ptr %16, align 1, !tbaa !13
  %27 = load ptr, ptr %9, align 8
  call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %27)
  %28 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %29, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 2
  store i8 0, ptr %30, align 8, !tbaa !21
  %31 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 4
  store i32 0, ptr %31, align 4, !tbaa !22
  %32 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 5
  store double 0.000000e+00, ptr %32, align 8, !tbaa !23
  %33 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 6
  store double 0.000000e+00, ptr %33, align 8, !tbaa !24
  %34 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 7
  store i32 1, ptr %34, align 8, !tbaa !25
  %35 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 8
  store i32 1, ptr %35, align 4, !tbaa !26
  %36 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 9
  store i8 0, ptr %36, align 8, !tbaa !27
  %37 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 11
  store i32 0, ptr %37, align 4, !tbaa !28
  %38 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 12
  store i32 0, ptr %38, align 8, !tbaa !29
  %39 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 13
  store i32 0, ptr %39, align 4, !tbaa !30
  %40 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 14
  store i32 0, ptr %40, align 8, !tbaa !31
  %41 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 15
  store i32 0, ptr %41, align 4, !tbaa !32
  %42 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 16
  store i32 2, ptr %42, align 8, !tbaa !33
  %43 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 17
  store i32 2, ptr %43, align 4, !tbaa !34
  %44 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 18
  store i32 0, ptr %44, align 8, !tbaa !35
  %45 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 19
  store i32 0, ptr %45, align 4, !tbaa !36
  %46 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 26
  store double 0.000000e+00, ptr %46, align 8, !tbaa !37
  %47 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 27
  store double 0.000000e+00, ptr %47, align 8, !tbaa !38
  %48 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 28
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %48)
          to label %49 unwind label %84

49:                                               ; preds = %8
  %50 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 29
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %50)
          to label %51 unwind label %84

51:                                               ; preds = %49
  %52 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 30
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %52)
          to label %53 unwind label %84

53:                                               ; preds = %51
  %54 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 31
  %55 = load i8, ptr %15, align 1, !tbaa !13, !range !39, !noundef !40
  %56 = trunc i8 %55 to i1
  %57 = zext i1 %56 to i8
  store i8 %57, ptr %54, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = invoke noundef i32 @_Z5_log2m(i64 noundef %59)
          to label %61 unwind label %88

61:                                               ; preds = %53
  store i32 %60, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %62 = load i32, ptr %21, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  %64 = sdiv i32 %63, 2
  store i32 %64, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %65 = load i32, ptr %21, align 4, !tbaa !9
  %66 = load i32, ptr %22, align 4, !tbaa !9
  %67 = sub nsw i32 %65, %66
  store i32 %67, ptr %23, align 4, !tbaa !9
  %68 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 20
  %69 = getelementptr inbounds [20 x double], ptr %68, i64 0, i64 0
  store double 0.000000e+00, ptr %69, align 8, !tbaa !11
  %70 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 21
  %71 = getelementptr inbounds [20 x double], ptr %70, i64 0, i64 0
  store double 0.000000e+00, ptr %71, align 8, !tbaa !11
  %72 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 22
  %73 = getelementptr inbounds [20 x double], ptr %72, i64 0, i64 0
  store double 0.000000e+00, ptr %73, align 8, !tbaa !11
  %74 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 23
  %75 = getelementptr inbounds [20 x double], ptr %74, i64 0, i64 0
  store double 0.000000e+00, ptr %75, align 8, !tbaa !11
  %76 = load i8, ptr %16, align 1, !tbaa !13, !range !39, !noundef !40
  %77 = trunc i8 %76 to i1
  %78 = zext i1 %77 to i32
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %80, label %148

80:                                               ; preds = %61
  %81 = load i32, ptr %21, align 4, !tbaa !9
  %82 = icmp sle i32 %81, 0
  br i1 %82, label %83, label %92

83:                                               ; preds = %80
  store i32 1, ptr %24, align 4
  br label %188

84:                                               ; preds = %51, %49, %8
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %17, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %18, align 4
  br label %192

88:                                               ; preds = %53
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %17, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %18, align 4
  br label %191

92:                                               ; preds = %80
  %93 = load i32, ptr %21, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 4
  br i1 %94, label %95, label %109

95:                                               ; preds = %92
  %96 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 2
  store i8 1, ptr %96, align 8, !tbaa !21
  %97 = load i32, ptr %21, align 4, !tbaa !9
  %98 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 4
  store i32 %97, ptr %98, align 4, !tbaa !22
  %99 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds %class.Decoder, ptr %100, i32 0, i32 4
  %102 = load double, ptr %101, align 8, !tbaa !42
  %103 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 6
  store double %102, ptr %103, align 8, !tbaa !24
  %104 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = getelementptr inbounds %class.Decoder, ptr %105, i32 0, i32 3
  %107 = load double, ptr %106, align 8, !tbaa !44
  %108 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 5
  store double %107, ptr %108, align 8, !tbaa !23
  br label %146

109:                                              ; preds = %92
  %110 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 2
  store i8 1, ptr %110, align 8, !tbaa !21
  %111 = load i32, ptr %22, align 4, !tbaa !9
  %112 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 4
  store i32 %111, ptr %112, align 4, !tbaa !22
  %113 = load i32, ptr %23, align 4, !tbaa !9
  %114 = shl i32 1, %113
  store i32 %114, ptr %19, align 4, !tbaa !9
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = sitofp i32 %115 to double
  %117 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = getelementptr inbounds %class.Decoder, ptr %118, i32 0, i32 7
  %120 = getelementptr inbounds [20 x double], ptr %119, i64 0, i64 0
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = getelementptr inbounds %class.Decoder, ptr %123, i32 0, i32 8
  %125 = getelementptr inbounds [20 x double], ptr %124, i64 0, i64 0
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = fadd double %121, %126
  %128 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 31
  %129 = load i8, ptr %128, align 8, !tbaa !41, !range !39, !noundef !40
  %130 = trunc i8 %129 to i1
  %131 = invoke noundef double @_Z6gate_Cddbbb(double noundef %127, double noundef 0.000000e+00, i1 noundef zeroext %130, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %132 unwind label %142

132:                                              ; preds = %109
  %133 = fmul double %116, %131
  store double %133, ptr %20, align 8, !tbaa !11
  %134 = load double, ptr %13, align 8, !tbaa !11
  %135 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 6
  store double %134, ptr %135, align 8, !tbaa !24
  %136 = load i32, ptr %19, align 4, !tbaa !9
  %137 = sitofp i32 %136 to double
  %138 = load double, ptr %20, align 8, !tbaa !11
  %139 = load double, ptr %12, align 8, !tbaa !11
  %140 = call double @llvm.fmuladd.f64(double %137, double %138, double %139)
  %141 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 5
  store double %140, ptr %141, align 8, !tbaa !23
  br label %146

142:                                              ; preds = %186, %185, %151, %109
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %17, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %191

146:                                              ; preds = %132, %95
  br label %147

147:                                              ; preds = %146
  br label %185

148:                                              ; preds = %61
  %149 = load i32, ptr %21, align 4, !tbaa !9
  %150 = icmp sge i32 %149, 4
  br i1 %150, label %151, label %184

151:                                              ; preds = %148
  %152 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 2
  store i8 1, ptr %152, align 8, !tbaa !21
  %153 = load i32, ptr %23, align 4, !tbaa !9
  %154 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 4
  store i32 %153, ptr %154, align 4, !tbaa !22
  %155 = load i32, ptr %22, align 4, !tbaa !9
  %156 = shl i32 1, %155
  store i32 %156, ptr %19, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = sitofp i32 %157 to double
  %159 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !15
  %161 = getelementptr inbounds %class.Decoder, ptr %160, i32 0, i32 7
  %162 = getelementptr inbounds [20 x double], ptr %161, i64 0, i64 0
  %163 = load double, ptr %162, align 8, !tbaa !11
  %164 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !15
  %166 = getelementptr inbounds %class.Decoder, ptr %165, i32 0, i32 8
  %167 = getelementptr inbounds [20 x double], ptr %166, i64 0, i64 0
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = fadd double %163, %168
  %170 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 31
  %171 = load i8, ptr %170, align 8, !tbaa !41, !range !39, !noundef !40
  %172 = trunc i8 %171 to i1
  %173 = invoke noundef double @_Z6gate_Cddbbb(double noundef %169, double noundef 0.000000e+00, i1 noundef zeroext %172, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %174 unwind label %142

174:                                              ; preds = %151
  %175 = fmul double %158, %173
  store double %175, ptr %20, align 8, !tbaa !11
  %176 = load double, ptr %13, align 8, !tbaa !11
  %177 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 6
  store double %176, ptr %177, align 8, !tbaa !24
  %178 = load i32, ptr %19, align 4, !tbaa !9
  %179 = sitofp i32 %178 to double
  %180 = load double, ptr %20, align 8, !tbaa !11
  %181 = load double, ptr %12, align 8, !tbaa !11
  %182 = call double @llvm.fmuladd.f64(double %179, double %180, double %181)
  %183 = getelementptr inbounds %class.PredecBlk, ptr %27, i32 0, i32 5
  store double %182, ptr %183, align 8, !tbaa !23
  br label %184

184:                                              ; preds = %174, %148
  br label %185

185:                                              ; preds = %184, %147
  invoke void @_ZN9PredecBlk14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(1697) %27)
          to label %186 unwind label %142

186:                                              ; preds = %185
  invoke void @_ZN9PredecBlk12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1697) %27)
          to label %187 unwind label %142

187:                                              ; preds = %186
  store i32 0, ptr %24, align 4
  br label %188

188:                                              ; preds = %187, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %189 = load i32, ptr %24, align 4
  switch i32 %189, label %198 [
    i32 0, label %190
    i32 1, label %190
  ]

190:                                              ; preds = %188, %188
  ret void

191:                                              ; preds = %142, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %192

192:                                              ; preds = %191, %84
  call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %27) #5
  br label %193

193:                                              ; preds = %192
  %194 = load ptr, ptr %17, align 8
  %195 = load i32, ptr %18, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197

198:                                              ; preds = %188
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9PredecBlk14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(1697)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9PredecBlk12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1697)) #4 align 2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !6, i64 280}
!16 = !{!"_ZTS9PredecBlk", !17, i64 0, !6, i64 280, !14, i64 288, !10, i64 292, !12, i64 296, !12, i64 304, !10, i64 312, !10, i64 316, !14, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !7, i64 360, !7, i64 520, !7, i64 680, !7, i64 840, !7, i64 1000, !7, i64 1160, !12, i64 1320, !12, i64 1328, !19, i64 1336, !19, i64 1456, !19, i64 1576, !14, i64 1696}
!17 = !{!"_ZTS9Component", !18, i64 0, !19, i64 24, !19, i64 144, !12, i64 264, !12, i64 272}
!18 = !{!"_ZTS4Area", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"_ZTS8powerDef", !20, i64 0, !20, i64 40, !20, i64 80}
!20 = !{!"_ZTS15powerComponents", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!21 = !{!16, !14, i64 288}
!22 = !{!16, !10, i64 292}
!23 = !{!16, !12, i64 296}
!24 = !{!16, !12, i64 304}
!25 = !{!16, !10, i64 312}
!26 = !{!16, !10, i64 316}
!27 = !{!16, !14, i64 320}
!28 = !{!16, !10, i64 324}
!29 = !{!16, !10, i64 328}
!30 = !{!16, !10, i64 332}
!31 = !{!16, !10, i64 336}
!32 = !{!16, !10, i64 340}
!33 = !{!16, !10, i64 344}
!34 = !{!16, !10, i64 348}
!35 = !{!16, !10, i64 352}
!36 = !{!16, !10, i64 356}
!37 = !{!16, !12, i64 1320}
!38 = !{!16, !12, i64 1328}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!16, !14, i64 1696}
!42 = !{!43, !12, i64 296}
!43 = !{!"_ZTS7Decoder", !17, i64 0, !14, i64 280, !10, i64 284, !12, i64 288, !12, i64 296, !10, i64 304, !10, i64 308, !7, i64 312, !7, i64 472, !12, i64 632, !14, i64 640, !14, i64 641, !14, i64 642, !6, i64 648}
!44 = !{!43, !12, i64 288}


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

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

declare noundef i32 @_Z5_log2m(i64 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

declare noundef double @_Z6gate_Cddbbb(double 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) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9PredecBlkC2EiP7Decoderddibb(ptr noundef nonnull align 8 dereferenceable(1697) %0, i32 noundef %1, ptr noundef %2, double noundef %3, double noundef %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %9 = zext i1 %6 to i8
  tail call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0)
  %10 = getelementptr inbounds i8, ptr %0, i64 280
  store ptr %2, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 288
  store i8 0, ptr %11, align 8, !tbaa !17
  %12 = getelementptr inbounds i8, ptr %0, i64 292
  %13 = getelementptr inbounds i8, ptr %0, i64 296
  %14 = getelementptr inbounds i8, ptr %0, i64 304
  %15 = getelementptr inbounds i8, ptr %0, i64 312
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %12, i8 0, i64 20, i1 false)
  store i32 1, ptr %15, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %0, i64 316
  store i32 1, ptr %16, align 4, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 320
  store i8 0, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 324
  %19 = getelementptr inbounds i8, ptr %0, i64 344
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %18, i8 0, i64 20, i1 false)
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %19, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 1320
  %21 = getelementptr inbounds i8, ptr %0, i64 1336
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, i8 0, i64 16, i1 false)
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %21)
          to label %22 unwind label %40

22:                                               ; preds = %8
  %23 = getelementptr inbounds i8, ptr %0, i64 1456
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %23)
          to label %24 unwind label %40

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %0, i64 1576
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %25)
          to label %26 unwind label %40

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %0, i64 1696
  store i8 %9, ptr %27, align 8, !tbaa !22
  %28 = sext i32 %1 to i64
  %29 = invoke noundef i32 @_Z5_log2m(i64 noundef %28)
          to label %30 unwind label %42

30:                                               ; preds = %26
  %31 = add nsw i32 %29, 1
  %32 = sdiv i32 %31, 2
  %33 = sub nsw i32 %29, %32
  %34 = getelementptr inbounds i8, ptr %0, i64 360
  store double 0.000000e+00, ptr %34, align 8, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %0, i64 520
  store double 0.000000e+00, ptr %35, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %0, i64 680
  store double 0.000000e+00, ptr %36, align 8, !tbaa !23
  %37 = getelementptr inbounds i8, ptr %0, i64 840
  store double 0.000000e+00, ptr %37, align 8, !tbaa !23
  br i1 %7, label %38, label %70

38:                                               ; preds = %30
  %39 = icmp slt i32 %29, 1
  br i1 %39, label %90, label %44

40:                                               ; preds = %24, %22, %8
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %91

42:                                               ; preds = %26
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %91

44:                                               ; preds = %38
  %45 = icmp ult i32 %29, 4
  store i8 1, ptr %11, align 8, !tbaa !17
  br i1 %45, label %46, label %52

46:                                               ; preds = %44
  store i32 %29, ptr %12, align 4, !tbaa !24
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 296
  %49 = load double, ptr %48, align 8, !tbaa !25
  store double %49, ptr %14, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %47, i64 288
  %51 = load double, ptr %50, align 8, !tbaa !28
  br label %.sink.split

52:                                               ; preds = %44
  store i32 %32, ptr %12, align 4, !tbaa !24
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 312
  %55 = load double, ptr %54, align 8, !tbaa !23
  %56 = getelementptr inbounds i8, ptr %53, i64 472
  %57 = load double, ptr %56, align 8, !tbaa !23
  %58 = fadd double %55, %57
  %59 = load i8, ptr %27, align 8, !tbaa !22, !range !29, !noundef !30
  %60 = trunc nuw i8 %59 to i1
  %61 = invoke noundef double @_Z6gate_Cddbbb(double noundef %58, double noundef 0.000000e+00, i1 noundef zeroext %60, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %62 unwind label %68

62:                                               ; preds = %52
  %63 = sitofp i32 %5 to double
  %64 = shl nuw i32 1, %33
  %65 = fmul double %61, %63
  store double %4, ptr %14, align 8, !tbaa !27
  %66 = sitofp i32 %64 to double
  %67 = tail call double @llvm.fmuladd.f64(double %66, double %65, double %3)
  br label %.sink.split

68:                                               ; preds = %89, %88, %72, %52
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %91

70:                                               ; preds = %30
  %71 = icmp sgt i32 %29, 3
  br i1 %71, label %72, label %88

72:                                               ; preds = %70
  store i8 1, ptr %11, align 8, !tbaa !17
  store i32 %33, ptr %12, align 4, !tbaa !24
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 312
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = getelementptr inbounds i8, ptr %73, i64 472
  %77 = load double, ptr %76, align 8, !tbaa !23
  %78 = fadd double %75, %77
  %79 = load i8, ptr %27, align 8, !tbaa !22, !range !29, !noundef !30
  %80 = trunc nuw i8 %79 to i1
  %81 = invoke noundef double @_Z6gate_Cddbbb(double noundef %78, double noundef 0.000000e+00, i1 noundef zeroext %80, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %82 unwind label %68

82:                                               ; preds = %72
  %83 = sitofp i32 %5 to double
  %84 = shl nuw i32 1, %32
  %85 = fmul double %81, %83
  store double %4, ptr %14, align 8, !tbaa !27
  %86 = sitofp i32 %84 to double
  %87 = tail call double @llvm.fmuladd.f64(double %86, double %85, double %3)
  br label %.sink.split

.sink.split:                                      ; preds = %46, %62, %82
  %.sink = phi double [ %87, %82 ], [ %67, %62 ], [ %51, %46 ]
  store double %.sink, ptr %13, align 8, !tbaa !31
  br label %88

88:                                               ; preds = %.sink.split, %70
  invoke void @_ZN9PredecBlk14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(1697) %0)
          to label %89 unwind label %68

89:                                               ; preds = %88
  invoke void @_ZN9PredecBlk12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1697) %0)
          to label %90 unwind label %68

90:                                               ; preds = %89, %38
  ret void

91:                                               ; preds = %42, %68, %40
  %.pn.pn = phi { ptr, i32 } [ %41, %40 ], [ %69, %68 ], [ %43, %42 ]
  tail call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) #5
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9PredecBlk14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(1697)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9PredecBlk12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1697)) local_unnamed_addr #3 align 2

; 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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) }
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, !14, i64 280}
!6 = !{!"_ZTS9PredecBlk", !7, i64 0, !14, i64 280, !15, i64 288, !16, i64 292, !9, i64 296, !9, i64 304, !16, i64 312, !16, i64 316, !15, i64 320, !16, i64 324, !16, i64 328, !16, i64 332, !16, i64 336, !16, i64 340, !16, i64 344, !16, i64 348, !16, i64 352, !16, i64 356, !10, i64 360, !10, i64 520, !10, i64 680, !10, i64 840, !10, i64 1000, !10, i64 1160, !9, i64 1320, !9, i64 1328, !12, i64 1336, !12, i64 1456, !12, i64 1576, !15, i64 1696}
!7 = !{!"_ZTS9Component", !8, i64 0, !12, i64 24, !12, i64 144, !9, i64 264, !9, i64 272}
!8 = !{!"_ZTS4Area", !9, i64 0, !9, i64 8, !9, i64 16}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS8powerDef", !13, i64 0, !13, i64 40, !13, i64 80}
!13 = !{!"_ZTS15powerComponents", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!6, !15, i64 288}
!18 = !{!6, !16, i64 312}
!19 = !{!6, !16, i64 316}
!20 = !{!6, !15, i64 320}
!21 = !{!16, !16, i64 0}
!22 = !{!6, !15, i64 1696}
!23 = !{!9, !9, i64 0}
!24 = !{!6, !16, i64 292}
!25 = !{!26, !9, i64 296}
!26 = !{!"_ZTS7Decoder", !7, i64 0, !15, i64 280, !16, i64 284, !9, i64 288, !9, i64 296, !16, i64 304, !16, i64 308, !10, i64 312, !10, i64 472, !9, i64 632, !15, i64 640, !15, i64 641, !15, i64 642, !14, i64 648}
!27 = !{!6, !9, i64 304}
!28 = !{!26, !9, i64 288}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!6, !9, i64 296}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass