; LLVM IR from EricZinda/InductorHtn :: src/Tests/Prolog (PrologCompilerTests)

; 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.SuitePrologCompilerTests::ParserTestBasePrologParserTestsHelper" = type { ptr }
%"class.UnitTest::TestDetails" = type <{ ptr, ptr, ptr, i32, i8, i8, [2 x i8] }>
%"class.UnitTest::MemoryOutStream" = type { %"class.std::__cxx11::basic_ostringstream.base", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"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_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.UnitTest::Test" = type <{ ptr, %"class.UnitTest::TestDetails", ptr, i8, [7 x i8] }>

@_ZTIN8UnitTest15AssertExceptionE = external constant ptr
@_ZTISt9exception = external constant ptr
@.str.137 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [22 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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv() #1

declare void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(30), ptr noundef) #1

declare void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(30), ptr noundef nonnull align 8 dereferenceable(30), i32 noundef) unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

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

; 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) #5

declare noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144)) #1

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

declare noundef ptr @_ZNK8UnitTest15AssertException8FilenameEv(ptr noundef nonnull align 8 dereferenceable(76)) #1

declare noundef i32 @_ZNK8UnitTest15AssertException10LineNumberEv(ptr noundef nonnull align 8 dereferenceable(76)) #1

declare void @_ZN8UnitTest11TestDetailsC1EPKcS2_S2_ibb(ptr noundef nonnull align 8 dereferenceable(30), ptr noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24SuitePrologCompilerTests35TestParserTestBasePrologParserTests7RunImplEv(ptr noundef nonnull align 8 dereferenceable(49) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca %"class.SuitePrologCompilerTests::ParserTestBasePrologParserTestsHelper", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.UnitTest::TestDetails", align 8
  %8 = alloca %"class.UnitTest::TestDetails", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.UnitTest::TestDetails", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #8
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %14 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  invoke void @_ZN24SuitePrologCompilerTests37ParserTestBasePrologParserTestsHelperC2ERKN8UnitTest11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(30) %14)
          to label %15 unwind label %18

15:                                               ; preds = %1
  store i8 1, ptr %3, align 1, !tbaa !9
  %16 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  invoke void @_ZN8UnitTest11ExecuteTestIN24SuitePrologCompilerTests37ParserTestBasePrologParserTestsHelperEEEvRT_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(30) %16)
          to label %17 unwind label %18

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

18:                                               ; preds = %15, %1
  %19 = landingpad { ptr, i32 }
          catch ptr @_ZTIN8UnitTest15AssertExceptionE
          catch ptr @_ZTISt9exception
          catch ptr null
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %5, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %22

22:                                               ; preds = %18
  %23 = load i32, ptr %6, align 4
  %24 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN8UnitTest15AssertExceptionE) #8
  %25 = icmp eq i32 %23, %24
  br i1 %25, label %26, label %52

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %27 = load ptr, ptr %5, align 8
  %28 = call ptr @__cxa_begin_catch(ptr %27) #8
  store ptr %28, ptr %11, align 8
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %30 unwind label %119

30:                                               ; preds = %26
  %31 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %32 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  %33 = getelementptr inbounds %"class.UnitTest::TestDetails", ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  %36 = getelementptr inbounds %"class.UnitTest::TestDetails", ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = invoke noundef ptr @_ZNK8UnitTest15AssertException8FilenameEv(ptr noundef nonnull align 8 dereferenceable(76) %38)
          to label %40 unwind label %123

40:                                               ; preds = %30
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = invoke noundef i32 @_ZNK8UnitTest15AssertException10LineNumberEv(ptr noundef nonnull align 8 dereferenceable(76) %41)
          to label %43 unwind label %123

43:                                               ; preds = %40
  invoke void @_ZN8UnitTest11TestDetailsC1EPKcS2_S2_ibb(ptr noundef nonnull align 8 dereferenceable(30) %12, ptr noundef %34, ptr noundef %37, ptr noundef %39, i32 noundef %42, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %44 unwind label %123

44:                                               ; preds = %43
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = getelementptr inbounds ptr, ptr %46, i64 2
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef ptr %48(ptr noundef nonnull align 8 dereferenceable(76) %45) #8
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %31, ptr noundef nonnull align 8 dereferenceable(30) %12, ptr noundef %49)
          to label %50 unwind label %123

50:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %51

51:                                               ; preds = %106, %74, %50, %17
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  ret void

52:                                               ; preds = %22
  %53 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %54 = icmp eq i32 %23, %53
  br i1 %54, label %55, label %75

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %56 = load ptr, ptr %5, align 8
  %57 = call ptr @__cxa_begin_catch(ptr %56) #8
  store ptr %57, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %10) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %10)
          to label %58 unwind label %109

58:                                               ; preds = %55
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.139)
          to label %60 unwind label %113

60:                                               ; preds = %58
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = getelementptr inbounds ptr, ptr %62, i64 2
  %64 = load ptr, ptr %63, align 8
  %65 = call noundef ptr %64(ptr noundef nonnull align 8 dereferenceable(8) %61) #8
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef %65)
          to label %67 unwind label %113

67:                                               ; preds = %60
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %69 unwind label %113

69:                                               ; preds = %67
  %70 = load ptr, ptr %68, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  %72 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %10)
          to label %73 unwind label %113

73:                                               ; preds = %69
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %70, ptr noundef nonnull align 8 dereferenceable(30) %71, ptr noundef %72)
          to label %74 unwind label %113

74:                                               ; preds = %73
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %10) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %51

75:                                               ; preds = %52
  %76 = load ptr, ptr %5, align 8
  %77 = call ptr @__cxa_begin_catch(ptr %76) #8
  %78 = load i8, ptr %3, align 1, !tbaa !9, !range !18, !noundef !19
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %95

80:                                               ; preds = %75
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %82 unwind label %87

82:                                               ; preds = %80
  %83 = load ptr, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  %84 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(30) %7, ptr noundef nonnull align 8 dereferenceable(30) %84, i32 noundef 604)
          to label %85 unwind label %91

85:                                               ; preds = %82
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %83, ptr noundef nonnull align 8 dereferenceable(30) %7, ptr noundef @.str.137)
          to label %86 unwind label %91

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %106

87:                                               ; preds = %95, %80
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %5, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %6, align 4
  br label %107

91:                                               ; preds = %85, %82
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %5, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %107

95:                                               ; preds = %75
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %97 unwind label %87

97:                                               ; preds = %95
  %98 = load ptr, ptr %96, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  %99 = getelementptr inbounds %"class.UnitTest::Test", ptr %13, i32 0, i32 1
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(30) %8, ptr noundef nonnull align 8 dereferenceable(30) %99, i32 noundef 604)
          to label %100 unwind label %102

100:                                              ; preds = %97
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %98, ptr noundef nonnull align 8 dereferenceable(30) %8, ptr noundef @.str.138)
          to label %101 unwind label %102

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  br label %106

102:                                              ; preds = %100, %97
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  br label %107

106:                                              ; preds = %101, %86
  call void @__cxa_end_catch()
  br label %51

107:                                              ; preds = %102, %91, %87
  invoke void @__cxa_end_catch()
          to label %108 unwind label %135

108:                                              ; preds = %107
  br label %129

109:                                              ; preds = %55
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %5, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %6, align 4
  br label %117

113:                                              ; preds = %73, %69, %67, %60, %58
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #8
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 408, ptr %10) #8
  invoke void @__cxa_end_catch()
          to label %118 unwind label %135

118:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %129

119:                                              ; preds = %26
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %5, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %6, align 4
  br label %127

123:                                              ; preds = %44, %43, %40, %30
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %5, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %127

127:                                              ; preds = %123, %119
  invoke void @__cxa_end_catch()
          to label %128 unwind label %135

128:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %129

129:                                              ; preds = %128, %118, %108
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  br label %130

130:                                              ; preds = %129
  %131 = load ptr, ptr %5, align 8
  %132 = load i32, ptr %6, align 4
  %133 = insertvalue { ptr, i32 } poison, ptr %131, 0
  %134 = insertvalue { ptr, i32 } %133, i32 %132, 1
  resume { ptr, i32 } %134

135:                                              ; preds = %127, %117, %107
  %136 = landingpad { ptr, i32 }
          catch ptr null
  %137 = extractvalue { ptr, i32 } %136, 0
  call void @__clang_call_terminate(ptr %137) #9
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8UnitTest11ExecuteTestIN24SuitePrologCompilerTests37ParserTestBasePrologParserTestsHelperEEEvRT_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(30)) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noinline noreturn nounwind uwtable "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 memory(none) }
attributes #4 = { 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 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTSN8UnitTest4TestE", !13, i64 8, !6, i64 40, !10, i64 48}
!13 = !{!"_ZTSN8UnitTest11TestDetailsE", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !10, i64 28, !10, i64 29}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !6, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}


; 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.SuitePrologCompilerTests::ParserTestBasePrologParserTestsHelper" = type { ptr }
%"class.UnitTest::TestDetails" = type <{ ptr, ptr, ptr, i32, i8, i8, [2 x i8] }>
%"class.UnitTest::MemoryOutStream" = type { %"class.std::__cxx11::basic_ostringstream.base", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"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_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 }

@_ZTIN8UnitTest15AssertExceptionE = external constant ptr
@_ZTISt9exception = external constant ptr
@.str.137 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [22 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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv() local_unnamed_addr #1

declare void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(30), ptr noundef) local_unnamed_addr #1

declare void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(30), ptr noundef nonnull align 8 dereferenceable(30), i32 noundef) unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

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

; 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 #5

declare noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1

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

declare noundef ptr @_ZNK8UnitTest15AssertException8FilenameEv(ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #1

declare noundef i32 @_ZNK8UnitTest15AssertException10LineNumberEv(ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #1

declare void @_ZN8UnitTest11TestDetailsC1EPKcS2_S2_ibb(ptr noundef nonnull align 8 dereferenceable(30), ptr noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24SuitePrologCompilerTests35TestParserTestBasePrologParserTests7RunImplEv(ptr noundef nonnull align 8 dereferenceable(49) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.SuitePrologCompilerTests::ParserTestBasePrologParserTestsHelper", align 8
  %3 = alloca %"class.UnitTest::TestDetails", align 8
  %4 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %5 = alloca %"class.UnitTest::TestDetails", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN24SuitePrologCompilerTests37ParserTestBasePrologParserTestsHelperC2ERKN8UnitTest11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(30) %6)
  invoke void @_ZN8UnitTest11ExecuteTestIN24SuitePrologCompilerTests37ParserTestBasePrologParserTestsHelperEEEvRT_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(30) %6)
          to label %7 unwind label %8

7:                                                ; preds = %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %32

8:                                                ; preds = %1
  %9 = landingpad { ptr, i32 }
          catch ptr @_ZTIN8UnitTest15AssertExceptionE
          catch ptr @_ZTISt9exception
          catch ptr null
  %10 = extractvalue { ptr, i32 } %9, 0
  %11 = extractvalue { ptr, i32 } %9, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %12 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN8UnitTest15AssertExceptionE) #8
  %13 = icmp eq i32 %11, %12
  br i1 %13, label %14, label %33

14:                                               ; preds = %8
  %15 = call ptr @__cxa_begin_catch(ptr %10) #8
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %17 unwind label %69

17:                                               ; preds = %14
  %18 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = load ptr, ptr %6, align 8, !tbaa !14
  %22 = invoke noundef ptr @_ZNK8UnitTest15AssertException8FilenameEv(ptr noundef nonnull align 8 dereferenceable(76) %15)
          to label %23 unwind label %71

23:                                               ; preds = %17
  %24 = invoke noundef i32 @_ZNK8UnitTest15AssertException10LineNumberEv(ptr noundef nonnull align 8 dereferenceable(76) %15)
          to label %25 unwind label %71

25:                                               ; preds = %23
  invoke void @_ZN8UnitTest11TestDetailsC1EPKcS2_S2_ibb(ptr noundef nonnull align 8 dereferenceable(30) %5, ptr noundef %20, ptr noundef %21, ptr noundef %22, i32 noundef %24, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %26 unwind label %71

26:                                               ; preds = %25
  %27 = load ptr, ptr %15, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef ptr %29(ptr noundef nonnull align 8 dereferenceable(76) %15) #8
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %18, ptr noundef nonnull align 8 dereferenceable(30) %5, ptr noundef %30)
          to label %31 unwind label %71

31:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @__cxa_end_catch()
  br label %32

32:                                               ; preds = %58, %52, %31, %7
  ret void

33:                                               ; preds = %8
  %34 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %35 = icmp eq i32 %11, %34
  %36 = call ptr @__cxa_begin_catch(ptr %10) #8
  br i1 %35, label %37, label %53

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %4) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4)
          to label %38 unwind label %64

38:                                               ; preds = %37
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.139)
          to label %40 unwind label %66

40:                                               ; preds = %38
  %41 = load ptr, ptr %36, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %42, align 8
  %44 = call noundef ptr %43(ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef %44)
          to label %46 unwind label %66

46:                                               ; preds = %40
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %48 unwind label %66

48:                                               ; preds = %46
  %49 = load ptr, ptr %47, align 8, !tbaa !5
  %50 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %4)
          to label %51 unwind label %66

51:                                               ; preds = %48
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %49, ptr noundef nonnull align 8 dereferenceable(30) %6, ptr noundef %50)
          to label %52 unwind label %66

52:                                               ; preds = %51
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %4) #8
  call void @__cxa_end_catch()
  br label %32

53:                                               ; preds = %33
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %55 unwind label %59

55:                                               ; preds = %53
  %56 = load ptr, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(30) %3, ptr noundef nonnull align 8 dereferenceable(30) %6, i32 noundef 604)
          to label %57 unwind label %61

57:                                               ; preds = %55
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %56, ptr noundef nonnull align 8 dereferenceable(30) %3, ptr noundef nonnull @.str.137)
          to label %58 unwind label %61

58:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @__cxa_end_catch()
  br label %32

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %57, %55
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  br label %63

63:                                               ; preds = %61, %59
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  invoke void @__cxa_end_catch()
          to label %74 unwind label %75

64:                                               ; preds = %37
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %51, %48, %46, %40, %38
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #8
  br label %68

68:                                               ; preds = %66, %64
  %.pn17 = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %4) #8
  invoke void @__cxa_end_catch()
          to label %74 unwind label %75

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

71:                                               ; preds = %26, %25, %23, %17
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %73

73:                                               ; preds = %71, %69
  %.pn19 = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  invoke void @__cxa_end_catch()
          to label %74 unwind label %75

74:                                               ; preds = %73, %68, %63
  %.pn19.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %.pn17, %68 ], [ %.pn19, %73 ]
  resume { ptr, i32 } %.pn19.pn

75:                                               ; preds = %73, %68, %63
  %76 = landingpad { ptr, i32 }
          catch ptr null
  %77 = extractvalue { ptr, i32 } %76, 0
  call void @__clang_call_terminate(ptr %77) #9
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8UnitTest11ExecuteTestIN24SuitePrologCompilerTests37ParserTestBasePrologParserTestsHelperEEEvRT_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(30)) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noinline noreturn nounwind uwtable "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 = { nofree nosync nounwind memory(none) }
attributes #4 = { 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 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !6, i64 16}
!10 = !{!"_ZTSN8UnitTest4TestE", !11, i64 8, !6, i64 40, !13, i64 48}
!11 = !{!"_ZTSN8UnitTest11TestDetailsE", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 28, !13, i64 29}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PromotePass,SROAPass,SimplifyCFGPass