; LLVM IR from ERGO-Code/HiGHS :: src/lp_data/HighsOptions.ll (Z16passLocalOptionsRK15HighsLogOptionsRK12HighsOptionsRS2_)

; 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.HighsOptions = type <{ %struct.HighsOptionsStruct, %"class.std::vector", i32, [4 x i8] }>
%struct.HighsOptionsStruct = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.std::__cxx11::basic_string", double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i8, i8, i32, i32, double, i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, double, double, double, double, double, double, double, double, double, double, double, i8, i8, i8, i8, i32, double, i8, i8, %"class.std::__cxx11::basic_string", double, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, i8, i8, %"class.std::__cxx11::basic_string", i8, i32, %struct.HighsLogOptions }
%struct.HighsLogOptions = type <{ ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::function", ptr, i8, [7 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<OptionRecord *, std::allocator<OptionRecord *>>::_Vector_impl" }
%"struct.std::_Vector_base<OptionRecord *, std::allocator<OptionRecord *>>::_Vector_impl" = type { %"struct.std::_Vector_base<OptionRecord *, std::allocator<OptionRecord *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OptionRecord *, std::allocator<OptionRecord *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.OptionRecord = type <{ ptr, i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%class.OptionRecordInt = type <{ %class.OptionRecord.base, [7 x i8], ptr, i32, i32, i32, [4 x i8] }>
%class.OptionRecord.base = type <{ ptr, i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8 }>
%class.OptionRecordDouble = type { %class.OptionRecord.base, ptr, double, double, double }
%class.OptionRecordString = type { %class.OptionRecord.base, ptr, %"class.std::__cxx11::basic_string" }
%class.OptionRecordBool = type <{ %class.OptionRecord.base, [7 x i8], ptr, i8, [7 x i8] }>

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

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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(108), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(120), double noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueR16OptionRecordBoolb(ptr noundef nonnull align 8 dereferenceable(97), i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(120), double noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(108), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z16passLocalOptionsRK15HighsLogOptionsRK12HighsOptionsRS2_(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(1020) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %class.HighsOptions, ptr %26, i32 0, i32 1
  %28 = call noundef i64 @_ZNKSt6vectorIP12OptionRecordSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #3
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %154, %3
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 2, ptr %11, align 4
  br label %157

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.HighsOptions, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #3
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.OptionRecord, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !11
  store i32 %43, ptr %12, align 4, !tbaa !18
  %44 = load i32, ptr %12, align 4, !tbaa !18
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %75

46:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.HighsOptions, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #3
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.OptionRecordInt, ptr %52, i64 0
  %54 = getelementptr inbounds %class.OptionRecordInt, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %56, ptr %13, align 4, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.HighsOptions, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #3
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.OptionRecordInt, ptr %63, i64 0
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = call noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89) %57, ptr noundef nonnull align 8 dereferenceable(108) %64, i32 noundef %65)
  store i32 %66, ptr %8, align 4, !tbaa !21
  %67 = load i32, ptr %8, align 4, !tbaa !21
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %46
  %70 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %70, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %72

71:                                               ; preds = %46
  store i32 0, ptr %11, align 4
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %73 = load i32, ptr %11, align 4
  switch i32 %73, label %151 [
    i32 0, label %74
  ]

74:                                               ; preds = %72
  br label %150

75:                                               ; preds = %35
  %76 = load i32, ptr %12, align 4, !tbaa !18
  %77 = icmp eq i32 %76, 2
  br i1 %77, label %78, label %107

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.HighsOptions, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #3
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.OptionRecordDouble, ptr %84, i64 0
  %86 = getelementptr inbounds %class.OptionRecordDouble, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  %88 = load double, ptr %87, align 8, !tbaa !26
  store double %88, ptr %14, align 8, !tbaa !26
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %class.HighsOptions, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93) #3
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds %class.OptionRecordDouble, ptr %95, i64 0
  %97 = load double, ptr %14, align 8, !tbaa !26
  %98 = call noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89) %89, ptr noundef nonnull align 8 dereferenceable(120) %96, double noundef %97)
  store i32 %98, ptr %8, align 4, !tbaa !21
  %99 = load i32, ptr %8, align 4, !tbaa !21
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %78
  %102 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %102, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %104

103:                                              ; preds = %78
  store i32 0, ptr %11, align 4
  br label %104

104:                                              ; preds = %103, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %105 = load i32, ptr %11, align 4
  switch i32 %105, label %151 [
    i32 0, label %106
  ]

106:                                              ; preds = %104
  br label %149

107:                                              ; preds = %75
  %108 = load i32, ptr %12, align 4, !tbaa !18
  %109 = icmp eq i32 %108, 3
  br i1 %109, label %110, label %148

110:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #3
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.HighsOptions, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #3
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.OptionRecordString, ptr %116, i64 0
  %118 = getelementptr inbounds %class.OptionRecordString, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %119)
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.HighsOptions, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #3
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds %class.OptionRecordString, ptr %126, i64 0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %128 unwind label %135

128:                                              ; preds = %110
  %129 = invoke noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89) %120, ptr noundef nonnull align 8 dereferenceable(128) %127, ptr noundef %16)
          to label %130 unwind label %139

130:                                              ; preds = %128
  store i32 %129, ptr %8, align 4, !tbaa !21
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #3
  %131 = load i32, ptr %8, align 4, !tbaa !21
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %143

133:                                              ; preds = %130
  %134 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %134, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %144

135:                                              ; preds = %110
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %17, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %18, align 4
  br label %147

139:                                              ; preds = %128
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %17, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #3
  br label %147

143:                                              ; preds = %130
  store i32 0, ptr %11, align 4
  br label %144

144:                                              ; preds = %143, %133
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #3
  %145 = load i32, ptr %11, align 4
  switch i32 %145, label %151 [
    i32 0, label %146
  ]

146:                                              ; preds = %144
  br label %148

147:                                              ; preds = %139, %135
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %323

148:                                              ; preds = %146, %107
  br label %149

149:                                              ; preds = %148, %106
  br label %150

150:                                              ; preds = %149, %74
  store i32 0, ptr %11, align 4
  br label %151

151:                                              ; preds = %150, %144, %104, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %152 = load i32, ptr %11, align 4
  switch i32 %152, label %157 [
    i32 0, label %153
  ]

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %10, align 4, !tbaa !9
  br label %30, !llvm.loop !29

157:                                              ; preds = %151, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %158 = load i32, ptr %11, align 4
  switch i32 %158, label %321 [
    i32 2, label %159
  ]

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %315, %159
  %161 = load i32, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 5, ptr %11, align 4
  br label %318

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %class.HighsOptions, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %19, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #3
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.OptionRecord, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 8, !tbaa !11
  store i32 %173, ptr %20, align 4, !tbaa !18
  %174 = load i32, ptr %20, align 4, !tbaa !18
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %207

176:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #3
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %class.HighsOptions, ptr %177, i32 0, i32 1
  %179 = load i32, ptr %19, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180) #3
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.OptionRecordBool, ptr %182, i64 0
  %184 = getelementptr inbounds %class.OptionRecordBool, ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !31
  %186 = load i8, ptr %185, align 1, !tbaa !33, !range !34, !noundef !35
  %187 = trunc i8 %186 to i1
  %188 = zext i1 %187 to i8
  store i8 %188, ptr %21, align 1, !tbaa !33
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %class.HighsOptions, ptr %189, i32 0, i32 1
  %191 = load i32, ptr %19, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %192) #3
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = getelementptr inbounds %class.OptionRecordBool, ptr %194, i64 0
  %196 = load i8, ptr %21, align 1, !tbaa !33, !range !34, !noundef !35
  %197 = trunc i8 %196 to i1
  %198 = call noundef i32 @_Z19setLocalOptionValueR16OptionRecordBoolb(ptr noundef nonnull align 8 dereferenceable(97) %195, i1 noundef zeroext %197)
  store i32 %198, ptr %8, align 4, !tbaa !21
  %199 = load i32, ptr %8, align 4, !tbaa !21
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %203

201:                                              ; preds = %176
  %202 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %202, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %204

203:                                              ; preds = %176
  store i32 0, ptr %11, align 4
  br label %204

204:                                              ; preds = %203, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #3
  %205 = load i32, ptr %11, align 4
  switch i32 %205, label %312 [
    i32 0, label %206
  ]

206:                                              ; preds = %204
  br label %311

207:                                              ; preds = %165
  %208 = load i32, ptr %20, align 4, !tbaa !18
  %209 = icmp eq i32 %208, 1
  br i1 %209, label %210, label %239

210:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %class.HighsOptions, ptr %211, i32 0, i32 1
  %213 = load i32, ptr %19, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %214) #3
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds %class.OptionRecordInt, ptr %216, i64 0
  %218 = getelementptr inbounds %class.OptionRecordInt, ptr %217, i32 0, i32 2
  %219 = load ptr, ptr %218, align 8, !tbaa !19
  %220 = load i32, ptr %219, align 4, !tbaa !9
  store i32 %220, ptr %22, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %class.HighsOptions, ptr %222, i32 0, i32 1
  %224 = load i32, ptr %19, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %225) #3
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = getelementptr inbounds %class.OptionRecordInt, ptr %227, i64 0
  %229 = load i32, ptr %22, align 4, !tbaa !9
  %230 = call noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89) %221, ptr noundef nonnull align 8 dereferenceable(108) %228, i32 noundef %229)
  store i32 %230, ptr %8, align 4, !tbaa !21
  %231 = load i32, ptr %8, align 4, !tbaa !21
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %235

233:                                              ; preds = %210
  %234 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %234, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %236

235:                                              ; preds = %210
  store i32 0, ptr %11, align 4
  br label %236

236:                                              ; preds = %235, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  %237 = load i32, ptr %11, align 4
  switch i32 %237, label %312 [
    i32 0, label %238
  ]

238:                                              ; preds = %236
  br label %310

239:                                              ; preds = %207
  %240 = load i32, ptr %20, align 4, !tbaa !18
  %241 = icmp eq i32 %240, 2
  br i1 %241, label %242, label %271

242:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %class.HighsOptions, ptr %243, i32 0, i32 1
  %245 = load i32, ptr %19, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %246) #3
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = getelementptr inbounds %class.OptionRecordDouble, ptr %248, i64 0
  %250 = getelementptr inbounds %class.OptionRecordDouble, ptr %249, i32 0, i32 1
  %251 = load ptr, ptr %250, align 8, !tbaa !23
  %252 = load double, ptr %251, align 8, !tbaa !26
  store double %252, ptr %23, align 8, !tbaa !26
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %class.HighsOptions, ptr %254, i32 0, i32 1
  %256 = load i32, ptr %19, align 4, !tbaa !9
  %257 = sext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %257) #3
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = getelementptr inbounds %class.OptionRecordDouble, ptr %259, i64 0
  %261 = load double, ptr %23, align 8, !tbaa !26
  %262 = call noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89) %253, ptr noundef nonnull align 8 dereferenceable(120) %260, double noundef %261)
  store i32 %262, ptr %8, align 4, !tbaa !21
  %263 = load i32, ptr %8, align 4, !tbaa !21
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %267

265:                                              ; preds = %242
  %266 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %266, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %268

267:                                              ; preds = %242
  store i32 0, ptr %11, align 4
  br label %268

268:                                              ; preds = %267, %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  %269 = load i32, ptr %11, align 4
  switch i32 %269, label %312 [
    i32 0, label %270
  ]

270:                                              ; preds = %268
  br label %309

271:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #3
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %class.HighsOptions, ptr %272, i32 0, i32 1
  %274 = load i32, ptr %19, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %275) #3
  %277 = load ptr, ptr %276, align 8, !tbaa !5
  %278 = getelementptr inbounds %class.OptionRecordString, ptr %277, i64 0
  %279 = getelementptr inbounds %class.OptionRecordString, ptr %278, i32 0, i32 1
  %280 = load ptr, ptr %279, align 8, !tbaa !27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %280)
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %class.HighsOptions, ptr %282, i32 0, i32 1
  %284 = load i32, ptr %19, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %285) #3
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds %class.OptionRecordString, ptr %287, i64 0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %289 unwind label %296

289:                                              ; preds = %271
  %290 = invoke noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89) %281, ptr noundef nonnull align 8 dereferenceable(128) %288, ptr noundef %25)
          to label %291 unwind label %300

291:                                              ; preds = %289
  store i32 %290, ptr %8, align 4, !tbaa !21
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #3
  %292 = load i32, ptr %8, align 4, !tbaa !21
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %304

294:                                              ; preds = %291
  %295 = load i32, ptr %8, align 4, !tbaa !21
  store i32 %295, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %305

296:                                              ; preds = %271
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %17, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %18, align 4
  br label %308

300:                                              ; preds = %289
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %17, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #3
  br label %308

304:                                              ; preds = %291
  store i32 0, ptr %11, align 4
  br label %305

305:                                              ; preds = %304, %294
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #3
  %306 = load i32, ptr %11, align 4
  switch i32 %306, label %312 [
    i32 0, label %307
  ]

307:                                              ; preds = %305
  br label %309

308:                                              ; preds = %300, %296
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %323

309:                                              ; preds = %307, %270
  br label %310

310:                                              ; preds = %309, %238
  br label %311

311:                                              ; preds = %310, %206
  store i32 0, ptr %11, align 4
  br label %312

312:                                              ; preds = %311, %305, %268, %236, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  %313 = load i32, ptr %11, align 4
  switch i32 %313, label %318 [
    i32 0, label %314
  ]

314:                                              ; preds = %312
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %19, align 4, !tbaa !9
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %19, align 4, !tbaa !9
  br label %160, !llvm.loop !36

318:                                              ; preds = %312, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  %319 = load i32, ptr %11, align 4
  switch i32 %319, label %321 [
    i32 5, label %320
  ]

320:                                              ; preds = %318
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %321

321:                                              ; preds = %320, %318, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %322 = load i32, ptr %4, align 4
  ret i32 %322

323:                                              ; preds = %308, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %324

324:                                              ; preds = %323
  %325 = load ptr, ptr %17, align 8
  %326 = load i32, ptr %18, align 4
  %327 = insertvalue { ptr, i32 } poison, ptr %325, 0
  %328 = insertvalue { ptr, i32 } %327, i32 %326, 1
  resume { ptr, i32 } %328
}

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS12OptionRecord", !13, i64 8, !14, i64 16, !14, i64 48, !17, i64 80}
!13 = !{!"_ZTS15HighsOptionType", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !6, i64 88}
!20 = !{!"_ZTS15OptionRecordInt", !12, i64 0, !6, i64 88, !10, i64 96, !10, i64 100, !10, i64 104}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTS12OptionStatus", !7, i64 0}
!23 = !{!24, !6, i64 88}
!24 = !{!"_ZTS18OptionRecordDouble", !12, i64 0, !6, i64 88, !25, i64 96, !25, i64 104, !25, i64 112}
!25 = !{!"double", !7, i64 0}
!26 = !{!25, !25, i64 0}
!27 = !{!28, !6, i64 88}
!28 = !{!"_ZTS18OptionRecordString", !12, i64 0, !6, i64 88, !14, i64 96}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!32, !6, i64 88}
!32 = !{!"_ZTS16OptionRecordBool", !12, i64 0, !6, i64 88, !17, i64 96}
!33 = !{!17, !17, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = distinct !{!36, !30}


; 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] }

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

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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(108), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(120), double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueR16OptionRecordBoolb(ptr noundef nonnull align 8 dereferenceable(97), i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(120), double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(108), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z16passLocalOptionsRK15HighsLogOptionsRK12HighsOptionsRS2_(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(1020) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = getelementptr inbounds i8, ptr %2, i64 992
  %9 = tail call noundef i64 @_ZNKSt6vectorIP12OptionRecordSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %10 = trunc i64 %9 to i32
  %.not124148 = icmp sgt i32 %10, 0
  br i1 %.not124148, label %.lr.ph, label %.thread140

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %1, i64 992
  %wide.trip.count = and i64 %9, 2147483647
  br label %13

.preheader:                                       ; preds = %51
  br i1 %.not124148, label %.lr.ph152, label %.thread140

.lr.ph152:                                        ; preds = %.preheader
  %12 = getelementptr inbounds i8, ptr %1, i64 992
  %wide.trip.count167 = and i64 %9, 2147483647
  br label %52

13:                                               ; preds = %.lr.ph, %51
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %51 ]
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #3
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !9
  switch i32 %17, label %51 [
    i32 1, label %18
    i32 2, label %27
    i32 3, label %36
  ]

18:                                               ; preds = %13
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #3
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 88
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #3
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = call noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(108) %25, i32 noundef %23)
  %.not123 = icmp eq i32 %26, 0
  br i1 %.not123, label %51, label %.thread140

27:                                               ; preds = %13
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #3
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 88
  %31 = load ptr, ptr %30, align 8, !tbaa !20
  %32 = load double, ptr %31, align 8, !tbaa !23
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #3
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(120) %34, double noundef %32)
  %.not122 = icmp eq i32 %35, 0
  br i1 %.not122, label %51, label %.thread140

36:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #3
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 88
  %40 = load ptr, ptr %39, align 8, !tbaa !24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %40)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #3
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %43 unwind label %46

43:                                               ; preds = %36
  %44 = invoke noundef i32 @_Z16checkOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(128) %42, ptr noundef nonnull %5)
          to label %45 unwind label %48

45:                                               ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  %.not = icmp eq i32 %44, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  br i1 %.not, label %51, label %.thread140

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

48:                                               ; preds = %43
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  br label %101

51:                                               ; preds = %13, %27, %45, %18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %13, !llvm.loop !26

52:                                               ; preds = %.lr.ph152, %100
  %indvars.iv164 = phi i64 [ 0, %.lr.ph152 ], [ %indvars.iv.next165, %100 ]
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv164) #3
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !9
  switch i32 %56, label %85 [
    i32 0, label %57
    i32 1, label %67
    i32 2, label %76
  ]

57:                                               ; preds = %52
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv164) #3
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 88
  %61 = load ptr, ptr %60, align 8, !tbaa !28
  %62 = load i8, ptr %61, align 1, !tbaa !30, !range !31, !noundef !32
  %63 = trunc nuw i8 %62 to i1
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv164) #3
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = call noundef i32 @_Z19setLocalOptionValueR16OptionRecordBoolb(ptr noundef nonnull align 8 dereferenceable(97) %65, i1 noundef zeroext %63)
  %.not131 = icmp eq i32 %66, 0
  br i1 %.not131, label %100, label %.thread140

67:                                               ; preds = %52
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv164) #3
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 88
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load i32, ptr %71, align 4, !tbaa !19
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv164) #3
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = call noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR15OptionRecordInti(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(108) %74, i32 noundef %72)
  %.not130 = icmp eq i32 %75, 0
  br i1 %.not130, label %100, label %.thread140

76:                                               ; preds = %52
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv164) #3
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 88
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = load double, ptr %80, align 8, !tbaa !23
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv164) #3
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = call noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordDoubled(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(120) %83, double noundef %81)
  %.not129 = icmp eq i32 %84, 0
  br i1 %.not129, label %100, label %.thread140

85:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #3
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv164) #3
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 88
  %89 = load ptr, ptr %88, align 8, !tbaa !24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %89)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12OptionRecordSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv164) #3
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %92 unwind label %95

92:                                               ; preds = %85
  %93 = invoke noundef i32 @_Z19setLocalOptionValueRK15HighsLogOptionsR18OptionRecordStringNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(128) %91, ptr noundef nonnull %7)
          to label %94 unwind label %97

94:                                               ; preds = %92
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #3
  %.not128 = icmp eq i32 %93, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  br i1 %.not128, label %100, label %.thread140

95:                                               ; preds = %85
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %92
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #3
  br label %99

99:                                               ; preds = %97, %95
  %.pn125 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  br label %101

100:                                              ; preds = %67, %94, %76, %57
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count167
  br i1 %exitcond168.not, label %.thread140, label %52, !llvm.loop !33

.thread140:                                       ; preds = %18, %27, %45, %94, %76, %67, %57, %100, %3, %.preheader
  %.15 = phi i32 [ 0, %.preheader ], [ 0, %3 ], [ %93, %94 ], [ %84, %76 ], [ %75, %67 ], [ %66, %57 ], [ 0, %100 ], [ %26, %18 ], [ %35, %27 ], [ %44, %45 ]
  ret i32 %.15

101:                                              ; preds = %99, %50
  %.pn125.pn = phi { ptr, i32 } [ %.pn125, %99 ], [ %.pn, %50 ]
  resume { ptr, i32 } %.pn125.pn
}

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 = { 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 8}
!10 = !{!"_ZTS12OptionRecord", !11, i64 8, !12, i64 16, !12, i64 48, !15, i64 80}
!11 = !{!"_ZTS15HighsOptionType", !7, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!17, !6, i64 88}
!17 = !{!"_ZTS15OptionRecordInt", !10, i64 0, !6, i64 88, !18, i64 96, !18, i64 100, !18, i64 104}
!18 = !{!"int", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!21, !6, i64 88}
!21 = !{!"_ZTS18OptionRecordDouble", !10, i64 0, !6, i64 88, !22, i64 96, !22, i64 104, !22, i64 112}
!22 = !{!"double", !7, i64 0}
!23 = !{!22, !22, i64 0}
!24 = !{!25, !6, i64 88}
!25 = !{!"_ZTS18OptionRecordString", !10, i64 0, !6, i64 88, !12, i64 96}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!29, !6, i64 88}
!29 = !{!"_ZTS16OptionRecordBool", !10, i64 0, !6, i64 88, !15, i64 96}
!30 = !{!15, !15, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !27}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass