; LLVM IR from Derek-TH-Wang/quadruped_ctrl :: src/osqp/src (auxil)

; 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.OSQPWorkspace = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64 }
%struct.OSQPData = type { i64, i64, ptr, ptr, ptr, ptr, ptr }
%struct.OSQPSettings = type { double, double, i64, i64, i64, double, double, i64, double, double, double, double, double, i32, double, i64, i64, i64, i64, i64, i64, double }
%struct.linsys_solver = type { i32, 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
define dso_local i64 @update_rho_vec(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  store i64 0, ptr %4, align 8, !tbaa !9
  store i64 0, ptr %5, align 8, !tbaa !9
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %6

6:                                                ; preds = %154, %1
  %7 = load i64, ptr %3, align 8, !tbaa !9
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.OSQPWorkspace, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = getelementptr inbounds %struct.OSQPData, ptr %10, i32 0, i32 1
  %12 = load i64, ptr %11, align 8, !tbaa !13
  %13 = icmp slt i64 %7, %12
  br i1 %13, label %14, label %157

14:                                               ; preds = %6
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.OSQPWorkspace, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds %struct.OSQPData, ptr %17, i32 0, i32 5
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = load i64, ptr %3, align 8, !tbaa !9
  %21 = getelementptr inbounds double, ptr %19, i64 %20
  %22 = load double, ptr %21, align 8, !tbaa !16
  %23 = fcmp olt double %22, -1.000000e+16
  br i1 %23, label %24, label %59

24:                                               ; preds = %14
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.OSQPWorkspace, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %struct.OSQPData, ptr %27, i32 0, i32 6
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  %30 = load i64, ptr %3, align 8, !tbaa !9
  %31 = getelementptr inbounds double, ptr %29, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = fcmp ogt double %32, 1.000000e+16
  br i1 %33, label %34, label %59

34:                                               ; preds = %24
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.OSQPWorkspace, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = load i64, ptr %3, align 8, !tbaa !9
  %39 = getelementptr inbounds i64, ptr %37, i64 %38
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %41 = icmp ne i64 %40, -1
  br i1 %41, label %42, label %58

42:                                               ; preds = %34
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.OSQPWorkspace, ptr %43, i32 0, i32 5
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = load i64, ptr %3, align 8, !tbaa !9
  %47 = getelementptr inbounds i64, ptr %45, i64 %46
  store i64 -1, ptr %47, align 8, !tbaa !9
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.OSQPWorkspace, ptr %48, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = load i64, ptr %3, align 8, !tbaa !9
  %52 = getelementptr inbounds double, ptr %50, i64 %51
  store double 0x3EB0C6F7A0B5ED8D, ptr %52, align 8, !tbaa !16
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.OSQPWorkspace, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = load i64, ptr %3, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  store double 1.000000e+06, ptr %57, align 8, !tbaa !16
  store i64 1, ptr %5, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %42, %34
  br label %153

59:                                               ; preds = %24, %14
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.OSQPWorkspace, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.OSQPData, ptr %62, i32 0, i32 6
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = load i64, ptr %3, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.OSQPWorkspace, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.OSQPData, ptr %70, i32 0, i32 5
  %72 = load ptr, ptr %71, align 8, !tbaa !15
  %73 = load i64, ptr %3, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !16
  %76 = fsub double %67, %75
  %77 = fcmp olt double %76, 1.000000e-04
  br i1 %77, label %78, label %116

78:                                               ; preds = %59
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.OSQPWorkspace, ptr %79, i32 0, i32 5
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = load i64, ptr %3, align 8, !tbaa !9
  %83 = getelementptr inbounds i64, ptr %81, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = icmp ne i64 %84, 1
  br i1 %85, label %86, label %115

86:                                               ; preds = %78
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.OSQPWorkspace, ptr %87, i32 0, i32 5
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = load i64, ptr %3, align 8, !tbaa !9
  %91 = getelementptr inbounds i64, ptr %89, i64 %90
  store i64 1, ptr %91, align 8, !tbaa !9
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.OSQPWorkspace, ptr %92, i32 0, i32 23
  %94 = load ptr, ptr %93, align 8, !tbaa !22
  %95 = getelementptr inbounds %struct.OSQPSettings, ptr %94, i32 0, i32 0
  %96 = load double, ptr %95, align 8, !tbaa !23
  %97 = fmul double 1.000000e+03, %96
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.OSQPWorkspace, ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  %101 = load i64, ptr %3, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  store double %97, ptr %102, align 8, !tbaa !16
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.OSQPWorkspace, ptr %103, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  %106 = load i64, ptr %3, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !16
  %109 = fdiv double 1.000000e+00, %108
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.OSQPWorkspace, ptr %110, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = load i64, ptr %3, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  store double %109, ptr %114, align 8, !tbaa !16
  store i64 1, ptr %5, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %86, %78
  br label %152

116:                                              ; preds = %59
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.OSQPWorkspace, ptr %117, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = load i64, ptr %3, align 8, !tbaa !9
  %121 = getelementptr inbounds i64, ptr %119, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %124, label %151

124:                                              ; preds = %116
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.OSQPWorkspace, ptr %125, i32 0, i32 5
  %127 = load ptr, ptr %126, align 8, !tbaa !19
  %128 = load i64, ptr %3, align 8, !tbaa !9
  %129 = getelementptr inbounds i64, ptr %127, i64 %128
  store i64 0, ptr %129, align 8, !tbaa !9
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.OSQPWorkspace, ptr %130, i32 0, i32 23
  %132 = load ptr, ptr %131, align 8, !tbaa !22
  %133 = getelementptr inbounds %struct.OSQPSettings, ptr %132, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !23
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.OSQPWorkspace, ptr %135, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !20
  %138 = load i64, ptr %3, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double %134, ptr %139, align 8, !tbaa !16
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.OSQPWorkspace, ptr %140, i32 0, i32 23
  %142 = load ptr, ptr %141, align 8, !tbaa !22
  %143 = getelementptr inbounds %struct.OSQPSettings, ptr %142, i32 0, i32 0
  %144 = load double, ptr %143, align 8, !tbaa !23
  %145 = fdiv double 1.000000e+00, %144
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.OSQPWorkspace, ptr %146, i32 0, i32 4
  %148 = load ptr, ptr %147, align 8, !tbaa !21
  %149 = load i64, ptr %3, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %148, i64 %149
  store double %145, ptr %150, align 8, !tbaa !16
  store i64 1, ptr %5, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %124, %116
  br label %152

152:                                              ; preds = %151, %115
  br label %153

153:                                              ; preds = %152, %58
  br label %154

154:                                              ; preds = %153
  %155 = load i64, ptr %3, align 8, !tbaa !9
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %3, align 8, !tbaa !9
  br label %6, !llvm.loop !26

157:                                              ; preds = %6
  %158 = load i64, ptr %5, align 8, !tbaa !9
  %159 = icmp eq i64 %158, 1
  br i1 %159, label %160, label %178

160:                                              ; preds = %157
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.OSQPWorkspace, ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !28
  %164 = getelementptr inbounds %struct.linsys_solver, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !29
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.OSQPWorkspace, ptr %166, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !28
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.OSQPWorkspace, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !20
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.OSQPWorkspace, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.OSQPData, ptr %174, i32 0, i32 1
  %176 = load i64, ptr %175, align 8, !tbaa !13
  %177 = call i64 %165(ptr noundef %168, ptr noundef %171, i64 noundef %176)
  store i64 %177, ptr %4, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %160, %157
  %179 = load i64, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret i64 %179
}

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 = { 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 long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 232}
!13 = !{!14, !10, i64 8}
!14 = !{!"", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!14, !6, i64 40}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!14, !6, i64 48}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !6, i64 24}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 184}
!23 = !{!24, !17, i64 0}
!24 = !{!"", !17, i64 0, !17, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !17, i64 40, !17, i64 48, !10, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !25, i64 104, !17, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !17, i64 168}
!25 = !{!"int", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !6, i64 8}
!29 = !{!30, !6, i64 32}
!30 = !{!"linsys_solver", !25, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, 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
define dso_local i64 @update_rho_vec(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %2, i64 8
  %4 = load i64, ptr %3, align 8, !tbaa !11
  %5 = icmp sgt i64 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %1
  %6 = getelementptr inbounds i8, ptr %2, i64 40
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %2, i64 48
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %.pre.pre = load ptr, ptr %8, align 8, !tbaa !14
  br label %13

13:                                               ; preds = %.lr.ph, %49
  %.052 = phi i64 [ 0, %.lr.ph ], [ %.1, %49 ]
  %.04650 = phi i64 [ 0, %.lr.ph ], [ %50, %49 ]
  %14 = getelementptr inbounds double, ptr %7, i64 %.04650
  %15 = load double, ptr %14, align 8, !tbaa !15
  %16 = fcmp olt double %15, -1.000000e+16
  %17 = getelementptr inbounds double, ptr %.pre.pre, i64 %.04650
  %18 = load double, ptr %17, align 8, !tbaa !15
  %19 = fcmp ogt double %18, 1.000000e+16
  %or.cond = select i1 %16, i1 %19, i1 false
  br i1 %or.cond, label %20, label %._crit_edge55

20:                                               ; preds = %13
  %21 = load ptr, ptr %9, align 8, !tbaa !17
  %22 = getelementptr inbounds i64, ptr %21, i64 %.04650
  %23 = load i64, ptr %22, align 8, !tbaa !18
  %.not49 = icmp eq i64 %23, -1
  br i1 %.not49, label %49, label %24

24:                                               ; preds = %20
  store i64 -1, ptr %22, align 8, !tbaa !18
  %25 = load ptr, ptr %11, align 8, !tbaa !19
  %26 = getelementptr inbounds double, ptr %25, i64 %.04650
  store double 0x3EB0C6F7A0B5ED8D, ptr %26, align 8, !tbaa !15
  br label %.sink.split

._crit_edge55:                                    ; preds = %13
  %27 = fsub double %18, %15
  %28 = fcmp olt double %27, 1.000000e-04
  %29 = load ptr, ptr %9, align 8, !tbaa !17
  %30 = getelementptr inbounds i64, ptr %29, i64 %.04650
  %31 = load i64, ptr %30, align 8, !tbaa !18
  br i1 %28, label %32, label %40

32:                                               ; preds = %._crit_edge55
  %.not48 = icmp eq i64 %31, 1
  br i1 %.not48, label %49, label %33

33:                                               ; preds = %32
  store i64 1, ptr %30, align 8, !tbaa !18
  %34 = load ptr, ptr %10, align 8, !tbaa !20
  %35 = load double, ptr %34, align 8, !tbaa !21
  %36 = fmul double %35, 1.000000e+03
  %37 = load ptr, ptr %11, align 8, !tbaa !19
  %38 = getelementptr inbounds double, ptr %37, i64 %.04650
  store double %36, ptr %38, align 8, !tbaa !15
  %39 = fdiv double 1.000000e+00, %36
  br label %.sink.split

40:                                               ; preds = %._crit_edge55
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %49, label %41

41:                                               ; preds = %40
  store i64 0, ptr %30, align 8, !tbaa !18
  %42 = load ptr, ptr %10, align 8, !tbaa !20
  %43 = load double, ptr %42, align 8, !tbaa !21
  %44 = load ptr, ptr %11, align 8, !tbaa !19
  %45 = getelementptr inbounds double, ptr %44, i64 %.04650
  store double %43, ptr %45, align 8, !tbaa !15
  %46 = fdiv double 1.000000e+00, %43
  br label %.sink.split

.sink.split:                                      ; preds = %33, %41, %24
  %.sink = phi double [ 1.000000e+06, %24 ], [ %46, %41 ], [ %39, %33 ]
  %47 = load ptr, ptr %12, align 8, !tbaa !24
  %48 = getelementptr inbounds double, ptr %47, i64 %.04650
  store double %.sink, ptr %48, align 8, !tbaa !15
  br label %49

49:                                               ; preds = %.sink.split, %20, %40, %32
  %.1 = phi i64 [ %.052, %20 ], [ %.052, %32 ], [ %.052, %40 ], [ 1, %.sink.split ]
  %50 = add nuw nsw i64 %.04650, 1
  %51 = load i64, ptr %3, align 8, !tbaa !11
  %52 = icmp slt i64 %50, %51
  br i1 %52, label %13, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %49
  %53 = icmp eq i64 %.1, 1
  br i1 %53, label %54, label %._crit_edge.thread

54:                                               ; preds = %._crit_edge
  %55 = getelementptr inbounds i8, ptr %0, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %56, i64 32
  %58 = load ptr, ptr %57, align 8, !tbaa !28
  %59 = getelementptr inbounds i8, ptr %0, i64 24
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = tail call i64 %58(ptr noundef %56, ptr noundef %60, i64 noundef %51) #1
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %1, %54, %._crit_edge
  %.045 = phi i64 [ %61, %54 ], [ 0, %._crit_edge ], [ 0, %1 ]
  ret i64 %.045
}

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 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !10, i64 224, !10, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!13 = !{!12, !7, i64 40}
!14 = !{!12, !7, i64 48}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!6, !7, i64 40}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !7, i64 24}
!20 = !{!6, !7, i64 184}
!21 = !{!22, !16, i64 0}
!22 = !{!"", !16, i64 0, !16, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !16, i64 40, !16, i64 48, !10, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !23, i64 104, !16, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !16, i64 168}
!23 = !{!"int", !8, i64 0}
!24 = !{!6, !7, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !7, i64 8}
!28 = !{!29, !7, i64 32}
!29 = !{!"linsys_solver", !23, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass