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

; 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.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 }
%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.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 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: mustprogress uwtable
declare dso_local void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12PredecBlkDrvC2EiP9PredecBlkb(ptr noundef nonnull align 8 dereferenceable(1280) %0, i32 noundef %1, ptr noundef %2, i1 noundef zeroext %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %12 = zext i1 %3 to i8
  store i8 %12, ptr %8, align 1, !tbaa !11
  %13 = load ptr, ptr %5, align 8
  call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %13)
  %14 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 1
  store i32 0, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 3
  store i32 0, ptr %15, align 8, !tbaa !20
  %16 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 4
  store i32 0, ptr %16, align 4, !tbaa !21
  %17 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 5
  store i32 2, ptr %17, align 8, !tbaa !22
  %18 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 6
  store i32 0, ptr %18, align 4, !tbaa !23
  %19 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 7
  store i32 0, ptr %19, align 8, !tbaa !24
  %20 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 8
  store i32 0, ptr %20, align 4, !tbaa !25
  %21 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 9
  store i32 0, ptr %21, align 8, !tbaa !26
  %22 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 10
  store i32 0, ptr %22, align 4, !tbaa !27
  %23 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 11
  store i32 0, ptr %23, align 8, !tbaa !28
  %24 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 12
  store double 0.000000e+00, ptr %24, align 8, !tbaa !29
  %25 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 13
  store double 0.000000e+00, ptr %25, align 8, !tbaa !30
  %26 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 14
  store double 0.000000e+00, ptr %26, align 8, !tbaa !31
  %27 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 15
  store double 0.000000e+00, ptr %27, align 8, !tbaa !32
  %28 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 20
  store double 0.000000e+00, ptr %28, align 8, !tbaa !33
  %29 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 21
  store double 0.000000e+00, ptr %29, align 8, !tbaa !34
  %30 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 22
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %30)
          to label %31 unwind label %51

31:                                               ; preds = %4
  %32 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 23
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %32)
          to label %33 unwind label %51

33:                                               ; preds = %31
  %34 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 24
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %35, ptr %34, align 8, !tbaa !35
  %36 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %37 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 24
  %38 = load ptr, ptr %37, align 8, !tbaa !35
  %39 = getelementptr inbounds %class.PredecBlk, ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !36
  store ptr %40, ptr %36, align 8, !tbaa !38
  %41 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 26
  %42 = load i8, ptr %8, align 1, !tbaa !11, !range !39, !noundef !40
  %43 = trunc i8 %42 to i1
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %41, align 8, !tbaa !41
  %45 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 27
  %46 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %46, ptr %45, align 4, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %72, %33
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 20
  br i1 %49, label %55, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %75

51:                                               ; preds = %159, %158, %121, %94, %31, %4
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %9, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %10, align 4
  call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %13) #4
  br label %161

55:                                               ; preds = %47
  %56 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 16
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [20 x double], ptr %56, i64 0, i64 %58
  store double 0.000000e+00, ptr %59, align 8, !tbaa !43
  %60 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 17
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [20 x double], ptr %60, i64 0, i64 %62
  store double 0.000000e+00, ptr %63, align 8, !tbaa !43
  %64 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 18
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [20 x double], ptr %64, i64 0, i64 %66
  store double 0.000000e+00, ptr %67, align 8, !tbaa !43
  %68 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 19
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [20 x double], ptr %68, i64 0, i64 %70
  store double 0.000000e+00, ptr %71, align 8, !tbaa !43
  br label %72

72:                                               ; preds = %55
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %11, align 4, !tbaa !9
  br label %47, !llvm.loop !44

75:                                               ; preds = %50
  %76 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 24
  %77 = load ptr, ptr %76, align 8, !tbaa !35
  %78 = getelementptr inbounds %class.PredecBlk, ptr %77, i32 0, i32 4
  %79 = load i32, ptr %78, align 4, !tbaa !46
  %80 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 2
  store i32 %79, ptr %80, align 4, !tbaa !47
  %81 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 27
  %82 = load i32, ptr %81, align 4, !tbaa !42
  %83 = icmp sgt i32 %82, 1
  br i1 %83, label %84, label %144

84:                                               ; preds = %75
  %85 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 1
  store i32 1, ptr %85, align 8, !tbaa !13
  %86 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 27
  %87 = load i32, ptr %86, align 4, !tbaa !42
  %88 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 2
  store i32 %87, ptr %88, align 4, !tbaa !47
  %89 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %90 = load ptr, ptr %89, align 8, !tbaa !38
  %91 = getelementptr inbounds %class.Decoder, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !48
  %93 = icmp eq i32 %92, 2
  br i1 %93, label %94, label %115

94:                                               ; preds = %84
  %95 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %96 = load ptr, ptr %95, align 8, !tbaa !38
  %97 = getelementptr inbounds %class.Decoder, ptr %96, i32 0, i32 7
  %98 = getelementptr inbounds [20 x double], ptr %97, i64 0, i64 0
  %99 = load double, ptr %98, align 8, !tbaa !43
  %100 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %101 = load ptr, ptr %100, align 8, !tbaa !38
  %102 = getelementptr inbounds %class.Decoder, ptr %101, i32 0, i32 8
  %103 = getelementptr inbounds [20 x double], ptr %102, i64 0, i64 0
  %104 = load double, ptr %103, align 8, !tbaa !43
  %105 = fadd double %99, %104
  %106 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 26
  %107 = load i8, ptr %106, align 8, !tbaa !41, !range !39, !noundef !40
  %108 = trunc i8 %107 to i1
  %109 = invoke noundef double @_Z6gate_Cddbbb(double noundef %105, double noundef 0.000000e+00, i1 noundef zeroext %108, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %110 unwind label %51

110:                                              ; preds = %94
  %111 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 12
  store double %109, ptr %111, align 8, !tbaa !29
  %112 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 2
  %113 = load i32, ptr %112, align 4, !tbaa !47
  %114 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 7
  store i32 %113, ptr %114, align 8, !tbaa !24
  br label %143

115:                                              ; preds = %84
  %116 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %117 = load ptr, ptr %116, align 8, !tbaa !38
  %118 = getelementptr inbounds %class.Decoder, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 4, !tbaa !48
  %120 = icmp eq i32 %119, 3
  br i1 %120, label %121, label %142

121:                                              ; preds = %115
  %122 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %123 = load ptr, ptr %122, align 8, !tbaa !38
  %124 = getelementptr inbounds %class.Decoder, ptr %123, i32 0, i32 7
  %125 = getelementptr inbounds [20 x double], ptr %124, i64 0, i64 0
  %126 = load double, ptr %125, align 8, !tbaa !43
  %127 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 25
  %128 = load ptr, ptr %127, align 8, !tbaa !38
  %129 = getelementptr inbounds %class.Decoder, ptr %128, i32 0, i32 8
  %130 = getelementptr inbounds [20 x double], ptr %129, i64 0, i64 0
  %131 = load double, ptr %130, align 8, !tbaa !43
  %132 = fadd double %126, %131
  %133 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 26
  %134 = load i8, ptr %133, align 8, !tbaa !41, !range !39, !noundef !40
  %135 = trunc i8 %134 to i1
  %136 = invoke noundef double @_Z6gate_Cddbbb(double noundef %132, double noundef 0.000000e+00, i1 noundef zeroext %135, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %137 unwind label %51

137:                                              ; preds = %121
  %138 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 13
  store double %136, ptr %138, align 8, !tbaa !30
  %139 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 2
  %140 = load i32, ptr %139, align 4, !tbaa !47
  %141 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 9
  store i32 %140, ptr %141, align 8, !tbaa !26
  br label %142

142:                                              ; preds = %137, %115
  br label %143

143:                                              ; preds = %142, %110
  br label %158

144:                                              ; preds = %75
  %145 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 27
  %146 = load i32, ptr %145, align 4, !tbaa !42
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %157

148:                                              ; preds = %144
  %149 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 24
  %150 = load ptr, ptr %149, align 8, !tbaa !35
  %151 = getelementptr inbounds %class.PredecBlk, ptr %150, i32 0, i32 2
  %152 = load i8, ptr %151, align 8, !tbaa !50, !range !39, !noundef !40
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %156

154:                                              ; preds = %148
  %155 = getelementptr inbounds %class.PredecBlkDrv, ptr %13, i32 0, i32 1
  store i32 1, ptr %155, align 8, !tbaa !13
  br label %156

156:                                              ; preds = %154, %148
  br label %157

157:                                              ; preds = %156, %144
  br label %158

158:                                              ; preds = %157, %143
  invoke void @_ZN12PredecBlkDrv14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(1280) %13)
          to label %159 unwind label %51

159:                                              ; preds = %158
  invoke void @_ZN12PredecBlkDrv12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1280) %13)
          to label %160 unwind label %51

160:                                              ; preds = %159
  ret void

161:                                              ; preds = %51
  %162 = load ptr, ptr %9, align 8
  %163 = load i32, ptr %10, align 4
  %164 = insertvalue { ptr, i32 } poison, ptr %162, 0
  %165 = insertvalue { ptr, i32 } %164, i32 %163, 1
  resume { ptr, i32 } %165
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12PredecBlkDrv12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1280)) #3 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 = { 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 = { 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 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 280}
!14 = !{!"_ZTS12PredecBlkDrv", !15, i64 0, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !17, i64 328, !17, i64 336, !17, i64 344, !17, i64 352, !7, i64 360, !7, i64 520, !7, i64 680, !7, i64 840, !17, i64 1000, !17, i64 1008, !18, i64 1016, !18, i64 1136, !6, i64 1256, !6, i64 1264, !12, i64 1272, !10, i64 1276}
!15 = !{!"_ZTS9Component", !16, i64 0, !18, i64 24, !18, i64 144, !17, i64 264, !17, i64 272}
!16 = !{!"_ZTS4Area", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTS8powerDef", !19, i64 0, !19, i64 40, !19, i64 80}
!19 = !{!"_ZTS15powerComponents", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32}
!20 = !{!14, !10, i64 288}
!21 = !{!14, !10, i64 292}
!22 = !{!14, !10, i64 296}
!23 = !{!14, !10, i64 300}
!24 = !{!14, !10, i64 304}
!25 = !{!14, !10, i64 308}
!26 = !{!14, !10, i64 312}
!27 = !{!14, !10, i64 316}
!28 = !{!14, !10, i64 320}
!29 = !{!14, !17, i64 328}
!30 = !{!14, !17, i64 336}
!31 = !{!14, !17, i64 344}
!32 = !{!14, !17, i64 352}
!33 = !{!14, !17, i64 1000}
!34 = !{!14, !17, i64 1008}
!35 = !{!14, !6, i64 1256}
!36 = !{!37, !6, i64 280}
!37 = !{!"_ZTS9PredecBlk", !15, i64 0, !6, i64 280, !12, i64 288, !10, i64 292, !17, i64 296, !17, i64 304, !10, i64 312, !10, i64 316, !12, 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, !17, i64 1320, !17, i64 1328, !18, i64 1336, !18, i64 1456, !18, i64 1576, !12, i64 1696}
!38 = !{!14, !6, i64 1264}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!14, !12, i64 1272}
!42 = !{!14, !10, i64 1276}
!43 = !{!17, !17, i64 0}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!37, !10, i64 292}
!47 = !{!14, !10, i64 284}
!48 = !{!49, !10, i64 284}
!49 = !{!"_ZTS7Decoder", !15, i64 0, !12, i64 280, !10, i64 284, !17, i64 288, !17, i64 296, !10, i64 304, !10, i64 308, !7, i64 312, !7, i64 472, !17, i64 632, !12, i64 640, !12, i64 641, !12, i64 642, !6, i64 648}
!50 = !{!37, !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 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 uwtable
declare dso_local void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12PredecBlkDrvC2EiP9PredecBlkb(ptr noundef nonnull align 8 dereferenceable(1280) %0, i32 noundef %1, ptr noundef %2, i1 noundef zeroext %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = zext i1 %3 to i8
  tail call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0)
  %6 = getelementptr inbounds i8, ptr %0, i64 280
  store i32 0, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 0, ptr %7, align 8, !tbaa !17
  %8 = getelementptr inbounds i8, ptr %0, i64 292
  store i32 0, ptr %8, align 4, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %0, i64 296
  store i32 2, ptr %9, align 8, !tbaa !19
  %10 = getelementptr inbounds i8, ptr %0, i64 300
  %11 = getelementptr inbounds i8, ptr %0, i64 304
  %12 = getelementptr inbounds i8, ptr %0, i64 312
  %13 = getelementptr inbounds i8, ptr %0, i64 328
  %14 = getelementptr inbounds i8, ptr %0, i64 336
  %15 = getelementptr inbounds i8, ptr %0, i64 1000
  %16 = getelementptr inbounds i8, ptr %0, i64 1016
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %13, i8 0, i64 32, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %16)
          to label %17 unwind label %31

17:                                               ; preds = %4
  %18 = getelementptr inbounds i8, ptr %0, i64 1136
  invoke void @_ZN8powerDefC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %18)
          to label %19 unwind label %31

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 1256
  store ptr %2, ptr %20, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %0, i64 1264
  %22 = getelementptr inbounds i8, ptr %2, i64 280
  %23 = load ptr, ptr %22, align 8, !tbaa !21
  store ptr %23, ptr %21, align 8, !tbaa !23
  %24 = getelementptr inbounds i8, ptr %0, i64 1272
  store i8 %5, ptr %24, align 8, !tbaa !24
  %25 = getelementptr inbounds i8, ptr %0, i64 1276
  store i32 %1, ptr %25, align 4, !tbaa !25
  %26 = getelementptr inbounds i8, ptr %0, i64 360
  %27 = getelementptr inbounds i8, ptr %2, i64 292
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(640) %26, i8 0, i64 640, i1 false)
  %28 = load i32, ptr %27, align 4, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %0, i64 284
  store i32 %28, ptr %29, align 4, !tbaa !27
  %30 = icmp sgt i32 %1, 1
  br i1 %30, label %33, label %54

31:                                               ; preds = %62, %61, %45, %36, %17, %4
  %32 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) #4
  resume { ptr, i32 } %32

33:                                               ; preds = %19
  store i32 1, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %29, align 4, !tbaa !27
  %34 = getelementptr inbounds i8, ptr %23, i64 284
  %35 = load i32, ptr %34, align 4, !tbaa !28
  switch i32 %35, label %61 [
    i32 2, label %36
    i32 3, label %45
  ]

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %23, i64 312
  %38 = load double, ptr %37, align 8, !tbaa !30
  %39 = getelementptr inbounds i8, ptr %23, i64 472
  %40 = load double, ptr %39, align 8, !tbaa !30
  %41 = fadd double %38, %40
  %42 = invoke noundef double @_Z6gate_Cddbbb(double noundef %41, double noundef 0.000000e+00, i1 noundef zeroext %3, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %43 unwind label %31

43:                                               ; preds = %36
  store double %42, ptr %13, align 8, !tbaa !31
  %44 = load i32, ptr %29, align 4, !tbaa !27
  store i32 %44, ptr %11, align 8, !tbaa !32
  br label %61

45:                                               ; preds = %33
  %46 = getelementptr inbounds i8, ptr %23, i64 312
  %47 = load double, ptr %46, align 8, !tbaa !30
  %48 = getelementptr inbounds i8, ptr %23, i64 472
  %49 = load double, ptr %48, align 8, !tbaa !30
  %50 = fadd double %47, %49
  %51 = invoke noundef double @_Z6gate_Cddbbb(double noundef %50, double noundef 0.000000e+00, i1 noundef zeroext %3, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %52 unwind label %31

52:                                               ; preds = %45
  store double %51, ptr %14, align 8, !tbaa !33
  %53 = load i32, ptr %29, align 4, !tbaa !27
  store i32 %53, ptr %12, align 8, !tbaa !34
  br label %61

54:                                               ; preds = %19
  %55 = icmp eq i32 %1, 0
  br i1 %55, label %56, label %61

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %2, i64 288
  %58 = load i8, ptr %57, align 8, !tbaa !35, !range !36, !noundef !37
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %61

60:                                               ; preds = %56
  store i32 1, ptr %6, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %33, %54, %60, %56, %43, %52
  invoke void @_ZN12PredecBlkDrv14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(1280) %0)
          to label %62 unwind label %31

62:                                               ; preds = %61
  invoke void @_ZN12PredecBlkDrv12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(1280) %0)
          to label %63 unwind label %31

63:                                               ; preds = %62
  ret void
}

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

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

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

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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !14, i64 280}
!6 = !{!"_ZTS12PredecBlkDrv", !7, i64 0, !14, i64 280, !14, i64 284, !14, i64 288, !14, i64 292, !14, i64 296, !14, i64 300, !14, i64 304, !14, i64 308, !14, i64 312, !14, i64 316, !14, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !9, i64 352, !10, i64 360, !10, i64 520, !10, i64 680, !10, i64 840, !9, i64 1000, !9, i64 1008, !12, i64 1016, !12, i64 1136, !15, i64 1256, !15, i64 1264, !16, i64 1272, !14, i64 1276}
!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 = !{!"int", !10, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!6, !14, i64 288}
!18 = !{!6, !14, i64 292}
!19 = !{!6, !14, i64 296}
!20 = !{!6, !15, i64 1256}
!21 = !{!22, !15, i64 280}
!22 = !{!"_ZTS9PredecBlk", !7, i64 0, !15, i64 280, !16, i64 288, !14, i64 292, !9, i64 296, !9, i64 304, !14, i64 312, !14, i64 316, !16, i64 320, !14, i64 324, !14, i64 328, !14, i64 332, !14, i64 336, !14, i64 340, !14, i64 344, !14, i64 348, !14, i64 352, !14, 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, !16, i64 1696}
!23 = !{!6, !15, i64 1264}
!24 = !{!6, !16, i64 1272}
!25 = !{!6, !14, i64 1276}
!26 = !{!22, !14, i64 292}
!27 = !{!6, !14, i64 284}
!28 = !{!29, !14, i64 284}
!29 = !{!"_ZTS7Decoder", !7, i64 0, !16, i64 280, !14, i64 284, !9, i64 288, !9, i64 296, !14, i64 304, !14, i64 308, !10, i64 312, !10, i64 472, !9, i64 632, !16, i64 640, !16, i64 641, !16, i64 642, !15, i64 648}
!30 = !{!9, !9, i64 0}
!31 = !{!6, !9, i64 328}
!32 = !{!6, !14, i64 304}
!33 = !{!6, !9, i64 336}
!34 = !{!6, !14, i64 312}
!35 = !{!22, !16, i64 288}
!36 = !{i8 0, i8 2}
!37 = !{}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass