; LLVM IR from tangjz/acm-icpc :: self_training/2015-02-09 (D)

; 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.BigInt = type { i32, [30 x i32] }

@m = external dso_local global %struct.BigInt, align 4
@d = external dso_local global %struct.BigInt, align 4
@n = external dso_local global %struct.BigInt, align 4
@t = external dso_local global %struct.BigInt, align 4
@p = external dso_local global %struct.BigInt, align 4
@q = external dso_local global %struct.BigInt, align 4
@delta = external dso_local global %struct.BigInt, align 4
@e = external dso_local global i32, align 4
@str1 = external dso_local global [102 x i8], align 16
@str2 = external dso_local global [102 x i8], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.BigInt, align 4
  %5 = alloca %struct.BigInt, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.BigInt, align 4
  %8 = alloca %struct.BigInt, align 4
  %9 = alloca %struct.BigInt, align 4
  %10 = alloca %struct.BigInt, align 4
  %11 = alloca %struct.BigInt, align 4
  %12 = alloca %struct.BigInt, align 4
  %13 = alloca %struct.BigInt, align 4
  %14 = alloca %struct.BigInt, align 4
  %15 = alloca %struct.BigInt, align 4
  %16 = alloca %struct.BigInt, align 4
  %17 = alloca %struct.BigInt, align 4
  %18 = alloca %struct.BigInt, align 4
  %19 = alloca %struct.BigInt, align 4
  %20 = alloca %struct.BigInt, align 4
  %21 = alloca %struct.BigInt, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.BigInt, align 4
  %24 = alloca %struct.BigInt, align 4
  %25 = alloca %struct.BigInt, align 4
  %26 = alloca %struct.BigInt, align 4
  %27 = alloca %struct.BigInt, align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.BigInt, align 4
  %30 = alloca %struct.BigInt, align 4
  %31 = alloca %struct.BigInt, align 4
  %32 = alloca %struct.BigInt, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %73, %0
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @str1, ptr noundef @str2, ptr noundef @e)
  %35 = icmp eq i32 %34, 3
  br i1 %35, label %36, label %45

36:                                               ; preds = %33
  %37 = load i8, ptr @str1, align 16, !tbaa !9
  %38 = icmp ne i8 %37, 0
  br i1 %38, label %39, label %45

39:                                               ; preds = %36
  %40 = load i8, ptr @str2, align 16, !tbaa !9
  %41 = icmp ne i8 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = load i32, ptr @e, align 4, !tbaa !5
  %44 = icmp ne i32 %43, 0
  br label %45

45:                                               ; preds = %42, %39, %36, %33
  %46 = phi i1 [ false, %39 ], [ false, %36 ], [ false, %33 ], [ %44, %42 ]
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %76

48:                                               ; preds = %45
  call void @_ZN6BigInt4readEPKc(ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef @str1)
  call void @_ZN6BigInt4readEPKc(ptr noundef nonnull align 4 dereferenceable(124) @d, ptr noundef @str2)
  call void @llvm.lifetime.start.p0(i64 124, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %5) #7
  %49 = load i32, ptr @e, align 4, !tbaa !5
  call void @_ZNK6BigIntmlEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %5, ptr noundef nonnull align 4 dereferenceable(124) @d, i32 noundef %49)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %4, ptr noundef nonnull align 4 dereferenceable(124) %5, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @m, ptr align 4 %4, i64 124, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 124, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %65, %48
  call void @llvm.lifetime.start.p0(i64 124, ptr %7) #7
  %51 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZNK6BigIntdvEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %7, ptr noundef nonnull align 4 dereferenceable(124) @m, i32 noundef %51)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @t, ptr align 4 %7, i64 124, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 124, ptr %7) #7
  %52 = call noundef zeroext i1 @_ZNK6BigIntgeERKS_(ptr noundef nonnull align 4 dereferenceable(124) @t, ptr noundef nonnull align 4 dereferenceable(124) @n)
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  br label %65

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 124, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %10) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %10, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %9, ptr noundef nonnull align 4 dereferenceable(124) %10, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 124, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %12) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %12, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %11, ptr noundef nonnull align 4 dereferenceable(124) %12, i32 noundef 1)
  call void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %8, ptr noundef nonnull align 4 dereferenceable(124) %9, ptr noundef nonnull align 4 dereferenceable(124) %11)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @delta, ptr align 4 %8, i64 124, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 124, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %13) #7
  call void @_ZNK6BigIntmlEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %13, ptr noundef nonnull align 4 dereferenceable(124) @t, i32 noundef 4)
  %55 = call noundef zeroext i1 @_ZNK6BigIntltERKS_(ptr noundef nonnull align 4 dereferenceable(124) @delta, ptr noundef nonnull align 4 dereferenceable(124) %13)
  call void @llvm.lifetime.end.p0(i64 124, ptr %13) #7
  br i1 %55, label %56, label %57

56:                                               ; preds = %54
  br label %65

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 124, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %16) #7
  call void @_ZNK6BigIntmlEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %16, ptr noundef nonnull align 4 dereferenceable(124) @t, i32 noundef 4)
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %15, ptr noundef nonnull align 4 dereferenceable(124) @delta, ptr noundef nonnull align 4 dereferenceable(124) %16)
  call void @_ZNK6BigInt4sqrtEv(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %14, ptr noundef nonnull align 4 dereferenceable(124) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @delta, ptr align 4 %14, i64 124, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 124, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %21) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %21, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %20, ptr noundef nonnull align 4 dereferenceable(124) %21, i32 noundef 1)
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %19, ptr noundef nonnull align 4 dereferenceable(124) %20, ptr noundef nonnull align 4 dereferenceable(124) @delta)
  call void @_ZNK6BigIntdvEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %18, ptr noundef nonnull align 4 dereferenceable(124) %19, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !5
  call void @_ZNK6BigIntplERKi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %17, ptr noundef nonnull align 4 dereferenceable(124) %18, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @p, ptr align 4 %17, i64 124, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %27) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %27, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %26, ptr noundef nonnull align 4 dereferenceable(124) %27, i32 noundef 1)
  call void @_ZNK6BigIntplERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %25, ptr noundef nonnull align 4 dereferenceable(124) %26, ptr noundef nonnull align 4 dereferenceable(124) @delta)
  call void @_ZNK6BigIntdvEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %24, ptr noundef nonnull align 4 dereferenceable(124) %25, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 1, ptr %28, align 4, !tbaa !5
  call void @_ZNK6BigIntplERKi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %23, ptr noundef nonnull align 4 dereferenceable(124) %24, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @q, ptr align 4 %23, i64 124, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %29) #7
  call void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %29, ptr noundef nonnull align 4 dereferenceable(124) @p, ptr noundef nonnull align 4 dereferenceable(124) @q)
  %58 = call noundef zeroext i1 @_ZNK6BigInteqERKS_(ptr noundef nonnull align 4 dereferenceable(124) %29, ptr noundef nonnull align 4 dereferenceable(124) @n)
  call void @llvm.lifetime.start.p0(i64 124, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr %32) #7
  br i1 %58, label %59, label %61

59:                                               ; preds = %57
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %31, ptr noundef nonnull align 4 dereferenceable(124) @p, i32 noundef 1)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %32, ptr noundef nonnull align 4 dereferenceable(124) @q, i32 noundef 1)
  call void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind writable sret(%struct.BigInt) align 4 %30, ptr noundef nonnull align 4 dereferenceable(124) %31, ptr noundef nonnull align 4 dereferenceable(124) %32)
  %60 = call noundef zeroext i1 @_ZNK6BigInteqERKS_(ptr noundef nonnull align 4 dereferenceable(124) %30, ptr noundef nonnull align 4 dereferenceable(124) @t)
  br label %61

61:                                               ; preds = %59, %57
  %62 = phi i1 [ false, %57 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 124, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr %29) #7
  br i1 %62, label %63, label %64

63:                                               ; preds = %61
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %68

64:                                               ; preds = %61
  br label %65

65:                                               ; preds = %64, %56, %53
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %6, align 4, !tbaa !5
  br label %50, !llvm.loop !11

68:                                               ; preds = %63
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %69)
  call void @_ZNK6BigInt5writeEv(ptr noundef nonnull align 4 dereferenceable(124) @p)
  %71 = call i32 @putchar(i32 noundef 32)
  call void @_ZNK6BigInt5writeEv(ptr noundef nonnull align 4 dereferenceable(124) @q)
  %72 = call i32 @putchar(i32 noundef 10)
  br label %73

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

76:                                               ; preds = %47
  ret i32 0
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmlEi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmiEi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), i32 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

; 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 @_ZNK6BigIntdvEi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6BigIntgeERKS_(ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6BigIntltERKS_(ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6BigInt4sqrtEv(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntplERKi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntplERKS_(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6BigInteqERKS_(ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6BigInt5writeEv(ptr noundef nonnull align 4 dereferenceable(124)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #6

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 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 = { 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 = { 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 #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 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 4, !5, i64 4, i64 120, !9}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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"

%struct.BigInt = type { i32, [30 x i32] }

@m = external dso_local global %struct.BigInt, align 4
@d = external dso_local global %struct.BigInt, align 4
@n = external dso_local global %struct.BigInt, align 4
@t = external dso_local global %struct.BigInt, align 4
@p = external dso_local global %struct.BigInt, align 4
@q = external dso_local global %struct.BigInt, align 4
@delta = external dso_local global %struct.BigInt, align 4
@e = external dso_local global i32, align 4
@str1 = external dso_local global [102 x i8], align 16
@str2 = external dso_local global [102 x i8], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.BigInt, align 4
  %2 = alloca %struct.BigInt, align 4
  %3 = alloca %struct.BigInt, align 4
  %4 = alloca %struct.BigInt, align 4
  %5 = alloca %struct.BigInt, align 4
  %6 = alloca %struct.BigInt, align 4
  %7 = alloca %struct.BigInt, align 4
  %8 = alloca %struct.BigInt, align 4
  %9 = alloca %struct.BigInt, align 4
  %10 = alloca %struct.BigInt, align 4
  %11 = alloca %struct.BigInt, align 4
  %12 = alloca %struct.BigInt, align 4
  %13 = alloca %struct.BigInt, align 4
  %14 = alloca %struct.BigInt, align 4
  %15 = alloca %struct.BigInt, align 4
  %16 = alloca %struct.BigInt, align 4
  %17 = alloca %struct.BigInt, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.BigInt, align 4
  %20 = alloca %struct.BigInt, align 4
  %21 = alloca %struct.BigInt, align 4
  %22 = alloca %struct.BigInt, align 4
  %23 = alloca %struct.BigInt, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.BigInt, align 4
  %26 = alloca %struct.BigInt, align 4
  %27 = alloca %struct.BigInt, align 4
  %28 = alloca %struct.BigInt, align 4
  %29 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @str1, ptr noundef nonnull @str2, ptr noundef nonnull @e)
  %30 = icmp eq i32 %29, 3
  %31 = load i8, ptr @str1, align 16
  %32 = icmp ne i8 %31, 0
  %or.cond12 = select i1 %30, i1 %32, i1 false
  %33 = load i8, ptr @str2, align 16
  %34 = icmp ne i8 %33, 0
  %or.cond313 = select i1 %or.cond12, i1 %34, i1 false
  %35 = load i32, ptr @e, align 4
  %36 = icmp ne i32 %35, 0
  %or.cond714 = select i1 %or.cond313, i1 %36, i1 false
  br i1 %or.cond714, label %.lr.ph, label %.critedge

.critedge:                                        ; preds = %46, %0
  ret i32 0

.lr.ph:                                           ; preds = %0, %46
  %.01115 = phi i32 [ %50, %46 ], [ 1, %0 ]
  call void @_ZN6BigInt4readEPKc(ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull @str1)
  call void @_ZN6BigInt4readEPKc(ptr noundef nonnull align 4 dereferenceable(124) @d, ptr noundef nonnull @str2)
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %2) #7
  %37 = load i32, ptr @e, align 4, !tbaa !5
  call void @_ZNK6BigIntmlEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %2, ptr noundef nonnull align 4 dereferenceable(124) @d, i32 noundef %37)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %1, ptr noundef nonnull align 4 dereferenceable(124) %2, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) @m, ptr noundef nonnull align 4 dereferenceable(124) %1, i64 124, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %1) #7
  br label %38

38:                                               ; preds = %59, %.lr.ph
  %.0 = phi i32 [ 1, %.lr.ph ], [ %60, %59 ]
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %3) #7
  call void @_ZNK6BigIntdvEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %3, ptr noundef nonnull align 4 dereferenceable(124) @m, i32 noundef %.0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) @t, ptr noundef nonnull align 4 dereferenceable(124) %3, i64 124, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %3) #7
  %39 = call noundef zeroext i1 @_ZNK6BigIntgeERKS_(ptr noundef nonnull align 4 dereferenceable(124) @t, ptr noundef nonnull align 4 dereferenceable(124) @n)
  br i1 %39, label %59, label %40

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %6) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %6, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %5, ptr noundef nonnull align 4 dereferenceable(124) %6, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %8) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %8, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %7, ptr noundef nonnull align 4 dereferenceable(124) %8, i32 noundef 1)
  call void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %4, ptr noundef nonnull align 4 dereferenceable(124) %5, ptr noundef nonnull align 4 dereferenceable(124) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) @delta, ptr noundef nonnull align 4 dereferenceable(124) %4, i64 124, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %9) #7
  call void @_ZNK6BigIntmlEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %9, ptr noundef nonnull align 4 dereferenceable(124) @t, i32 noundef 4)
  %41 = call noundef zeroext i1 @_ZNK6BigIntltERKS_(ptr noundef nonnull align 4 dereferenceable(124) @delta, ptr noundef nonnull align 4 dereferenceable(124) %9)
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %9) #7
  br i1 %41, label %59, label %42

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %12) #7
  call void @_ZNK6BigIntmlEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %12, ptr noundef nonnull align 4 dereferenceable(124) @t, i32 noundef 4)
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %11, ptr noundef nonnull align 4 dereferenceable(124) @delta, ptr noundef nonnull align 4 dereferenceable(124) %12)
  call void @_ZNK6BigInt4sqrtEv(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %10, ptr noundef nonnull align 4 dereferenceable(124) %11)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) @delta, ptr noundef nonnull align 4 dereferenceable(124) %10, i64 124, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %17) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %17, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %16, ptr noundef nonnull align 4 dereferenceable(124) %17, i32 noundef 1)
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %15, ptr noundef nonnull align 4 dereferenceable(124) %16, ptr noundef nonnull align 4 dereferenceable(124) @delta)
  call void @_ZNK6BigIntdvEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %14, ptr noundef nonnull align 4 dereferenceable(124) %15, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 1, ptr %18, align 4, !tbaa !5
  call void @_ZNK6BigIntplERKi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %13, ptr noundef nonnull align 4 dereferenceable(124) %14, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) @p, ptr noundef nonnull align 4 dereferenceable(124) %13, i64 124, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %23) #7
  call void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %23, ptr noundef nonnull align 4 dereferenceable(124) @n, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %22, ptr noundef nonnull align 4 dereferenceable(124) %23, i32 noundef 1)
  call void @_ZNK6BigIntplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %21, ptr noundef nonnull align 4 dereferenceable(124) %22, ptr noundef nonnull align 4 dereferenceable(124) @delta)
  call void @_ZNK6BigIntdvEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %20, ptr noundef nonnull align 4 dereferenceable(124) %21, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  store i32 1, ptr %24, align 4, !tbaa !5
  call void @_ZNK6BigIntplERKi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %19, ptr noundef nonnull align 4 dereferenceable(124) %20, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) @q, ptr noundef nonnull align 4 dereferenceable(124) %19, i64 124, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %25) #7
  call void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %25, ptr noundef nonnull align 4 dereferenceable(124) @p, ptr noundef nonnull align 4 dereferenceable(124) @q)
  %43 = call noundef zeroext i1 @_ZNK6BigInteqERKS_(ptr noundef nonnull align 4 dereferenceable(124) %25, ptr noundef nonnull align 4 dereferenceable(124) @n)
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 124, ptr nonnull %28) #7
  br i1 %43, label %44, label %.critedge5

44:                                               ; preds = %42
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %27, ptr noundef nonnull align 4 dereferenceable(124) @p, i32 noundef 1)
  call void @_ZNK6BigIntmiEi(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %28, ptr noundef nonnull align 4 dereferenceable(124) @q, i32 noundef 1)
  call void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.BigInt) align 4 %26, ptr noundef nonnull align 4 dereferenceable(124) %27, ptr noundef nonnull align 4 dereferenceable(124) %28)
  %45 = call noundef zeroext i1 @_ZNK6BigInteqERKS_(ptr noundef nonnull align 4 dereferenceable(124) %26, ptr noundef nonnull align 4 dereferenceable(124) @t)
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %25) #7
  br i1 %45, label %46, label %59

46:                                               ; preds = %44
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.01115)
  call void @_ZNK6BigInt5writeEv(ptr noundef nonnull align 4 dereferenceable(124) @p)
  %48 = call i32 @putchar(i32 noundef 32)
  call void @_ZNK6BigInt5writeEv(ptr noundef nonnull align 4 dereferenceable(124) @q)
  %49 = call i32 @putchar(i32 noundef 10)
  %50 = add nuw nsw i32 %.01115, 1
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @str1, ptr noundef nonnull @str2, ptr noundef nonnull @e)
  %52 = icmp eq i32 %51, 3
  %53 = load i8, ptr @str1, align 16
  %54 = icmp ne i8 %53, 0
  %or.cond = select i1 %52, i1 %54, i1 false
  %55 = load i8, ptr @str2, align 16
  %56 = icmp ne i8 %55, 0
  %or.cond3 = select i1 %or.cond, i1 %56, i1 false
  %57 = load i32, ptr @e, align 4
  %58 = icmp ne i32 %57, 0
  %or.cond7 = select i1 %or.cond3, i1 %58, i1 false
  br i1 %or.cond7, label %.lr.ph, label %.critedge, !llvm.loop !11

.critedge5:                                       ; preds = %42
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 124, ptr nonnull %25) #7
  br label %59

59:                                               ; preds = %44, %.critedge5, %40, %38
  %60 = add nuw nsw i32 %.0, 1
  br label %38, !llvm.loop !13
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmlEi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmiEi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), i32 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: 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 @_ZNK6BigIntdvEi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6BigIntgeERKS_(ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6BigIntltERKS_(ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6BigInt4sqrtEv(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntplERKi(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BigIntplERKS_(ptr dead_on_unwind noalias writable sret(%struct.BigInt) align 4, ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6BigInteqERKS_(ptr noundef nonnull align 4 dereferenceable(124), ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6BigInt5writeEv(ptr noundef nonnull align 4 dereferenceable(124)) local_unnamed_addr #5 align 2

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

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 = { 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 #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 = { 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 = { 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 #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 = !{i64 0, i64 4, !5, i64 4, i64 120, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass