; LLVM IR from mfem/mfem :: general/tinyxml2.ll (ZN8tinyxml211XMLDocument8LoadFileEP8_IO_FILE)

; 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.tinyxml2::XMLDocument" = type { %"class.tinyxml2::XMLNode", i8, i8, i32, i32, %"class.tinyxml2::StrPair", i32, ptr, i64, i32, i32, %"class.tinyxml2::DynArray", %"class.tinyxml2::MemPoolT", %"class.tinyxml2::MemPoolT.1", %"class.tinyxml2::MemPoolT.3", %"class.tinyxml2::MemPoolT.5" }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::DynArray" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.0", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::MemPool" = type { ptr }
%"class.tinyxml2::DynArray.0" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.1" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.2", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.2" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.3" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.4", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.4" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.5" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.6", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.6" = type { ptr, [10 x ptr], i32, i32 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8tinyxml211XMLDocument8LoadFileEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(784) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @_ZN8tinyxml211XMLDocument5ClearEv(ptr noundef nonnull align 8 dereferenceable(784) %12)
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call i32 @fseeko64(ptr noundef %13, i64 noundef 0, i32 noundef 0)
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call i32 @fgetc(ptr noundef %15)
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %25

18:                                               ; preds = %2
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call i32 @ferror(ptr noundef %19) #5
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %18
  call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %12, i32 noundef 5, i32 noundef 0, ptr noundef null)
  %23 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 3
  %24 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %24, ptr %3, align 4
  br label %82

25:                                               ; preds = %18, %2
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call i32 @fseeko64(ptr noundef %26, i64 noundef 0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i64 @ftello64(ptr noundef %28)
  store i64 %29, ptr %7, align 8, !tbaa !28
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i32 @fseeko64(ptr noundef %30, i64 noundef 0, i32 noundef 0)
  %32 = load i64, ptr %7, align 8, !tbaa !28
  %33 = icmp eq i64 %32, -1
  br i1 %33, label %34, label %37

34:                                               ; preds = %25
  call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %12, i32 noundef 5, i32 noundef 0, ptr noundef null)
  %35 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 3
  %36 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %36, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %39

37:                                               ; preds = %25
  %38 = load i64, ptr %7, align 8, !tbaa !28
  store i64 %38, ptr %6, align 8, !tbaa !28
  store i32 0, ptr %8, align 4
  br label %39

39:                                               ; preds = %37, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %40 = load i32, ptr %8, align 4
  switch i32 %40, label %81 [
    i32 0, label %41
  ]

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 -1, ptr %9, align 8, !tbaa !30
  %42 = load i64, ptr %6, align 8, !tbaa !28
  %43 = icmp uge i64 %42, -1
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %12, i32 noundef 5, i32 noundef 0, ptr noundef null)
  %45 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 3
  %46 = load i32, ptr %45, align 4, !tbaa !9
  store i32 %46, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %80

47:                                               ; preds = %41
  %48 = load i64, ptr %6, align 8, !tbaa !28
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %12, i32 noundef 14, i32 noundef 0, ptr noundef null)
  %51 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !9
  store i32 %52, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %80

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %54 = load i64, ptr %6, align 8, !tbaa !28
  store i64 %54, ptr %10, align 8, !tbaa !30
  %55 = load i64, ptr %10, align 8, !tbaa !30
  %56 = add i64 %55, 1
  %57 = call noalias noundef nonnull ptr @_Znam(i64 noundef %56) #6
  %58 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 7
  store ptr %57, ptr %58, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %59 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 7
  %60 = load ptr, ptr %59, align 8, !tbaa !31
  %61 = load i64, ptr %10, align 8, !tbaa !30
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call i64 @fread(ptr noundef %60, i64 noundef 1, i64 noundef %61, ptr noundef %62)
  store i64 %63, ptr %11, align 8, !tbaa !30
  %64 = load i64, ptr %11, align 8, !tbaa !30
  %65 = load i64, ptr %10, align 8, !tbaa !30
  %66 = icmp ne i64 %64, %65
  br i1 %66, label %67, label %70

67:                                               ; preds = %53
  call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %12, i32 noundef 5, i32 noundef 0, ptr noundef null)
  %68 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !9
  store i32 %69, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %79

70:                                               ; preds = %53
  %71 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 7
  %72 = load ptr, ptr %71, align 8, !tbaa !31
  %73 = load i64, ptr %10, align 8, !tbaa !30
  %74 = getelementptr inbounds i8, ptr %72, i64 %73
  store i8 0, ptr %74, align 1, !tbaa !32
  %75 = load i64, ptr %10, align 8, !tbaa !30
  %76 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 8
  store i64 %75, ptr %76, align 8, !tbaa !33
  call void @_ZN8tinyxml211XMLDocument5ParseEv(ptr noundef nonnull align 8 dereferenceable(784) %12)
  %77 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 3
  %78 = load i32, ptr %77, align 4, !tbaa !9
  store i32 %78, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %79

79:                                               ; preds = %70, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %80

80:                                               ; preds = %79, %50, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %81

81:                                               ; preds = %80, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %82

82:                                               ; preds = %81, %22
  %83 = load i32, ptr %3, align 4
  ret i32 %83
}

declare i32 @fseeko64(ptr noundef, i64 noundef, i32 noundef) #3

declare i32 @fgetc(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @ferror(ptr noundef) #4

declare i64 @ftello64(ptr noundef) #3

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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, !15, i64 108}
!10 = !{!"_ZTSN8tinyxml211XMLDocumentE", !11, i64 0, !14, i64 104, !14, i64 105, !15, i64 108, !16, i64 112, !12, i64 120, !13, i64 144, !6, i64 152, !17, i64 160, !13, i64 168, !13, i64 172, !18, i64 176, !19, i64 272, !22, i64 400, !24, i64 528, !26, i64 656}
!11 = !{!"_ZTSN8tinyxml27XMLNodeE", !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!12 = !{!"_ZTSN8tinyxml27StrPairE", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN8tinyxml28XMLErrorE", !7, i64 0}
!16 = !{!"_ZTSN8tinyxml210WhitespaceE", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEE", !6, i64 0, !7, i64 8, !13, i64 88, !13, i64 92}
!19 = !{!"_ZTSN8tinyxml28MemPoolTILi136EEE", !20, i64 0, !21, i64 8, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!20 = !{!"_ZTSN8tinyxml27MemPoolE"}
!21 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi136EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !13, i64 88, !13, i64 92}
!22 = !{!"_ZTSN8tinyxml28MemPoolTILi80EEE", !20, i64 0, !23, i64 8, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!23 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi80EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !13, i64 88, !13, i64 92}
!24 = !{!"_ZTSN8tinyxml28MemPoolTILi112EEE", !20, i64 0, !25, i64 8, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!25 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !13, i64 88, !13, i64 92}
!26 = !{!"_ZTSN8tinyxml28MemPoolTILi104EEE", !20, i64 0, !27, i64 8, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!27 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi104EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !13, i64 88, !13, i64 92}
!28 = !{!29, !29, i64 0}
!29 = !{!"long long", !7, i64 0}
!30 = !{!17, !17, i64 0}
!31 = !{!10, !6, i64 152}
!32 = !{!7, !7, i64 0}
!33 = !{!10, !17, i64 160}


; 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"

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784), i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8tinyxml211XMLDocument8LoadFileEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(784) %0, ptr nocapture noundef %1) local_unnamed_addr #1 align 2 {
  tail call void @_ZN8tinyxml211XMLDocument5ClearEv(ptr noundef nonnull align 8 dereferenceable(784) %0)
  %3 = tail call i32 @fseeko64(ptr noundef %1, i64 noundef 0, i32 noundef 0)
  %4 = tail call i32 @fgetc(ptr noundef %1)
  %5 = icmp eq i32 %4, -1
  br i1 %5, label %6, label %9

6:                                                ; preds = %2
  %7 = tail call i32 @ferror(ptr noundef %1) #4
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %9, label %8

8:                                                ; preds = %6
  tail call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %0, i32 noundef 5, i32 noundef 0, ptr noundef null)
  br label %24

9:                                                ; preds = %6, %2
  %10 = tail call i32 @fseeko64(ptr noundef %1, i64 noundef 0, i32 noundef 2)
  %11 = tail call i64 @ftello64(ptr noundef %1)
  %12 = tail call i32 @fseeko64(ptr noundef %1, i64 noundef 0, i32 noundef 0)
  switch i64 %11, label %14 [
    i64 -1, label %.thread
    i64 0, label %13
  ]

.thread:                                          ; preds = %9
  tail call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %0, i32 noundef 5, i32 noundef 0, ptr noundef null)
  br label %24

13:                                               ; preds = %9
  tail call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %0, i32 noundef 14, i32 noundef 0, ptr noundef null)
  br label %24

14:                                               ; preds = %9
  %15 = add nuw i64 %11, 1
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %16, ptr %17, align 8, !tbaa !5
  %18 = tail call i64 @fread(ptr noundef nonnull %16, i64 noundef 1, i64 noundef %11, ptr noundef %1)
  %.not24 = icmp eq i64 %18, %11
  br i1 %.not24, label %20, label %19

19:                                               ; preds = %14
  tail call void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(784) %0, i32 noundef 5, i32 noundef 0, ptr noundef null)
  br label %24

20:                                               ; preds = %14
  %21 = load ptr, ptr %17, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 %11
  store i8 0, ptr %22, align 1, !tbaa !27
  %23 = getelementptr inbounds i8, ptr %0, i64 160
  store i64 %11, ptr %23, align 8, !tbaa !28
  tail call void @_ZN8tinyxml211XMLDocument5ParseEv(ptr noundef nonnull align 8 dereferenceable(784) %0)
  br label %24

24:                                               ; preds = %19, %20, %.thread, %13, %8
  %.4.in = getelementptr inbounds i8, ptr %0, i64 108
  %.4 = load i32, ptr %.4.in, align 4, !tbaa !29
  ret i32 %.4
}

; Function Attrs: nofree nounwind
declare noundef i32 @fseeko64(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fgetc(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind memory(read)
declare noundef i32 @ferror(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i64 @ftello64(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { 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 #2 = { nofree 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 #3 = { nofree nounwind memory(read) "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 = { nounwind }
attributes #5 = { builtin allocsize(0) }

!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, !8, i64 152}
!6 = !{!"_ZTSN8tinyxml211XMLDocumentE", !7, i64 0, !13, i64 104, !13, i64 105, !14, i64 108, !15, i64 112, !11, i64 120, !12, i64 144, !8, i64 152, !16, i64 160, !12, i64 168, !12, i64 172, !17, i64 176, !18, i64 272, !21, i64 400, !23, i64 528, !25, i64 656}
!7 = !{!"_ZTSN8tinyxml27XMLNodeE", !8, i64 8, !8, i64 16, !11, i64 24, !12, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8tinyxml27StrPairE", !12, i64 0, !8, i64 8, !8, i64 16}
!12 = !{!"int", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!"_ZTSN8tinyxml28XMLErrorE", !9, i64 0}
!15 = !{!"_ZTSN8tinyxml210WhitespaceE", !9, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!"_ZTSN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEE", !8, i64 0, !9, i64 8, !12, i64 88, !12, i64 92}
!18 = !{!"_ZTSN8tinyxml28MemPoolTILi136EEE", !19, i64 0, !20, i64 8, !8, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124}
!19 = !{!"_ZTSN8tinyxml27MemPoolE"}
!20 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi136EE5BlockELi10EEE", !8, i64 0, !9, i64 8, !12, i64 88, !12, i64 92}
!21 = !{!"_ZTSN8tinyxml28MemPoolTILi80EEE", !19, i64 0, !22, i64 8, !8, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124}
!22 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi80EE5BlockELi10EEE", !8, i64 0, !9, i64 8, !12, i64 88, !12, i64 92}
!23 = !{!"_ZTSN8tinyxml28MemPoolTILi112EEE", !19, i64 0, !24, i64 8, !8, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124}
!24 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EEE", !8, i64 0, !9, i64 8, !12, i64 88, !12, i64 92}
!25 = !{!"_ZTSN8tinyxml28MemPoolTILi104EEE", !19, i64 0, !26, i64 8, !8, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124}
!26 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi104EE5BlockELi10EEE", !8, i64 0, !9, i64 8, !12, i64 88, !12, i64 92}
!27 = !{!9, !9, i64 0}
!28 = !{!6, !16, i64 160}
!29 = !{!6, !14, i64 108}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass