; LLVM IR from buresjan/optim_lbm :: nomad/src/Output/OutputQueue.ll (ZN9NOMAD_4_311OutputQueue10flushBlockERKNS_10OutputInfoE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.NOMAD_4_3::ArrayOfString" = type { ptr, %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.NOMAD_4_3::OutputQueue" = type { ptr, %"class.std::vector", %"class.std::shared_ptr", %"class.std::__cxx11::basic_string", %"class.std::basic_ofstream", i8, i64, %"class.NOMAD_4_3::ArrayOfString", i64, i64, i64, i64, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<NOMAD_4_3::OutputInfo, std::allocator<NOMAD_4_3::OutputInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<NOMAD_4_3::OutputInfo, std::allocator<NOMAD_4_3::OutputInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<NOMAD_4_3::OutputInfo, std::allocator<NOMAD_4_3::OutputInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NOMAD_4_3::OutputInfo, std::allocator<NOMAD_4_3::OutputInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.5 }
%union.anon.5 = type { i32 }

@.str.14 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZTIN9NOMAD_4_39ExceptionE = external constant ptr
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.25 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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: nounwind
declare void @_ZN9NOMAD_4_313ArrayOfStringD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

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

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9NOMAD_4_313ArrayOfStringixB5cxx11Em(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_311OutputQueue10flushBlockERKNS_10OutputInfoE(ptr noundef nonnull align 8 dereferenceable(744) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.NOMAD_4_3::ArrayOfString", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i1, align 1
  %16 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9NOMAD_4_310OutputInfo14getOutputLevelEv(ptr noundef nonnull align 8 dereferenceable(80) %18)
  %20 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %20, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef ptr @_ZNK9NOMAD_4_310OutputInfo12getStatsInfoEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
  store ptr %22, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN9NOMAD_4_311OutputQueue21flushStatsToStatsFileEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744) %17, ptr noundef %23)
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 12
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = icmp sgt i32 %24, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %2
  store i32 1, ptr %7, align 4
  br label %147

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9NOMAD_4_310OutputInfo6getMsgEv(ptr noundef nonnull align 8 dereferenceable(80) %30)
  call void @_ZN9NOMAD_4_313ArrayOfStringC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %31)
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 5
  br i1 %33, label %34, label %41

34:                                               ; preds = %29
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN9NOMAD_4_311OutputQueue18flushStatsToStdoutEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744) %17, ptr noundef %35)
          to label %36 unwind label %37

36:                                               ; preds = %34
  br label %146

37:                                               ; preds = %137, %133, %131, %128, %41, %34
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %9, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %10, align 4
  br label %150

41:                                               ; preds = %29
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo10isBlockEndEv(ptr noundef nonnull align 8 dereferenceable(80) %42)
          to label %44 unwind label %37

44:                                               ; preds = %41
  br i1 %43, label %45, label %75

45:                                               ; preds = %44
  %46 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %47 = load i32, ptr %46, align 4, !tbaa !38
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr %46, align 4, !tbaa !38
  %49 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %50 = load i32, ptr %49, align 4, !tbaa !38
  %51 = icmp slt i32 %50, 0
  br i1 %51, label %52, label %74

52:                                               ; preds = %45
  store i1 true, ptr %15, align 1
  %53 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %54 unwind label %57

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %55 unwind label %61

55:                                               ; preds = %54
  invoke void @_ZN9NOMAD_4_39ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_(ptr noundef nonnull align 8 dereferenceable(112) %53, ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef 368, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %56 unwind label %65

56:                                               ; preds = %55
  store i1 false, ptr %15, align 1
  invoke void @__cxa_throw(ptr %53, ptr @_ZTIN9NOMAD_4_39ExceptionE, ptr @_ZN9NOMAD_4_39ExceptionD2Ev) #7
          to label %156 unwind label %65

57:                                               ; preds = %52
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  br label %70

61:                                               ; preds = %54
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %69

65:                                               ; preds = %56, %55
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %69

69:                                               ; preds = %65, %61
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %70

70:                                               ; preds = %69, %57
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  %71 = load i1, ptr %15, align 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %70
  call void @__cxa_free_exception(ptr %53) #6
  br label %73

73:                                               ; preds = %72, %70
  br label %150

74:                                               ; preds = %45
  br label %75

75:                                               ; preds = %74, %44
  %76 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %77 = load i32, ptr %76, align 4, !tbaa !38
  %78 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 11
  %79 = load i64, ptr %78, align 8, !tbaa !39
  %80 = trunc i64 %79 to i32
  %81 = icmp sle i32 %77, %80
  br i1 %81, label %82, label %120

82:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !40
  br label %83

83:                                               ; preds = %116, %82
  %84 = load i64, ptr %16, align 8, !tbaa !40
  %85 = invoke noundef i64 @_ZNK9NOMAD_4_313ArrayOfString4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %86 unwind label %89

86:                                               ; preds = %83
  %87 = icmp ult i64 %84, %85
  br i1 %87, label %93, label %88

88:                                               ; preds = %86
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %119

89:                                               ; preds = %113, %111, %107, %105, %102, %100, %96, %93, %83
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %9, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %150

93:                                               ; preds = %86
  %94 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %95 = load i32, ptr %94, align 4, !tbaa !38
  invoke void @_ZN9NOMAD_4_311OutputQueue6indentEi(ptr noundef nonnull align 8 dereferenceable(744) %17, i32 noundef %95)
          to label %96 unwind label %89

96:                                               ; preds = %93
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo10isBlockEndEv(ptr noundef nonnull align 8 dereferenceable(80) %97)
          to label %99 unwind label %89

99:                                               ; preds = %96
  br i1 %98, label %100, label %102

100:                                              ; preds = %99
  invoke void @_ZN9NOMAD_4_311OutputQueue8endBlockEv(ptr noundef nonnull align 8 dereferenceable(744) %17)
          to label %101 unwind label %89

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101, %99
  %103 = load i64, ptr %16, align 8, !tbaa !40
  %104 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9NOMAD_4_313ArrayOfStringixB5cxx11Em(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %103)
          to label %105 unwind label %89

105:                                              ; preds = %102
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %104)
          to label %107 unwind label %89

107:                                              ; preds = %105
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo12isBlockStartEv(ptr noundef nonnull align 8 dereferenceable(80) %108)
          to label %110 unwind label %89

110:                                              ; preds = %107
  br i1 %109, label %111, label %113

111:                                              ; preds = %110
  invoke void @_ZN9NOMAD_4_311OutputQueue10startBlockEv(ptr noundef nonnull align 8 dereferenceable(744) %17)
          to label %112 unwind label %89

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112, %110
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %115 unwind label %89

115:                                              ; preds = %113
  br label %116

116:                                              ; preds = %115
  %117 = load i64, ptr %16, align 8, !tbaa !40
  %118 = add i64 %117, 1
  store i64 %118, ptr %16, align 8, !tbaa !40
  br label %83, !llvm.loop !41

119:                                              ; preds = %88
  br label %137

120:                                              ; preds = %75
  %121 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %122 = load i32, ptr %121, align 4, !tbaa !38
  %123 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 11
  %124 = load i64, ptr %123, align 8, !tbaa !39
  %125 = trunc i64 %124 to i32
  %126 = add nsw i32 %125, 1
  %127 = icmp eq i32 %122, %126
  br i1 %127, label %128, label %136

128:                                              ; preds = %120
  %129 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %130 = load i32, ptr %129, align 4, !tbaa !38
  invoke void @_ZN9NOMAD_4_311OutputQueue6indentEi(ptr noundef nonnull align 8 dereferenceable(744) %17, i32 noundef %130)
          to label %131 unwind label %37

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.26)
          to label %133 unwind label %37

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %135 unwind label %37

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135, %120
  br label %137

137:                                              ; preds = %136, %119
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = invoke noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo12isBlockStartEv(ptr noundef nonnull align 8 dereferenceable(80) %138)
          to label %140 unwind label %37

140:                                              ; preds = %137
  br i1 %139, label %141, label %145

141:                                              ; preds = %140
  %142 = getelementptr inbounds %"class.NOMAD_4_3::OutputQueue", ptr %17, i32 0, i32 13
  %143 = load i32, ptr %142, align 4, !tbaa !38
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %142, align 4, !tbaa !38
  br label %145

145:                                              ; preds = %141, %140
  br label %146

146:                                              ; preds = %145, %36
  call void @_ZN9NOMAD_4_313ArrayOfStringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  store i32 0, ptr %7, align 4
  br label %147

147:                                              ; preds = %146, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %148 = load i32, ptr %7, align 4
  switch i32 %148, label %156 [
    i32 0, label %149
    i32 1, label %149
  ]

149:                                              ; preds = %147, %147
  ret void

150:                                              ; preds = %89, %73, %37
  call void @_ZN9NOMAD_4_313ArrayOfStringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %151

151:                                              ; preds = %150
  %152 = load ptr, ptr %9, align 8
  %153 = load i32, ptr %10, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155

156:                                              ; preds = %147, %56
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_311OutputQueue6indentEi(ptr noundef nonnull align 8 dereferenceable(744), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_311OutputQueue21flushStatsToStatsFileEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744), ptr noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_311OutputQueue18flushStatsToStdoutEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo10isBlockEndEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo12isBlockStartEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 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 = { "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 }
attributes #7 = { noreturn }

!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 = !{!"_ZTSN9NOMAD_4_311OutputLevelE", !7, i64 0}
!11 = !{!12, !10, i64 672}
!12 = !{!"_ZTSN9NOMAD_4_311OutputQueueE", !13, i64 8, !17, i64 32, !20, i64 48, !23, i64 80, !29, i64 592, !22, i64 600, !33, i64 608, !22, i64 640, !22, i64 648, !22, i64 656, !22, i64 664, !10, i64 672, !32, i64 676, !20, i64 680, !20, i64 712}
!13 = !{!"_ZTSSt6vectorIN9NOMAD_4_310OutputInfoESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_310OutputInfoESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_310OutputInfoESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_310OutputInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt10shared_ptrIN9NOMAD_4_317DisplayParametersEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN9NOMAD_4_317DisplayParametersELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !24, i64 0, !25, i64 8}
!24 = !{!"_ZTSSo"}
!25 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !26, i64 0, !7, i64 64, !28, i64 104, !30, i64 120, !31, i64 124, !31, i64 132, !31, i64 140, !6, i64 152, !22, i64 160, !29, i64 168, !29, i64 169, !29, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !29, i64 192, !6, i64 200, !6, i64 208, !22, i64 216, !6, i64 224, !6, i64 232}
!26 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !27, i64 56}
!27 = !{!"_ZTSSt6locale", !6, i64 0}
!28 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !29, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!31 = !{!"_ZTS11__mbstate_t", !32, i64 0, !7, i64 4}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSN9NOMAD_4_313ArrayOfStringE", !34, i64 8}
!34 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!12, !32, i64 676}
!39 = !{!12, !22, i64 664}
!40 = !{!22, !22, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.NOMAD_4_3::ArrayOfString" = type { ptr, %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.14 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZTIN9NOMAD_4_39ExceptionE = external constant ptr
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.25 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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: nounwind
declare void @_ZN9NOMAD_4_313ArrayOfStringD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9NOMAD_4_313ArrayOfStringixB5cxx11Em(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_311OutputQueue10flushBlockERKNS_10OutputInfoE(ptr noundef nonnull align 8 dereferenceable(744) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.NOMAD_4_3::ArrayOfString", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9NOMAD_4_310OutputInfo14getOutputLevelEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = tail call noundef ptr @_ZNK9NOMAD_4_310OutputInfo12getStatsInfoEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  tail call void @_ZN9NOMAD_4_311OutputQueue21flushStatsToStatsFileEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744) %0, ptr noundef %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 672
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp sgt i32 %9, %12
  br i1 %13, label %77, label %14

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  %15 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9NOMAD_4_310OutputInfo6getMsgEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @_ZN9NOMAD_4_313ArrayOfStringC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %15)
  %16 = icmp eq i32 %9, 5
  br i1 %16, label %17, label %20

17:                                               ; preds = %14
  invoke void @_ZN9NOMAD_4_311OutputQueue18flushStatsToStdoutEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744) %0, ptr noundef %10)
          to label %76 unwind label %18

18:                                               ; preds = %70, %68, %67, %17
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %78

20:                                               ; preds = %14
  %21 = call noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo10isBlockEndEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %22 = getelementptr inbounds i8, ptr %0, i64 676
  %23 = load i32, ptr %22, align 4, !tbaa !37
  br i1 %21, label %24, label %._crit_edge

24:                                               ; preds = %20
  %25 = add nsw i32 %23, -1
  store i32 %25, ptr %22, align 4, !tbaa !37
  %26 = icmp slt i32 %23, 1
  br i1 %26, label %27, label %._crit_edge

27:                                               ; preds = %24
  %28 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %29 unwind label %.thread

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %30 unwind label %33

30:                                               ; preds = %29
  invoke void @_ZN9NOMAD_4_39ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmS8_(ptr noundef nonnull align 8 dereferenceable(112) %28, ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 368, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %31 unwind label %35

31:                                               ; preds = %30
  invoke void @__cxa_throw(ptr nonnull %28, ptr nonnull @_ZTIN9NOMAD_4_39ExceptionE, ptr nonnull @_ZN9NOMAD_4_39ExceptionD2Ev) #7
          to label %79 unwind label %35

.thread:                                          ; preds = %27
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %38

33:                                               ; preds = %29
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %31, %30
  %.017 = phi i1 [ false, %31 ], [ true, %30 ]
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %37

37:                                               ; preds = %33, %35
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  %.1 = phi i1 [ %.017, %35 ], [ true, %33 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br i1 %.1, label %38, label %78

38:                                               ; preds = %.thread, %37
  %.pn.pn33 = phi { ptr, i32 } [ %32, %.thread ], [ %.pn, %37 ]
  call void @__cxa_free_exception(ptr %28) #6
  br label %78

._crit_edge:                                      ; preds = %20, %24
  %39 = phi i32 [ %25, %24 ], [ %23, %20 ]
  %40 = getelementptr inbounds i8, ptr %0, i64 676
  %41 = getelementptr inbounds i8, ptr %0, i64 664
  %42 = load i64, ptr %41, align 8, !tbaa !38
  %43 = trunc i64 %42 to i32
  %.not = icmp sgt i32 %39, %43
  br i1 %.not, label %64, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %44 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfString4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %.not35 = icmp eq i64 %44, 0
  br i1 %.not35, label %.loopexit, label %.lr.ph

45:                                               ; preds = %58, %57, %53, %51, %50, %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph:                                           ; preds = %.preheader, %60
  %.034 = phi i64 [ %61, %60 ], [ 0, %.preheader ]
  %47 = load i32, ptr %40, align 4, !tbaa !37
  invoke void @_ZN9NOMAD_4_311OutputQueue6indentEi(ptr noundef nonnull align 8 dereferenceable(744) %0, i32 noundef %47)
          to label %48 unwind label %45

48:                                               ; preds = %.lr.ph
  %49 = call noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo10isBlockEndEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %49, label %50, label %51

50:                                               ; preds = %48
  invoke void @_ZN9NOMAD_4_311OutputQueue8endBlockEv(ptr noundef nonnull align 8 dereferenceable(744) %0)
          to label %51 unwind label %45

51:                                               ; preds = %50, %48
  %52 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9NOMAD_4_313ArrayOfStringixB5cxx11Em(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.034)
          to label %53 unwind label %45

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %55 unwind label %45

55:                                               ; preds = %53
  %56 = call noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo12isBlockStartEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  invoke void @_ZN9NOMAD_4_311OutputQueue10startBlockEv(ptr noundef nonnull align 8 dereferenceable(744) %0)
          to label %58 unwind label %45

58:                                               ; preds = %57, %55
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %60 unwind label %45

60:                                               ; preds = %58
  %61 = add nuw i64 %.034, 1
  %62 = call noundef i64 @_ZNK9NOMAD_4_313ArrayOfString4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %.lr.ph, label %.loopexit, !llvm.loop !39

64:                                               ; preds = %._crit_edge
  %65 = add nsw i32 %43, 1
  %66 = icmp eq i32 %39, %65
  br i1 %66, label %67, label %.loopexit

67:                                               ; preds = %64
  invoke void @_ZN9NOMAD_4_311OutputQueue6indentEi(ptr noundef nonnull align 8 dereferenceable(744) %0, i32 noundef %39)
          to label %68 unwind label %18

68:                                               ; preds = %67
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.26)
          to label %70 unwind label %18

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %18

.loopexit:                                        ; preds = %60, %.preheader, %64, %70
  %72 = call noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo12isBlockStartEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %72, label %73, label %76

73:                                               ; preds = %.loopexit
  %74 = load i32, ptr %40, align 4, !tbaa !37
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %40, align 4, !tbaa !37
  br label %76

76:                                               ; preds = %.loopexit, %73, %17
  call void @_ZN9NOMAD_4_313ArrayOfStringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %77

77:                                               ; preds = %2, %76
  ret void

78:                                               ; preds = %37, %38, %45, %18
  %.pn29 = phi { ptr, i32 } [ %19, %18 ], [ %.pn.pn33, %38 ], [ %.pn, %37 ], [ %46, %45 ]
  call void @_ZN9NOMAD_4_313ArrayOfStringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn29

79:                                               ; preds = %31
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_311OutputQueue6indentEi(ptr noundef nonnull align 8 dereferenceable(744), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_311OutputQueue21flushStatsToStatsFileEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744), ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NOMAD_4_311OutputQueue18flushStatsToStdoutEPKNS_9StatsInfoE(ptr noundef nonnull align 8 dereferenceable(744), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo10isBlockEndEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9NOMAD_4_310OutputInfo12isBlockStartEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 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 = { "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 }
attributes #7 = { noreturn }

!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 = !{!"_ZTSN9NOMAD_4_311OutputLevelE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 672}
!10 = !{!"_ZTSN9NOMAD_4_311OutputQueueE", !11, i64 8, !16, i64 32, !19, i64 48, !22, i64 80, !28, i64 592, !21, i64 600, !32, i64 608, !21, i64 640, !21, i64 648, !21, i64 656, !21, i64 664, !6, i64 672, !31, i64 676, !19, i64 680, !19, i64 712}
!11 = !{!"_ZTSSt6vectorIN9NOMAD_4_310OutputInfoESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN9NOMAD_4_310OutputInfoESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_310OutputInfoESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN9NOMAD_4_310OutputInfoESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt10shared_ptrIN9NOMAD_4_317DisplayParametersEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN9NOMAD_4_317DisplayParametersELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !23, i64 0, !24, i64 8}
!23 = !{!"_ZTSSo"}
!24 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !25, i64 0, !7, i64 64, !27, i64 104, !29, i64 120, !30, i64 124, !30, i64 132, !30, i64 140, !15, i64 152, !21, i64 160, !28, i64 168, !28, i64 169, !28, i64 170, !7, i64 171, !15, i64 176, !15, i64 184, !28, i64 192, !15, i64 200, !15, i64 208, !21, i64 216, !15, i64 224, !15, i64 232}
!25 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !26, i64 56}
!26 = !{!"_ZTSSt6locale", !15, i64 0}
!27 = !{!"_ZTSSt12__basic_fileIcE", !15, i64 0, !28, i64 8}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!30 = !{!"_ZTS11__mbstate_t", !31, i64 0, !7, i64 4}
!31 = !{!"int", !7, i64 0}
!32 = !{!"_ZTSN9NOMAD_4_313ArrayOfStringE", !33, i64 8}
!33 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!37 = !{!10, !31, i64 676}
!38 = !{!10, !21, i64 664}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


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