; LLVM IR from gem5/gem5 :: src/systemc/tests/tlm/endian_conv (test_endian_conv)

; 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.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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"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.8 }
%union.anon.8 = type { i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.47 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [22 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.51 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [103 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17test_a_conversioncRN3tlm19tlm_generic_payloadERSt14basic_ifstreamIcSt11char_traitsIcEE(i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(140), ptr noundef nonnull align 8 dereferenceable(256)) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11pool_statusv() #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::basic_ifstream", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [7 x ptr], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.47)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.48)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.49)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.start.p0(i64 520, ptr %7) #8
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7)
          to label %21 unwind label %27

21:                                               ; preds = %2
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp eq i32 1, %22
  br i1 %23, label %24, label %35

24:                                               ; preds = %21
  %25 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.50)
          to label %26 unwind label %31

26:                                               ; preds = %24
  br label %50

27:                                               ; preds = %2
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %8, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %9, align 4
  br label %223

31:                                               ; preds = %63, %61, %59, %52, %50, %46, %44, %38, %24
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  br label %222

35:                                               ; preds = %21
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = icmp eq i32 2, %36
  br i1 %37, label %38, label %44

38:                                               ; preds = %35
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 1
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %41)
          to label %43 unwind label %31

43:                                               ; preds = %38
  br label %49

44:                                               ; preds = %35
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.51)
          to label %46 unwind label %31

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %48 unwind label %31

48:                                               ; preds = %46
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %220

49:                                               ; preds = %43
  br label %50

50:                                               ; preds = %49, %26
  %51 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef %51, i32 noundef 8)
          to label %52 unwind label %31

52:                                               ; preds = %50
  %53 = load ptr, ptr %7, align 8, !tbaa !11
  %54 = getelementptr i8, ptr %53, i64 -24
  %55 = load i64, ptr %54, align 8
  %56 = getelementptr inbounds i8, ptr %7, i64 %55
  %57 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %56)
          to label %58 unwind label %31

58:                                               ; preds = %52
  br i1 %57, label %59, label %66

59:                                               ; preds = %58
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.52)
          to label %61 unwind label %31

61:                                               ; preds = %59
  %62 = 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) %60, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %63 unwind label %31

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %65 unwind label %31

65:                                               ; preds = %63
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %220

66:                                               ; preds = %58
  %67 = call i64 @time(ptr noundef null) #8
  %68 = trunc i64 %67 to i32
  call void @srand(i32 noundef %68) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 7, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 4, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %80, %66
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 7
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %92

73:                                               ; preds = %69
  %74 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 144) #9
          to label %75 unwind label %83

75:                                               ; preds = %73
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %74)
          to label %76 unwind label %87

76:                                               ; preds = %75
  %77 = load i32, ptr %14, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %78
  store ptr %74, ptr %79, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %76
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %14, align 4, !tbaa !5
  br label %69, !llvm.loop !13

83:                                               ; preds = %73
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  br label %91

87:                                               ; preds = %75
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %74, i64 noundef 144) #10
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %219

92:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %187, %92
  br i1 true, label %95, label %94

94:                                               ; preds = %93
  store i32 5, ptr %10, align 4
  br label %192

95:                                               ; preds = %93
  %96 = load i32, ptr %15, align 4, !tbaa !5
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %96)
          to label %98 unwind label %111

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str.53)
          to label %100 unwind label %111

100:                                              ; preds = %98
  invoke void @_Z11pool_statusv()
          to label %101 unwind label %111

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %103 unwind label %115

103:                                              ; preds = %101
  %104 = load ptr, ptr %7, align 8, !tbaa !11
  %105 = getelementptr i8, ptr %104, i64 -24
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds i8, ptr %7, i64 %106
  %108 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %107)
          to label %109 unwind label %115

109:                                              ; preds = %103
  br i1 %108, label %110, label %119

110:                                              ; preds = %109
  store i32 5, ptr %10, align 4
  br label %184

111:                                              ; preds = %100, %98, %95
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %8, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %9, align 4
  br label %193

115:                                              ; preds = %177, %163, %157, %154, %153, %141, %103, %101
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %8, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %9, align 4
  br label %191

119:                                              ; preds = %109
  %120 = load i8, ptr %16, align 1, !tbaa !15
  %121 = sext i8 %120 to i32
  %122 = icmp ne i32 %121, 82
  br i1 %122, label %123, label %128

123:                                              ; preds = %119
  %124 = load i8, ptr %16, align 1, !tbaa !15
  %125 = sext i8 %124 to i32
  %126 = icmp ne i32 %125, 87
  br i1 %126, label %127, label %128

127:                                              ; preds = %123
  store i32 5, ptr %10, align 4
  br label %184

128:                                              ; preds = %123, %119
  %129 = load i32, ptr %15, align 4, !tbaa !5
  %130 = icmp eq i32 %129, 4
  br i1 %130, label %131, label %177

131:                                              ; preds = %128
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = icmp eq ptr %135, null
  br i1 %136, label %141, label %137

137:                                              ; preds = %131
  %138 = load ptr, ptr %135, align 8, !tbaa !11
  %139 = getelementptr inbounds ptr, ptr %138, i64 1
  %140 = load ptr, ptr %139, align 8
  call void %140(ptr noundef nonnull align 8 dereferenceable(140) %135) #8
  br label %141

141:                                              ; preds = %137, %131
  invoke void @_Z11pool_statusv()
          to label %142 unwind label %115

142:                                              ; preds = %141
  %143 = load i32, ptr %15, align 4, !tbaa !5
  %144 = sub nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = icmp eq ptr %147, null
  br i1 %148, label %153, label %149

149:                                              ; preds = %142
  %150 = load ptr, ptr %147, align 8, !tbaa !11
  %151 = getelementptr inbounds ptr, ptr %150, i64 1
  %152 = load ptr, ptr %151, align 8
  call void %152(ptr noundef nonnull align 8 dereferenceable(140) %147) #8
  br label %153

153:                                              ; preds = %149, %142
  invoke void @_Z11pool_statusv()
          to label %154 unwind label %115

154:                                              ; preds = %153
  %155 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 144) #9
          to label %156 unwind label %115

156:                                              ; preds = %154
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %155)
          to label %157 unwind label %169

157:                                              ; preds = %156
  %158 = load i32, ptr %15, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %159
  store ptr %155, ptr %160, align 8, !tbaa !9
  %161 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 144) #9
          to label %162 unwind label %115

162:                                              ; preds = %157
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %161)
          to label %163 unwind label %173

163:                                              ; preds = %162
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %166
  store ptr %161, ptr %167, align 8, !tbaa !9
  invoke void @_Z11pool_statusv()
          to label %168 unwind label %115

168:                                              ; preds = %163
  br label %177

169:                                              ; preds = %156
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %8, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %155, i64 noundef 144) #10
  br label %191

173:                                              ; preds = %162
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %8, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %161, i64 noundef 144) #10
  br label %191

177:                                              ; preds = %168, %128
  %178 = load i8, ptr %16, align 1, !tbaa !15
  %179 = load i32, ptr %15, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  invoke void @_Z17test_a_conversioncRN3tlm19tlm_generic_payloadERSt14basic_ifstreamIcSt11char_traitsIcEE(i8 noundef signext %178, ptr noundef nonnull align 8 dereferenceable(140) %182, ptr noundef nonnull align 8 dereferenceable(256) %7)
          to label %183 unwind label %115

183:                                              ; preds = %177
  store i32 0, ptr %10, align 4
  br label %184

184:                                              ; preds = %183, %127, %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  %185 = load i32, ptr %10, align 4
  switch i32 %185, label %192 [
    i32 0, label %186
  ]

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %15, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  %190 = srem i32 %189, 7
  store i32 %190, ptr %15, align 4, !tbaa !5
  br label %93, !llvm.loop !16

191:                                              ; preds = %173, %169, %115
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  br label %193

192:                                              ; preds = %184, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %194

193:                                              ; preds = %191, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %219

194:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %211, %194
  %196 = load i32, ptr %17, align 4, !tbaa !5
  %197 = icmp slt i32 %196, 7
  br i1 %197, label %199, label %198

198:                                              ; preds = %195
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %218

199:                                              ; preds = %195
  %200 = load i32, ptr %17, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !9
  %204 = icmp eq ptr %203, null
  br i1 %204, label %209, label %205

205:                                              ; preds = %199
  %206 = load ptr, ptr %203, align 8, !tbaa !11
  %207 = getelementptr inbounds ptr, ptr %206, i64 1
  %208 = load ptr, ptr %207, align 8
  call void %208(ptr noundef nonnull align 8 dereferenceable(140) %203) #8
  br label %209

209:                                              ; preds = %205, %199
  invoke void @_Z11pool_statusv()
          to label %210 unwind label %214

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %17, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %17, align 4, !tbaa !5
  br label %195, !llvm.loop !17

214:                                              ; preds = %209
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %8, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %219

218:                                              ; preds = %198
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %220

219:                                              ; preds = %214, %193, %91
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %222

220:                                              ; preds = %218, %65, %48
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  %221 = load i32, ptr %3, align 4
  ret i32 %221

222:                                              ; preds = %219, %31
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #8
  br label %223

223:                                              ; preds = %222, %27
  call void @llvm.lifetime.end.p0(i64 520, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  br label %224

224:                                              ; preds = %223
  %225 = load ptr, ptr %8, align 8
  %226 = load i32, ptr %9, align 4
  %227 = insertvalue { ptr, i32 } poison, ptr %225, 0
  %228 = insertvalue { ptr, i32 } %227, i32 %226, 1
  resume { ptr, i32 } %228
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

; 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: nounwind
declare void @srand(i32 noundef) #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) 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 = { "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 = { 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 #6 = { nobuiltin allocsize(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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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.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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"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.8 }
%union.anon.8 = type { i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.47 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [22 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.51 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [103 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17test_a_conversioncRN3tlm19tlm_generic_payloadERSt14basic_ifstreamIcSt11char_traitsIcEE(i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(140), ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_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

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

; 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11pool_statusv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 2) i32 @sc_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::basic_ifstream", align 8
  %5 = alloca [7 x ptr], align 16
  %6 = alloca i8, align 1
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.47)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.48)
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.49)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #8
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %10 unwind label %13

10:                                               ; preds = %2
  switch i32 %0, label %21 [
    i32 1, label %11
    i32 2, label %17
  ]

11:                                               ; preds = %10
  %12 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.50)
          to label %23 unwind label %15

13:                                               ; preds = %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %190

15:                                               ; preds = %.invoke, %34, %32, %25, %23, %21, %17, %11
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %189

17:                                               ; preds = %10
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %19)
          to label %23 unwind label %15

21:                                               ; preds = %10
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.51)
          to label %.invoke unwind label %15

23:                                               ; preds = %17, %11
  %24 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %24, i32 noundef 8)
          to label %25 unwind label %15

25:                                               ; preds = %23
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %4, i64 %28
  %30 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %29)
          to label %31 unwind label %15

31:                                               ; preds = %25
  br i1 %30, label %32, label %38

32:                                               ; preds = %31
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.52)
          to label %34 unwind label %15

34:                                               ; preds = %32
  %35 = 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) %33, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.invoke unwind label %15

.invoke:                                          ; preds = %34, %21
  %36 = phi ptr [ %22, %21 ], [ %35, %34 ]
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %188 unwind label %15

38:                                               ; preds = %31
  %39 = call i64 @time(ptr noundef null) #8
  %40 = trunc i64 %39 to i32
  call void @srand(i32 noundef %40) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #8
  %41 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %42 unwind label %67

42:                                               ; preds = %38
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %41)
          to label %43 unwind label %69

43:                                               ; preds = %42
  store ptr %41, ptr %5, align 16, !tbaa !5
  %44 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %45 unwind label %67

45:                                               ; preds = %43
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %44)
          to label %46 unwind label %69

46:                                               ; preds = %45
  %47 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %44, ptr %47, align 8, !tbaa !5
  %48 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %49 unwind label %67

49:                                               ; preds = %46
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %48)
          to label %50 unwind label %69

50:                                               ; preds = %49
  %51 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %48, ptr %51, align 16, !tbaa !5
  %52 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %53 unwind label %67

53:                                               ; preds = %50
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %52)
          to label %54 unwind label %69

54:                                               ; preds = %53
  %55 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %52, ptr %55, align 8, !tbaa !5
  %56 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %57 unwind label %67

57:                                               ; preds = %54
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %56)
          to label %58 unwind label %69

58:                                               ; preds = %57
  %59 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %56, ptr %59, align 16, !tbaa !5
  %60 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %61 unwind label %67

61:                                               ; preds = %58
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %60)
          to label %62 unwind label %69

62:                                               ; preds = %61
  %63 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %60, ptr %63, align 8, !tbaa !5
  %64 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %65 unwind label %67

65:                                               ; preds = %62
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %64)
          to label %.preheader unwind label %69

.preheader:                                       ; preds = %65
  %66 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %64, ptr %66, align 16, !tbaa !5
  br label %71

67:                                               ; preds = %62, %58, %54, %50, %46, %43, %38
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %187

69:                                               ; preds = %65, %61, %57, %53, %49, %45, %42
  %.lcssa53 = phi ptr [ %41, %42 ], [ %44, %45 ], [ %48, %49 ], [ %52, %53 ], [ %56, %57 ], [ %60, %61 ], [ %64, %65 ]
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %.lcssa53, i64 noundef 144) #10
  br label %187

71:                                               ; preds = %.preheader, %126
  %72 = phi ptr [ %121, %126 ], [ %52, %.preheader ]
  %73 = phi ptr [ %122, %126 ], [ %56, %.preheader ]
  %.022 = phi i32 [ %128, %126 ], [ 0, %.preheader ]
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.022)
          to label %75 unwind label %86

75:                                               ; preds = %71
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @.str.53)
          to label %77 unwind label %86

77:                                               ; preds = %75
  invoke void @_Z11pool_statusv()
          to label %78 unwind label %86

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %80 unwind label %88

80:                                               ; preds = %78
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = getelementptr i8, ptr %81, i64 -24
  %83 = load i64, ptr %82, align 8
  %84 = getelementptr inbounds i8, ptr %4, i64 %83
  %85 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %84)
  br i1 %85, label %.critedge, label %90

86:                                               ; preds = %77, %75, %71
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %187

88:                                               ; preds = %119, %114, %111, %108, %107, %100, %78
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %129

90:                                               ; preds = %80
  %91 = load i8, ptr %6, align 1
  switch i8 %91, label %.critedge [
    i8 87, label %92
    i8 82, label %92
  ]

92:                                               ; preds = %90, %90
  %93 = icmp eq i32 %.022, 4
  br i1 %93, label %94, label %119

94:                                               ; preds = %92
  %95 = icmp eq ptr %73, null
  br i1 %95, label %100, label %96

96:                                               ; preds = %94
  %97 = load ptr, ptr %73, align 8, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8
  call void %99(ptr noundef nonnull align 8 dereferenceable(140) %73) #8
  br label %100

100:                                              ; preds = %96, %94
  invoke void @_Z11pool_statusv()
          to label %101 unwind label %88

101:                                              ; preds = %100
  %102 = icmp eq ptr %72, null
  br i1 %102, label %107, label %103

103:                                              ; preds = %101
  %104 = load ptr, ptr %72, align 8, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load ptr, ptr %105, align 8
  call void %106(ptr noundef nonnull align 8 dereferenceable(140) %72) #8
  br label %107

107:                                              ; preds = %103, %101
  invoke void @_Z11pool_statusv()
          to label %108 unwind label %88

108:                                              ; preds = %107
  %109 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %110 unwind label %88

110:                                              ; preds = %108
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %109)
          to label %111 unwind label %115

111:                                              ; preds = %110
  store ptr %109, ptr %59, align 16, !tbaa !5
  %112 = invoke noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #9
          to label %113 unwind label %88

113:                                              ; preds = %111
  invoke void @_ZN3tlm19tlm_generic_payloadC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %112)
          to label %114 unwind label %117

114:                                              ; preds = %113
  store ptr %112, ptr %55, align 8, !tbaa !5
  invoke void @_Z11pool_statusv()
          to label %._crit_edge unwind label %88

._crit_edge:                                      ; preds = %114
  %.pre = load i8, ptr %6, align 1, !tbaa !11
  br label %119

115:                                              ; preds = %110
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %109, i64 noundef 144) #10
  br label %129

117:                                              ; preds = %113
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %112, i64 noundef 144) #10
  br label %129

119:                                              ; preds = %._crit_edge, %92
  %120 = phi i8 [ %.pre, %._crit_edge ], [ %91, %92 ]
  %121 = phi ptr [ %112, %._crit_edge ], [ %72, %92 ]
  %122 = phi ptr [ %109, %._crit_edge ], [ %73, %92 ]
  %123 = sext i32 %.022 to i64
  %124 = getelementptr inbounds [7 x ptr], ptr %5, i64 0, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  invoke void @_Z17test_a_conversioncRN3tlm19tlm_generic_payloadERSt14basic_ifstreamIcSt11char_traitsIcEE(i8 noundef signext %120, ptr noundef nonnull align 8 dereferenceable(140) %125, ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %126 unwind label %88

126:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %127 = add nsw i32 %.022, 1
  %128 = srem i32 %127, 7
  br label %71, !llvm.loop !12

129:                                              ; preds = %117, %115, %88
  %.pn = phi { ptr, i32 } [ %89, %88 ], [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %187

.critedge:                                        ; preds = %90, %80
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %130 = load ptr, ptr %5, align 16, !tbaa !5
  %131 = icmp eq ptr %130, null
  br i1 %131, label %136, label %132

132:                                              ; preds = %.critedge
  %133 = load ptr, ptr %130, align 8, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  %135 = load ptr, ptr %134, align 8
  call void %135(ptr noundef nonnull align 8 dereferenceable(140) %130) #8
  br label %136

136:                                              ; preds = %132, %.critedge
  invoke void @_Z11pool_statusv()
          to label %137 unwind label %185

137:                                              ; preds = %136
  %138 = load ptr, ptr %47, align 8, !tbaa !5
  %139 = icmp eq ptr %138, null
  br i1 %139, label %144, label %140

140:                                              ; preds = %137
  %141 = load ptr, ptr %138, align 8, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %143 = load ptr, ptr %142, align 8
  call void %143(ptr noundef nonnull align 8 dereferenceable(140) %138) #8
  br label %144

144:                                              ; preds = %140, %137
  invoke void @_Z11pool_statusv()
          to label %145 unwind label %185

145:                                              ; preds = %144
  %146 = load ptr, ptr %51, align 16, !tbaa !5
  %147 = icmp eq ptr %146, null
  br i1 %147, label %152, label %148

148:                                              ; preds = %145
  %149 = load ptr, ptr %146, align 8, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %149, i64 8
  %151 = load ptr, ptr %150, align 8
  call void %151(ptr noundef nonnull align 8 dereferenceable(140) %146) #8
  br label %152

152:                                              ; preds = %148, %145
  invoke void @_Z11pool_statusv()
          to label %153 unwind label %185

153:                                              ; preds = %152
  %154 = icmp eq ptr %72, null
  br i1 %154, label %159, label %155

155:                                              ; preds = %153
  %156 = load ptr, ptr %72, align 8, !tbaa !9
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  %158 = load ptr, ptr %157, align 8
  call void %158(ptr noundef nonnull align 8 dereferenceable(140) %72) #8
  br label %159

159:                                              ; preds = %155, %153
  invoke void @_Z11pool_statusv()
          to label %160 unwind label %185

160:                                              ; preds = %159
  %161 = load ptr, ptr %59, align 16, !tbaa !5
  %162 = icmp eq ptr %161, null
  br i1 %162, label %167, label %163

163:                                              ; preds = %160
  %164 = load ptr, ptr %161, align 8, !tbaa !9
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load ptr, ptr %165, align 8
  call void %166(ptr noundef nonnull align 8 dereferenceable(140) %161) #8
  br label %167

167:                                              ; preds = %163, %160
  invoke void @_Z11pool_statusv()
          to label %168 unwind label %185

168:                                              ; preds = %167
  %169 = load ptr, ptr %63, align 8, !tbaa !5
  %170 = icmp eq ptr %169, null
  br i1 %170, label %175, label %171

171:                                              ; preds = %168
  %172 = load ptr, ptr %169, align 8, !tbaa !9
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = load ptr, ptr %173, align 8
  call void %174(ptr noundef nonnull align 8 dereferenceable(140) %169) #8
  br label %175

175:                                              ; preds = %171, %168
  invoke void @_Z11pool_statusv()
          to label %176 unwind label %185

176:                                              ; preds = %175
  %177 = load ptr, ptr %66, align 16, !tbaa !5
  %178 = icmp eq ptr %177, null
  br i1 %178, label %183, label %179

179:                                              ; preds = %176
  %180 = load ptr, ptr %177, align 8, !tbaa !9
  %181 = getelementptr inbounds i8, ptr %180, i64 8
  %182 = load ptr, ptr %181, align 8
  call void %182(ptr noundef nonnull align 8 dereferenceable(140) %177) #8
  br label %183

183:                                              ; preds = %179, %176
  invoke void @_Z11pool_statusv()
          to label %184 unwind label %185

184:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  br label %188

185:                                              ; preds = %183, %175, %167, %159, %152, %144, %136
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %187

187:                                              ; preds = %86, %129, %67, %69, %185
  %.pn39.pn = phi { ptr, i32 } [ %186, %185 ], [ %70, %69 ], [ %68, %67 ], [ %.pn, %129 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  br label %189

188:                                              ; preds = %.invoke, %184
  %.024 = phi i32 [ 0, %184 ], [ 1, %.invoke ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  ret i32 %.024

189:                                              ; preds = %187, %15
  %.pn42 = phi { ptr, i32 } [ %16, %15 ], [ %.pn39.pn, %187 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #8
  br label %190

190:                                              ; preds = %189, %13
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %189 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn42.pn
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

; 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: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) 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 = { "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 = { 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 #6 = { nobuiltin allocsize(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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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