; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/数学算法 (雅可比方法)

; 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.anon = type { [210 x [210 x double]], [210 x [210 x double]], [210 x i32], i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [210 x double] }
%"struct.std::pair" = type { double, %"struct.std::array" }

@tmp = external dso_local global <{ <{ double, double, double, [207 x double] }>, <{ double, double, double, [207 x double] }>, <{ double, double, double, [207 x double] }>, [207 x <{ double, double, double, [207 x double] }>] }>, align 16
@jacobi = external hidden global %struct.anon, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  %6 = alloca %"struct.std::array", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
  call void @"_ZN3$_05solveERA210_A210_Kdi"(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %2, ptr noundef nonnull align 8 dereferenceable(706448) @jacobi, ptr noundef nonnull align 8 dereferenceable(352800) @tmp, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %52, %0
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 3
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %56

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %16) #6
  %18 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %19 = load double, ptr %18, align 8, !tbaa !9
  store double %19, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1680, ptr %6) #6
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %21) #6
  %23 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %23, i64 1680, i1 false), !tbaa.struct !14
  %24 = load double, ptr %5, align 8, !tbaa !13
  %25 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %24)
          to label %26 unwind label %31

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

27:                                               ; preds = %42, %26
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 3
  br i1 %29, label %35, label %30

30:                                               ; preds = %27
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %49

31:                                               ; preds = %49, %14
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  br label %55

35:                                               ; preds = %27
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %6, i64 noundef %37) #6
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %39)
          to label %41 unwind label %45

41:                                               ; preds = %35
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %9, align 4, !tbaa !5
  br label %27, !llvm.loop !16

45:                                               ; preds = %35
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %55

49:                                               ; preds = %30
  %50 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %51 unwind label %31

51:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 1680, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %3, align 4, !tbaa !5
  br label %10, !llvm.loop !18

55:                                               ; preds = %45, %31
  call void @llvm.lifetime.end.p0(i64 1680, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  br label %58

56:                                               ; preds = %13
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  %57 = load i32, ptr %1, align 4
  ret i32 %57

58:                                               ; preds = %55
  %59 = load ptr, ptr %7, align 8
  %60 = load i32, ptr %8, align 4
  %61 = insertvalue { ptr, i32 } poison, ptr %59, 0
  %62 = insertvalue { ptr, i32 } %61, i32 %60, 1
  resume { ptr, i32 } %62
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3$_05solveERA210_A210_Kdi"(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(706448), ptr noundef nonnull align 8 dereferenceable(352800), i32 noundef) #2 align 2

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

; 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) #4

declare i32 @printf(ptr noundef, ...) #5

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680), i64 noundef) #3 align 2

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

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

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


; 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.anon = type { [210 x [210 x double]], [210 x [210 x double]], [210 x i32], i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, std::array<double, 210>>, std::allocator<std::pair<double, std::array<double, 210>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [210 x double] }

@tmp = external dso_local global <{ <{ double, double, double, [207 x double] }>, <{ double, double, double, [207 x double] }>, <{ double, double, double, [207 x double] }>, [207 x <{ double, double, double, [207 x double] }>] }>, align 16
@jacobi = external hidden global %struct.anon, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"struct.std::array", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @"_ZN3$_05solveERA210_A210_Kdi"(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %1, ptr noundef nonnull align 8 dereferenceable(706448) @jacobi, ptr noundef nonnull align 8 dereferenceable(352800) @tmp, i32 noundef 3)
  %3 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %4 = load double, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1680, ptr nonnull %2) #6
  %5 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(1680) %2, ptr noundef nonnull align 8 dereferenceable(1680) %6, i64 1680, i1 false), !tbaa.struct !11
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %4)
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 0) #6
  %9 = load double, ptr %8, align 8, !tbaa !13
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %9)
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 1) #6
  %12 = load double, ptr %11, align 8, !tbaa !13
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %12)
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 2) #6
  %15 = load double, ptr %14, align 8, !tbaa !13
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %15)
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.end.p0(i64 1680, ptr nonnull %2) #6
  %18 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #6
  %19 = load double, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1680, ptr nonnull %2) #6
  %20 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #6
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(1680) %2, ptr noundef nonnull align 8 dereferenceable(1680) %21, i64 1680, i1 false), !tbaa.struct !11
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %19)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 0) #6
  %24 = load double, ptr %23, align 8, !tbaa !13
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %24)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 1) #6
  %27 = load double, ptr %26, align 8, !tbaa !13
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %27)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 2) #6
  %30 = load double, ptr %29, align 8, !tbaa !13
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %30)
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.end.p0(i64 1680, ptr nonnull %2) #6
  %33 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2) #6
  %34 = load double, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1680, ptr nonnull %2) #6
  %35 = call noundef nonnull align 8 dereferenceable(1688) ptr @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(1680) %2, ptr noundef nonnull align 8 dereferenceable(1680) %36, i64 1680, i1 false), !tbaa.struct !11
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %34)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 0) #6
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %39)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 1) #6
  %42 = load double, ptr %41, align 8, !tbaa !13
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680) %2, i64 noundef 2) #6
  %45 = load double, ptr %44, align 8, !tbaa !13
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %45)
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.end.p0(i64 1680, ptr nonnull %2) #6
  call void @_ZNSt6vectorISt4pairIdSt5arrayIdLm210EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3$_05solveERA210_A210_Kdi"(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(706448), ptr noundef nonnull align 8 dereferenceable(352800), i32 noundef) local_unnamed_addr #2 align 2

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

; 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) #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm210EEixEm(ptr noundef nonnull align 8 dereferenceable(1680), i64 noundef) local_unnamed_addr #3 align 2

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !7, i64 0}
!6 = !{!"_ZTSSt4pairIdSt5arrayIdLm210EEE", !7, i64 0, !10, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5arrayIdLm210EE", !8, i64 0}
!11 = !{i64 0, i64 1680, !12}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass