; LLVM IR from ERGO-Code/HiGHS :: src/util (HighsMatrixUtils)

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

@.str.64 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [66 x i8], align 1

; 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: mustprogress uwtable
define dso_local noundef i32 @_Z22assessMatrixDimensionsRK15HighsLogOptionsibRKSt6vectorIiSaIiEES6_S6_RKS2_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1, i1 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #1 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  %24 = zext i1 %2 to i8
  store i8 %24, ptr %11, align 1, !tbaa !11
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  store i8 1, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = icmp sge i32 %25, 0
  %27 = zext i1 %26 to i8
  store i8 %27, ptr %17, align 1, !tbaa !11
  %28 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %29 = trunc i8 %28 to i1
  br i1 %29, label %33, label %30

30:                                               ; preds = %7
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %31, i32 noundef 5, ptr noundef @.str.64, i32 noundef %32)
  br label %33

33:                                               ; preds = %30, %7
  %34 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %38 = trunc i8 %37 to i1
  br label %39

39:                                               ; preds = %36, %33
  %40 = phi i1 [ false, %33 ], [ %38, %36 ]
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #4
  %44 = trunc i64 %43 to i32
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  %47 = icmp sge i32 %44, %46
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %18, align 1, !tbaa !11
  %49 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %50 = trunc i8 %49 to i1
  br i1 %50, label %58, label %51

51:                                               ; preds = %39
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #4
  %55 = trunc i64 %54 to i32
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %52, i32 noundef 5, ptr noundef @.str.65, i32 noundef %55, i32 noundef %57)
  br label %58

58:                                               ; preds = %51, %39
  %59 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  br label %64

64:                                               ; preds = %61, %58
  %65 = phi i1 [ false, %58 ], [ %63, %61 ]
  %66 = zext i1 %65 to i8
  store i8 %66, ptr %16, align 1, !tbaa !11
  %67 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %68 = trunc i8 %67 to i1
  br i1 %68, label %69, label %99

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #4
  %72 = trunc i64 %71 to i32
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  %75 = icmp sge i32 %72, %74
  %76 = zext i1 %75 to i8
  store i8 %76, ptr %19, align 1, !tbaa !11
  %77 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  br i1 %78, label %86, label %79

79:                                               ; preds = %69
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #4
  %83 = trunc i64 %82 to i32
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %80, i32 noundef 5, ptr noundef @.str.66, i32 noundef %83, i32 noundef %85)
  br label %86

86:                                               ; preds = %79, %69
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #4
  %89 = trunc i64 %88 to i32
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  %92 = icmp sge i32 %89, %91
  br i1 %92, label %93, label %96

93:                                               ; preds = %86
  %94 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %95 = trunc i8 %94 to i1
  br label %96

96:                                               ; preds = %93, %86
  %97 = phi i1 [ false, %86 ], [ %95, %93 ]
  %98 = zext i1 %97 to i8
  store i8 %98, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  br label %99

99:                                               ; preds = %96, %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %100 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %108

102:                                              ; preds = %99
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105) #4
  %107 = load i32, ptr %106, align 4, !tbaa !9
  br label %109

108:                                              ; preds = %99
  br label %109

109:                                              ; preds = %108, %102
  %110 = phi i32 [ %107, %102 ], [ 0, %108 ]
  store i32 %110, ptr %20, align 4, !tbaa !9
  %111 = load i32, ptr %20, align 4, !tbaa !9
  %112 = icmp sge i32 %111, 0
  br i1 %112, label %113, label %160

113:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #4
  %116 = trunc i64 %115 to i32
  %117 = load i32, ptr %20, align 4, !tbaa !9
  %118 = icmp sge i32 %116, %117
  %119 = zext i1 %118 to i8
  store i8 %119, ptr %21, align 1, !tbaa !11
  %120 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %121 = trunc i8 %120 to i1
  br i1 %121, label %128, label %122

122:                                              ; preds = %113
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #4
  %126 = trunc i64 %125 to i32
  %127 = load i32, ptr %20, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %123, i32 noundef 5, ptr noundef @.str.67, i32 noundef %126, i32 noundef %127)
  br label %128

128:                                              ; preds = %122, %113
  %129 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %134

131:                                              ; preds = %128
  %132 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %133 = trunc i8 %132 to i1
  br label %134

134:                                              ; preds = %131, %128
  %135 = phi i1 [ false, %128 ], [ %133, %131 ]
  %136 = zext i1 %135 to i8
  store i8 %136, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #4
  %139 = trunc i64 %138 to i32
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = icmp sge i32 %139, %140
  %142 = zext i1 %141 to i8
  store i8 %142, ptr %22, align 1, !tbaa !11
  %143 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %144 = trunc i8 %143 to i1
  br i1 %144, label %151, label %145

145:                                              ; preds = %134
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #4
  %149 = trunc i64 %148 to i32
  %150 = load i32, ptr %20, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %146, i32 noundef 5, ptr noundef @.str.68, i32 noundef %149, i32 noundef %150)
  br label %151

151:                                              ; preds = %145, %134
  %152 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %157

154:                                              ; preds = %151
  %155 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %156 = trunc i8 %155 to i1
  br label %157

157:                                              ; preds = %154, %151
  %158 = phi i1 [ false, %151 ], [ %156, %154 ]
  %159 = zext i1 %158 to i8
  store i8 %159, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  br label %163

160:                                              ; preds = %109
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = load i32, ptr %20, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %161, i32 noundef 5, ptr noundef @.str.69, i32 noundef %162)
  store i8 0, ptr %16, align 1, !tbaa !11
  br label %163

163:                                              ; preds = %160, %157
  %164 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %167

166:                                              ; preds = %163
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %168

167:                                              ; preds = %163
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %168

168:                                              ; preds = %167, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  %169 = load i32, ptr %8, align 4
  ret i32 %169
}

declare void @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


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

@.str.64 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_Z22assessMatrixDimensionsRK15HighsLogOptionsibRKSt6vectorIiSaIiEES6_S6_RKS2_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1, i1 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #0 {
  %8 = icmp sgt i32 %1, -1
  br i1 %8, label %10, label %9

9:                                                ; preds = %7
  tail call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 5, ptr noundef nonnull @.str.64, i32 noundef %1)
  br label %10

10:                                               ; preds = %9, %7
  %11 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %12 = trunc i64 %11 to i32
  %13 = add nsw i32 %1, 1
  %14 = icmp sgt i32 %12, %1
  br i1 %14, label %18, label %15

15:                                               ; preds = %10
  %16 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %17 = trunc i64 %16 to i32
  tail call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 5, ptr noundef nonnull @.str.65, i32 noundef %17, i32 noundef %13)
  br label %18

18:                                               ; preds = %15, %10
  %19 = and i1 %8, %14
  br i1 %2, label %20, label %31

20:                                               ; preds = %18
  %21 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %22 = trunc i64 %21 to i32
  %.not.not = icmp sgt i32 %22, %1
  br i1 %.not.not, label %26, label %23

23:                                               ; preds = %20
  %24 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %25 = trunc i64 %24 to i32
  tail call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 5, ptr noundef nonnull @.str.66, i32 noundef %25, i32 noundef %13)
  br label %26

26:                                               ; preds = %23, %20
  %27 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %28 = trunc i64 %27 to i32
  %29 = icmp sgt i32 %28, %1
  %30 = and i1 %19, %29
  br label %31

31:                                               ; preds = %26, %18
  %.047.in = phi i1 [ %30, %26 ], [ %19, %18 ]
  br i1 %14, label %32, label %.thread

32:                                               ; preds = %31
  %33 = sext i32 %1 to i64
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %33) #3
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, -1
  br i1 %36, label %.thread, label %.thread52

.thread:                                          ; preds = %31, %32
  %37 = phi i32 [ %35, %32 ], [ 0, %31 ]
  %38 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  %39 = trunc i64 %38 to i32
  %40 = icmp sle i32 %37, %39
  br i1 %40, label %44, label %41

41:                                               ; preds = %.thread
  %42 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  %43 = trunc i64 %42 to i32
  tail call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 5, ptr noundef nonnull @.str.67, i32 noundef %43, i32 noundef %37)
  br label %44

44:                                               ; preds = %41, %.thread
  %45 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %46 = trunc i64 %45 to i32
  %.not = icmp sgt i32 %37, %46
  br i1 %.not, label %.thread55, label %49

.thread55:                                        ; preds = %44
  %47 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %48 = trunc i64 %47 to i32
  tail call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 5, ptr noundef nonnull @.str.68, i32 noundef %48, i32 noundef %37)
  br label %51

.thread52:                                        ; preds = %32
  tail call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 5, ptr noundef nonnull @.str.69, i32 noundef %35)
  br label %51

49:                                               ; preds = %44
  %50 = and i1 %.047.in, %40
  %not. = xor i1 %50, true
  %spec.select = sext i1 %not. to i32
  br label %51

51:                                               ; preds = %49, %.thread55, %.thread52
  %52 = phi i32 [ -1, %.thread52 ], [ -1, %.thread55 ], [ %spec.select, %49 ]
  ret i32 %52
}

declare void @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass