; LLVM IR from kmilo17pet/qlibs :: qltisys (qLTISys_Setup)

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

%struct._qLTISys_s = type { ptr, ptr, ptr, ptr, ptr, %struct.qTDL_t, float, float, float, float, i64, i64, i64, ptr }
%struct.qTDL_t = type { ptr, ptr, ptr, ptr, i64 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qLTISys_SetSaturation(ptr noundef, float noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qLTISys_SetInitStates(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @qLTISys_Setup(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, float noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i64 %5, ptr %13, align 8, !tbaa !9
  store float %6, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !13
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = icmp ne ptr null, %18
  br i1 %19, label %20, label %143

20:                                               ; preds = %7
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = icmp ne ptr null, %21
  br i1 %22, label %23, label %143

23:                                               ; preds = %20
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = icmp ne ptr null, %24
  br i1 %25, label %26, label %143

26:                                               ; preds = %23
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = icmp ne ptr null, %27
  br i1 %28, label %29, label %143

29:                                               ; preds = %26
  %30 = load i64, ptr %13, align 8, !tbaa !9
  %31 = icmp ugt i64 %30, 0
  br i1 %31, label %32, label %143

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %33 = load float, ptr %14, align 4, !tbaa !11
  %34 = fcmp ole float %33, 0.000000e+00
  br i1 %34, label %35, label %63

35:                                               ; preds = %32
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._qLTISys_s, ptr %37, i32 0, i32 1
  store ptr %36, ptr %38, align 8, !tbaa !15
  %39 = load i64, ptr %13, align 8, !tbaa !9
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._qLTISys_s, ptr %40, i32 0, i32 11
  store i64 %39, ptr %41, align 8, !tbaa !18
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._qLTISys_s, ptr %43, i32 0, i32 12
  store i64 %42, ptr %44, align 8, !tbaa !19
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = icmp ugt i64 %45, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %35
  %49 = load i64, ptr %13, align 8, !tbaa !9
  br label %52

50:                                               ; preds = %35
  %51 = load i64, ptr %12, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %50, %48
  %53 = phi i64 [ %49, %48 ], [ %51, %50 ]
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._qLTISys_s, ptr %54, i32 0, i32 10
  store i64 %53, ptr %55, align 8, !tbaa !20
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._qLTISys_s, ptr %56, i32 0, i32 0
  store ptr @qLTISys_DiscreteUpdate, ptr %57, align 8, !tbaa !21
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._qLTISys_s, ptr %59, i32 0, i32 3
  store ptr %58, ptr %60, align 8, !tbaa !22
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._qLTISys_s, ptr %61, i32 0, i32 4
  store ptr null, ptr %62, align 8, !tbaa !23
  br label %84

63:                                               ; preds = %32
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds float, ptr %64, i64 1
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._qLTISys_s, ptr %66, i32 0, i32 1
  store ptr %65, ptr %67, align 8, !tbaa !15
  %68 = load i64, ptr %13, align 8, !tbaa !9
  %69 = sub i64 %68, 1
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._qLTISys_s, ptr %70, i32 0, i32 10
  store i64 %69, ptr %71, align 8, !tbaa !20
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._qLTISys_s, ptr %72, i32 0, i32 10
  %74 = load i64, ptr %73, align 8, !tbaa !20
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._qLTISys_s, ptr %75, i32 0, i32 12
  store i64 %74, ptr %76, align 8, !tbaa !19
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._qLTISys_s, ptr %77, i32 0, i32 0
  store ptr @qLTISys_ContinuosUpdate, ptr %78, align 8, !tbaa !21
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct._qLTISys_s, ptr %80, i32 0, i32 4
  store ptr %79, ptr %81, align 8, !tbaa !23
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._qLTISys_s, ptr %82, i32 0, i32 3
  store ptr null, ptr %83, align 8, !tbaa !22
  br label %84

84:                                               ; preds = %63, %52
  %85 = load float, ptr %14, align 4, !tbaa !11
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._qLTISys_s, ptr %86, i32 0, i32 6
  store float %85, ptr %87, align 8, !tbaa !24
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._qLTISys_s, ptr %88, i32 0, i32 13
  store ptr @qNumA_IntegralTr, ptr %89, align 8, !tbaa !25
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds float, ptr %90, i64 1
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._qLTISys_s, ptr %92, i32 0, i32 2
  store ptr %91, ptr %93, align 8, !tbaa !26
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds float, ptr %94, i64 0
  %96 = load float, ptr %95, align 4, !tbaa !11
  store float %96, ptr %16, align 4, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %110, %84
  %98 = load i64, ptr %17, align 8, !tbaa !9
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._qLTISys_s, ptr %99, i32 0, i32 12
  %101 = load i64, ptr %100, align 8, !tbaa !19
  %102 = icmp ult i64 %98, %101
  br i1 %102, label %103, label %113

103:                                              ; preds = %97
  %104 = load float, ptr %16, align 4, !tbaa !11
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load i64, ptr %17, align 8, !tbaa !9
  %107 = getelementptr inbounds float, ptr %105, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = fdiv float %108, %104
  store float %109, ptr %107, align 4, !tbaa !11
  br label %110

110:                                              ; preds = %103
  %111 = load i64, ptr %17, align 8, !tbaa !9
  %112 = add i64 %111, 1
  store i64 %112, ptr %17, align 8, !tbaa !9
  br label %97, !llvm.loop !27

113:                                              ; preds = %97
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %127, %113
  %115 = load i64, ptr %17, align 8, !tbaa !9
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._qLTISys_s, ptr %116, i32 0, i32 11
  %118 = load i64, ptr %117, align 8, !tbaa !18
  %119 = icmp ult i64 %115, %118
  br i1 %119, label %120, label %130

120:                                              ; preds = %114
  %121 = load float, ptr %16, align 4, !tbaa !11
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i64, ptr %17, align 8, !tbaa !9
  %124 = getelementptr inbounds float, ptr %122, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !11
  %126 = fdiv float %125, %121
  store float %126, ptr %124, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %120
  %128 = load i64, ptr %17, align 8, !tbaa !9
  %129 = add i64 %128, 1
  store i64 %129, ptr %17, align 8, !tbaa !9
  br label %114, !llvm.loop !29

130:                                              ; preds = %114
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds float, ptr %131, i64 0
  %133 = load float, ptr %132, align 4, !tbaa !11
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._qLTISys_s, ptr %134, i32 0, i32 7
  store float %133, ptr %135, align 4, !tbaa !30
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct._qLTISys_s, ptr %136, i32 0, i32 5
  %138 = getelementptr inbounds %struct.qTDL_t, ptr %137, i32 0, i32 0
  store ptr null, ptr %138, align 8, !tbaa !31
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = call i32 @qLTISys_SetInitStates(ptr noundef %139, ptr noundef null)
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = call i32 @qLTISys_SetSaturation(ptr noundef %141, float noundef 0xC7EFFFFFE0000000, float noundef 0x47EFFFFFE0000000)
  store i32 %142, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %143

143:                                              ; preds = %130, %29, %26, %23, %20, %7
  %144 = load i32, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  ret i32 %144
}

; Function Attrs: nounwind uwtable
declare hidden float @qLTISys_DiscreteUpdate(ptr noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare hidden float @qLTISys_ContinuosUpdate(ptr noundef, float noundef) #1

declare float @qNumA_IntegralTr(ptr noundef, float noundef, float noundef, i1 noundef zeroext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"_qLTISys_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !17, i64 40, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !10, i64 96, !10, i64 104, !10, i64 112, !6, i64 120}
!17 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!18 = !{!16, !10, i64 104}
!19 = !{!16, !10, i64 112}
!20 = !{!16, !10, i64 96}
!21 = !{!16, !6, i64 0}
!22 = !{!16, !6, i64 24}
!23 = !{!16, !6, i64 32}
!24 = !{!16, !12, i64 80}
!25 = !{!16, !6, i64 120}
!26 = !{!16, !6, i64 16}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!16, !12, i64 84}
!31 = !{!16, !6, i64 40}


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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qLTISys_SetSaturation(ptr noundef, float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @qLTISys_SetInitStates(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @qLTISys_Setup(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, float noundef %6) local_unnamed_addr #0 {
  %8 = insertelement <4 x ptr> poison, ptr %0, i64 0
  %9 = insertelement <4 x ptr> %8, ptr %1, i64 1
  %10 = insertelement <4 x ptr> %9, ptr %2, i64 2
  %11 = insertelement <4 x ptr> %10, ptr %3, i64 3
  %12 = icmp ne i64 %5, 0
  %13 = icmp eq <4 x ptr> %11, zeroinitializer
  %14 = bitcast <4 x i1> %13 to i4
  %15 = icmp eq i4 %14, 0
  %op.rdx = and i1 %15, %12
  br i1 %op.rdx, label %16, label %56

16:                                               ; preds = %7
  %17 = fcmp ugt float %6, 0.000000e+00
  br i1 %17, label %21, label %18

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %0, i64 104
  store i64 %5, ptr %19, align 8, !tbaa !5
  %20 = tail call i64 @llvm.umax.i64(i64 %5, i64 %4)
  br label %24

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  %23 = add i64 %5, -1
  br label %24

24:                                               ; preds = %21, %18
  %.sink74 = phi ptr [ %22, %21 ], [ %1, %18 ]
  %.sink73 = phi i64 [ %23, %21 ], [ %20, %18 ]
  %.sink72 = phi i64 [ %23, %21 ], [ %4, %18 ]
  %qLTISys_DiscreteUpdate.sink = phi ptr [ @qLTISys_ContinuosUpdate, %21 ], [ @qLTISys_DiscreteUpdate, %18 ]
  %.sink71 = phi ptr [ %3, %21 ], [ null, %18 ]
  %.sink = phi ptr [ null, %21 ], [ %3, %18 ]
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %.sink74, ptr %25, align 8
  %26 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %.sink73, ptr %26, align 8
  %27 = getelementptr inbounds i8, ptr %0, i64 112
  store i64 %.sink72, ptr %27, align 8
  store ptr %qLTISys_DiscreteUpdate.sink, ptr %0, align 8
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %.sink71, ptr %28, align 8
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %.sink, ptr %29, align 8
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  store float %6, ptr %30, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr @qNumA_IntegralTr, ptr %31, align 8, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %2, i64 4
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !15
  %34 = load float, ptr %2, align 4, !tbaa !16
  %.not = icmp eq i64 %.sink72, 0
  br i1 %.not, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %24
  %min.iters.check = icmp ult i64 %.sink72, 4
  br i1 %min.iters.check, label %.lr.ph.preheader90, label %vector.ph

.lr.ph.preheader90:                               ; preds = %middle.block, %.lr.ph.preheader
  %.066.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %.sink72, -4
  %broadcast.splatinsert = insertelement <4 x float> poison, float %34, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %35 = getelementptr inbounds float, ptr %1, i64 %index
  %wide.load = load <4 x float>, ptr %35, align 4, !tbaa !16
  %36 = fdiv <4 x float> %wide.load, %broadcast.splat
  store <4 x float> %36, ptr %35, align 4, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.sink72, %n.vec
  br i1 %cmp.n, label %.preheader, label %.lr.ph.preheader90

.preheader:                                       ; preds = %.lr.ph, %middle.block, %24
  %38 = getelementptr inbounds i8, ptr %0, i64 104
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %.not69 = icmp eq i64 %39, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph68.preheader

.lr.ph68.preheader:                               ; preds = %.preheader
  %min.iters.check77 = icmp ult i64 %39, 4
  br i1 %min.iters.check77, label %.lr.ph68.preheader89, label %vector.ph78

.lr.ph68.preheader89:                             ; preds = %middle.block75, %.lr.ph68.preheader
  %.167.ph = phi i64 [ 0, %.lr.ph68.preheader ], [ %n.vec80, %middle.block75 ]
  br label %.lr.ph68

vector.ph78:                                      ; preds = %.lr.ph68.preheader
  %n.vec80 = and i64 %39, -4
  %broadcast.splatinsert85 = insertelement <4 x float> poison, float %34, i64 0
  %broadcast.splat86 = shufflevector <4 x float> %broadcast.splatinsert85, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body82

vector.body82:                                    ; preds = %vector.body82, %vector.ph78
  %index83 = phi i64 [ 0, %vector.ph78 ], [ %index.next87, %vector.body82 ]
  %40 = getelementptr inbounds float, ptr %2, i64 %index83
  %wide.load84 = load <4 x float>, ptr %40, align 4, !tbaa !16
  %41 = fdiv <4 x float> %wide.load84, %broadcast.splat86
  store <4 x float> %41, ptr %40, align 4, !tbaa !16
  %index.next87 = add nuw i64 %index83, 4
  %42 = icmp eq i64 %index.next87, %n.vec80
  br i1 %42, label %middle.block75, label %vector.body82, !llvm.loop !21

middle.block75:                                   ; preds = %vector.body82
  %cmp.n88 = icmp eq i64 %39, %n.vec80
  br i1 %cmp.n88, label %._crit_edge, label %.lr.ph68.preheader89

.lr.ph:                                           ; preds = %.lr.ph.preheader90, %.lr.ph
  %.066 = phi i64 [ %46, %.lr.ph ], [ %.066.ph, %.lr.ph.preheader90 ]
  %43 = getelementptr inbounds float, ptr %1, i64 %.066
  %44 = load float, ptr %43, align 4, !tbaa !16
  %45 = fdiv float %44, %34
  store float %45, ptr %43, align 4, !tbaa !16
  %46 = add nuw i64 %.066, 1
  %exitcond.not = icmp eq i64 %46, %.sink72
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !22

.lr.ph68:                                         ; preds = %.lr.ph68.preheader89, %.lr.ph68
  %.167 = phi i64 [ %50, %.lr.ph68 ], [ %.167.ph, %.lr.ph68.preheader89 ]
  %47 = getelementptr inbounds float, ptr %2, i64 %.167
  %48 = load float, ptr %47, align 4, !tbaa !16
  %49 = fdiv float %48, %34
  store float %49, ptr %47, align 4, !tbaa !16
  %50 = add nuw i64 %.167, 1
  %exitcond70.not = icmp eq i64 %50, %39
  br i1 %exitcond70.not, label %._crit_edge, label %.lr.ph68, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph68, %middle.block75, %.preheader
  %51 = load float, ptr %1, align 4, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %0, i64 84
  store float %51, ptr %52, align 4, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr null, ptr %53, align 8, !tbaa !25
  %54 = tail call i32 @qLTISys_SetInitStates(ptr noundef nonnull %0, ptr noundef null)
  %55 = tail call i32 @qLTISys_SetSaturation(ptr noundef nonnull %0, float noundef 0xC7EFFFFFE0000000, float noundef 0x47EFFFFFE0000000)
  br label %56

56:                                               ; preds = %._crit_edge, %7
  %.061 = phi i32 [ %55, %._crit_edge ], [ 0, %7 ]
  ret i32 %.061
}

; Function Attrs: nounwind uwtable
declare hidden float @qLTISys_DiscreteUpdate(ptr noundef, float noundef) #0

; Function Attrs: nounwind uwtable
declare hidden float @qLTISys_ContinuosUpdate(ptr noundef, float noundef) #0

declare float @qNumA_IntegralTr(ptr noundef, float noundef, float noundef, i1 noundef zeroext) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #2

attributes #0 = { 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 #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 speculatable willreturn memory(none) }

!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, !11, i64 104}
!6 = !{!"_qLTISys_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !11, i64 96, !11, i64 104, !11, i64 112, !7, i64 120}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32}
!11 = !{!"long", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!6, !12, i64 80}
!14 = !{!6, !7, i64 120}
!15 = !{!6, !7, i64 16}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19, !20}
!22 = distinct !{!22, !18, !20, !19}
!23 = distinct !{!23, !18, !20, !19}
!24 = !{!6, !12, i64 84}
!25 = !{!6, !7, i64 40}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass