; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow/inputData.ll (ZN9InputData16clearNetworkDataEv)

; 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.InputData = type { %class.InputFile.base, %"class.std::basic_ifstream", %"class.std::basic_ifstream", %"class.std::basic_ifstream", %"class.std::basic_ifstream", i32, i32, i32, i32, i8, i8, i8, i8, %"class.std::vector.4", %"class.std::vector.9", %"class.std::vector.4", %"class.std::vector.4", %"class.std::multimap", %"class.std::multimap", %"class.std::set", %"class.std::set", %"class.std::vector.22", %"class.std::vector.27", %"class.std::vector.27", double, double, double, double, double, double }
%class.InputFile.base = type <{ %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::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" }
%"class.std::locale" = type { ptr }
%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.3 }
%union.anon.3 = type { i32 }
%"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::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<ThroatStruct *, std::allocator<ThroatStruct *>>::_Vector_impl" }
%"struct.std::_Vector_base<ThroatStruct *, std::allocator<ThroatStruct *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ThroatStruct *, std::allocator<ThroatStruct *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ThroatStruct *, std::allocator<ThroatStruct *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<tuple3<PoreStruct *, int *, int *>, std::allocator<tuple3<PoreStruct *, int *, int *>>>::_Vector_impl" }
%"struct.std::_Vector_base<tuple3<PoreStruct *, int *, int *>, std::allocator<tuple3<PoreStruct *, int *, int *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<tuple3<PoreStruct *, int *, int *>, std::allocator<tuple3<PoreStruct *, int *, int *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tuple3<PoreStruct *, int *, int *>, std::allocator<tuple3<PoreStruct *, int *, int *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::multimap" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, tuple3<int, int, double>>, std::_Select1st<std::pair<const int, tuple3<int, int, double>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, tuple3<int, int, double>>, std::_Select1st<std::pair<const int, tuple3<int, int, double>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.17" }
%"class.std::_Rb_tree.17" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<tuple3<int, int, double>, std::allocator<tuple3<int, int, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<tuple3<int, int, double>, std::allocator<tuple3<int, int, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<tuple3<int, int, double>, std::allocator<tuple3<int, int, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tuple3<int, int, double>, std::allocator<tuple3<int, int, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; 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 dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9InputData16clearNetworkDataEv(ptr noundef nonnull align 8 dereferenceable(2640) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %6

6:                                                ; preds = %37, %1
  %7 = load i64, ptr %3, align 8, !tbaa !9
  %8 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 13
  %9 = call noundef i64 @_ZNKSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %10 = icmp ult i64 %7, %9
  br i1 %10, label %12, label %11

11:                                               ; preds = %6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %40

12:                                               ; preds = %6
  %13 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 13
  %14 = load i64, ptr %3, align 8, !tbaa !9
  %15 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %14) #4
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6tuple3IP10PoreStructPiS2_E6secondEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %12
  call void @_ZdaPv(ptr noundef %17) #5
  br label %20

20:                                               ; preds = %19, %12
  %21 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 13
  %22 = load i64, ptr %3, align 8, !tbaa !9
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %22) #4
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6tuple3IP10PoreStructPiS2_E5thirdEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %28, label %27

27:                                               ; preds = %20
  call void @_ZdaPv(ptr noundef %25) #5
  br label %28

28:                                               ; preds = %27, %20
  %29 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 13
  %30 = load i64, ptr %3, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %30) #4
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6tuple3IP10PoreStructPiS2_E5firstEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %36, label %35

35:                                               ; preds = %28
  call void @_ZdlPvm(ptr noundef %33, i64 noundef 72) #5
  br label %36

36:                                               ; preds = %35, %28
  br label %37

37:                                               ; preds = %36
  %38 = load i64, ptr %3, align 8, !tbaa !9
  %39 = add i64 %38, 1
  store i64 %39, ptr %3, align 8, !tbaa !9
  br label %6, !llvm.loop !11

40:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %55, %40
  %42 = load i64, ptr %4, align 8, !tbaa !9
  %43 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 14
  %44 = call noundef i64 @_ZNKSt6vectorIP12ThroatStructSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #4
  %45 = icmp ult i64 %42, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %58

47:                                               ; preds = %41
  %48 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 14
  %49 = load i64, ptr %4, align 8, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ThroatStructSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #4
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = icmp eq ptr %51, null
  br i1 %52, label %54, label %53

53:                                               ; preds = %47
  call void @_ZdlPvm(ptr noundef %51, i64 noundef 80) #5
  br label %54

54:                                               ; preds = %53, %47
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %4, align 8, !tbaa !9
  %57 = add i64 %56, 1
  store i64 %57, ptr %4, align 8, !tbaa !9
  br label %41, !llvm.loop !13

58:                                               ; preds = %46
  %59 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 13
  call void @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #4
  %60 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 14
  call void @_ZNSt6vectorIP12ThroatStructSaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #4
  %61 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 15
  call void @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #4
  %62 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 16
  call void @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #4
  %63 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 17
  call void @_ZNSt8multimapIi6tuple3IiidESt4lessIiESaISt4pairIKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %63) #4
  %64 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 18
  call void @_ZNSt8multimapIi6tuple3IiidESt4lessIiESaISt4pairIKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %64) #4
  %65 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 22
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #4
  %66 = getelementptr inbounds %class.InputData, ptr %5, i32 0, i32 23
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #4
  ret void
}

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #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 = { 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 #4 = { nounwind }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN9InputData16clearNetworkDataEv(ptr noundef nonnull align 8 dereferenceable(2640) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 2232
  %3 = tail call noundef i64 @_ZNKSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %23, %1
  %4 = getelementptr inbounds i8, ptr %0, i64 2256
  %5 = tail call noundef i64 @_ZNKSt6vectorIP12ThroatStructSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #2
  %.not18 = icmp eq i64 %5, 0
  br i1 %.not18, label %._crit_edge, label %.lr.ph16

.lr.ph:                                           ; preds = %1, %23
  %.0814 = phi i64 [ %24, %23 ], [ 0, %1 ]
  %6 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.0814) #2
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6tuple3IP10PoreStructPiS2_E6secondEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %11, label %10

10:                                               ; preds = %.lr.ph
  tail call void @_ZdaPv(ptr noundef nonnull %8) #3
  br label %11

11:                                               ; preds = %10, %.lr.ph
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.0814) #2
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6tuple3IP10PoreStructPiS2_E5thirdEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %11
  tail call void @_ZdaPv(ptr noundef nonnull %14) #3
  br label %17

17:                                               ; preds = %16, %11
  %18 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.0814) #2
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK6tuple3IP10PoreStructPiS2_E5firstEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  tail call void @_ZdlPvm(ptr noundef nonnull %20, i64 noundef 72) #3
  br label %23

23:                                               ; preds = %17, %22
  %24 = add nuw i64 %.0814, 1
  %25 = tail call noundef i64 @_ZNKSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  %26 = icmp ult i64 %24, %25
  br i1 %26, label %.lr.ph, label %.preheader, !llvm.loop !9

._crit_edge:                                      ; preds = %37, %.preheader
  tail call void @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  tail call void @_ZNSt6vectorIP12ThroatStructSaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #2
  %27 = getelementptr inbounds i8, ptr %0, i64 2280
  tail call void @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #2
  %28 = getelementptr inbounds i8, ptr %0, i64 2304
  tail call void @_ZNSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #2
  %29 = getelementptr inbounds i8, ptr %0, i64 2328
  tail call void @_ZNSt8multimapIi6tuple3IiidESt4lessIiESaISt4pairIKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #2
  %30 = getelementptr inbounds i8, ptr %0, i64 2376
  tail call void @_ZNSt8multimapIi6tuple3IiidESt4lessIiESaISt4pairIKiS1_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %30) #2
  %31 = getelementptr inbounds i8, ptr %0, i64 2544
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #2
  %32 = getelementptr inbounds i8, ptr %0, i64 2568
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #2
  ret void

.lr.ph16:                                         ; preds = %.preheader, %37
  %.015 = phi i64 [ %38, %37 ], [ 0, %.preheader ]
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ThroatStructSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.015) #2
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %.lr.ph16
  tail call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 80) #3
  br label %37

37:                                               ; preds = %.lr.ph16, %36
  %38 = add nuw i64 %.015, 1
  %39 = tail call noundef i64 @_ZNKSt6vectorIP12ThroatStructSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #2
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %.lr.ph16, label %._crit_edge, !llvm.loop !11
}

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nounwind }
attributes #3 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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