; LLVM IR from simbody/simbody :: SimTKmath/Optimizers/src/IpOpt (IpRegOptions)

; 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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.SimTKIpopt::RegisteredOption" = type <{ %"class.SimTKIpopt::ReferencedObject.base", [4 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, i8, [2 x i8], double, i8, i8, [6 x i8], double, double, %"class.std::vector", %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.SimTKIpopt::ReferencedObject.base" = type <{ ptr, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SimTKIpopt::RegisteredOption::string_entry, std::allocator<SimTKIpopt::RegisteredOption::string_entry>>::_Vector_impl" }
%"struct.std::_Vector_base<SimTKIpopt::RegisteredOption::string_entry, std::allocator<SimTKIpopt::RegisteredOption::string_entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<SimTKIpopt::RegisteredOption::string_entry, std::allocator<SimTKIpopt::RegisteredOption::string_entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SimTKIpopt::RegisteredOption::string_entry, std::allocator<SimTKIpopt::RegisteredOption::string_entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.SimTKIpopt::RegisteredOption::string_entry" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10SimTKIpopt16RegisteredOption17OutputDescriptionERKNS_10JournalistE(ptr noundef nonnull align 8 dereferenceable(244) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %13 unwind label %20

13:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  %14 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 6
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %28

17:                                               ; preds = %13
  %18 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.1)
          to label %19 unwind label %24

19:                                               ; preds = %17
  br label %44

20:                                               ; preds = %2
  %21 = landingpad { ptr, i32 }
          cleanup
  %22 = extractvalue { ptr, i32 } %21, 0
  store ptr %22, ptr %7, align 8
  %23 = extractvalue { ptr, i32 } %21, 1
  store i32 %23, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %185

24:                                               ; preds = %142, %136, %127, %124, %118, %106, %101, %94, %91, %79, %76, %73, %66, %61, %44, %39, %32, %17
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %7, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %8, align 4
  br label %184

28:                                               ; preds = %13
  %29 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 6
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %35

32:                                               ; preds = %28
  %33 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.2)
          to label %34 unwind label %24

34:                                               ; preds = %32
  br label %43

35:                                               ; preds = %28
  %36 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 6
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %39, label %42

39:                                               ; preds = %35
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.3)
          to label %41 unwind label %24

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41, %35
  br label %43

43:                                               ; preds = %42, %34
  br label %44

44:                                               ; preds = %43, %19
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 2
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  %48 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %49 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 5
  %50 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %49) #6
  %51 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 3
  %52 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %51) #6
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %45, i32 noundef 3, i32 noundef 11, ptr noundef @.str.4, ptr noundef %47, ptr noundef %48, ptr noundef %50, ptr noundef %52)
          to label %53 unwind label %24

53:                                               ; preds = %44
  %54 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 6
  %55 = load i32, ptr %54, align 8, !tbaa !9
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %110

57:                                               ; preds = %53
  %58 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 7
  %59 = load i8, ptr %58, align 4, !tbaa !23, !range !24, !noundef !25
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 10
  %64 = load double, ptr %63, align 8, !tbaa !26
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %62, i32 noundef 3, i32 noundef 11, ptr noundef @.str.5, double noundef %64)
          to label %65 unwind label %24

65:                                               ; preds = %61
  br label %69

66:                                               ; preds = %57
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %67, i32 noundef 3, i32 noundef 11, ptr noundef @.str.6)
          to label %68 unwind label %24

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %68, %65
  %70 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 8
  %71 = load i8, ptr %70, align 1, !tbaa !27, !range !24, !noundef !25
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %74, i32 noundef 3, i32 noundef 11, ptr noundef @.str.7)
          to label %75 unwind label %24

75:                                               ; preds = %73
  br label %79

76:                                               ; preds = %69
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %77, i32 noundef 3, i32 noundef 11, ptr noundef @.str.8)
          to label %78 unwind label %24

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %75
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 15
  %82 = load double, ptr %81, align 8, !tbaa !28
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %80, i32 noundef 3, i32 noundef 11, ptr noundef @.str.9, double noundef %82)
          to label %83 unwind label %24

83:                                               ; preds = %79
  %84 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 11
  %85 = load i8, ptr %84, align 8, !tbaa !29, !range !24, !noundef !25
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %94

87:                                               ; preds = %83
  %88 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 12
  %89 = load i8, ptr %88, align 1, !tbaa !30, !range !24, !noundef !25
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %94

91:                                               ; preds = %87
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %92, i32 noundef 3, i32 noundef 11, ptr noundef @.str.7)
          to label %93 unwind label %24

93:                                               ; preds = %91
  br label %97

94:                                               ; preds = %87, %83
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %95, i32 noundef 3, i32 noundef 11, ptr noundef @.str.8)
          to label %96 unwind label %24

96:                                               ; preds = %94
  br label %97

97:                                               ; preds = %96, %93
  %98 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 11
  %99 = load i8, ptr %98, align 8, !tbaa !29, !range !24, !noundef !25
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %106

101:                                              ; preds = %97
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 14
  %104 = load double, ptr %103, align 8, !tbaa !31
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %102, i32 noundef 3, i32 noundef 11, ptr noundef @.str.10, double noundef %104)
          to label %105 unwind label %24

105:                                              ; preds = %101
  br label %109

106:                                              ; preds = %97
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %107, i32 noundef 3, i32 noundef 11, ptr noundef @.str.11)
          to label %108 unwind label %24

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108, %105
  br label %183

110:                                              ; preds = %53
  %111 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 6
  %112 = load i32, ptr %111, align 8, !tbaa !9
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %146

114:                                              ; preds = %110
  %115 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 7
  %116 = load i8, ptr %115, align 4, !tbaa !23, !range !24, !noundef !25
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %124

118:                                              ; preds = %114
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 10
  %121 = load double, ptr %120, align 8, !tbaa !26
  %122 = fptosi double %121 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %119, i32 noundef 3, i32 noundef 11, ptr noundef @.str.12, i32 noundef %122)
          to label %123 unwind label %24

123:                                              ; preds = %118
  br label %127

124:                                              ; preds = %114
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %125, i32 noundef 3, i32 noundef 11, ptr noundef @.str.6)
          to label %126 unwind label %24

126:                                              ; preds = %124
  br label %127

127:                                              ; preds = %126, %123
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 15
  %130 = load double, ptr %129, align 8, !tbaa !28
  %131 = fptosi double %130 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %128, i32 noundef 3, i32 noundef 11, ptr noundef @.str.13, i32 noundef %131)
          to label %132 unwind label %24

132:                                              ; preds = %127
  %133 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 11
  %134 = load i8, ptr %133, align 8, !tbaa !29, !range !24, !noundef !25
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %142

136:                                              ; preds = %132
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 14
  %139 = load double, ptr %138, align 8, !tbaa !31
  %140 = fptosi double %139 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %137, i32 noundef 3, i32 noundef 11, ptr noundef @.str.14, i32 noundef %140)
          to label %141 unwind label %24

141:                                              ; preds = %136
  br label %145

142:                                              ; preds = %132
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %143, i32 noundef 3, i32 noundef 11, ptr noundef @.str.11)
          to label %144 unwind label %24

144:                                              ; preds = %142
  br label %145

145:                                              ; preds = %144, %141
  br label %182

146:                                              ; preds = %110
  %147 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 6
  %148 = load i32, ptr %147, align 8, !tbaa !9
  %149 = icmp eq i32 %148, 2
  br i1 %149, label %150, label %181

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %151, i32 noundef 3, i32 noundef 11, ptr noundef @.str.15)
          to label %152 unwind label %172

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %153 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 16
  %154 = call ptr @_ZNKSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #6
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 8, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %156

156:                                              ; preds = %170, %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %157 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 16
  %158 = call ptr @_ZNKSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %157) #6
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %158, ptr %159, align 8
  %160 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br i1 %160, label %161, label %176

161:                                              ; preds = %156
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %164 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption::string_entry", ptr %163, i32 0, i32 0
  %165 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %164) #6
  %166 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %167 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption::string_entry", ptr %166, i32 0, i32 1
  %168 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %167) #6
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %162, i32 noundef 3, i32 noundef 11, ptr noundef @.str.16, ptr noundef %165, ptr noundef %168)
          to label %169 unwind label %172

169:                                              ; preds = %161
  br label %170

170:                                              ; preds = %169
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %156, !llvm.loop !33

172:                                              ; preds = %176, %161, %150
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %7, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %184

176:                                              ; preds = %156
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %"class.SimTKIpopt::RegisteredOption", ptr %12, i32 0, i32 17
  %179 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %178) #6
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %177, i32 noundef 3, i32 noundef 11, ptr noundef @.str.17, ptr noundef %179)
          to label %180 unwind label %172

180:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %181

181:                                              ; preds = %180, %146
  br label %182

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

183:                                              ; preds = %182, %109
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret void

184:                                              ; preds = %172, %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %185

185:                                              ; preds = %184, %20
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %7, align 8
  %188 = load i32, ptr %8, align 4
  %189 = insertvalue { ptr, i32 } poison, ptr %187, 0
  %190 = insertvalue { ptr, i32 } %189, i32 %188, 1
  resume { ptr, i32 } %190
}

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

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

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

declare void @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef, ...) #3

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !16, i64 144}
!10 = !{!"_ZTSN10SimTKIpopt16RegisteredOptionE", !11, i64 0, !13, i64 16, !13, i64 48, !13, i64 80, !13, i64 112, !16, i64 144, !17, i64 148, !17, i64 149, !18, i64 152, !17, i64 160, !17, i64 161, !18, i64 168, !18, i64 176, !19, i64 184, !13, i64 208, !12, i64 240}
!11 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN10SimTKIpopt20RegisteredOptionTypeE", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!10, !17, i64 148}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!10, !18, i64 152}
!27 = !{!10, !17, i64 149}
!28 = !{!10, !18, i64 176}
!29 = !{!10, !17, i64 160}
!30 = !{!10, !17, i64 161}
!31 = !{!10, !18, i64 168}
!32 = !{i64 0, i64 8, !5}
!33 = distinct !{!33, !34}
!34 = !{!"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::__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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@switch.table._ZNK10SimTKIpopt16RegisteredOption17OutputDescriptionERKNS_10JournalistE = private unnamed_addr constant [3 x ptr] [ptr @.str.1, ptr @.str.2, ptr @.str.3], align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10SimTKIpopt16RegisteredOption17OutputDescriptionERKNS_10JournalistE(ptr noundef nonnull align 8 dereferenceable(244) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  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, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %7 unwind label %11

7:                                                ; preds = %2
  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
  %8 = getelementptr inbounds i8, ptr %0, i64 144
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp ult i32 %9, 3
  br i1 %10, label %switch.lookup, label %17

11:                                               ; preds = %2
  %12 = 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 %99

13:                                               ; preds = %switch.lookup, %.invoke27, %.invoke26, %.invoke, %74, %66, %65, %61, %54, %38, %34, %31, %17
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %98

switch.lookup:                                    ; preds = %7
  %15 = zext nneg i32 %9 to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table._ZNK10SimTKIpopt16RegisteredOption17OutputDescriptionERKNS_10JournalistE, i64 0, i64 %15
  %switch.load = load ptr, ptr %switch.gep, align 8
  %16 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %switch.load)
          to label %17 unwind label %13

17:                                               ; preds = %7, %switch.lookup
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  %20 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 112
  %22 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.4, ptr noundef %19, ptr noundef %20, ptr noundef %22, ptr noundef %24)
          to label %25 unwind label %13

25:                                               ; preds = %17
  %26 = load i32, ptr %8, align 8, !tbaa !5
  switch i32 %26, label %97 [
    i32 0, label %27
    i32 1, label %57
    i32 2, label %78
  ]

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 148
  %29 = load i8, ptr %28, align 4, !tbaa !22, !range !23, !noundef !24
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %34

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %0, i64 152
  %33 = load double, ptr %32, align 8, !tbaa !25
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.5, double noundef %33)
          to label %.invoke27 unwind label %13

34:                                               ; preds = %27
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.6)
          to label %.invoke27 unwind label %13

.invoke27:                                        ; preds = %34, %31
  %35 = getelementptr inbounds i8, ptr %0, i64 149
  %36 = load i8, ptr %35, align 1, !tbaa !26, !range !23, !noundef !24
  %37 = trunc nuw i8 %36 to i1
  %.str.7..str.8 = select i1 %37, ptr @.str.7, ptr @.str.8
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull %.str.7..str.8)
          to label %38 unwind label %13

38:                                               ; preds = %.invoke27
  %39 = getelementptr inbounds i8, ptr %0, i64 176
  %40 = load double, ptr %39, align 8, !tbaa !27
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.9, double noundef %40)
          to label %41 unwind label %13

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %0, i64 160
  %43 = load i8, ptr %42, align 8, !tbaa !28, !range !23, !noundef !24
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %49

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 161
  %47 = load i8, ptr %46, align 1, !tbaa !29, !range !23, !noundef !24
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %.invoke26, label %49

49:                                               ; preds = %45, %41
  br label %.invoke26

.invoke26:                                        ; preds = %45, %49
  %50 = phi ptr [ @.str.8, %49 ], [ @.str.7, %45 ]
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull %50)
          to label %51 unwind label %13

51:                                               ; preds = %.invoke26
  %52 = load i8, ptr %42, align 8, !tbaa !28, !range !23, !noundef !24
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %54, label %.invoke

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %0, i64 168
  %56 = load double, ptr %55, align 8, !tbaa !30
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.10, double noundef %56)
          to label %97 unwind label %13

57:                                               ; preds = %25
  %58 = getelementptr inbounds i8, ptr %0, i64 148
  %59 = load i8, ptr %58, align 4, !tbaa !22, !range !23, !noundef !24
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %61, label %65

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %0, i64 152
  %63 = load double, ptr %62, align 8, !tbaa !25
  %64 = fptosi double %63 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.12, i32 noundef %64)
          to label %66 unwind label %13

65:                                               ; preds = %57
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.6)
          to label %66 unwind label %13

66:                                               ; preds = %65, %61
  %67 = getelementptr inbounds i8, ptr %0, i64 176
  %68 = load double, ptr %67, align 8, !tbaa !27
  %69 = fptosi double %68 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.13, i32 noundef %69)
          to label %70 unwind label %13

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %0, i64 160
  %72 = load i8, ptr %71, align 8, !tbaa !28, !range !23, !noundef !24
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %74, label %.invoke

74:                                               ; preds = %70
  %75 = getelementptr inbounds i8, ptr %0, i64 168
  %76 = load double, ptr %75, align 8, !tbaa !30
  %77 = fptosi double %76 to i32
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.14, i32 noundef %77)
          to label %97 unwind label %13

.invoke:                                          ; preds = %70, %51
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.11)
          to label %97 unwind label %13

78:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.15)
          to label %79 unwind label %.loopexit.split-lp

79:                                               ; preds = %78
  %80 = getelementptr inbounds i8, ptr %0, i64 184
  %81 = call ptr @_ZNKSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %81, ptr %5, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %82 = call ptr @_ZNKSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %82, ptr %6, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %83, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %79, %89
  %84 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %85 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %84) #5
  %86 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %87 = getelementptr inbounds i8, ptr %86, i64 32
  %88 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %87) #5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.16, ptr noundef %85, ptr noundef %88)
          to label %89 unwind label %.loopexit

89:                                               ; preds = %.lr.ph
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %91 = call ptr @_ZNKSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  store ptr %91, ptr %6, align 8
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %92, label %.lr.ph, label %._crit_edge, !llvm.loop !32

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %93

.loopexit.split-lp:                               ; preds = %78, %._crit_edge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %93

93:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %98

._crit_edge:                                      ; preds = %89, %79
  %94 = getelementptr inbounds i8, ptr %0, i64 208
  %95 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %94) #5
  invoke void (ptr, i32, i32, ptr, ...) @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3, i32 noundef 11, ptr noundef nonnull @.str.17, ptr noundef %95)
          to label %96 unwind label %.loopexit.split-lp

96:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %97

97:                                               ; preds = %.invoke, %25, %74, %96, %54
  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 void

98:                                               ; preds = %93, %13
  %.pn = phi { ptr, i32 } [ %14, %13 ], [ %lpad.phi, %93 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %99

99:                                               ; preds = %98, %11
  %.pn.pn = phi { ptr, i32 } [ %.pn, %98 ], [ %12, %11 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

declare void @_ZNK10SimTKIpopt10Journalist6PrintfENS_13EJournalLevelENS_16EJournalCategoryEPKcz(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN10SimTKIpopt16RegisteredOption12string_entryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !15, i64 144}
!6 = !{!"_ZTSN10SimTKIpopt16RegisteredOptionE", !7, i64 0, !11, i64 16, !11, i64 48, !11, i64 80, !11, i64 112, !15, i64 144, !16, i64 148, !16, i64 149, !17, i64 152, !16, i64 160, !16, i64 161, !17, i64 168, !17, i64 176, !18, i64 184, !11, i64 208, !8, i64 240}
!7 = !{!"_ZTSN10SimTKIpopt16ReferencedObjectE", !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !9, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTSN10SimTKIpopt20RegisteredOptionTypeE", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!"double", !9, i64 0}
!18 = !{!"_ZTSSt6vectorIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN10SimTKIpopt16RegisteredOption12string_entryESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!22 = !{!6, !16, i64 148}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!6, !17, i64 152}
!26 = !{!6, !16, i64 149}
!27 = !{!6, !17, i64 176}
!28 = !{!6, !16, i64 160}
!29 = !{!6, !16, i64 161}
!30 = !{!6, !17, i64 168}
!31 = !{!13, !13, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass