; LLVM IR from ERGO-Code/HiGHS :: src/lp_data (HighsSolution)

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

; 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 zeroext i1 @_Z22getVariableKktFailuresddddddPK16HighsBasisStatus12HighsVarTypeRdS3_S3_S3_(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, ptr noundef %6, i8 noundef zeroext %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #1 {
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i8, align 1
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i8, align 1
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  store double %0, ptr %13, align 8, !tbaa !5
  store double %1, ptr %14, align 8, !tbaa !5
  store double %2, ptr %15, align 8, !tbaa !5
  store double %3, ptr %16, align 8, !tbaa !5
  store double %4, ptr %17, align 8, !tbaa !5
  store double %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !9
  store i8 %7, ptr %20, align 1, !tbaa !11
  store ptr %8, ptr %21, align 8, !tbaa !9
  store ptr %9, ptr %22, align 8, !tbaa !9
  store ptr %10, ptr %23, align 8, !tbaa !9
  store ptr %11, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #4
  store i8 1, ptr %25, align 1, !tbaa !13
  %33 = load ptr, ptr %21, align 8, !tbaa !9
  store double 0.000000e+00, ptr %33, align 8, !tbaa !5
  %34 = load ptr, ptr %22, align 8, !tbaa !9
  store double 0.000000e+00, ptr %34, align 8, !tbaa !5
  %35 = load double, ptr %17, align 8, !tbaa !5
  %36 = load double, ptr %15, align 8, !tbaa !5
  %37 = load double, ptr %13, align 8, !tbaa !5
  %38 = fsub double %36, %37
  %39 = fcmp olt double %35, %38
  br i1 %39, label %40, label %52

40:                                               ; preds = %12
  %41 = load double, ptr %15, align 8, !tbaa !5
  %42 = load double, ptr %17, align 8, !tbaa !5
  %43 = fsub double %41, %42
  %44 = load ptr, ptr %21, align 8, !tbaa !9
  store double %43, ptr %44, align 8, !tbaa !5
  %45 = load ptr, ptr %21, align 8, !tbaa !9
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = load double, ptr %15, align 8, !tbaa !5
  %48 = call double @llvm.fabs.f64(double %47)
  %49 = fadd double 1.000000e+00, %48
  %50 = fdiv double %46, %49
  %51 = load ptr, ptr %22, align 8, !tbaa !9
  store double %50, ptr %51, align 8, !tbaa !5
  br label %71

52:                                               ; preds = %12
  %53 = load double, ptr %17, align 8, !tbaa !5
  %54 = load double, ptr %16, align 8, !tbaa !5
  %55 = load double, ptr %13, align 8, !tbaa !5
  %56 = fadd double %54, %55
  %57 = fcmp ogt double %53, %56
  br i1 %57, label %58, label %70

58:                                               ; preds = %52
  %59 = load double, ptr %17, align 8, !tbaa !5
  %60 = load double, ptr %16, align 8, !tbaa !5
  %61 = fsub double %59, %60
  %62 = load ptr, ptr %21, align 8, !tbaa !9
  store double %61, ptr %62, align 8, !tbaa !5
  %63 = load ptr, ptr %21, align 8, !tbaa !9
  %64 = load double, ptr %63, align 8, !tbaa !5
  %65 = load double, ptr %16, align 8, !tbaa !5
  %66 = call double @llvm.fabs.f64(double %65)
  %67 = fadd double 1.000000e+00, %66
  %68 = fdiv double %64, %67
  %69 = load ptr, ptr %22, align 8, !tbaa !9
  store double %68, ptr %69, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %58, %52
  br label %71

71:                                               ; preds = %70, %40
  %72 = load ptr, ptr %21, align 8, !tbaa !9
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fcmp ogt double %73, 0.000000e+00
  br i1 %74, label %75, label %89

75:                                               ; preds = %71
  %76 = load i8, ptr %20, align 1, !tbaa !11
  %77 = icmp eq i8 %76, 2
  br i1 %77, label %81, label %78

78:                                               ; preds = %75
  %79 = load i8, ptr %20, align 1, !tbaa !11
  %80 = icmp eq i8 %79, 3
  br i1 %80, label %81, label %89

81:                                               ; preds = %78, %75
  %82 = load double, ptr %17, align 8, !tbaa !5
  %83 = call double @llvm.fabs.f64(double %82)
  %84 = load double, ptr %13, align 8, !tbaa !5
  %85 = fcmp olt double %83, %84
  br i1 %85, label %86, label %89

86:                                               ; preds = %81
  %87 = load ptr, ptr %21, align 8, !tbaa !9
  store double 0.000000e+00, ptr %87, align 8, !tbaa !5
  %88 = load ptr, ptr %22, align 8, !tbaa !9
  store double 0.000000e+00, ptr %88, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %86, %81, %78, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %90 = load double, ptr %15, align 8, !tbaa !5
  %91 = load double, ptr %17, align 8, !tbaa !5
  %92 = fsub double %90, %91
  %93 = call double @llvm.fabs.f64(double %92)
  store double %93, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %94 = load double, ptr %17, align 8, !tbaa !5
  %95 = load double, ptr %16, align 8, !tbaa !5
  %96 = fsub double %94, %95
  %97 = call double @llvm.fabs.f64(double %96)
  store double %97, ptr %27, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = load ptr, ptr %24, align 8, !tbaa !9
  store double %99, ptr %100, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #4
  %101 = load ptr, ptr %24, align 8, !tbaa !9
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = load double, ptr %13, align 8, !tbaa !5
  %104 = fcmp ole double %102, %103
  %105 = zext i1 %104 to i8
  store i8 %105, ptr %28, align 1, !tbaa !13
  %106 = load ptr, ptr %19, align 8, !tbaa !9
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %167

108:                                              ; preds = %89
  %109 = load ptr, ptr %19, align 8, !tbaa !9
  %110 = load i8, ptr %109, align 1, !tbaa !15
  %111 = icmp eq i8 %110, 1
  br i1 %111, label %112, label %113

112:                                              ; preds = %108
  store i8 0, ptr %28, align 1, !tbaa !13
  br label %113

113:                                              ; preds = %112, %108
  %114 = load ptr, ptr %19, align 8, !tbaa !9
  %115 = load i8, ptr %114, align 1, !tbaa !15
  %116 = icmp eq i8 %115, 0
  br i1 %116, label %117, label %139

117:                                              ; preds = %113
  %118 = load double, ptr %15, align 8, !tbaa !5
  %119 = call double @llvm.fabs.f64(double %118)
  %120 = load double, ptr %13, align 8, !tbaa !5
  %121 = fdiv double %119, %120
  %122 = fcmp olt double %121, 0x3C9CD2B297D889BC
  br i1 %122, label %123, label %138

123:                                              ; preds = %117
  %124 = load double, ptr %17, align 8, !tbaa !5
  %125 = load double, ptr %15, align 8, !tbaa !5
  %126 = load double, ptr %13, align 8, !tbaa !5
  %127 = fsub double %125, %126
  %128 = fcmp oge double %124, %127
  br i1 %128, label %129, label %135

129:                                              ; preds = %123
  %130 = load double, ptr %17, align 8, !tbaa !5
  %131 = load double, ptr %15, align 8, !tbaa !5
  %132 = load double, ptr %13, align 8, !tbaa !5
  %133 = fadd double %131, %132
  %134 = fcmp ole double %130, %133
  br label %135

135:                                              ; preds = %129, %123
  %136 = phi i1 [ false, %123 ], [ %134, %129 ]
  %137 = zext i1 %136 to i8
  store i8 %137, ptr %25, align 1, !tbaa !13
  br label %138

138:                                              ; preds = %135, %117
  br label %166

139:                                              ; preds = %113
  %140 = load ptr, ptr %19, align 8, !tbaa !9
  %141 = load i8, ptr %140, align 1, !tbaa !15
  %142 = icmp eq i8 %141, 2
  br i1 %142, label %143, label %165

143:                                              ; preds = %139
  %144 = load double, ptr %16, align 8, !tbaa !5
  %145 = call double @llvm.fabs.f64(double %144)
  %146 = load double, ptr %13, align 8, !tbaa !5
  %147 = fdiv double %145, %146
  %148 = fcmp olt double %147, 0x3C9CD2B297D889BC
  br i1 %148, label %149, label %164

149:                                              ; preds = %143
  %150 = load double, ptr %17, align 8, !tbaa !5
  %151 = load double, ptr %16, align 8, !tbaa !5
  %152 = load double, ptr %13, align 8, !tbaa !5
  %153 = fsub double %151, %152
  %154 = fcmp oge double %150, %153
  br i1 %154, label %155, label %161

155:                                              ; preds = %149
  %156 = load double, ptr %17, align 8, !tbaa !5
  %157 = load double, ptr %16, align 8, !tbaa !5
  %158 = load double, ptr %13, align 8, !tbaa !5
  %159 = fadd double %157, %158
  %160 = fcmp ole double %156, %159
  br label %161

161:                                              ; preds = %155, %149
  %162 = phi i1 [ false, %149 ], [ %160, %155 ]
  %163 = zext i1 %162 to i8
  store i8 %163, ptr %25, align 1, !tbaa !13
  br label %164

164:                                              ; preds = %161, %143
  br label %165

165:                                              ; preds = %164, %139
  br label %166

166:                                              ; preds = %165, %138
  br label %167

167:                                              ; preds = %166, %89
  %168 = load i8, ptr %28, align 1, !tbaa !13, !range !17, !noundef !18
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %196

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %171 = load double, ptr %15, align 8, !tbaa !5
  %172 = load double, ptr %16, align 8, !tbaa !5
  %173 = fadd double %171, %172
  %174 = fmul double %173, 5.000000e-01
  store double %174, ptr %29, align 8, !tbaa !5
  %175 = load double, ptr %15, align 8, !tbaa !5
  %176 = load double, ptr %16, align 8, !tbaa !5
  %177 = fcmp olt double %175, %176
  br i1 %177, label %178, label %193

178:                                              ; preds = %170
  %179 = load double, ptr %17, align 8, !tbaa !5
  %180 = load double, ptr %29, align 8, !tbaa !5
  %181 = fcmp olt double %179, %180
  br i1 %181, label %182, label %188

182:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %183 = load double, ptr %18, align 8, !tbaa !5
  %184 = fneg double %183
  store double %184, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  store double 0.000000e+00, ptr %31, align 8, !tbaa !5
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %186 = load double, ptr %185, align 8, !tbaa !5
  %187 = load ptr, ptr %23, align 8, !tbaa !9
  store double %186, ptr %187, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %192

188:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store double 0.000000e+00, ptr %32, align 8, !tbaa !5
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %190 = load double, ptr %189, align 8, !tbaa !5
  %191 = load ptr, ptr %23, align 8, !tbaa !9
  store double %190, ptr %191, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  br label %192

192:                                              ; preds = %188, %182
  br label %195

193:                                              ; preds = %170
  %194 = load ptr, ptr %23, align 8, !tbaa !9
  store double 0.000000e+00, ptr %194, align 8, !tbaa !5
  br label %195

195:                                              ; preds = %193, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %200

196:                                              ; preds = %167
  %197 = load double, ptr %18, align 8, !tbaa !5
  %198 = call double @llvm.fabs.f64(double %197)
  %199 = load ptr, ptr %23, align 8, !tbaa !9
  store double %198, ptr %199, align 8, !tbaa !5
  br label %200

200:                                              ; preds = %196, %195
  %201 = load i8, ptr %25, align 1, !tbaa !13, !range !17, !noundef !18
  %202 = trunc i8 %201 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #4
  ret i1 %202
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS12HighsVarType", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}


; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z22getVariableKktFailuresddddddPK16HighsBasisStatus12HighsVarTypeRdS3_S3_S3_(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, ptr noundef readonly %6, i8 noundef zeroext %7, ptr nocapture noundef nonnull align 8 dereferenceable(8) %8, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %9, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %10, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %11) local_unnamed_addr #1 {
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store double %5, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  %19 = fsub double %2, %0
  %20 = fcmp ogt double %19, %4
  br i1 %20, label %21, label %23

21:                                               ; preds = %12
  %22 = fsub double %2, %4
  br label %.sink.split

23:                                               ; preds = %12
  %24 = fadd double %0, %3
  %25 = fcmp olt double %24, %4
  br i1 %25, label %26, label %31

26:                                               ; preds = %23
  %27 = fsub double %4, %3
  br label %.sink.split

.sink.split:                                      ; preds = %21, %26
  %.sink = phi double [ %27, %26 ], [ %22, %21 ]
  %.sink79 = phi double [ %3, %26 ], [ %2, %21 ]
  store double %.sink, ptr %8, align 8, !tbaa !5
  %28 = tail call double @llvm.fabs.f64(double %.sink79)
  %29 = fadd double %28, 1.000000e+00
  %30 = fdiv double %.sink, %29
  store double %30, ptr %9, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %.sink.split, %23
  %32 = load double, ptr %8, align 8, !tbaa !5
  %33 = fcmp ogt double %32, 0.000000e+00
  %34 = and i8 %7, -2
  %or.cond = icmp eq i8 %34, 2
  %or.cond71 = and i1 %or.cond, %33
  %35 = tail call double @llvm.fabs.f64(double %4)
  %36 = fcmp olt double %35, %0
  %or.cond73 = and i1 %36, %or.cond71
  br i1 %or.cond73, label %37, label %38

37:                                               ; preds = %31
  store double 0.000000e+00, ptr %8, align 8, !tbaa !5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %37, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %39 = fsub double %2, %4
  %40 = tail call double @llvm.fabs.f64(double %39)
  store double %40, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %41 = fsub double %4, %3
  %42 = tail call double @llvm.fabs.f64(double %41)
  store double %42, ptr %15, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %44 = load double, ptr %43, align 8, !tbaa !5
  store double %44, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  %45 = fcmp ole double %44, %0
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %68, label %46

46:                                               ; preds = %38
  %47 = load i8, ptr %6, align 1, !tbaa !9
  %48 = icmp ne i8 %47, 1
  %spec.select = select i1 %48, i1 %45, i1 false
  switch i8 %47, label %68 [
    i8 0, label %49
    i8 2, label %58
  ]

49:                                               ; preds = %46
  %50 = call double @llvm.fabs.f64(double %2)
  %51 = fdiv double %50, %0
  %52 = fcmp olt double %51, 0x3C9CD2B297D889BC
  br i1 %52, label %53, label %68

53:                                               ; preds = %49
  %54 = fcmp ole double %19, %4
  %55 = fadd double %0, %2
  %56 = fcmp oge double %55, %4
  %57 = and i1 %54, %56
  br i1 %45, label %69, label %83

58:                                               ; preds = %46
  %59 = call double @llvm.fabs.f64(double %3)
  %60 = fdiv double %59, %0
  %61 = fcmp olt double %60, 0x3C9CD2B297D889BC
  br i1 %61, label %62, label %68

62:                                               ; preds = %58
  %63 = fsub double %3, %0
  %64 = fcmp ole double %63, %4
  %65 = fadd double %0, %3
  %66 = fcmp oge double %65, %4
  %67 = and i1 %64, %66
  br i1 %45, label %69, label %83

68:                                               ; preds = %46, %49, %58, %38
  %.1 = phi i1 [ %spec.select, %49 ], [ %spec.select, %58 ], [ %45, %38 ], [ %spec.select, %46 ]
  br i1 %.1, label %69, label %83

69:                                               ; preds = %62, %53, %68
  %.076 = phi i1 [ %57, %53 ], [ true, %68 ], [ %67, %62 ]
  %70 = fcmp olt double %2, %3
  br i1 %70, label %71, label %82

71:                                               ; preds = %69
  %72 = fadd double %2, %3
  %73 = fmul double %72, 5.000000e-01
  %74 = fcmp ogt double %73, %4
  br i1 %74, label %75, label %79

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %76 = fneg double %5
  store double %76, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  store double 0.000000e+00, ptr %17, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %78 = load double, ptr %77, align 8, !tbaa !5
  store double %78, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %85

79:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %81 = load double, ptr %80, align 8, !tbaa !5
  store double %81, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %85

82:                                               ; preds = %69
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  br label %85

83:                                               ; preds = %62, %53, %68
  %.075 = phi i1 [ %57, %53 ], [ true, %68 ], [ %67, %62 ]
  %84 = call double @llvm.fabs.f64(double %5)
  store double %84, ptr %10, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %82, %79, %75, %83
  %.074 = phi i1 [ %.076, %82 ], [ %.076, %79 ], [ %.076, %75 ], [ %.075, %83 ]
  ret i1 %.074
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass