; LLVM IR from ERGO-Code/HiGHS :: src/ipm/basiclu (basiclu_object)

; 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.basiclu_object = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, double }

; Function Attrs: nounwind uwtable
define dso_local i32 @basiclu_obj_initialize(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %13, label %12

12:                                               ; preds = %2
  store i32 -3, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %191

13:                                               ; preds = %2
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %13
  store i32 -4, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %191

17:                                               ; preds = %13
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %43

20:                                               ; preds = %17
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.basiclu_object, ptr %21, i32 0, i32 0
  store ptr null, ptr %22, align 8, !tbaa !11
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.basiclu_object, ptr %23, i32 0, i32 1
  store ptr null, ptr %24, align 8, !tbaa !14
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.basiclu_object, ptr %25, i32 0, i32 2
  store ptr null, ptr %26, align 8, !tbaa !15
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.basiclu_object, ptr %27, i32 0, i32 5
  store ptr null, ptr %28, align 8, !tbaa !16
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.basiclu_object, ptr %29, i32 0, i32 3
  store ptr null, ptr %30, align 8, !tbaa !17
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.basiclu_object, ptr %31, i32 0, i32 6
  store ptr null, ptr %32, align 8, !tbaa !18
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.basiclu_object, ptr %33, i32 0, i32 4
  store ptr null, ptr %34, align 8, !tbaa !19
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.basiclu_object, ptr %35, i32 0, i32 7
  store ptr null, ptr %36, align 8, !tbaa !20
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.basiclu_object, ptr %37, i32 0, i32 8
  store ptr null, ptr %38, align 8, !tbaa !21
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.basiclu_object, ptr %39, i32 0, i32 9
  store ptr null, ptr %40, align 8, !tbaa !22
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.basiclu_object, ptr %41, i32 0, i32 10
  store i32 0, ptr %42, align 8, !tbaa !23
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %191

43:                                               ; preds = %17
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = mul nsw i32 21, %44
  %46 = add nsw i32 1024, %45
  store i32 %46, ptr %6, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = mul nsw i32 4, %47
  %49 = add nsw i32 1024, %48
  store i32 %49, ptr %7, align 4, !tbaa !9
  %50 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %50, ptr %8, align 4, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 %52, 4
  %54 = call noalias ptr @malloc(i64 noundef %53) #6
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.basiclu_object, ptr %55, i32 0, i32 0
  store ptr %54, ptr %56, align 8, !tbaa !11
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = mul i64 %58, 8
  %60 = call noalias ptr @malloc(i64 noundef %59) #6
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.basiclu_object, ptr %61, i32 0, i32 1
  store ptr %60, ptr %62, align 8, !tbaa !14
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = mul i64 %64, 4
  %66 = call noalias ptr @malloc(i64 noundef %65) #6
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.basiclu_object, ptr %67, i32 0, i32 2
  store ptr %66, ptr %68, align 8, !tbaa !15
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = mul i64 %70, 8
  %72 = call noalias ptr @malloc(i64 noundef %71) #6
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.basiclu_object, ptr %73, i32 0, i32 5
  store ptr %72, ptr %74, align 8, !tbaa !16
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = mul i64 %76, 4
  %78 = call noalias ptr @malloc(i64 noundef %77) #6
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.basiclu_object, ptr %79, i32 0, i32 3
  store ptr %78, ptr %80, align 8, !tbaa !17
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = mul i64 %82, 8
  %84 = call noalias ptr @malloc(i64 noundef %83) #6
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.basiclu_object, ptr %85, i32 0, i32 6
  store ptr %84, ptr %86, align 8, !tbaa !18
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = mul i64 %88, 4
  %90 = call noalias ptr @malloc(i64 noundef %89) #6
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.basiclu_object, ptr %91, i32 0, i32 4
  store ptr %90, ptr %92, align 8, !tbaa !19
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = mul i64 %94, 8
  %96 = call noalias ptr @malloc(i64 noundef %95) #6
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.basiclu_object, ptr %97, i32 0, i32 7
  store ptr %96, ptr %98, align 8, !tbaa !20
  %99 = load i32, ptr %5, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = call noalias ptr @calloc(i64 noundef %100, i64 noundef 8) #7
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.basiclu_object, ptr %102, i32 0, i32 8
  store ptr %101, ptr %103, align 8, !tbaa !21
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = mul i64 %105, 4
  %107 = call noalias ptr @malloc(i64 noundef %106) #6
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.basiclu_object, ptr %108, i32 0, i32 9
  store ptr %107, ptr %109, align 8, !tbaa !22
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.basiclu_object, ptr %110, i32 0, i32 10
  store i32 0, ptr %111, align 8, !tbaa !23
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.basiclu_object, ptr %112, i32 0, i32 11
  store double 1.500000e+00, ptr %113, align 8, !tbaa !24
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.basiclu_object, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %163

118:                                              ; preds = %43
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.basiclu_object, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !14
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %163

123:                                              ; preds = %118
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.basiclu_object, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %163

128:                                              ; preds = %123
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.basiclu_object, ptr %129, i32 0, i32 5
  %131 = load ptr, ptr %130, align 8, !tbaa !16
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %163

133:                                              ; preds = %128
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.basiclu_object, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %163

138:                                              ; preds = %133
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.basiclu_object, ptr %139, i32 0, i32 6
  %141 = load ptr, ptr %140, align 8, !tbaa !18
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %163

143:                                              ; preds = %138
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.basiclu_object, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %163

148:                                              ; preds = %143
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.basiclu_object, ptr %149, i32 0, i32 7
  %151 = load ptr, ptr %150, align 8, !tbaa !20
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %163

153:                                              ; preds = %148
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.basiclu_object, ptr %154, i32 0, i32 8
  %156 = load ptr, ptr %155, align 8, !tbaa !21
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %163

158:                                              ; preds = %153
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.basiclu_object, ptr %159, i32 0, i32 9
  %161 = load ptr, ptr %160, align 8, !tbaa !22
  %162 = icmp ne ptr %161, null
  br i1 %162, label %165, label %163

163:                                              ; preds = %158, %153, %148, %143, %138, %133, %128, %123, %118, %43
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  call void @basiclu_obj_free(ptr noundef %164)
  store i32 -9, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %191

165:                                              ; preds = %158
  %166 = load i32, ptr %5, align 4, !tbaa !9
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.basiclu_object, ptr %167, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !11
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.basiclu_object, ptr %170, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !14
  call void @lu_initialize(i32 noundef %166, ptr noundef %169, ptr noundef %172)
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = sitofp i32 %173 to double
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.basiclu_object, ptr %175, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !14
  %178 = getelementptr inbounds double, ptr %177, i64 1
  store double %174, ptr %178, align 8, !tbaa !25
  %179 = load i32, ptr %8, align 4, !tbaa !9
  %180 = sitofp i32 %179 to double
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.basiclu_object, ptr %181, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !14
  %184 = getelementptr inbounds double, ptr %183, i64 2
  store double %180, ptr %184, align 8, !tbaa !25
  %185 = load i32, ptr %8, align 4, !tbaa !9
  %186 = sitofp i32 %185 to double
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.basiclu_object, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8, !tbaa !14
  %190 = getelementptr inbounds double, ptr %189, i64 3
  store double %186, ptr %190, align 8, !tbaa !25
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %191

191:                                              ; preds = %165, %163, %20, %16, %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %192 = load i32, ptr %3, align 4
  ret i32 %192
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @basiclu_obj_free(ptr noundef) #0

declare void @lu_initialize(i32 noundef, ptr noundef, ptr noundef) #4

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

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

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"basiclu_object", !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, !10, i64 80, !13, i64 88}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !6, i64 40}
!17 = !{!12, !6, i64 24}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !6, i64 32}
!20 = !{!12, !6, i64 56}
!21 = !{!12, !6, i64 64}
!22 = !{!12, !6, i64 72}
!23 = !{!12, !10, i64 80}
!24 = !{!12, !13, i64 88}
!25 = !{!13, !13, i64 0}


; 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 range(i32 -9, 1) i32 @basiclu_obj_initialize(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %59, label %3

3:                                                ; preds = %2
  %4 = icmp slt i32 %1, 0
  br i1 %4, label %59, label %5

5:                                                ; preds = %3
  %6 = icmp eq i32 %1, 0
  br i1 %6, label %7, label %8

7:                                                ; preds = %5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(84) %0, i8 0, i64 84, i1 false)
  br label %59

8:                                                ; preds = %5
  %9 = mul nuw nsw i32 %1, 21
  %10 = add nuw nsw i32 %9, 1024
  %11 = shl nsw i32 %1, 2
  %12 = add nuw nsw i32 %11, 1024
  %13 = zext nneg i32 %10 to i64
  %14 = shl nuw nsw i64 %13, 2
  %15 = tail call noalias ptr @malloc(i64 noundef %14) #5
  store ptr %15, ptr %0, align 8, !tbaa !5
  %16 = zext nneg i32 %12 to i64
  %17 = shl nuw nsw i64 %16, 3
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %18, ptr %19, align 8, !tbaa !12
  %20 = zext nneg i32 %1 to i64
  %21 = shl nuw nsw i64 %20, 2
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #5
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %22, ptr %23, align 8, !tbaa !13
  %24 = shl nuw nsw i64 %20, 3
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %25, ptr %26, align 8, !tbaa !14
  %27 = tail call noalias ptr @malloc(i64 noundef %21) #5
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %27, ptr %28, align 8, !tbaa !15
  %29 = tail call noalias ptr @malloc(i64 noundef %24) #5
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %29, ptr %30, align 8, !tbaa !16
  %31 = tail call noalias ptr @malloc(i64 noundef %21) #5
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %31, ptr %32, align 8, !tbaa !17
  %33 = tail call noalias ptr @malloc(i64 noundef %24) #5
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %33, ptr %34, align 8, !tbaa !18
  %35 = tail call noalias ptr @calloc(i64 noundef %20, i64 noundef 8) #6
  %36 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %35, ptr %36, align 8, !tbaa !19
  %37 = tail call noalias ptr @malloc(i64 noundef %21) #5
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %37, ptr %38, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 0, ptr %39, align 8, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %0, i64 88
  store double 1.500000e+00, ptr %40, align 8, !tbaa !22
  %41 = insertelement <8 x ptr> poison, ptr %15, i64 0
  %42 = insertelement <8 x ptr> %41, ptr %18, i64 1
  %43 = insertelement <8 x ptr> %42, ptr %22, i64 2
  %44 = insertelement <8 x ptr> %43, ptr %29, i64 3
  %45 = insertelement <8 x ptr> %44, ptr %25, i64 4
  %46 = insertelement <8 x ptr> %45, ptr %31, i64 5
  %47 = insertelement <8 x ptr> %46, ptr %27, i64 6
  %48 = insertelement <8 x ptr> %47, ptr %33, i64 7
  %49 = icmp eq <8 x ptr> %48, zeroinitializer
  %.not71 = icmp eq ptr %35, null
  %.not72 = icmp eq ptr %37, null
  %50 = bitcast <8 x i1> %49 to i8
  %51 = icmp ne i8 %50, 0
  %op.rdx = or i1 %51, %.not71
  %op.rdx81 = or i1 %op.rdx, %.not72
  br i1 %op.rdx81, label %52, label %53

52:                                               ; preds = %8
  tail call void @basiclu_obj_free(ptr noundef nonnull %0)
  br label %59

53:                                               ; preds = %8
  tail call void @lu_initialize(i32 noundef %1, ptr noundef nonnull %15, ptr noundef nonnull %18) #7
  %54 = uitofp nneg i32 %1 to double
  %55 = load ptr, ptr %19, align 8, !tbaa !12
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  store double %54, ptr %56, align 8, !tbaa !23
  %57 = getelementptr inbounds i8, ptr %55, i64 16
  store double %54, ptr %57, align 8, !tbaa !23
  %58 = getelementptr inbounds i8, ptr %55, i64 24
  store double %54, ptr %58, align 8, !tbaa !23
  br label %59

59:                                               ; preds = %3, %2, %53, %52, %7
  %.0 = phi i32 [ 0, %7 ], [ 0, %53 ], [ -9, %52 ], [ -3, %2 ], [ -4, %3 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @basiclu_obj_free(ptr noundef) local_unnamed_addr #0

declare void @lu_initialize(i32 noundef, ptr noundef, ptr noundef) local_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 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 allocsize(0) }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { 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 = !{!"basiclu_object", !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, !10, i64 80, !11, i64 88}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 40}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 48}
!17 = !{!6, !7, i64 32}
!18 = !{!6, !7, i64 56}
!19 = !{!6, !7, i64 64}
!20 = !{!6, !7, i64 72}
!21 = !{!6, !10, i64 80}
!22 = !{!6, !11, i64 88}
!23 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass