; LLVM IR from eyangch/competitive-programming :: CSES/Additional_Problems (network_breakdown_fast)

; 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.__gnu_pbds::gp_hash_table" = type { %"class.__gnu_pbds::basic_hash_table" }
%"class.__gnu_pbds::basic_hash_table" = type { %"class.__gnu_pbds::detail::gp_ht_set" }
%"class.__gnu_pbds::detail::gp_ht_set" = type { %"class.__gnu_pbds::hash_standard_resize_policy", %"class.__gnu_pbds::detail::ranged_probe_fn", [8 x i8], i64, i64, ptr }
%"class.__gnu_pbds::hash_standard_resize_policy" = type { %"class.__gnu_pbds::hash_load_check_resize_trigger.base", %"class.__gnu_pbds::hash_exponential_size_policy", i64 }
%"class.__gnu_pbds::hash_load_check_resize_trigger.base" = type <{ ptr, float, float, i64, i64, i8 }>
%"class.__gnu_pbds::hash_exponential_size_policy" = type { i64, i64 }
%"class.__gnu_pbds::detail::ranged_probe_fn" = type { %"class.__gnu_pbds::direct_mask_range_hashing" }
%"class.__gnu_pbds::direct_mask_range_hashing" = type { %"class.__gnu_pbds::detail::mask_based_range_hashing" }
%"class.__gnu_pbds::detail::mask_based_range_hashing" = type { i64 }
%"struct.std::pair" = type <{ %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_", i8, [7 x i8] }>
%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_" = type { ptr }
%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_" = type { %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_", ptr, i64 }

@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@broken = external dso_local global %"class.__gnu_pbds::gp_hash_table", align 8
@fix = external dso_local global [200000 x i64], align 16
@conn = external dso_local global [200000 x i64], align 16
@par = external dso_local global [100000 x i32], align 16
@sz = external dso_local global [100000 x i32], align 16
@components = external dso_local global i32, align 4
@ans = external dso_local global [200000 x i32], align 16

; 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 uwtable
declare dso_local void @_Z2unii(i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5printi(i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar_unlocked(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4getNv() #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_", align 8
  %12 = alloca %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call noundef i32 @_Z4getNv()
  store i32 %15, ptr @N, align 4, !tbaa !5
  %16 = call noundef i32 @_Z4getNv()
  store i32 %16, ptr @M, align 4, !tbaa !5
  %17 = call noundef i32 @_Z4getNv()
  store i32 %17, ptr @K, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %42, %0
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @M, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %45

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %24 = call noundef i32 @_Z4getNv()
  store i32 %24, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %25 = call noundef i32 @_Z4getNv()
  store i32 %25, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %3, align 4, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = add nsw i32 %28, -1
  store i32 %29, ptr %4, align 4, !tbaa !5
  %30 = icmp sgt i32 %27, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %23
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #6
  br label %32

32:                                               ; preds = %31, %23
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = mul nsw i64 200000, %34
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = add nsw i64 %35, %37
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [200000 x i64], ptr @conn, i64 0, i64 %40
  store i64 %38, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %42

42:                                               ; preds = %32
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !11

45:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %73, %45
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = load i32, ptr @K, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %76

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %52 = call noundef i32 @_Z4getNv()
  store i32 %52, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %53 = call noundef i32 @_Z4getNv()
  store i32 %53, ptr %7, align 4, !tbaa !5
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr %7, align 4, !tbaa !5
  %58 = icmp sgt i32 %55, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %51
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7) #6
  br label %60

60:                                               ; preds = %59, %51
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = mul nsw i64 200000, %62
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = add nsw i64 %63, %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [200000 x i64], ptr @fix, i64 0, i64 %68
  store i64 %66, ptr %69, align 8, !tbaa !9
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [200000 x i64], ptr @fix, i64 0, i64 %71
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  call void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE6insertERKx(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %8, ptr noundef nonnull align 8 dereferenceable(104) @broken, ptr noundef nonnull align 8 dereferenceable(8) %72)
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %73

73:                                               ; preds = %60
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %5, align 4, !tbaa !5
  br label %46, !llvm.loop !13

76:                                               ; preds = %50
  %77 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %77, ptr @components, align 4, !tbaa !5
  %78 = load i32, ptr @N, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr @par, i64 %79
  call void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef @par, ptr noundef %80, i32 noundef 0)
  %81 = load i32, ptr @N, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr @sz, i64 %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @sz, ptr noundef %83, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %108, %76
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = load i32, ptr @M, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %111

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [200000 x i64], ptr @conn, i64 0, i64 %91
  call void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE4findERKx(ptr dead_on_unwind writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_") align 8 %11, ptr noundef nonnull align 8 dereferenceable(104) @broken, ptr noundef nonnull align 8 dereferenceable(8) %92)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE3endEv(ptr dead_on_unwind writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_") align 8 %12, ptr noundef nonnull align 8 dereferenceable(104) @broken)
  %93 = call noundef zeroext i1 @_ZNK10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE21point_const_iterator_eqERKSJ_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br i1 %93, label %94, label %107

94:                                               ; preds = %89
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [200000 x i64], ptr @conn, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = sdiv i64 %98, 200000
  %100 = trunc i64 %99 to i32
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [200000 x i64], ptr @conn, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = srem i64 %104, 200000
  %106 = trunc i64 %105 to i32
  call void @_Z2unii(i32 noundef %100, i32 noundef %106)
  br label %107

107:                                              ; preds = %94, %89
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %10, align 4, !tbaa !5
  br label %84, !llvm.loop !14

111:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %112 = load i32, ptr @K, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 1
  store i32 %113, ptr %13, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %135, %111
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = icmp sge i32 %115, 0
  br i1 %116, label %118, label %117

117:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %138

118:                                              ; preds = %114
  %119 = load i32, ptr @components, align 4, !tbaa !5
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [200000 x i32], ptr @ans, i64 0, i64 %121
  store i32 %119, ptr %122, align 4, !tbaa !5
  %123 = load i32, ptr %13, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [200000 x i64], ptr @fix, i64 0, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = sdiv i64 %126, 200000
  %128 = trunc i64 %127 to i32
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [200000 x i64], ptr @fix, i64 0, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = srem i64 %132, 200000
  %134 = trunc i64 %133 to i32
  call void @_Z2unii(i32 noundef %128, i32 noundef %134)
  br label %135

135:                                              ; preds = %118
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = add nsw i32 %136, -1
  store i32 %137, ptr %13, align 4, !tbaa !5
  br label %114, !llvm.loop !15

138:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %149, %138
  %140 = load i32, ptr %14, align 4, !tbaa !5
  %141 = load i32, ptr @K, align 4, !tbaa !5
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %152

144:                                              ; preds = %139
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [200000 x i32], ptr @ans, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  call void @_Z5printi(i32 noundef %148)
  br label %149

149:                                              ; preds = %144
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %14, align 4, !tbaa !5
  br label %139, !llvm.loop !16

152:                                              ; preds = %143
  %153 = call i32 @putchar_unlocked(i32 noundef 10)
  %154 = load i32, ptr %1, align 4
  ret i32 %154
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE6insertERKx(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE4findERKx(ptr dead_on_unwind noalias writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE21point_const_iterator_eqERKSJ_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress norecurse 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 = { 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 #6 = { 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 = !{!"int", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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"

%"class.__gnu_pbds::gp_hash_table" = type { %"class.__gnu_pbds::basic_hash_table" }
%"class.__gnu_pbds::basic_hash_table" = type { %"class.__gnu_pbds::detail::gp_ht_set" }
%"class.__gnu_pbds::detail::gp_ht_set" = type { %"class.__gnu_pbds::hash_standard_resize_policy", %"class.__gnu_pbds::detail::ranged_probe_fn", [8 x i8], i64, i64, ptr }
%"class.__gnu_pbds::hash_standard_resize_policy" = type { %"class.__gnu_pbds::hash_load_check_resize_trigger.base", %"class.__gnu_pbds::hash_exponential_size_policy", i64 }
%"class.__gnu_pbds::hash_load_check_resize_trigger.base" = type <{ ptr, float, float, i64, i64, i8 }>
%"class.__gnu_pbds::hash_exponential_size_policy" = type { i64, i64 }
%"class.__gnu_pbds::detail::ranged_probe_fn" = type { %"class.__gnu_pbds::direct_mask_range_hashing" }
%"class.__gnu_pbds::direct_mask_range_hashing" = type { %"class.__gnu_pbds::detail::mask_based_range_hashing" }
%"class.__gnu_pbds::detail::mask_based_range_hashing" = type { i64 }
%"struct.std::pair" = type <{ %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_", i8, [7 x i8] }>
%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_" = type { ptr }
%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_" = type { %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_", ptr, i64 }

@N = external dso_local local_unnamed_addr global i32, align 4
@M = external dso_local local_unnamed_addr global i32, align 4
@K = external dso_local local_unnamed_addr global i32, align 4
@broken = external dso_local global %"class.__gnu_pbds::gp_hash_table", align 8
@fix = external dso_local global [200000 x i64], align 16
@conn = external dso_local global [200000 x i64], align 16
@par = external dso_local global [100000 x i32], align 16
@sz = external dso_local global [100000 x i32], align 16
@components = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global [200000 x i32], align 16

; 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 uwtable
declare dso_local void @_Z2unii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5printi(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar_unlocked(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4getNv() local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_", align 8
  %8 = alloca %"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_", align 8
  %9 = tail call noundef i32 @_Z4getNv()
  store i32 %9, ptr @N, align 4, !tbaa !5
  %10 = tail call noundef i32 @_Z4getNv()
  store i32 %10, ptr @M, align 4, !tbaa !5
  %11 = tail call noundef i32 @_Z4getNv()
  store i32 %11, ptr @K, align 4, !tbaa !5
  %12 = load i32, ptr @M, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %.preheader25

.preheader25.loopexit:                            ; preds = %23
  %.pre53 = load i32, ptr @K, align 4, !tbaa !5
  br label %.preheader25

.preheader25:                                     ; preds = %.preheader25.loopexit, %0
  %14 = phi i32 [ %.pre53, %.preheader25.loopexit ], [ %11, %0 ]
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph28, label %._crit_edge

.lr.ph:                                           ; preds = %0, %23
  %indvars.iv = phi i64 [ %indvars.iv.next, %23 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %16 = call noundef i32 @_Z4getNv()
  store i32 %16, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %17 = call noundef i32 @_Z4getNv()
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr %1, align 4, !tbaa !5
  %20 = add nsw i32 %17, -1
  store i32 %20, ptr %2, align 4, !tbaa !5
  %21 = icmp sgt i32 %18, %17
  br i1 %21, label %22, label %23

22:                                               ; preds = %.lr.ph
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2) #7
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  %.pre52 = load i32, ptr %2, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %22, %.lr.ph
  %24 = phi i32 [ %.pre52, %22 ], [ %20, %.lr.ph ]
  %25 = phi i32 [ %.pre, %22 ], [ %19, %.lr.ph ]
  %26 = sext i32 %25 to i64
  %27 = mul nsw i64 %26, 200000
  %28 = sext i32 %24 to i64
  %29 = add nsw i64 %27, %28
  %30 = getelementptr inbounds [200000 x i64], ptr @conn, i64 0, i64 %indvars.iv
  store i64 %29, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = load i32, ptr @M, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next, %32
  br i1 %33, label %.lr.ph, label %.preheader25.loopexit, !llvm.loop !11

._crit_edge:                                      ; preds = %49, %.preheader25
  %34 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %34, ptr @components, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr @par, i64 %35
  call void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef nonnull @par, ptr noundef nonnull %36, i32 noundef 0)
  %37 = load i32, ptr @N, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr @sz, i64 %38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @sz, ptr noundef nonnull %39, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %40 = load i32, ptr @M, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph31, label %._crit_edge32

.lr.ph28:                                         ; preds = %.preheader25, %49
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %49 ], [ 0, %.preheader25 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %42 = call noundef i32 @_Z4getNv()
  store i32 %42, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %43 = call noundef i32 @_Z4getNv()
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %3, align 4, !tbaa !5
  %46 = add nsw i32 %43, -1
  store i32 %46, ptr %4, align 4, !tbaa !5
  %47 = icmp sgt i32 %44, %43
  br i1 %47, label %48, label %49

48:                                               ; preds = %.lr.ph28
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #7
  %.pre54 = load i32, ptr %3, align 4, !tbaa !5
  %.pre55 = load i32, ptr %4, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %48, %.lr.ph28
  %50 = phi i32 [ %.pre55, %48 ], [ %46, %.lr.ph28 ]
  %51 = phi i32 [ %.pre54, %48 ], [ %45, %.lr.ph28 ]
  %52 = sext i32 %51 to i64
  %53 = mul nsw i64 %52, 200000
  %54 = sext i32 %50 to i64
  %55 = add nsw i64 %53, %54
  %56 = getelementptr inbounds [200000 x i64], ptr @fix, i64 0, i64 %indvars.iv40
  store i64 %55, ptr %56, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE6insertERKx(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %5, ptr noundef nonnull align 8 dereferenceable(104) @broken, ptr noundef nonnull align 8 dereferenceable(8) %56)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %57 = load i32, ptr @K, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next41, %58
  br i1 %59, label %.lr.ph28, label %._crit_edge, !llvm.loop !13

._crit_edge32:                                    ; preds = %71, %._crit_edge
  %60 = load i32, ptr @K, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph35.preheader, label %._crit_edge38

.lr.ph35.preheader:                               ; preds = %._crit_edge32
  %62 = zext nneg i32 %60 to i64
  br label %.lr.ph35

.lr.ph31:                                         ; preds = %._crit_edge, %71
  %indvars.iv43 = phi i64 [ %indvars.iv.next44, %71 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %63 = getelementptr inbounds [200000 x i64], ptr @conn, i64 0, i64 %indvars.iv43
  call void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE4findERKx(ptr dead_on_unwind nonnull writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_") align 8 %7, ptr noundef nonnull align 8 dereferenceable(104) @broken, ptr noundef nonnull align 8 dereferenceable(8) %63)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_") align 8 %8, ptr noundef nonnull align 8 dereferenceable(104) @broken)
  %64 = call noundef zeroext i1 @_ZNK10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE21point_const_iterator_eqERKSJ_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %64, label %65, label %71

65:                                               ; preds = %.lr.ph31
  %66 = load i64, ptr %63, align 8, !tbaa !9
  %67 = sdiv i64 %66, 200000
  %68 = trunc i64 %67 to i32
  %69 = srem i64 %66, 200000
  %70 = trunc nsw i64 %69 to i32
  call void @_Z2unii(i32 noundef %68, i32 noundef %70)
  br label %71

71:                                               ; preds = %.lr.ph31, %65
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %72 = load i32, ptr @M, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next44, %73
  br i1 %74, label %.lr.ph31, label %._crit_edge32, !llvm.loop !14

.preheader:                                       ; preds = %.lr.ph35
  %.pre56 = load i32, ptr @K, align 4, !tbaa !5
  %75 = icmp sgt i32 %.pre56, 0
  br i1 %75, label %.lr.ph37, label %._crit_edge38

.lr.ph35:                                         ; preds = %.lr.ph35.preheader, %.lr.ph35
  %indvars.iv46 = phi i64 [ %62, %.lr.ph35.preheader ], [ %indvars.iv.next47, %.lr.ph35 ]
  %indvars.iv.next47 = add nsw i64 %indvars.iv46, -1
  %76 = load i32, ptr @components, align 4, !tbaa !5
  %77 = getelementptr inbounds [200000 x i32], ptr @ans, i64 0, i64 %indvars.iv.next47
  store i32 %76, ptr %77, align 4, !tbaa !5
  %78 = getelementptr inbounds [200000 x i64], ptr @fix, i64 0, i64 %indvars.iv.next47
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = sdiv i64 %79, 200000
  %81 = trunc i64 %80 to i32
  %82 = srem i64 %79, 200000
  %83 = trunc nsw i64 %82 to i32
  call void @_Z2unii(i32 noundef %81, i32 noundef %83)
  %84 = icmp ugt i64 %indvars.iv46, 1
  br i1 %84, label %.lr.ph35, label %.preheader, !llvm.loop !15

._crit_edge38:                                    ; preds = %.lr.ph37, %._crit_edge32, %.preheader
  %85 = call i32 @putchar_unlocked(i32 noundef 10)
  ret i32 0

.lr.ph37:                                         ; preds = %.preheader, %.lr.ph37
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %.lr.ph37 ], [ 0, %.preheader ]
  %86 = getelementptr inbounds [200000 x i32], ptr @ans, i64 0, i64 %indvars.iv49
  %87 = load i32, ptr %86, align 4, !tbaa !5
  call void @_Z5printi(i32 noundef %87)
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %88 = load i32, ptr @K, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = icmp slt i64 %indvars.iv.next50, %89
  br i1 %90, label %.lr.ph37, label %._crit_edge38, !llvm.loop !16
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE6insertERKx(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE4findERKx(ptr dead_on_unwind noalias writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::point_const_iterator_") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE21point_const_iterator_eqERKSJ_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds6detail9gp_ht_setIxNS_9null_typeESt4hashIxESt8equal_toIxESaIcELb0ENS_25direct_mask_range_hashingImEENS_15linear_probe_fnImEENS_27hash_standard_resize_policyINS_28hash_exponential_size_policyImEENS_30hash_load_check_resize_triggerILb0EmEELb1EmEEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.__gnu_pbds::detail::gp_ht_set<long long, __gnu_pbds::null_type, std::hash<long long>, std::equal_to<long long>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, true>>::const_iterator_") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { inlinehint mustprogress nofree 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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"int", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass