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

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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DecoderC2EibddbbbRK4Area = external hidden unnamed_addr constant [76 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@g_tp = external global %class.TechnologyParameter, align 8

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

50:                                               ; preds = %63, %9
  %51 = load i32, ptr %19, align 4, !tbaa !9
  %52 = icmp slt i32 %51, 20
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %66

54:                                               ; preds = %50
  %55 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 7
  %56 = load i32, ptr %19, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [20 x double], ptr %55, i64 0, i64 %57
  store double 0.000000e+00, ptr %58, align 8, !tbaa !13
  %59 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 8
  %60 = load i32, ptr %19, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [20 x double], ptr %59, i64 0, i64 %61
  store double 0.000000e+00, ptr %62, align 8, !tbaa !13
  br label %63

63:                                               ; preds = %54
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %19, align 4, !tbaa !9
  br label %50, !llvm.loop !31

66:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = invoke noundef i32 @_Z5_log2m(i64 noundef %68)
          to label %70 unwind label %79

70:                                               ; preds = %66
  store i32 %69, ptr %20, align 4, !tbaa !9
  %71 = load i32, ptr %20, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 4
  br i1 %72, label %73, label %86

73:                                               ; preds = %70
  %74 = load i8, ptr %12, align 1, !tbaa !11, !range !26, !noundef !27
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %83

76:                                               ; preds = %73
  %77 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 1
  store i8 1, ptr %77, align 8, !tbaa !15
  %78 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 2
  store i32 2, ptr %78, align 4, !tbaa !33
  br label %85

79:                                               ; preds = %123, %113, %66
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %21, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %27) #5
  br label %125

83:                                               ; preds = %73
  %84 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 2
  store i32 0, ptr %84, align 4, !tbaa !33
  br label %85

85:                                               ; preds = %83, %76
  br label %95

86:                                               ; preds = %70
  %87 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 1
  store i8 1, ptr %87, align 8, !tbaa !15
  %88 = load i8, ptr %12, align 1, !tbaa !11, !range !26, !noundef !27
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 2
  store i32 3, ptr %91, align 4, !tbaa !33
  br label %94

92:                                               ; preds = %86
  %93 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 2
  store i32 2, ptr %93, align 4, !tbaa !33
  br label %94

94:                                               ; preds = %92, %90
  br label %95

95:                                               ; preds = %94, %85
  %96 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 13
  %97 = load ptr, ptr %96, align 8, !tbaa !34
  %98 = getelementptr inbounds %class.Area, ptr %97, i32 0, i32 1
  %99 = load double, ptr %98, align 8, !tbaa !35
  %100 = fcmp ogt double %99, 0.000000e+00
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  br label %104

102:                                              ; preds = %95
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 93, ptr noundef @__PRETTY_FUNCTION__._ZN7DecoderC2EibddbbbRK4Area) #6
  unreachable

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103, %101
  %105 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 13
  %106 = load ptr, ptr %105, align 8, !tbaa !34
  %107 = getelementptr inbounds %class.Area, ptr %106, i32 0, i32 0
  %108 = load double, ptr %107, align 8, !tbaa !36
  %109 = fcmp ogt double %108, 0.000000e+00
  br i1 %109, label %110, label %111

110:                                              ; preds = %104
  br label %113

111:                                              ; preds = %104
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 94, ptr noundef @__PRETTY_FUNCTION__._ZN7DecoderC2EibddbbbRK4Area) #6
  unreachable

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112, %110
  %114 = load i64, ptr getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 44), align 8, !tbaa !37
  %115 = uitofp i64 %114 to double
  %116 = getelementptr inbounds %class.Decoder, ptr %27, i32 0, i32 13
  %117 = load ptr, ptr %116, align 8, !tbaa !34
  %118 = getelementptr inbounds %class.Area, ptr %117, i32 0, i32 1
  %119 = load double, ptr %118, align 8, !tbaa !35
  %120 = fmul double %115, %119
  %121 = getelementptr inbounds %class.Component, ptr %27, i32 0, i32 0
  %122 = getelementptr inbounds %class.Area, ptr %121, i32 0, i32 1
  store double %120, ptr %122, align 8, !tbaa !44
  invoke void @_ZN7Decoder14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(656) %27)
          to label %123 unwind label %79

123:                                              ; preds = %113
  invoke void @_ZN7Decoder12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(656) %27)
          to label %124 unwind label %79

124:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  ret void

125:                                              ; preds = %79
  %126 = load ptr, ptr %21, align 8
  %127 = load i32, ptr %22, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

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

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

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

declare noundef i32 @_Z5_log2m(i64 noundef) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !12, i64 280}
!16 = !{!"_ZTS7Decoder", !17, i64 0, !12, i64 280, !10, i64 284, !14, i64 288, !14, i64 296, !10, i64 304, !10, i64 308, !7, i64 312, !7, i64 472, !14, i64 632, !12, i64 640, !12, i64 641, !12, i64 642, !6, i64 648}
!17 = !{!"_ZTS9Component", !18, i64 0, !19, i64 24, !19, i64 144, !14, i64 264, !14, i64 272}
!18 = !{!"_ZTS4Area", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!"_ZTS8powerDef", !20, i64 0, !20, i64 40, !20, i64 80}
!20 = !{!"_ZTS15powerComponents", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!21 = !{!16, !14, i64 288}
!22 = !{!16, !14, i64 296}
!23 = !{!16, !10, i64 304}
!24 = !{!16, !10, i64 308}
!25 = !{!16, !14, i64 632}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!16, !12, i64 640}
!29 = !{!16, !12, i64 641}
!30 = !{!16, !12, i64 642}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!16, !10, i64 284}
!34 = !{!16, !6, i64 648}
!35 = !{!18, !14, i64 8}
!36 = !{!18, !14, i64 0}
!37 = !{!38, !39, i64 352}
!38 = !{!"_ZTS19TechnologyParameter", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320, !14, i64 328, !14, i64 336, !14, i64 344, !39, i64 352, !40, i64 360, !40, i64 528, !40, i64 696, !40, i64 864, !40, i64 1032, !41, i64 1200, !41, i64 1264, !41, i64 1328, !42, i64 1392, !43, i64 1416, !43, i64 1464, !43, i64 1512}
!39 = !{!"long", !7, i64 0}
!40 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160}
!41 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56}
!42 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !14, i64 0, !14, i64 8, !14, i64 16}
!43 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40}
!44 = !{!17, !14, i64 8}


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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DecoderC2EibddbbbRK4Area = external hidden unnamed_addr constant [76 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@g_tp = external local_unnamed_addr global %class.TechnologyParameter, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DecoderC2EibddbbbRK4Area(ptr noundef nonnull align 8 dereferenceable(656) %0, i32 noundef %1, i1 noundef zeroext %2, double noundef %3, double noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i1 noundef zeroext %7, ptr noundef nonnull align 8 dereferenceable(24) %8) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %10 = zext i1 %5 to i8
  %11 = zext i1 %6 to i8
  %12 = zext i1 %7 to i8
  tail call void @_ZN9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0)
  %13 = getelementptr inbounds i8, ptr %0, i64 280
  store i8 0, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 288
  store double %3, ptr %14, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %0, i64 296
  store double %4, ptr %15, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %0, i64 304
  store i32 0, ptr %16, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 308
  store i32 2, ptr %17, align 4, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 632
  store double 0.000000e+00, ptr %18, align 8, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %0, i64 640
  store i8 %10, ptr %19, align 8, !tbaa !22
  %20 = getelementptr inbounds i8, ptr %0, i64 641
  store i8 %11, ptr %20, align 1, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %0, i64 642
  store i8 %12, ptr %21, align 2, !tbaa !24
  %22 = getelementptr inbounds i8, ptr %0, i64 648
  store ptr %8, ptr %22, align 8, !tbaa !25
  %23 = getelementptr inbounds i8, ptr %0, i64 312
  %24 = sext i32 %1 to i64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(320) %23, i8 0, i64 320, i1 false)
  %25 = invoke noundef i32 @_Z5_log2m(i64 noundef %24)
          to label %26 unwind label %31

26:                                               ; preds = %9
  %27 = icmp slt i32 %25, 4
  br i1 %27, label %28, label %35

28:                                               ; preds = %26
  br i1 %2, label %29, label %33

29:                                               ; preds = %28
  store i8 1, ptr %13, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 284
  store i32 2, ptr %30, align 4, !tbaa !26
  br label %39

31:                                               ; preds = %54, %49, %9
  %32 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) #5
  resume { ptr, i32 } %32

33:                                               ; preds = %28
  %34 = getelementptr inbounds i8, ptr %0, i64 284
  store i32 0, ptr %34, align 4, !tbaa !26
  br label %39

35:                                               ; preds = %26
  store i8 1, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 284
  br i1 %2, label %37, label %38

37:                                               ; preds = %35
  store i32 3, ptr %36, align 4, !tbaa !26
  br label %39

38:                                               ; preds = %35
  store i32 2, ptr %36, align 4, !tbaa !26
  br label %39

39:                                               ; preds = %37, %38, %29, %33
  %40 = load ptr, ptr %22, align 8, !tbaa !27
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !28
  %43 = fcmp ogt double %42, 0.000000e+00
  br i1 %43, label %45, label %44

44:                                               ; preds = %39
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 93, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DecoderC2EibddbbbRK4Area) #6
  unreachable

45:                                               ; preds = %39
  %46 = load double, ptr %40, align 8, !tbaa !29
  %47 = fcmp ogt double %46, 0.000000e+00
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 94, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DecoderC2EibddbbbRK4Area) #6
  unreachable

49:                                               ; preds = %45
  %50 = load i64, ptr getelementptr inbounds (i8, ptr @g_tp, i64 352), align 8, !tbaa !30
  %51 = uitofp i64 %50 to double
  %52 = fmul double %42, %51
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  store double %52, ptr %53, align 8, !tbaa !37
  invoke void @_ZN7Decoder14compute_widthsEv(ptr noundef nonnull align 8 dereferenceable(656) %0)
          to label %54 unwind label %31

54:                                               ; preds = %49
  invoke void @_ZN7Decoder12compute_areaEv(ptr noundef nonnull align 8 dereferenceable(656) %0)
          to label %55 unwind label %31

55:                                               ; preds = %54
  ret void
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 = { 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 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { 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, !14, i64 280}
!6 = !{!"_ZTS7Decoder", !7, i64 0, !14, i64 280, !15, i64 284, !9, i64 288, !9, i64 296, !15, i64 304, !15, i64 308, !10, i64 312, !10, i64 472, !9, i64 632, !14, i64 640, !14, i64 641, !14, i64 642, !16, i64 648}
!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 = !{!"bool", !10, i64 0}
!15 = !{!"int", !10, i64 0}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!6, !9, i64 288}
!18 = !{!6, !9, i64 296}
!19 = !{!6, !15, i64 304}
!20 = !{!6, !15, i64 308}
!21 = !{!6, !9, i64 632}
!22 = !{!6, !14, i64 640}
!23 = !{!6, !14, i64 641}
!24 = !{!6, !14, i64 642}
!25 = !{!16, !16, i64 0}
!26 = !{!6, !15, i64 284}
!27 = !{!6, !16, i64 648}
!28 = !{!8, !9, i64 8}
!29 = !{!8, !9, i64 0}
!30 = !{!31, !32, i64 352}
!31 = !{!"_ZTS19TechnologyParameter", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160, !9, i64 168, !9, i64 176, !9, i64 184, !9, i64 192, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !9, i64 296, !9, i64 304, !9, i64 312, !9, i64 320, !9, i64 328, !9, i64 336, !9, i64 344, !32, i64 352, !33, i64 360, !33, i64 528, !33, i64 696, !33, i64 864, !33, i64 1032, !34, i64 1200, !34, i64 1264, !34, i64 1328, !35, i64 1392, !36, i64 1416, !36, i64 1464, !36, i64 1512}
!32 = !{!"long", !10, i64 0}
!33 = !{!"_ZTSN19TechnologyParameter10DeviceTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160}
!34 = !{!"_ZTSN19TechnologyParameter16InterconnectTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56}
!35 = !{!"_ZTSN19TechnologyParameter13ScalingFactorE", !9, i64 0, !9, i64 8, !9, i64 16}
!36 = !{!"_ZTSN19TechnologyParameter10MemoryTypeE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40}
!37 = !{!7, !9, i64 8}


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