; LLVM IR from chromia/lichtenberg :: src/model/valuenoisemodel.ll (ZN11lichtenberg5model20ValueNoiseBreakModelC2Eiififfi)

; 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.lichtenberg::model::ValueNoiseBreakModel" = type { %"class.lichtenberg::model::BreakModel", i32, i32, ptr }
%"class.lichtenberg::model::BreakModel" = type { ptr }

@_ZTVN11lichtenberg5model20ValueNoiseBreakModelE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11lichtenberg5model20ValueNoiseBreakModelC2Eiififfi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, float noundef %3, i32 noundef %4, float noundef %5, float noundef %6, i32 noundef %7) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store float %3, ptr %12, align 4, !tbaa !11
  store i32 %4, ptr %13, align 4, !tbaa !9
  store float %5, ptr %14, align 4, !tbaa !11
  store float %6, ptr %15, align 4, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !9
  %26 = load ptr, ptr %9, align 8
  call void @_ZN11lichtenberg5model10BreakModelC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN11lichtenberg5model20ValueNoiseBreakModelE, i32 0, i32 0, i32 2), ptr %26, align 8, !tbaa !13
  %27 = getelementptr inbounds %"class.lichtenberg::model::ValueNoiseBreakModel", ptr %26, i32 0, i32 1
  %28 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %28, ptr %27, align 8, !tbaa !15
  %29 = getelementptr inbounds %"class.lichtenberg::model::ValueNoiseBreakModel", ptr %26, i32 0, i32 2
  %30 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %30, ptr %29, align 4, !tbaa !18
  %31 = getelementptr inbounds %"class.lichtenberg::model::ValueNoiseBreakModel", ptr %26, i32 0, i32 3
  store ptr null, ptr %31, align 8, !tbaa !19
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = icmp sle i32 %32, 0
  br i1 %33, label %37, label %34

34:                                               ; preds = %8
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = icmp sle i32 %35, 0
  br i1 %36, label %37, label %48

37:                                               ; preds = %34, %8
  %38 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef @.str)
          to label %39 unwind label %40

39:                                               ; preds = %37
  invoke void @__cxa_throw(ptr %38, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #8
          to label %134 unwind label %44

40:                                               ; preds = %37
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %17, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %18, align 4
  call void @__cxa_free_exception(ptr %38) #7
  br label %128

44:                                               ; preds = %48, %39
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %17, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %18, align 4
  br label %128

48:                                               ; preds = %34
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = mul nsw i32 %49, %50
  %52 = sext i32 %51 to i64
  %53 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %52, i64 4)
  %54 = extractvalue { i64, i1 } %53, 1
  %55 = extractvalue { i64, i1 } %53, 0
  %56 = select i1 %54, i64 -1, i64 %55
  %57 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %56) #9
          to label %58 unwind label %44

58:                                               ; preds = %48
  %59 = getelementptr inbounds %"class.lichtenberg::model::ValueNoiseBreakModel", ptr %26, i32 0, i32 3
  store ptr %57, ptr %59, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %60 = load float, ptr %12, align 4, !tbaa !11
  %61 = fpext float %60 to double
  %62 = fsub double 1.000000e+00, %61
  store double %62, ptr %19, align 8, !tbaa !20
  %63 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_ZN11lichtenberg4util10noise_initEi(i32 noundef %63)
          to label %64 unwind label %70

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %123, %64
  %66 = load i32, ptr %20, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %74, label %69

69:                                               ; preds = %65
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %126

70:                                               ; preds = %58
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %17, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %18, align 4
  br label %127

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %75 = getelementptr inbounds %"class.lichtenberg::model::ValueNoiseBreakModel", ptr %26, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = load i32, ptr %20, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = mul nsw i32 %77, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds float, ptr %76, i64 %80
  store ptr %81, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %115, %74
  %83 = load i32, ptr %23, align 4, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %122

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %88 = load i32, ptr %23, align 4, !tbaa !9
  %89 = sitofp i32 %88 to float
  %90 = load float, ptr %14, align 4, !tbaa !11
  %91 = fdiv float %89, %90
  %92 = fpext float %91 to double
  %93 = load i32, ptr %20, align 4, !tbaa !9
  %94 = sitofp i32 %93 to float
  %95 = load float, ptr %14, align 4, !tbaa !11
  %96 = fdiv float %94, %95
  %97 = fpext float %96 to double
  %98 = load float, ptr %15, align 4, !tbaa !11
  %99 = fpext float %98 to double
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = invoke noundef double @_ZN11lichtenberg4util5noiseEdddi(double noundef %92, double noundef %97, double noundef %99, i32 noundef %100)
          to label %102 unwind label %118

102:                                              ; preds = %87
  store double %101, ptr %24, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %103 = load double, ptr %24, align 8, !tbaa !20
  %104 = fadd double %103, 1.000000e+00
  %105 = fdiv double %104, 2.000000e+00
  store double %105, ptr %25, align 8, !tbaa !20
  %106 = load double, ptr %25, align 8, !tbaa !20
  %107 = load double, ptr %19, align 8, !tbaa !20
  %108 = load float, ptr %12, align 4, !tbaa !11
  %109 = fpext float %108 to double
  %110 = call double @llvm.fmuladd.f64(double %106, double %107, double %109)
  store double %110, ptr %25, align 8, !tbaa !20
  %111 = load double, ptr %25, align 8, !tbaa !20
  %112 = fptrunc double %111 to float
  %113 = load ptr, ptr %22, align 8, !tbaa !5
  %114 = getelementptr inbounds float, ptr %113, i32 1
  store ptr %114, ptr %22, align 8, !tbaa !5
  store float %112, ptr %113, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %115

115:                                              ; preds = %102
  %116 = load i32, ptr %23, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %23, align 4, !tbaa !9
  br label %82, !llvm.loop !22

118:                                              ; preds = %87
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %17, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %127

122:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %20, align 4, !tbaa !9
  br label %65, !llvm.loop !24

126:                                              ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  ret void

127:                                              ; preds = %118, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %128

128:                                              ; preds = %127, %44, %40
  call void @_ZN11lichtenberg5model10BreakModelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %17, align 8
  %131 = load i32, ptr %18, align 4
  %132 = insertvalue { ptr, i32 } poison, ptr %130, 0
  %133 = insertvalue { ptr, i32 } %132, i32 %131, 1
  resume { ptr, i32 } %133

134:                                              ; preds = %39
  unreachable
}

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

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

declare void @_ZN11lichtenberg4util10noise_initEi(i32 noundef) #2

declare noundef double @_ZN11lichtenberg4util5noiseEdddi(double noundef, double noundef, double noundef, i32 noundef) #2

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

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

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { builtin allocsize(0) }

!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 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN11lichtenberg5model20ValueNoiseBreakModelE", !17, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!17 = !{!"_ZTSN11lichtenberg5model10BreakModelE"}
!18 = !{!16, !10, i64 12}
!19 = !{!16, !6, i64 16}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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

@_ZTVN11lichtenberg5model20ValueNoiseBreakModelE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11lichtenberg5model20ValueNoiseBreakModelC2Eiififfi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, float noundef %3, i32 noundef %4, float noundef %5, float noundef %6, i32 noundef %7) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN11lichtenberg5model10BreakModelC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN11lichtenberg5model20ValueNoiseBreakModelE, i64 16), ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %9, align 8, !tbaa !8
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %10, align 4, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr null, ptr %11, align 8, !tbaa !15
  %12 = icmp slt i32 %1, 1
  %13 = icmp slt i32 %2, 1
  %or.cond = or i1 %12, %13
  br i1 %or.cond, label %14, label %21

14:                                               ; preds = %8
  %15 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull @.str)
          to label %16 unwind label %17

16:                                               ; preds = %14
  invoke void @__cxa_throw(ptr nonnull %15, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #7
          to label %54 unwind label %19

17:                                               ; preds = %14
  %18 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %15) #6
  br label %53

19:                                               ; preds = %21, %16
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %53

21:                                               ; preds = %8
  %22 = mul nuw nsw i32 %2, %1
  %23 = zext nneg i32 %22 to i64
  %24 = shl nuw nsw i64 %23, 2
  %25 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %24) #8
          to label %26 unwind label %19

26:                                               ; preds = %21
  store ptr %25, ptr %11, align 8, !tbaa !15
  %27 = fpext float %3 to double
  %28 = fsub double 1.000000e+00, %27
  invoke void @_ZN11lichtenberg4util10noise_initEi(i32 noundef %4)
          to label %.lr.ph.us.preheader unwind label %51

.lr.ph.us.preheader:                              ; preds = %26
  %29 = fpext float %6 to double
  %30 = zext nneg i32 %1 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next, %._crit_edge.us ]
  %31 = load ptr, ptr %11, align 8, !tbaa !15
  %32 = mul nuw nsw i64 %indvars.iv, %30
  %33 = getelementptr inbounds float, ptr %31, i64 %32
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  %35 = uitofp nneg i32 %34 to float
  %36 = fdiv float %35, %5
  %37 = fpext float %36 to double
  br label %38

38:                                               ; preds = %.lr.ph.us, %43
  %.03342.us = phi i32 [ 0, %.lr.ph.us ], [ %49, %43 ]
  %.03441.us = phi ptr [ %33, %.lr.ph.us ], [ %48, %43 ]
  %39 = uitofp nneg i32 %.03342.us to float
  %40 = fdiv float %39, %5
  %41 = fpext float %40 to double
  %42 = invoke noundef double @_ZN11lichtenberg4util5noiseEdddi(double noundef %41, double noundef %37, double noundef %29, i32 noundef %7)
          to label %43 unwind label %.split.us

43:                                               ; preds = %38
  %44 = fadd double %42, 1.000000e+00
  %45 = fmul double %44, 5.000000e-01
  %46 = tail call double @llvm.fmuladd.f64(double %45, double %28, double %27)
  %47 = fptrunc double %46 to float
  %48 = getelementptr inbounds i8, ptr %.03441.us, i64 4
  store float %47, ptr %.03441.us, align 4, !tbaa !16
  %49 = add nuw nsw i32 %.03342.us, 1
  %exitcond.not = icmp eq i32 %49, %1
  br i1 %exitcond.not, label %._crit_edge.us, label %38, !llvm.loop !18

._crit_edge.us:                                   ; preds = %43
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond48.not, label %._crit_edge45, label %.lr.ph.us, !llvm.loop !20

.split.us:                                        ; preds = %38
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

._crit_edge45:                                    ; preds = %._crit_edge.us
  ret void

51:                                               ; preds = %26
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %53

53:                                               ; preds = %51, %.split.us, %19, %17
  %.pn39 = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ], [ %50, %.split.us ], [ %52, %51 ]
  tail call void @_ZN11lichtenberg5model10BreakModelD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn39

54:                                               ; preds = %16
  unreachable
}

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

declare void @_ZN11lichtenberg4util10noise_initEi(i32 noundef) local_unnamed_addr #2

declare noundef double @_ZN11lichtenberg4util5noiseEdddi(double noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #2

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

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }
attributes #8 = { builtin allocsize(0) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN11lichtenberg5model20ValueNoiseBreakModelE", !10, i64 0, !11, i64 8, !11, i64 12, !13, i64 16}
!10 = !{!"_ZTSN11lichtenberg5model10BreakModelE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!9, !11, i64 12}
!15 = !{!9, !13, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass