; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI/1187 (main)

; 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.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca [12 x [12 x double]], align 16
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 1152, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 10, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %35, %0
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = icmp slt i32 %15, 12
  br i1 %16, label %18, label %17

17:                                               ; preds = %14
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %38

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

19:                                               ; preds = %31, %18
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 12
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %34

23:                                               ; preds = %19
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [12 x [12 x double]], ptr %3, i64 0, i64 %25
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [12 x double], ptr %26, i64 0, i64 %28
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %29)
  br label %31

31:                                               ; preds = %23
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %10, align 4, !tbaa !9
  br label %19, !llvm.loop !11

34:                                               ; preds = %22
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %8, align 4, !tbaa !9
  br label %14, !llvm.loop !13

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

39:                                               ; preds = %70, %38
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = icmp slt i32 %40, 5
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %73

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %44 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %44, ptr %12, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %62, %43
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %65

50:                                               ; preds = %45
  %51 = load double, ptr %4, align 8, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [12 x [12 x double]], ptr %3, i64 0, i64 %53
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [12 x double], ptr %54, i64 0, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !5
  %59 = fadd double %51, %58
  store double %59, ptr %4, align 8, !tbaa !5
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %50
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %12, align 4, !tbaa !9
  br label %45, !llvm.loop !14

65:                                               ; preds = %49
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %6, align 4, !tbaa !9
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr %5, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %65
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %11, align 4, !tbaa !9
  br label %39, !llvm.loop !15

73:                                               ; preds = %42
  %74 = load i8, ptr %2, align 1, !tbaa !16
  %75 = sext i8 %74 to i32
  switch i32 %75, label %85 [
    i32 83, label %76
    i32 77, label %79
  ]

76:                                               ; preds = %73
  %77 = load double, ptr %4, align 8, !tbaa !5
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %77)
  br label %85

79:                                               ; preds = %73
  %80 = load double, ptr %4, align 8, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = sitofp i32 %81 to double
  %83 = fdiv double %80, %82
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %83)
  br label %85

85:                                               ; preds = %79, %76, %73
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 1152, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #4
  %86 = load i32, ptr %1, align 4
  ret i32 %86
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

declare i32 @printf(ptr noundef, ...) #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 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!7, !7, i64 0}


; 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.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i8, align 1
  %2 = alloca [12 x [12 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 1152, ptr nonnull %2) #5
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %1)
  br label %.preheader30

.preheader30:                                     ; preds = %0, %.preheader30
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %.preheader30 ]
  %4 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 0
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %6 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 1
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %8 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 2
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %10 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 3
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %12 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 4
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %14 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 5
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %16 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 6
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %18 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 7
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %20 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 8
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %22 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 9
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 10
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = getelementptr inbounds [12 x [12 x double]], ptr %2, i64 0, i64 %indvars.iv, i64 11
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 12
  br i1 %exitcond.not, label %._crit_edge.4, label %.preheader30, !llvm.loop !5

._crit_edge.4:                                    ; preds = %.preheader30
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !7
  %30 = fadd double %29, 0.000000e+00
  %31 = getelementptr inbounds i8, ptr %2, i64 16
  %32 = load double, ptr %31, align 16, !tbaa !7
  %33 = fadd double %30, %32
  %34 = getelementptr inbounds i8, ptr %2, i64 24
  %35 = load double, ptr %34, align 8, !tbaa !7
  %36 = fadd double %33, %35
  %37 = getelementptr inbounds i8, ptr %2, i64 32
  %38 = load double, ptr %37, align 16, !tbaa !7
  %39 = fadd double %36, %38
  %40 = getelementptr inbounds i8, ptr %2, i64 40
  %41 = load double, ptr %40, align 8, !tbaa !7
  %42 = fadd double %39, %41
  %43 = getelementptr inbounds i8, ptr %2, i64 48
  %44 = load double, ptr %43, align 16, !tbaa !7
  %45 = fadd double %42, %44
  %46 = getelementptr inbounds i8, ptr %2, i64 56
  %47 = load double, ptr %46, align 8, !tbaa !7
  %48 = fadd double %45, %47
  %49 = getelementptr inbounds i8, ptr %2, i64 64
  %50 = load double, ptr %49, align 16, !tbaa !7
  %51 = fadd double %48, %50
  %52 = getelementptr inbounds i8, ptr %2, i64 72
  %53 = load double, ptr %52, align 8, !tbaa !7
  %54 = fadd double %51, %53
  %55 = getelementptr inbounds i8, ptr %2, i64 80
  %56 = load double, ptr %55, align 16, !tbaa !7
  %57 = fadd double %54, %56
  %58 = getelementptr inbounds i8, ptr %2, i64 112
  %59 = load double, ptr %58, align 16, !tbaa !7
  %60 = fadd double %57, %59
  %61 = getelementptr inbounds i8, ptr %2, i64 120
  %62 = load double, ptr %61, align 8, !tbaa !7
  %63 = fadd double %60, %62
  %64 = getelementptr inbounds i8, ptr %2, i64 128
  %65 = load double, ptr %64, align 16, !tbaa !7
  %66 = fadd double %63, %65
  %67 = getelementptr inbounds i8, ptr %2, i64 136
  %68 = load double, ptr %67, align 8, !tbaa !7
  %69 = fadd double %66, %68
  %70 = getelementptr inbounds i8, ptr %2, i64 144
  %71 = load double, ptr %70, align 16, !tbaa !7
  %72 = fadd double %69, %71
  %73 = getelementptr inbounds i8, ptr %2, i64 152
  %74 = load double, ptr %73, align 8, !tbaa !7
  %75 = fadd double %72, %74
  %76 = getelementptr inbounds i8, ptr %2, i64 160
  %77 = load double, ptr %76, align 16, !tbaa !7
  %78 = fadd double %75, %77
  %79 = getelementptr inbounds i8, ptr %2, i64 168
  %80 = load double, ptr %79, align 8, !tbaa !7
  %81 = fadd double %78, %80
  %82 = getelementptr inbounds i8, ptr %2, i64 216
  %83 = load double, ptr %82, align 8, !tbaa !7
  %84 = fadd double %81, %83
  %85 = getelementptr inbounds i8, ptr %2, i64 224
  %86 = load double, ptr %85, align 16, !tbaa !7
  %87 = fadd double %84, %86
  %88 = getelementptr inbounds i8, ptr %2, i64 232
  %89 = load double, ptr %88, align 8, !tbaa !7
  %90 = fadd double %87, %89
  %91 = getelementptr inbounds i8, ptr %2, i64 240
  %92 = load double, ptr %91, align 16, !tbaa !7
  %93 = fadd double %90, %92
  %94 = getelementptr inbounds i8, ptr %2, i64 248
  %95 = load double, ptr %94, align 8, !tbaa !7
  %96 = fadd double %93, %95
  %97 = getelementptr inbounds i8, ptr %2, i64 256
  %98 = load double, ptr %97, align 16, !tbaa !7
  %99 = fadd double %96, %98
  %100 = getelementptr inbounds i8, ptr %2, i64 320
  %101 = load double, ptr %100, align 16, !tbaa !7
  %102 = fadd double %99, %101
  %103 = getelementptr inbounds i8, ptr %2, i64 328
  %104 = load double, ptr %103, align 8, !tbaa !7
  %105 = fadd double %102, %104
  %106 = getelementptr inbounds i8, ptr %2, i64 336
  %107 = load double, ptr %106, align 16, !tbaa !7
  %108 = fadd double %105, %107
  %109 = getelementptr inbounds i8, ptr %2, i64 344
  %110 = load double, ptr %109, align 8, !tbaa !7
  %111 = fadd double %108, %110
  %112 = getelementptr inbounds i8, ptr %2, i64 424
  %113 = load double, ptr %112, align 8, !tbaa !7
  %114 = fadd double %111, %113
  %115 = getelementptr inbounds i8, ptr %2, i64 432
  %116 = load double, ptr %115, align 16, !tbaa !7
  %117 = fadd double %114, %116
  %118 = load i8, ptr %1, align 1, !tbaa !11
  switch i8 %118, label %122 [
    i8 83, label %.sink.split
    i8 77, label %119
  ]

119:                                              ; preds = %._crit_edge.4
  %120 = fdiv double %117, 3.000000e+01
  br label %.sink.split

.sink.split:                                      ; preds = %._crit_edge.4, %119
  %.sink = phi double [ %120, %119 ], [ %117, %._crit_edge.4 ]
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %.sink)
  br label %122

122:                                              ; preds = %.sink.split, %._crit_edge.4
  call void @llvm.lifetime.end.p0(i64 1152, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #5
  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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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 = { "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 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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!9, !9, i64 0}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass