; LLVM IR from ERGO-Code/HiGHS :: src/presolve (HighsPostsolveStack)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.presolve::HighsPostsolveStack::DuplicateColumn" = type { double, double, double, double, double, i32, i32, i8, i8 }

@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [2 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z13fractionalityIdET_S0_PS0_(double noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8presolve19HighsPostsolveStack15DuplicateColumn7okMergeEd(ptr noundef nonnull align 8 dereferenceable(56) %0, double noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %24 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %25 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 0
  %26 = load double, ptr %25, align 8, !tbaa !11
  store double %26, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %27 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 7
  %28 = load i8, ptr %27, align 8, !tbaa !15, !range !16, !noundef !17
  %29 = trunc i8 %28 to i1
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %6, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %31 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 8
  %32 = load i8, ptr %31, align 1, !tbaa !19, !range !16, !noundef !17
  %33 = trunc i8 %32 to i1
  %34 = zext i1 %33 to i8
  store i8 %34, ptr %7, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %35 = load i8, ptr %6, align 1, !tbaa !18, !range !16, !noundef !17
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %43

37:                                               ; preds = %2
  %38 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 1
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = load double, ptr %4, align 8, !tbaa !9
  %41 = fsub double %39, %40
  %42 = call double @llvm.ceil.f64(double %41)
  br label %46

43:                                               ; preds = %2
  %44 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 1
  %45 = load double, ptr %44, align 8, !tbaa !20
  br label %46

46:                                               ; preds = %43, %37
  %47 = phi double [ %42, %37 ], [ %45, %43 ]
  store double %47, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %48 = load i8, ptr %6, align 1, !tbaa !18, !range !16, !noundef !17
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %56

50:                                               ; preds = %46
  %51 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 2
  %52 = load double, ptr %51, align 8, !tbaa !21
  %53 = load double, ptr %4, align 8, !tbaa !9
  %54 = fadd double %52, %53
  %55 = call double @llvm.floor.f64(double %54)
  br label %59

56:                                               ; preds = %46
  %57 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 2
  %58 = load double, ptr %57, align 8, !tbaa !21
  br label %59

59:                                               ; preds = %56, %50
  %60 = phi double [ %55, %50 ], [ %58, %56 ]
  store double %60, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %61 = load i8, ptr %7, align 1, !tbaa !18, !range !16, !noundef !17
  %62 = trunc i8 %61 to i1
  br i1 %62, label %63, label %69

63:                                               ; preds = %59
  %64 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 3
  %65 = load double, ptr %64, align 8, !tbaa !22
  %66 = load double, ptr %4, align 8, !tbaa !9
  %67 = fsub double %65, %66
  %68 = call double @llvm.ceil.f64(double %67)
  br label %72

69:                                               ; preds = %59
  %70 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 3
  %71 = load double, ptr %70, align 8, !tbaa !22
  br label %72

72:                                               ; preds = %69, %63
  %73 = phi double [ %68, %63 ], [ %71, %69 ]
  store double %73, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %74 = load i8, ptr %7, align 1, !tbaa !18, !range !16, !noundef !17
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %82

76:                                               ; preds = %72
  %77 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 4
  %78 = load double, ptr %77, align 8, !tbaa !23
  %79 = load double, ptr %4, align 8, !tbaa !9
  %80 = fadd double %78, %79
  %81 = call double @llvm.floor.f64(double %80)
  br label %85

82:                                               ; preds = %72
  %83 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::DuplicateColumn", ptr %24, i32 0, i32 4
  %84 = load double, ptr %83, align 8, !tbaa !23
  br label %85

85:                                               ; preds = %82, %76
  %86 = phi double [ %81, %76 ], [ %84, %82 ]
  store double %86, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %87 = load double, ptr %9, align 8, !tbaa !9
  %88 = load double, ptr %8, align 8, !tbaa !9
  %89 = fsub double %87, %88
  store double %89, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %90 = load double, ptr %11, align 8, !tbaa !9
  %91 = load double, ptr %10, align 8, !tbaa !9
  %92 = fsub double %90, %91
  store double %92, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.63, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %93 unwind label %99

93:                                               ; preds = %85
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  store i8 1, ptr %18, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  store i8 0, ptr %19, align 1, !tbaa !18
  %94 = load double, ptr %5, align 8, !tbaa !9
  %95 = fcmp oeq double %94, 0.000000e+00
  br i1 %95, label %96, label %107

96:                                               ; preds = %93
  %97 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.9)
          to label %98 unwind label %103

98:                                               ; preds = %96
  store i8 0, ptr %18, align 1, !tbaa !18
  br label %107

99:                                               ; preds = %85
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %16, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %17, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %189

103:                                              ; preds = %96
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %16, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %17, align 4
  br label %188

107:                                              ; preds = %98, %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %108 = load double, ptr %5, align 8, !tbaa !9
  %109 = call double @llvm.fabs.f64(double %108)
  store double %109, ptr %20, align 8, !tbaa !9
  %110 = load i8, ptr %6, align 1, !tbaa !18, !range !16, !noundef !17
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %166

112:                                              ; preds = %107
  %113 = load i8, ptr %7, align 1, !tbaa !18, !range !16, !noundef !17
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %144

115:                                              ; preds = %112
  %116 = load double, ptr %5, align 8, !tbaa !9
  %117 = invoke noundef double @_Z13fractionalityIdET_S0_PS0_(double noundef %116, ptr noundef null)
          to label %118 unwind label %124

118:                                              ; preds = %115
  %119 = load double, ptr %4, align 8, !tbaa !9
  %120 = fcmp ogt double %117, %119
  br i1 %120, label %121, label %128

121:                                              ; preds = %118
  %122 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.9)
          to label %123 unwind label %124

123:                                              ; preds = %121
  store i8 0, ptr %18, align 1, !tbaa !18
  br label %128

124:                                              ; preds = %147, %121, %115
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %16, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %17, align 4
  br label %187

128:                                              ; preds = %123, %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %129 = load double, ptr %12, align 8, !tbaa !9
  %130 = fadd double %129, 1.000000e+00
  %131 = load double, ptr %4, align 8, !tbaa !9
  %132 = fadd double %130, %131
  store double %132, ptr %21, align 8, !tbaa !9
  %133 = load double, ptr %20, align 8, !tbaa !9
  %134 = load double, ptr %21, align 8, !tbaa !9
  %135 = fcmp ogt double %133, %134
  br i1 %135, label %136, label %143

136:                                              ; preds = %128
  %137 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.9)
          to label %138 unwind label %139

138:                                              ; preds = %136
  store i8 0, ptr %18, align 1, !tbaa !18
  br label %143

139:                                              ; preds = %136
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %16, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %187

143:                                              ; preds = %138, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %165

144:                                              ; preds = %112
  %145 = load double, ptr %13, align 8, !tbaa !9
  %146 = fcmp oeq double %145, 0.000000e+00
  br i1 %146, label %147, label %150

147:                                              ; preds = %144
  %148 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.9)
          to label %149 unwind label %124

149:                                              ; preds = %147
  store i8 0, ptr %18, align 1, !tbaa !18
  br label %164

150:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %151 = load double, ptr %13, align 8, !tbaa !9
  %152 = fdiv double 1.000000e+00, %151
  store double %152, ptr %22, align 8, !tbaa !9
  %153 = load double, ptr %20, align 8, !tbaa !9
  %154 = load double, ptr %22, align 8, !tbaa !9
  %155 = fcmp olt double %153, %154
  br i1 %155, label %156, label %163

156:                                              ; preds = %150
  %157 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.9)
          to label %158 unwind label %159

158:                                              ; preds = %156
  store i8 0, ptr %18, align 1, !tbaa !18
  br label %163

159:                                              ; preds = %156
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %16, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %187

163:                                              ; preds = %158, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %164

164:                                              ; preds = %163, %149
  br label %165

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

166:                                              ; preds = %107
  %167 = load i8, ptr %7, align 1, !tbaa !18, !range !16, !noundef !17
  %168 = trunc i8 %167 to i1
  br i1 %168, label %169, label %182

169:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %170 = load double, ptr %12, align 8, !tbaa !9
  store double %170, ptr %23, align 8, !tbaa !9
  %171 = load double, ptr %20, align 8, !tbaa !9
  %172 = load double, ptr %23, align 8, !tbaa !9
  %173 = fcmp ogt double %171, %172
  br i1 %173, label %174, label %181

174:                                              ; preds = %169
  %175 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.9)
          to label %176 unwind label %177

176:                                              ; preds = %174
  store i8 0, ptr %18, align 1, !tbaa !18
  br label %181

177:                                              ; preds = %174
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %16, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %187

181:                                              ; preds = %176, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %183

182:                                              ; preds = %166
  br label %183

183:                                              ; preds = %182, %181
  br label %184

184:                                              ; preds = %183, %165
  %185 = load i8, ptr %18, align 1, !tbaa !18, !range !16, !noundef !17
  %186 = trunc i8 %185 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret i1 %186

187:                                              ; preds = %177, %159, %139, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %188

188:                                              ; preds = %187, %103
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %189

189:                                              ; preds = %188, %99
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %16, align 8
  %192 = load i32, ptr %17, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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 = { 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN8presolve19HighsPostsolveStack15DuplicateColumnE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !13, i64 44, !14, i64 48, !14, i64 49}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !14, i64 48}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!14, !14, i64 0}
!19 = !{!12, !14, i64 49}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !10, i64 16}
!22 = !{!12, !10, i64 24}
!23 = !{!12, !10, i64 32}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [2 x i8], align 1

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; 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
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z13fractionalityIdET_S0_PS0_(double noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8presolve19HighsPostsolveStack15DuplicateColumn7okMergeEd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %0, double noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = load double, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load i8, ptr %6, align 8, !tbaa !12, !range !13, !noundef !14
  %8 = trunc nuw i8 %7 to i1
  %9 = getelementptr inbounds i8, ptr %0, i64 49
  %10 = load i8, ptr %9, align 1, !tbaa !15, !range !13, !noundef !14
  %11 = trunc nuw i8 %10 to i1
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load double, ptr %12, align 8, !tbaa !16
  br i1 %8, label %14, label %21

14:                                               ; preds = %2
  %15 = fsub double %13, %1
  %16 = tail call double @llvm.ceil.f64(double %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load double, ptr %17, align 8, !tbaa !17
  %19 = fadd double %18, %1
  %20 = tail call double @llvm.floor.f64(double %19)
  br label %24

21:                                               ; preds = %2
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load double, ptr %22, align 8, !tbaa !17
  br label %24

24:                                               ; preds = %21, %14
  %25 = phi double [ %16, %14 ], [ %13, %21 ]
  %26 = phi double [ %20, %14 ], [ %23, %21 ]
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load double, ptr %27, align 8, !tbaa !18
  br i1 %11, label %29, label %36

29:                                               ; preds = %24
  %30 = fsub double %28, %1
  %31 = tail call double @llvm.ceil.f64(double %30)
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  %33 = load double, ptr %32, align 8, !tbaa !19
  %34 = fadd double %33, %1
  %35 = tail call double @llvm.floor.f64(double %34)
  br label %39

36:                                               ; preds = %24
  %37 = getelementptr inbounds i8, ptr %0, i64 32
  %38 = load double, ptr %37, align 8, !tbaa !19
  br label %39

39:                                               ; preds = %36, %29
  %40 = phi double [ %31, %29 ], [ %28, %36 ]
  %41 = phi double [ %35, %29 ], [ %38, %36 ]
  %42 = fsub double %26, %25
  %43 = fsub double %41, %40
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.63, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %44 unwind label %48

44:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  %45 = fcmp une double %5, 0.000000e+00
  br i1 %45, label %52, label %46

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %52 unwind label %50

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %90

50:                                               ; preds = %46
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %89

52:                                               ; preds = %46, %44
  %53 = call double @llvm.fabs.f64(double %5)
  br i1 %8, label %54, label %82

54:                                               ; preds = %52
  br i1 %11, label %55, label %71

55:                                               ; preds = %54
  %56 = invoke noundef double @_Z13fractionalityIdET_S0_PS0_(double noundef %5, ptr noundef null)
          to label %57 unwind label %61

57:                                               ; preds = %55
  %58 = fcmp ogt double %56, %1
  br i1 %58, label %59, label %63

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %63 unwind label %61

61:                                               ; preds = %73, %59, %55
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %89

63:                                               ; preds = %59, %57
  %.137 = phi i1 [ %45, %57 ], [ false, %59 ]
  %64 = fadd double %42, 1.000000e+00
  %65 = fadd double %64, %1
  %66 = fcmp ogt double %53, %65
  br i1 %66, label %67, label %88

67:                                               ; preds = %63
  %68 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %88 unwind label %69

69:                                               ; preds = %67
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %89

71:                                               ; preds = %54
  %72 = fcmp oeq double %43, 0.000000e+00
  br i1 %72, label %73, label %75

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %88 unwind label %61

75:                                               ; preds = %71
  %76 = fdiv double 1.000000e+00, %43
  %77 = fcmp olt double %53, %76
  br i1 %77, label %78, label %88

78:                                               ; preds = %75
  %79 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %88 unwind label %80

80:                                               ; preds = %78
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %89

82:                                               ; preds = %52
  %83 = fcmp ogt double %53, %42
  %or.cond = select i1 %11, i1 %83, i1 false
  br i1 %or.cond, label %84, label %88

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.9)
          to label %88 unwind label %86

86:                                               ; preds = %84
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %89

88:                                               ; preds = %84, %75, %78, %73, %63, %67, %82
  %.5 = phi i1 [ %45, %82 ], [ %.137, %63 ], [ false, %67 ], [ false, %73 ], [ %45, %75 ], [ false, %78 ], [ false, %84 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i1 %.5

89:                                               ; preds = %61, %69, %80, %86, %50
  %.pn.pn = phi { ptr, i32 } [ %51, %50 ], [ %70, %69 ], [ %62, %61 ], [ %81, %80 ], [ %87, %86 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %90

90:                                               ; preds = %89, %48
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %89 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 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 = { 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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"_ZTSN8presolve19HighsPostsolveStack15DuplicateColumnE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 49}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!6, !11, i64 48}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !11, i64 49}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !7, i64 16}
!18 = !{!6, !7, i64 24}
!19 = !{!6, !7, i64 32}


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