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

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

%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.tuple3.42 = type { i32, i32, double }
%"struct.std::pair.45" = type { i32, %class.tuple3.42 }
%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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9InputData12outletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640), i32 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9InputData11inletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK9InputData12getInletDataESt17_Rb_tree_iteratorISt4pairIKi6tuple3IiidEEEiRiS7_(ptr noundef nonnull align 8 dereferenceable(2640) %0, ptr %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #4 align 2 {
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.tuple3.42, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %6, i32 0, i32 0
  store ptr %1, ptr %15, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %16 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKi6tuple3IiidEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %18 = getelementptr inbounds %"struct.std::pair.45", ptr %17, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !11
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE6secondEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %21 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 6
  %22 = load i32, ptr %21, align 4, !tbaa !14
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = sub nsw i32 %23, 1
  %25 = mul nsw i32 %22, %24
  %26 = add nsw i32 %20, %25
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %26, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = call noundef zeroext i1 @_ZNK9InputData12outletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640) %16, i32 noundef %29)
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %12, align 1, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = call noundef zeroext i1 @_ZNK9InputData11inletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640) %16, i32 noundef %33)
  %35 = zext i1 %34 to i8
  store i8 %35, ptr %13, align 1, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %37 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %37, ptr %14, align 4, !tbaa !9
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = icmp sgt i32 %38, 1
  br i1 %39, label %40, label %62

40:                                               ; preds = %5
  %41 = load i8, ptr %12, align 1, !tbaa !62, !range !63, !noundef !64
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %62

43:                                               ; preds = %40
  %44 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 23
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = sub nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %47) #5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = sub nsw i32 %50, 1
  %52 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 7
  %53 = load i32, ptr %52, align 8, !tbaa !65
  %54 = mul nsw i32 %51, %53
  %55 = add nsw i32 %49, %54
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = sub nsw i32 %56, 2
  %58 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 5
  %59 = load i32, ptr %58, align 8, !tbaa !66
  %60 = mul nsw i32 %57, %59
  %61 = sub nsw i32 %55, %60
  store i32 %61, ptr %14, align 4, !tbaa !9
  br label %84

62:                                               ; preds = %40, %5
  %63 = load i8, ptr %13, align 1, !tbaa !62, !range !63, !noundef !64
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %83

65:                                               ; preds = %62
  %66 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 23
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = sub nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %69) #5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 7
  %74 = load i32, ptr %73, align 8, !tbaa !65
  %75 = mul nsw i32 %72, %74
  %76 = add nsw i32 %71, %75
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 1
  %79 = getelementptr inbounds %class.InputData, ptr %16, i32 0, i32 5
  %80 = load i32, ptr %79, align 8, !tbaa !66
  %81 = mul nsw i32 %78, %80
  %82 = sub nsw i32 %76, %81
  store i32 %82, ptr %14, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %65, %62
  br label %84

84:                                               ; preds = %83, %43
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %85, ptr %86, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !10, i64 2212}
!15 = !{!"_ZTS9InputData", !16, i64 0, !25, i64 128, !25, i64 648, !25, i64 1168, !25, i64 1688, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !24, i64 2224, !24, i64 2225, !24, i64 2226, !24, i64 2227, !33, i64 2232, !37, i64 2256, !33, i64 2280, !33, i64 2304, !41, i64 2328, !41, i64 2376, !49, i64 2424, !49, i64 2472, !54, i64 2520, !58, i64 2544, !58, i64 2568, !13, i64 2592, !13, i64 2600, !13, i64 2608, !13, i64 2616, !13, i64 2624, !13, i64 2632}
!16 = !{!"_ZTS9InputFile", !17, i64 0, !21, i64 24, !21, i64 56, !21, i64 88, !24, i64 120, !24, i64 121}
!17 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSSt14basic_ifstreamIcSt11char_traitsIcEE", !26, i64 0, !27, i64 16}
!26 = !{!"_ZTSSi", !23, i64 8}
!27 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !28, i64 0, !7, i64 64, !30, i64 104, !31, i64 120, !32, i64 124, !32, i64 132, !32, i64 140, !6, i64 152, !23, i64 160, !24, i64 168, !24, i64 169, !24, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !24, i64 192, !6, i64 200, !6, i64 208, !23, i64 216, !6, i64 224, !6, i64 232}
!28 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !29, i64 56}
!29 = !{!"_ZTSSt6locale", !6, i64 0}
!30 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !24, i64 8}
!31 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!32 = !{!"_ZTS11__mbstate_t", !10, i64 0, !7, i64 4}
!33 = !{!"_ZTSSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI6tuple3IP10PoreStructPiS3_ESaIS4_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI6tuple3IP10PoreStructPiS3_ESaIS4_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI6tuple3IP10PoreStructPiS3_ESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIP12ThroatStructSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIP12ThroatStructSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP12ThroatStructSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP12ThroatStructSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSSt8multimapIi6tuple3IiidESt4lessIiESaISt4pairIKiS1_EEE", !42, i64 0}
!42 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKi6tuple3IiidEESt10_Select1stIS4_ESt4lessIiESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKi6tuple3IiidEESt10_Select1stIS4_ESt4lessIiESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !44, i64 0, !46, i64 8}
!44 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !45, i64 0}
!45 = !{!"_ZTSSt4lessIiE"}
!46 = !{!"_ZTSSt15_Rb_tree_header", !47, i64 0, !23, i64 32}
!47 = !{!"_ZTSSt18_Rb_tree_node_base", !48, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!48 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!49 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !52, i64 0, !46, i64 8}
!52 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !53, i64 0}
!53 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!54 = !{!"_ZTSSt6vectorI6tuple3IiidESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseI6tuple3IiidESaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseI6tuple3IiidESaIS1_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseI6tuple3IiidESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{!"_ZTSSt6vectorIiSaIiEE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!62 = !{!24, !24, i64 0}
!63 = !{i8 0, i8 2}
!64 = !{}
!65 = !{!15, !10, i64 2216}
!66 = !{!15, !10, i64 2208}


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

%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.tuple3.42 = type { i32, i32, double }

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9InputData12outletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9InputData11inletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK9InputData12getInletDataESt17_Rb_tree_iteratorISt4pairIKi6tuple3IiidEEEiRiS7_(ptr noundef nonnull align 8 dereferenceable(2640) %0, ptr %1, i32 noundef %2, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %3, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %class.tuple3.42, align 8
  store ptr %1, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %8 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKi6tuple3IiidEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !5
  %10 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE6secondEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %11 = load i32, ptr %10, align 4, !tbaa !6
  %12 = getelementptr inbounds i8, ptr %0, i64 2212
  %13 = load i32, ptr %12, align 4, !tbaa !12
  %14 = add nsw i32 %2, -1
  %15 = mul nsw i32 %13, %14
  %16 = add nsw i32 %15, %11
  store i32 %16, ptr %4, align 4, !tbaa !6
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %18 = load i32, ptr %17, align 4, !tbaa !6
  %19 = call noundef zeroext i1 @_ZNK9InputData12outletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640) %0, i32 noundef %18)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %21 = load i32, ptr %20, align 4, !tbaa !6
  %22 = call noundef zeroext i1 @_ZNK9InputData11inletThroatEi(ptr noundef nonnull align 8 dereferenceable(2640) %0, i32 noundef %21)
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6tuple3IiidE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %24 = load i32, ptr %23, align 4, !tbaa !6
  %25 = icmp sgt i32 %2, 1
  %brmerge.not = and i1 %25, %19
  br i1 %brmerge.not, label %26, label %39

26:                                               ; preds = %5
  %27 = getelementptr inbounds i8, ptr %0, i64 2568
  %28 = add nsw i32 %24, -1
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #4
  %31 = load i32, ptr %30, align 4, !tbaa !6
  %32 = getelementptr inbounds i8, ptr %0, i64 2216
  %33 = load i32, ptr %32, align 8, !tbaa !61
  %34 = mul nsw i32 %33, %14
  %35 = add nsw i32 %34, %31
  %.neg = sub nsw i32 2, %2
  %36 = getelementptr inbounds i8, ptr %0, i64 2208
  %37 = load i32, ptr %36, align 8, !tbaa !62
  %.neg16 = mul i32 %.neg, %37
  %38 = add i32 %35, %.neg16
  br label %54

39:                                               ; preds = %5
  br i1 %22, label %40, label %54

40:                                               ; preds = %39
  %41 = getelementptr inbounds i8, ptr %0, i64 2568
  %42 = add nsw i32 %24, -1
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #4
  %45 = load i32, ptr %44, align 4, !tbaa !6
  %46 = getelementptr inbounds i8, ptr %0, i64 2216
  %47 = load i32, ptr %46, align 8, !tbaa !61
  %48 = mul nsw i32 %47, %2
  %49 = add nsw i32 %48, %45
  %50 = getelementptr inbounds i8, ptr %0, i64 2208
  %51 = load i32, ptr %50, align 8, !tbaa !62
  %52 = mul nsw i32 %51, %14
  %53 = sub i32 %49, %52
  br label %54

54:                                               ; preds = %39, %40, %26
  %.0 = phi i32 [ %38, %26 ], [ %53, %40 ], [ %24, %39 ]
  store i32 %.0, ptr %3, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 8, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!13, !7, i64 2212}
!13 = !{!"_ZTS9InputData", !14, i64 0, !24, i64 128, !24, i64 648, !24, i64 1168, !24, i64 1688, !7, i64 2208, !7, i64 2212, !7, i64 2216, !7, i64 2220, !23, i64 2224, !23, i64 2225, !23, i64 2226, !23, i64 2227, !32, i64 2232, !36, i64 2256, !32, i64 2280, !32, i64 2304, !40, i64 2328, !40, i64 2376, !48, i64 2424, !48, i64 2472, !53, i64 2520, !57, i64 2544, !57, i64 2568, !11, i64 2592, !11, i64 2600, !11, i64 2608, !11, i64 2616, !11, i64 2624, !11, i64 2632}
!14 = !{!"_ZTS9InputFile", !15, i64 0, !20, i64 24, !20, i64 56, !20, i64 88, !23, i64 120, !23, i64 121}
!15 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !8, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{!"bool", !8, i64 0}
!24 = !{!"_ZTSSt14basic_ifstreamIcSt11char_traitsIcEE", !25, i64 0, !26, i64 16}
!25 = !{!"_ZTSSi", !22, i64 8}
!26 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !27, i64 0, !8, i64 64, !29, i64 104, !30, i64 120, !31, i64 124, !31, i64 132, !31, i64 140, !19, i64 152, !22, i64 160, !23, i64 168, !23, i64 169, !23, i64 170, !8, i64 171, !19, i64 176, !19, i64 184, !23, i64 192, !19, i64 200, !19, i64 208, !22, i64 216, !19, i64 224, !19, i64 232}
!27 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !19, i64 48, !28, i64 56}
!28 = !{!"_ZTSSt6locale", !19, i64 0}
!29 = !{!"_ZTSSt12__basic_fileIcE", !19, i64 0, !23, i64 8}
!30 = !{!"_ZTSSt13_Ios_Openmode", !8, i64 0}
!31 = !{!"_ZTS11__mbstate_t", !7, i64 0, !8, i64 4}
!32 = !{!"_ZTSSt6vectorI6tuple3IP10PoreStructPiS3_ESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI6tuple3IP10PoreStructPiS3_ESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI6tuple3IP10PoreStructPiS3_ESaIS4_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI6tuple3IP10PoreStructPiS3_ESaIS4_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!36 = !{!"_ZTSSt6vectorIP12ThroatStructSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIP12ThroatStructSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIP12ThroatStructSaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP12ThroatStructSaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!40 = !{!"_ZTSSt8multimapIi6tuple3IiidESt4lessIiESaISt4pairIKiS1_EEE", !41, i64 0}
!41 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKi6tuple3IiidEESt10_Select1stIS4_ESt4lessIiESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKi6tuple3IiidEESt10_Select1stIS4_ESt4lessIiESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !43, i64 0, !45, i64 8}
!43 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !44, i64 0}
!44 = !{!"_ZTSSt4lessIiE"}
!45 = !{!"_ZTSSt15_Rb_tree_header", !46, i64 0, !22, i64 32}
!46 = !{!"_ZTSSt18_Rb_tree_node_base", !47, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!47 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!48 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !51, i64 0, !45, i64 8}
!51 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !52, i64 0}
!52 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!53 = !{!"_ZTSSt6vectorI6tuple3IiidESaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseI6tuple3IiidESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseI6tuple3IiidESaIS1_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseI6tuple3IiidESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!57 = !{!"_ZTSSt6vectorIiSaIiEE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!61 = !{!13, !7, i64 2216}
!62 = !{!13, !7, i64 2208}


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