; LLVM IR from ERGO-Code/HiGHS :: src/test (DevKkt)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.presolve::dev_kkt_check::KktConditionDetails" = type { i32, double, double, i32, i32 }
%"struct.presolve::dev_kkt_check::State" = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [39 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8presolve13dev_kkt_check27checkComplementarySlacknessERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %7, i32 0, i32 0
  store i32 3, ptr %8, align 8, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %9, i32 0, i32 3
  store i32 0, ptr %10, align 8, !tbaa !14
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %11, i32 0, i32 4
  store i32 0, ptr %12, align 4, !tbaa !15
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %13, i32 0, i32 1
  store double 0.000000e+00, ptr %14, align 8, !tbaa !16
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %15, i32 0, i32 2
  store double 0.000000e+00, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !18
  br label %17

17:                                               ; preds = %268, %2
  %18 = load i32, ptr %5, align 4, !tbaa !18
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !19
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %271

24:                                               ; preds = %17
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %25, i32 0, i32 14
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = load i32, ptr %5, align 4, !tbaa !18
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #6
  %31 = load i32, ptr %30, align 4, !tbaa !18
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %267

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !22
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %34, i32 0, i32 3
  %36 = load i32, ptr %35, align 8, !tbaa !14
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 8, !tbaa !14
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %38, i32 0, i32 10
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %41 = load i32, ptr %5, align 4, !tbaa !18
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42) #6
  %44 = load double, ptr %43, align 8, !tbaa !22
  %45 = fcmp ogt double %44, 0xFFF0000000000000
  br i1 %45, label %46, label %140

46:                                               ; preds = %33
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %47, i32 0, i32 16
  %49 = load ptr, ptr %48, align 8, !tbaa !24
  %50 = load i32, ptr %5, align 4, !tbaa !18
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #6
  %53 = load double, ptr %52, align 8, !tbaa !22
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %54, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = load i32, ptr %5, align 4, !tbaa !18
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #6
  %60 = load double, ptr %59, align 8, !tbaa !22
  %61 = fsub double %53, %60
  %62 = call double @llvm.fabs.f64(double %61)
  %63 = fcmp ogt double %62, 0x3E7AD7F29ABCAF48
  br i1 %63, label %64, label %140

64:                                               ; preds = %46
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %65, i32 0, i32 17
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = load i32, ptr %5, align 4, !tbaa !18
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #6
  %71 = load double, ptr %70, align 8, !tbaa !22
  %72 = call double @llvm.fabs.f64(double %71)
  %73 = fcmp ogt double %72, 0x3E7AD7F29ABCAF48
  br i1 %73, label %74, label %139

74:                                               ; preds = %64
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %75, i32 0, i32 16
  %77 = load ptr, ptr %76, align 8, !tbaa !24
  %78 = load i32, ptr %5, align 4, !tbaa !18
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %79) #6
  %81 = load double, ptr %80, align 8, !tbaa !22
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %82, i32 0, i32 11
  %84 = load ptr, ptr %83, align 8, !tbaa !26
  %85 = load i32, ptr %5, align 4, !tbaa !18
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #6
  %88 = load double, ptr %87, align 8, !tbaa !22
  %89 = fsub double %81, %88
  %90 = call double @llvm.fabs.f64(double %89)
  %91 = fcmp ogt double %90, 0x3E7AD7F29ABCAF48
  br i1 %91, label %92, label %139

92:                                               ; preds = %74
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.37)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @.str.38)
  %95 = load i32, ptr %5, align 4, !tbaa !18
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %94, i32 noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @.str.22)
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %98, i32 0, i32 10
  %100 = load ptr, ptr %99, align 8, !tbaa !23
  %101 = load i32, ptr %5, align 4, !tbaa !18
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #6
  %104 = load double, ptr %103, align 8, !tbaa !22
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %97, double noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.39)
  %107 = load i32, ptr %5, align 4, !tbaa !18
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %107)
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef @.str.22)
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %110, i32 0, i32 16
  %112 = load ptr, ptr %111, align 8, !tbaa !24
  %113 = load i32, ptr %5, align 4, !tbaa !18
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #6
  %116 = load double, ptr %115, align 8, !tbaa !22
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %109, double noundef %116)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @.str.26)
  %119 = load i32, ptr %5, align 4, !tbaa !18
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %119)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @.str.22)
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %122, i32 0, i32 17
  %124 = load ptr, ptr %123, align 8, !tbaa !25
  %125 = load i32, ptr %5, align 4, !tbaa !18
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #6
  %128 = load double, ptr %127, align 8, !tbaa !22
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %121, double noundef %128)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %131, i32 0, i32 17
  %133 = load ptr, ptr %132, align 8, !tbaa !25
  %134 = load i32, ptr %5, align 4, !tbaa !18
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #6
  %137 = load double, ptr %136, align 8, !tbaa !22
  %138 = call double @llvm.fabs.f64(double %137)
  store double %138, ptr %6, align 8, !tbaa !22
  br label %139

139:                                              ; preds = %92, %74, %64
  br label %140

140:                                              ; preds = %139, %46, %33
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %141, i32 0, i32 11
  %143 = load ptr, ptr %142, align 8, !tbaa !26
  %144 = load i32, ptr %5, align 4, !tbaa !18
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %145) #6
  %147 = load double, ptr %146, align 8, !tbaa !22
  %148 = fcmp olt double %147, 0x7FF0000000000000
  br i1 %148, label %149, label %242

149:                                              ; preds = %140
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %150, i32 0, i32 11
  %152 = load ptr, ptr %151, align 8, !tbaa !26
  %153 = load i32, ptr %5, align 4, !tbaa !18
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %154) #6
  %156 = load double, ptr %155, align 8, !tbaa !22
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %157, i32 0, i32 16
  %159 = load ptr, ptr %158, align 8, !tbaa !24
  %160 = load i32, ptr %5, align 4, !tbaa !18
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #6
  %163 = load double, ptr %162, align 8, !tbaa !22
  %164 = fsub double %156, %163
  %165 = call double @llvm.fabs.f64(double %164)
  %166 = fcmp ogt double %165, 0x3E7AD7F29ABCAF48
  br i1 %166, label %167, label %242

167:                                              ; preds = %149
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %168, i32 0, i32 17
  %170 = load ptr, ptr %169, align 8, !tbaa !25
  %171 = load i32, ptr %5, align 4, !tbaa !18
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %172) #6
  %174 = load double, ptr %173, align 8, !tbaa !22
  %175 = call double @llvm.fabs.f64(double %174)
  %176 = fcmp ogt double %175, 0x3E7AD7F29ABCAF48
  br i1 %176, label %177, label %241

177:                                              ; preds = %167
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %178, i32 0, i32 16
  %180 = load ptr, ptr %179, align 8, !tbaa !24
  %181 = load i32, ptr %5, align 4, !tbaa !18
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #6
  %184 = load double, ptr %183, align 8, !tbaa !22
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %185, i32 0, i32 10
  %187 = load ptr, ptr %186, align 8, !tbaa !23
  %188 = load i32, ptr %5, align 4, !tbaa !18
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #6
  %191 = load double, ptr %190, align 8, !tbaa !22
  %192 = fsub double %184, %191
  %193 = call double @llvm.fabs.f64(double %192)
  %194 = fcmp ogt double %193, 0x3E7AD7F29ABCAF48
  br i1 %194, label %195, label %241

195:                                              ; preds = %177
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.40)
  %197 = load i32, ptr %5, align 4, !tbaa !18
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %196, i32 noundef %197)
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef @.str.22)
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %200, i32 0, i32 16
  %202 = load ptr, ptr %201, align 8, !tbaa !24
  %203 = load i32, ptr %5, align 4, !tbaa !18
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #6
  %206 = load double, ptr %205, align 8, !tbaa !22
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %199, double noundef %206)
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef @.str.41)
  %209 = load i32, ptr %5, align 4, !tbaa !18
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %208, i32 noundef %209)
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef @.str.22)
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %212, i32 0, i32 11
  %214 = load ptr, ptr %213, align 8, !tbaa !26
  %215 = load i32, ptr %5, align 4, !tbaa !18
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #6
  %218 = load double, ptr %217, align 8, !tbaa !22
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %211, double noundef %218)
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef @.str.26)
  %221 = load i32, ptr %5, align 4, !tbaa !18
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %220, i32 noundef %221)
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef @.str.22)
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %224, i32 0, i32 17
  %226 = load ptr, ptr %225, align 8, !tbaa !25
  %227 = load i32, ptr %5, align 4, !tbaa !18
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %228) #6
  %230 = load double, ptr %229, align 8, !tbaa !22
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %223, double noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %233 = load ptr, ptr %3, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %233, i32 0, i32 17
  %235 = load ptr, ptr %234, align 8, !tbaa !25
  %236 = load i32, ptr %5, align 4, !tbaa !18
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %237) #6
  %239 = load double, ptr %238, align 8, !tbaa !22
  %240 = call double @llvm.fabs.f64(double %239)
  store double %240, ptr %6, align 8, !tbaa !22
  br label %241

241:                                              ; preds = %195, %177, %167
  br label %242

242:                                              ; preds = %241, %149, %140
  %243 = load double, ptr %6, align 8, !tbaa !22
  %244 = fcmp ogt double %243, 0.000000e+00
  br i1 %244, label %245, label %266

245:                                              ; preds = %242
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %246, i32 0, i32 4
  %248 = load i32, ptr %247, align 4, !tbaa !15
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %247, align 4, !tbaa !15
  %250 = load double, ptr %6, align 8, !tbaa !22
  %251 = load double, ptr %6, align 8, !tbaa !22
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %252, i32 0, i32 2
  %254 = load double, ptr %253, align 8, !tbaa !17
  %255 = call double @llvm.fmuladd.f64(double %250, double %251, double %254)
  store double %255, ptr %253, align 8, !tbaa !17
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %256, i32 0, i32 1
  %258 = load double, ptr %257, align 8, !tbaa !16
  %259 = load double, ptr %6, align 8, !tbaa !22
  %260 = fcmp olt double %258, %259
  br i1 %260, label %261, label %265

261:                                              ; preds = %245
  %262 = load double, ptr %6, align 8, !tbaa !22
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %263, i32 0, i32 1
  store double %262, ptr %264, align 8, !tbaa !16
  br label %265

265:                                              ; preds = %261, %245
  br label %266

266:                                              ; preds = %265, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %267

267:                                              ; preds = %266, %24
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %5, align 4, !tbaa !18
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %5, align 4, !tbaa !18
  br label %17, !llvm.loop !27

271:                                              ; preds = %23
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %272, i32 0, i32 4
  %274 = load i32, ptr %273, align 4, !tbaa !15
  %275 = icmp eq i32 %274, 0
  br i1 %275, label %276, label %278

276:                                              ; preds = %271
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.42)
  br label %280

278:                                              ; preds = %271
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.43)
  br label %280

280:                                              ; preds = %278, %276
  ret void
}

attributes #0 = { 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 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 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"_ZTSN8presolve13dev_kkt_check19KktConditionDetailsE", !11, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 28}
!11 = !{!"_ZTSN8presolve13dev_kkt_check12KktConditionE", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !13, i64 24}
!15 = !{!10, !13, i64 28}
!16 = !{!10, !12, i64 8}
!17 = !{!10, !12, i64 16}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !13, i64 0}
!20 = !{!"_ZTSN8presolve13dev_kkt_check5StateE", !13, i64 0, !13, i64 4, !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}
!21 = !{!20, !6, i64 104}
!22 = !{!12, !12, i64 0}
!23 = !{!20, !6, i64 72}
!24 = !{!20, !6, i64 120}
!25 = !{!20, !6, i64 128}
!26 = !{!20, !6, i64 80}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [39 x i8], align 1

; 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 #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8presolve13dev_kkt_check27checkComplementarySlacknessERKNS0_5StateERNS0_19KktConditionDetailsE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(168) %0, ptr nocapture noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #3 {
  store i32 3, ptr %1, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 24
  %4 = getelementptr inbounds i8, ptr %1, i64 28
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  %7 = load i32, ptr %0, align 8, !tbaa !12
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 104
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %0, i64 120
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  br label %15

._crit_edge:                                      ; preds = %150
  %.pre = load i32, ptr %4, align 4, !tbaa !15
  %14 = icmp eq i32 %.pre, 0
  %spec.select = select i1 %14, ptr @.str.42, ptr @.str.43
  br label %._crit_edge.thread

15:                                               ; preds = %.lr.ph, %150
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %150 ]
  %16 = load ptr, ptr %9, align 8, !tbaa !16
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv) #6
  %18 = load i32, ptr %17, align 4, !tbaa !17
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %150, label %19

19:                                               ; preds = %15
  %20 = load i32, ptr %3, align 8, !tbaa !18
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %3, align 8, !tbaa !18
  %22 = load ptr, ptr %10, align 8, !tbaa !19
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #6
  %24 = load double, ptr %23, align 8, !tbaa !20
  %25 = fcmp ueq double %24, 0xFFF0000000000000
  br i1 %25, label %81, label %26

26:                                               ; preds = %19
  %27 = load ptr, ptr %11, align 8, !tbaa !21
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %indvars.iv) #6
  %29 = load double, ptr %28, align 8, !tbaa !20
  %30 = load ptr, ptr %10, align 8, !tbaa !19
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv) #6
  %32 = load double, ptr %31, align 8, !tbaa !20
  %33 = fsub double %29, %32
  %34 = tail call double @llvm.fabs.f64(double %33)
  %35 = fcmp ogt double %34, 0x3E7AD7F29ABCAF48
  br i1 %35, label %36, label %81

36:                                               ; preds = %26
  %37 = load ptr, ptr %12, align 8, !tbaa !22
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv) #6
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = tail call double @llvm.fabs.f64(double %39)
  %41 = fcmp ogt double %40, 0x3E7AD7F29ABCAF48
  br i1 %41, label %42, label %81

42:                                               ; preds = %36
  %43 = load ptr, ptr %11, align 8, !tbaa !21
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %indvars.iv) #6
  %45 = load double, ptr %44, align 8, !tbaa !20
  %46 = load ptr, ptr %13, align 8, !tbaa !23
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %indvars.iv) #6
  %48 = load double, ptr %47, align 8, !tbaa !20
  %49 = fsub double %45, %48
  %50 = tail call double @llvm.fabs.f64(double %49)
  %51 = fcmp ogt double %50, 0x3E7AD7F29ABCAF48
  br i1 %51, label %52, label %81

52:                                               ; preds = %42
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.37)
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @.str.38)
  %55 = trunc nuw nsw i64 %indvars.iv to i32
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %54, i32 noundef %55)
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.22)
  %58 = load ptr, ptr %10, align 8, !tbaa !19
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %indvars.iv) #6
  %60 = load double, ptr %59, align 8, !tbaa !20
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %60)
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.39)
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %62, i32 noundef %55)
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.22)
  %65 = load ptr, ptr %11, align 8, !tbaa !21
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %indvars.iv) #6
  %67 = load double, ptr %66, align 8, !tbaa !20
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %64, double noundef %67)
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.26)
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %55)
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.22)
  %72 = load ptr, ptr %12, align 8, !tbaa !22
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %indvars.iv) #6
  %74 = load double, ptr %73, align 8, !tbaa !20
  %75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %71, double noundef %74)
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %77 = load ptr, ptr %12, align 8, !tbaa !22
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv) #6
  %79 = load double, ptr %78, align 8, !tbaa !20
  %80 = tail call double @llvm.fabs.f64(double %79)
  br label %81

81:                                               ; preds = %36, %42, %52, %26, %19
  %.0 = phi double [ %80, %52 ], [ 0.000000e+00, %42 ], [ 0.000000e+00, %36 ], [ 0.000000e+00, %26 ], [ 0.000000e+00, %19 ]
  %82 = load ptr, ptr %13, align 8, !tbaa !23
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %indvars.iv) #6
  %84 = load double, ptr %83, align 8, !tbaa !20
  %85 = fcmp ueq double %84, 0x7FF0000000000000
  br i1 %85, label %140, label %86

86:                                               ; preds = %81
  %87 = load ptr, ptr %13, align 8, !tbaa !23
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %indvars.iv) #6
  %89 = load double, ptr %88, align 8, !tbaa !20
  %90 = load ptr, ptr %11, align 8, !tbaa !21
  %91 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %indvars.iv) #6
  %92 = load double, ptr %91, align 8, !tbaa !20
  %93 = fsub double %89, %92
  %94 = tail call double @llvm.fabs.f64(double %93)
  %95 = fcmp ogt double %94, 0x3E7AD7F29ABCAF48
  br i1 %95, label %96, label %140

96:                                               ; preds = %86
  %97 = load ptr, ptr %12, align 8, !tbaa !22
  %98 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %indvars.iv) #6
  %99 = load double, ptr %98, align 8, !tbaa !20
  %100 = tail call double @llvm.fabs.f64(double %99)
  %101 = fcmp ogt double %100, 0x3E7AD7F29ABCAF48
  br i1 %101, label %102, label %140

102:                                              ; preds = %96
  %103 = load ptr, ptr %11, align 8, !tbaa !21
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %indvars.iv) #6
  %105 = load double, ptr %104, align 8, !tbaa !20
  %106 = load ptr, ptr %10, align 8, !tbaa !19
  %107 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %indvars.iv) #6
  %108 = load double, ptr %107, align 8, !tbaa !20
  %109 = fsub double %105, %108
  %110 = tail call double @llvm.fabs.f64(double %109)
  %111 = fcmp ogt double %110, 0x3E7AD7F29ABCAF48
  br i1 %111, label %112, label %140

112:                                              ; preds = %102
  %113 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.40)
  %114 = trunc nuw nsw i64 %indvars.iv to i32
  %115 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %113, i32 noundef %114)
  %116 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @.str.22)
  %117 = load ptr, ptr %11, align 8, !tbaa !21
  %118 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %indvars.iv) #6
  %119 = load double, ptr %118, align 8, !tbaa !20
  %120 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %116, double noundef %119)
  %121 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull @.str.41)
  %122 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %121, i32 noundef %114)
  %123 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str.22)
  %124 = load ptr, ptr %13, align 8, !tbaa !23
  %125 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %indvars.iv) #6
  %126 = load double, ptr %125, align 8, !tbaa !20
  %127 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %123, double noundef %126)
  %128 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.26)
  %129 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %128, i32 noundef %114)
  %130 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @.str.22)
  %131 = load ptr, ptr %12, align 8, !tbaa !22
  %132 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %indvars.iv) #6
  %133 = load double, ptr %132, align 8, !tbaa !20
  %134 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %130, double noundef %133)
  %135 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %136 = load ptr, ptr %12, align 8, !tbaa !22
  %137 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %indvars.iv) #6
  %138 = load double, ptr %137, align 8, !tbaa !20
  %139 = tail call double @llvm.fabs.f64(double %138)
  br label %140

140:                                              ; preds = %96, %102, %112, %86, %81
  %.1 = phi double [ %139, %112 ], [ %.0, %102 ], [ %.0, %96 ], [ %.0, %86 ], [ %.0, %81 ]
  %141 = fcmp ogt double %.1, 0.000000e+00
  br i1 %141, label %142, label %150

142:                                              ; preds = %140
  %143 = load i32, ptr %4, align 4, !tbaa !15
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %4, align 4, !tbaa !15
  %145 = load double, ptr %6, align 8, !tbaa !24
  %146 = tail call double @llvm.fmuladd.f64(double %.1, double %.1, double %145)
  store double %146, ptr %6, align 8, !tbaa !24
  %147 = load double, ptr %5, align 8, !tbaa !25
  %148 = fcmp olt double %147, %.1
  br i1 %148, label %149, label %150

149:                                              ; preds = %142
  store double %.1, ptr %5, align 8, !tbaa !25
  br label %150

150:                                              ; preds = %140, %149, %142, %15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %151 = load i32, ptr %0, align 8, !tbaa !12
  %152 = sext i32 %151 to i64
  %153 = icmp slt i64 %indvars.iv.next, %152
  br i1 %153, label %15, label %._crit_edge, !llvm.loop !26

._crit_edge.thread:                               ; preds = %._crit_edge, %2
  %.str.43.sink = phi ptr [ @.str.42, %2 ], [ %spec.select, %._crit_edge ]
  %154 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.43.sink)
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { inlinehint 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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!"_ZTSN8presolve13dev_kkt_check19KktConditionDetailsE", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 28}
!7 = !{!"_ZTSN8presolve13dev_kkt_check12KktConditionE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTSN8presolve13dev_kkt_check5StateE", !11, i64 0, !11, i64 4, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!6, !11, i64 28}
!16 = !{!13, !14, i64 104}
!17 = !{!11, !11, i64 0}
!18 = !{!6, !11, i64 24}
!19 = !{!13, !14, i64 72}
!20 = !{!10, !10, i64 0}
!21 = !{!13, !14, i64 120}
!22 = !{!13, !14, i64 128}
!23 = !{!13, !14, i64 80}
!24 = !{!6, !10, i64 16}
!25 = !{!6, !10, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass