; LLVM IR from sfu-dis/mosaicdb :: benchmarks/egen/AddressTable.ll (ZN4TPCE13CAddressTableC2ENS_11CInputFilesExxbb)

; 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.TPCE::CAddressTable" = type { %"class.TPCE::TableTemplate", %"class.TPCE::CDateTime", ptr, ptr, ptr, ptr, i64, i64, i8, i8, i64, i32, i64, i8, i32, i64, ptr }
%"class.TPCE::TableTemplate" = type { ptr, %"struct.TPCE::ADDRESS_ROW", i64, i8, %"class.TPCE::CRandom" }
%"struct.TPCE::ADDRESS_ROW" = type { i64, [81 x i8], [81 x i8], [13 x i8], [81 x i8] }
%"class.TPCE::CRandom" = type { i64 }
%"class.TPCE::CDateTime" = type { i32, i32, ptr }
%"class.TPCE::CInputFiles" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZTVN4TPCE13CAddressTableE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE13CAddressTableC2ENS_11CInputFilesExxbb(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  %16 = zext i1 %4 to i8
  store i8 %16, ptr %11, align 1, !tbaa !11
  %17 = zext i1 %5 to i8
  store i8 %17, ptr %12, align 1, !tbaa !11
  %18 = load ptr, ptr %7, align 8
  call void @_ZN4TPCE13TableTemplateINS_11ADDRESS_ROWEEC2Ev(ptr noundef nonnull align 8 dereferenceable(296) %18)
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN4TPCE13CAddressTableE, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !13
  %19 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 1
  invoke void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %20 unwind label %78

20:                                               ; preds = %6
  %21 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 2
  %22 = getelementptr inbounds %"class.TPCE::CInputFiles", ptr %1, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  store ptr %23, ptr %21, align 8, !tbaa !17
  %24 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 3
  %25 = getelementptr inbounds %"class.TPCE::CInputFiles", ptr %1, i32 0, i32 15
  %26 = load ptr, ptr %25, align 8, !tbaa !24
  store ptr %26, ptr %24, align 8, !tbaa !25
  %27 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 4
  %28 = getelementptr inbounds %"class.TPCE::CInputFiles", ptr %1, i32 0, i32 16
  %29 = load ptr, ptr %28, align 8, !tbaa !26
  store ptr %29, ptr %27, align 8, !tbaa !27
  %30 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 5
  %31 = getelementptr inbounds %"class.TPCE::CInputFiles", ptr %1, i32 0, i32 22
  %32 = load ptr, ptr %31, align 8, !tbaa !28
  store ptr %32, ptr %30, align 8, !tbaa !29
  %33 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 6
  %34 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %34, ptr %33, align 8, !tbaa !30
  %35 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 7
  %36 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %36, ptr %35, align 8, !tbaa !31
  %37 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 8
  %38 = load i8, ptr %11, align 1, !tbaa !11, !range !32, !noundef !33
  %39 = trunc i8 %38 to i1
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %37, align 8, !tbaa !34
  %41 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 9
  %42 = load i8, ptr %11, align 1, !tbaa !11, !range !32, !noundef !33
  %43 = trunc i8 %42 to i1
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %41, align 1, !tbaa !35
  %45 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 13
  %46 = load i8, ptr %12, align 1, !tbaa !11, !range !32, !noundef !33
  %47 = trunc i8 %46 to i1
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %45, align 8, !tbaa !36
  %49 = getelementptr inbounds %"class.TPCE::CInputFiles", ptr %1, i32 0, i32 6
  %50 = load ptr, ptr %49, align 8, !tbaa !37
  %51 = invoke noundef i32 @_ZN4TPCE9CFlatFileINS_12EXCHANGE_ROWENS_15TExchangeLimitsEE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %50)
          to label %52 unwind label %82

52:                                               ; preds = %20
  %53 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 11
  store i32 %51, ptr %53, align 8, !tbaa !38
  %54 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = invoke noundef i64 @_ZN4TPCE12CCompanyFile25GetConfiguredCompanyCountEv(ptr noundef nonnull align 8 dereferenceable(56) %55)
          to label %57 unwind label %82

57:                                               ; preds = %52
  %58 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 10
  store i64 %56, ptr %58, align 8, !tbaa !39
  %59 = load i8, ptr %11, align 1, !tbaa !11, !range !32, !noundef !33
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %86

61:                                               ; preds = %57
  %62 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 11
  %63 = load i32, ptr %62, align 8, !tbaa !38
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 10
  %66 = load i64, ptr %65, align 8, !tbaa !39
  %67 = add nsw i64 %64, %66
  %68 = load i64, ptr %10, align 8, !tbaa !9
  %69 = add nsw i64 %67, %68
  %70 = sub nsw i64 %69, 1
  %71 = getelementptr inbounds %"class.TPCE::TableTemplate", ptr %18, i32 0, i32 2
  store i64 %70, ptr %71, align 8, !tbaa !40
  %72 = getelementptr inbounds %"class.TPCE::TableTemplate", ptr %18, i32 0, i32 2
  %73 = load i64, ptr %72, align 8, !tbaa !40
  %74 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 7
  %75 = load i64, ptr %74, align 8, !tbaa !31
  %76 = add nsw i64 %73, %75
  %77 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 12
  store i64 %76, ptr %77, align 8, !tbaa !41
  br label %103

78:                                               ; preds = %6
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %13, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %14, align 4
  br label %152

82:                                               ; preds = %112, %52, %20
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %14, align 4
  call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  br label %152

86:                                               ; preds = %57
  %87 = load i64, ptr %10, align 8, !tbaa !9
  %88 = sub nsw i64 %87, 1
  %89 = getelementptr inbounds %"class.TPCE::TableTemplate", ptr %18, i32 0, i32 2
  store i64 %88, ptr %89, align 8, !tbaa !40
  %90 = getelementptr inbounds %"class.TPCE::TableTemplate", ptr %18, i32 0, i32 2
  %91 = load i64, ptr %90, align 8, !tbaa !40
  %92 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 7
  %93 = load i64, ptr %92, align 8, !tbaa !31
  %94 = add nsw i64 %91, %93
  %95 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 11
  %96 = load i32, ptr %95, align 8, !tbaa !38
  %97 = zext i32 %96 to i64
  %98 = add nsw i64 %94, %97
  %99 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 10
  %100 = load i64, ptr %99, align 8, !tbaa !39
  %101 = add nsw i64 %98, %100
  %102 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 12
  store i64 %101, ptr %102, align 8, !tbaa !41
  br label %103

103:                                              ; preds = %86, %61
  %104 = getelementptr inbounds %"class.TPCE::TableTemplate", ptr %18, i32 0, i32 2
  %105 = load i64, ptr %104, align 8, !tbaa !40
  %106 = add nsw i64 %105, 4300000000
  %107 = getelementptr inbounds %"class.TPCE::TableTemplate", ptr %18, i32 0, i32 1
  %108 = getelementptr inbounds %"struct.TPCE::ADDRESS_ROW", ptr %107, i32 0, i32 0
  store i64 %106, ptr %108, align 8, !tbaa !42
  %109 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 13
  %110 = load i8, ptr %109, align 8, !tbaa !36, !range !32, !noundef !33
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %151

112:                                              ; preds = %103
  %113 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 14
  store i32 1000, ptr %113, align 4, !tbaa !43
  %114 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 11
  %115 = load i32, ptr %114, align 8, !tbaa !38
  %116 = zext i32 %115 to i64
  %117 = add nsw i64 4300000000, %116
  %118 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 10
  %119 = load i64, ptr %118, align 8, !tbaa !39
  %120 = add nsw i64 %117, %119
  %121 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 6
  %122 = load i64, ptr %121, align 8, !tbaa !30
  %123 = add nsw i64 %120, %122
  %124 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 15
  store i64 %123, ptr %124, align 8, !tbaa !44
  %125 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 14
  %126 = load i32, ptr %125, align 4, !tbaa !43
  %127 = sext i32 %126 to i64
  %128 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %127, i64 8)
  %129 = extractvalue { i64, i1 } %128, 1
  %130 = extractvalue { i64, i1 } %128, 0
  %131 = select i1 %129, i64 -1, i64 %130
  %132 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %131) #8
          to label %133 unwind label %82

133:                                              ; preds = %112
  %134 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 16
  store ptr %132, ptr %134, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !46
  br label %135

135:                                              ; preds = %147, %133
  %136 = load i32, ptr %15, align 4, !tbaa !46
  %137 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 14
  %138 = load i32, ptr %137, align 4, !tbaa !43
  %139 = icmp slt i32 %136, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %150

141:                                              ; preds = %135
  %142 = getelementptr inbounds %"class.TPCE::CAddressTable", ptr %18, i32 0, i32 16
  %143 = load ptr, ptr %142, align 8, !tbaa !45
  %144 = load i32, ptr %15, align 4, !tbaa !46
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %143, i64 %145
  store ptr null, ptr %146, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %141
  %148 = load i32, ptr %15, align 4, !tbaa !46
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %15, align 4, !tbaa !46
  br label %135, !llvm.loop !47

150:                                              ; preds = %140
  br label %151

151:                                              ; preds = %150, %103
  ret void

152:                                              ; preds = %82, %78
  call void @_ZN4TPCE13TableTemplateINS_11ADDRESS_ROWEED2Ev(ptr noundef nonnull align 8 dereferenceable(296) %18) #7
  br label %153

153:                                              ; preds = %152
  %154 = load ptr, ptr %13, align 8
  %155 = load i32, ptr %14, align 4
  %156 = insertvalue { ptr, i32 } poison, ptr %154, 0
  %157 = insertvalue { ptr, i32 } %156, i32 %155, 1
  resume { ptr, i32 } %157
}

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

declare void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4TPCE9CFlatFileINS_12EXCHANGE_ROWENS_15TExchangeLimitsEE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

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

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

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

; Function Attrs: nounwind
declare void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

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

attributes #0 = { 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 #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTSN4TPCE11CInputFilesE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!17 = !{!18, !6, i64 312}
!18 = !{!"_ZTSN4TPCE13CAddressTableE", !19, i64 0, !22, i64 296, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !10, i64 344, !10, i64 352, !12, i64 360, !12, i64 361, !10, i64 368, !23, i64 376, !10, i64 384, !12, i64 392, !23, i64 396, !10, i64 400, !6, i64 408}
!19 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !20, i64 8, !10, i64 272, !12, i64 280, !21, i64 288}
!20 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !10, i64 0, !7, i64 8, !7, i64 89, !7, i64 170, !7, i64 183}
!21 = !{!"_ZTSN4TPCE7CRandomE", !10, i64 0}
!22 = !{!"_ZTSN4TPCE9CDateTimeE", !23, i64 0, !23, i64 4, !6, i64 8}
!23 = !{!"int", !7, i64 0}
!24 = !{!16, !6, i64 120}
!25 = !{!18, !6, i64 320}
!26 = !{!16, !6, i64 128}
!27 = !{!18, !6, i64 328}
!28 = !{!16, !6, i64 176}
!29 = !{!18, !6, i64 336}
!30 = !{!18, !10, i64 344}
!31 = !{!18, !10, i64 352}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!18, !12, i64 360}
!35 = !{!18, !12, i64 361}
!36 = !{!18, !12, i64 392}
!37 = !{!16, !6, i64 48}
!38 = !{!18, !23, i64 376}
!39 = !{!18, !10, i64 368}
!40 = !{!19, !10, i64 272}
!41 = !{!18, !10, i64 384}
!42 = !{!19, !10, i64 8}
!43 = !{!18, !23, i64 396}
!44 = !{!18, !10, i64 400}
!45 = !{!18, !6, i64 408}
!46 = !{!23, !23, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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

@_ZTVN4TPCE13CAddressTableE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TPCE13CAddressTableC2ENS_11CInputFilesExxbb(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN4TPCE13TableTemplateINS_11ADDRESS_ROWEEC2Ev(ptr noundef nonnull align 8 dereferenceable(296) %0)
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN4TPCE13CAddressTableE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 296
  invoke void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %8 unwind label %41

8:                                                ; preds = %6
  %9 = zext i1 %5 to i8
  %10 = zext i1 %4 to i8
  %11 = getelementptr inbounds i8, ptr %0, i64 312
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !8
  store ptr %13, ptr %11, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %0, i64 320
  %15 = getelementptr inbounds i8, ptr %1, i64 120
  %16 = load <2 x ptr>, ptr %15, align 8, !tbaa !21
  store <2 x ptr> %16, ptr %14, align 8, !tbaa !21
  %17 = getelementptr inbounds i8, ptr %0, i64 336
  %18 = getelementptr inbounds i8, ptr %1, i64 176
  %19 = load ptr, ptr %18, align 8, !tbaa !22
  store ptr %19, ptr %17, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %0, i64 344
  store i64 %3, ptr %20, align 8, !tbaa !24
  %21 = getelementptr inbounds i8, ptr %0, i64 352
  store i64 %2, ptr %21, align 8, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %0, i64 360
  store i8 %10, ptr %22, align 8, !tbaa !26
  %23 = getelementptr inbounds i8, ptr %0, i64 361
  store i8 %10, ptr %23, align 1, !tbaa !27
  %24 = getelementptr inbounds i8, ptr %0, i64 392
  store i8 %9, ptr %24, align 8, !tbaa !28
  %25 = getelementptr inbounds i8, ptr %1, i64 48
  %26 = load ptr, ptr %25, align 8, !tbaa !29
  %27 = invoke noundef i32 @_ZN4TPCE9CFlatFileINS_12EXCHANGE_ROWENS_15TExchangeLimitsEE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %28 unwind label %43

28:                                               ; preds = %8
  %29 = getelementptr inbounds i8, ptr %0, i64 376
  store i32 %27, ptr %29, align 8, !tbaa !30
  %30 = load ptr, ptr %11, align 8, !tbaa !12
  %31 = tail call noundef i64 @_ZN4TPCE12CCompanyFile25GetConfiguredCompanyCountEv(ptr noundef nonnull align 8 dereferenceable(56) %30)
  %32 = getelementptr inbounds i8, ptr %0, i64 368
  store i64 %31, ptr %32, align 8, !tbaa !31
  br i1 %4, label %33, label %45

33:                                               ; preds = %28
  %34 = load i32, ptr %29, align 8, !tbaa !30
  %35 = zext i32 %34 to i64
  %36 = add i64 %3, -1
  %37 = add i64 %36, %31
  %38 = add i64 %37, %35
  %39 = load i64, ptr %21, align 8, !tbaa !25
  %40 = add nsw i64 %38, %39
  br label %53

41:                                               ; preds = %6
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %87

43:                                               ; preds = %61, %8
  %44 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %87

45:                                               ; preds = %28
  %46 = add nsw i64 %3, -1
  %47 = load i64, ptr %21, align 8, !tbaa !25
  %48 = load i32, ptr %29, align 8, !tbaa !30
  %49 = zext i32 %48 to i64
  %50 = add i64 %31, %46
  %51 = add i64 %50, %47
  %52 = add i64 %51, %49
  br label %53

53:                                               ; preds = %45, %33
  %54 = phi i32 [ %34, %33 ], [ %48, %45 ]
  %.sink18 = phi i64 [ %38, %33 ], [ %46, %45 ]
  %.sink = phi i64 [ %40, %33 ], [ %52, %45 ]
  %55 = getelementptr inbounds i8, ptr %0, i64 272
  store i64 %.sink18, ptr %55, align 8
  %56 = getelementptr inbounds i8, ptr %0, i64 384
  store i64 %.sink, ptr %56, align 8
  %57 = add nsw i64 %.sink18, 4300000000
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %57, ptr %58, align 8, !tbaa !32
  %59 = load i8, ptr %24, align 8, !tbaa !28, !range !33, !noundef !34
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %61, label %.loopexit

61:                                               ; preds = %53
  %62 = getelementptr inbounds i8, ptr %0, i64 396
  store i32 1000, ptr %62, align 4, !tbaa !35
  %63 = zext i32 %54 to i64
  %64 = load i64, ptr %20, align 8, !tbaa !24
  %65 = add i64 %31, 4300000000
  %66 = add i64 %65, %63
  %67 = add nsw i64 %66, %64
  %68 = getelementptr inbounds i8, ptr %0, i64 400
  store i64 %67, ptr %68, align 8, !tbaa !36
  %69 = invoke noalias noundef nonnull dereferenceable(8000) ptr @_Znam(i64 noundef 8000) #6
          to label %70 unwind label %43

70:                                               ; preds = %61
  %71 = getelementptr inbounds i8, ptr %0, i64 408
  store ptr %69, ptr %71, align 8, !tbaa !37
  br label %72

72:                                               ; preds = %72, %70
  %indvars.iv = phi i64 [ 0, %70 ], [ %indvars.iv.next.4, %72 ]
  %73 = load ptr, ptr %71, align 8, !tbaa !37
  %74 = getelementptr inbounds ptr, ptr %73, i64 %indvars.iv
  store ptr null, ptr %74, align 8, !tbaa !21
  %75 = load ptr, ptr %71, align 8, !tbaa !37
  %76 = getelementptr inbounds ptr, ptr %75, i64 %indvars.iv
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  store ptr null, ptr %77, align 8, !tbaa !21
  %78 = load ptr, ptr %71, align 8, !tbaa !37
  %79 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  store ptr null, ptr %80, align 8, !tbaa !21
  %81 = load ptr, ptr %71, align 8, !tbaa !37
  %82 = getelementptr inbounds ptr, ptr %81, i64 %indvars.iv
  %83 = getelementptr inbounds i8, ptr %82, i64 24
  store ptr null, ptr %83, align 8, !tbaa !21
  %84 = load ptr, ptr %71, align 8, !tbaa !37
  %85 = getelementptr inbounds ptr, ptr %84, i64 %indvars.iv
  %86 = getelementptr inbounds i8, ptr %85, i64 32
  store ptr null, ptr %86, align 8, !tbaa !21
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv, 5
  %exitcond.not.4 = icmp eq i64 %indvars.iv.next.4, 1000
  br i1 %exitcond.not.4, label %.loopexit, label %72, !llvm.loop !38

.loopexit:                                        ; preds = %72, %53
  ret void

87:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  tail call void @_ZN4TPCE13TableTemplateINS_11ADDRESS_ROWEED2Ev(ptr noundef nonnull align 8 dereferenceable(296) %0) #5
  resume { ptr, i32 } %.pn
}

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

declare void @_ZN4TPCE9CDateTimeC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4TPCE9CFlatFileINS_12EXCHANGE_ROWENS_15TExchangeLimitsEE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4TPCE9CDateTimeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

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

attributes #0 = { 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 #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 = { 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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 24}
!9 = !{!"_ZTSN4TPCE11CInputFilesE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!13, !10, i64 312}
!13 = !{!"_ZTSN4TPCE13CAddressTableE", !14, i64 0, !19, i64 296, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !16, i64 344, !16, i64 352, !17, i64 360, !17, i64 361, !16, i64 368, !20, i64 376, !16, i64 384, !17, i64 392, !20, i64 396, !16, i64 400, !10, i64 408}
!14 = !{!"_ZTSN4TPCE13TableTemplateINS_11ADDRESS_ROWEEE", !15, i64 8, !16, i64 272, !17, i64 280, !18, i64 288}
!15 = !{!"_ZTSN4TPCE11ADDRESS_ROWE", !16, i64 0, !11, i64 8, !11, i64 89, !11, i64 170, !11, i64 183}
!16 = !{!"long long", !11, i64 0}
!17 = !{!"bool", !11, i64 0}
!18 = !{!"_ZTSN4TPCE7CRandomE", !16, i64 0}
!19 = !{!"_ZTSN4TPCE9CDateTimeE", !20, i64 0, !20, i64 4, !10, i64 8}
!20 = !{!"int", !11, i64 0}
!21 = !{!10, !10, i64 0}
!22 = !{!9, !10, i64 176}
!23 = !{!13, !10, i64 336}
!24 = !{!13, !16, i64 344}
!25 = !{!13, !16, i64 352}
!26 = !{!13, !17, i64 360}
!27 = !{!13, !17, i64 361}
!28 = !{!13, !17, i64 392}
!29 = !{!9, !10, i64 48}
!30 = !{!13, !20, i64 376}
!31 = !{!13, !16, i64 368}
!32 = !{!14, !16, i64 8}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!13, !20, i64 396}
!36 = !{!13, !16, i64 400}
!37 = !{!13, !10, i64 408}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass