; LLVM IR from freakout42/macrocalc :: mc/nro (nro)

; 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.docctl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, [26 x i32] }
%struct.page = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i32], [200000 x i8], [200000 x i8], [200000 x i8], [200000 x i8] }

@dc = external dso_local global %struct.docctl, align 4
@pg = external dso_local global %struct.page, align 4
@sofile = external dso_local global [4 x ptr], align 16
@__const.pswitch.macroname = external hidden unnamed_addr constant [60 x i8], align 16
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1

; 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: nounwind uwtable
declare dso_local void @profile() #1

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @pswitch(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [60 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 60, ptr %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.pswitch.macroname, i64 60, i1 false)
  %13 = call ptr @getenv(ptr noundef @.str) #7
  store ptr %13, ptr %8, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %19

15:                                               ; preds = %2
  %16 = getelementptr inbounds [60 x i8], ptr %9, i64 0, i64 0
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = call ptr @strcpy(ptr noundef %16, ptr noundef %17) #7
  br label %19

19:                                               ; preds = %15, %2
  store i32 1, ptr %6, align 4, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load i8, ptr %20, align 1, !tbaa !11
  %22 = sext i8 %21 to i32
  %23 = icmp eq i32 %22, 45
  br i1 %23, label %24, label %70

24:                                               ; preds = %19
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i32 1
  store ptr %26, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %27 = call ptr @__ctype_tolower_loc() #8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = sext i8 %30 to i32
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i32, ptr %28, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %34, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %35, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %36 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %36, label %68 [
    i32 98, label %37
    i32 111, label %38
    i32 109, label %39
    i32 112, label %57
    i32 118, label %61
    i32 48, label %65
    i32 49, label %65
    i32 50, label %65
    i32 51, label %65
    i32 52, label %65
    i32 53, label %65
    i32 54, label %65
    i32 55, label %65
    i32 56, label %65
    i32 57, label %65
  ]

37:                                               ; preds = %24
  store i32 0, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 10), align 4, !tbaa !12
  br label %69

38:                                               ; preds = %24
  store i32 1, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 11), align 4, !tbaa !14
  br label %69

39:                                               ; preds = %24
  %40 = getelementptr inbounds [60 x i8], ptr %9, i64 0, i64 0
  store ptr %40, ptr %7, align 8, !tbaa !5
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = call ptr @strcat(ptr noundef %41, ptr noundef @.str.1) #7
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i32 1
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = call ptr @strcat(ptr noundef %43, ptr noundef %45) #7
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call noalias ptr @fopen(ptr noundef %47, ptr noundef @.str.2)
  store ptr %48, ptr @sofile, align 16, !tbaa !5
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %54

50:                                               ; preds = %39
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.3, ptr noundef %52) #7
  call void @exit(i32 noundef 4) #9
  unreachable

54:                                               ; preds = %39
  call void @profile()
  %55 = load ptr, ptr @sofile, align 16, !tbaa !5
  %56 = call i32 @fclose(ptr noundef %55)
  br label %69

57:                                               ; preds = %24
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i32 1
  store ptr %59, ptr %4, align 8, !tbaa !5
  %60 = call i32 (ptr, ...) @ctod(ptr noundef %59)
  call void (ptr, i32, i32, i32, i32, i32, ...) @set(ptr noundef getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 9), i32 noundef %60, i32 noundef 49, i32 noundef 0, i32 noundef 0, i32 noundef 256)
  br label %69

61:                                               ; preds = %24
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.4) #7
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %64, align 4, !tbaa !9
  br label %69

65:                                               ; preds = %24, %24, %24, %24, %24, %24, %24, %24, %24, %24
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call i32 (ptr, ...) @ctod(ptr noundef %66)
  store i32 %67, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 11), align 4, !tbaa !15
  br label %69

68:                                               ; preds = %24
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %68, %65, %61, %57, %54, %38, %37
  br label %81

70:                                               ; preds = %19
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %73, 43
  br i1 %74, label %75, label %79

75:                                               ; preds = %70
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i32 1
  store ptr %77, ptr %4, align 8, !tbaa !5
  %78 = call i32 (ptr, ...) @ctod(ptr noundef %77)
  store i32 %78, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 10), align 4, !tbaa !17
  br label %80

79:                                               ; preds = %70
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %79, %75
  br label %81

81:                                               ; preds = %80, %69
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %88

84:                                               ; preds = %81
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.5, ptr noundef %86) #7
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %89

88:                                               ; preds = %81
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %89

89:                                               ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 60, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %90 = load i32, ptr %3, align 4
  ret i32 %90
}

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

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #4

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() #5

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #4

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

declare void @set(...) #2

declare i32 @ctod(...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(none) "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 40}
!13 = !{!"docctl", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48, !7, i64 49, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64}
!14 = !{!13, !10, i64 44}
!15 = !{!16, !10, i64 44}
!16 = !{!"page", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 200080, !7, i64 400080, !7, i64 600080}
!17 = !{!16, !10, i64 40}


; 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.docctl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, [26 x i32] }
%struct.page = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i32], [200000 x i8], [200000 x i8], [200000 x i8], [200000 x i8] }

@dc = external dso_local local_unnamed_addr global %struct.docctl, align 4
@pg = external dso_local global %struct.page, align 4
@sofile = external dso_local local_unnamed_addr global [4 x ptr], align 16
@__const.pswitch.macroname = external hidden unnamed_addr constant [60 x i8], align 16
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1

; 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: nounwind uwtable
declare dso_local void @profile() local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @pswitch(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #1 {
  %3 = alloca [60 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %3) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) %3, ptr noundef nonnull align 16 dereferenceable(60) @__const.pswitch.macroname, i64 60, i1 false)
  %4 = tail call ptr @getenv(ptr noundef nonnull @.str) #9
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %7, label %5

5:                                                ; preds = %2
  %6 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %4) #9
  br label %7

7:                                                ; preds = %5, %2
  %8 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %8, label %42 [
    i8 45, label %9
    i8 43, label %39
  ]

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 1
  %11 = tail call ptr @__ctype_tolower_loc() #10
  %12 = load ptr, ptr %11, align 8, !tbaa !8
  %13 = load i8, ptr %10, align 1, !tbaa !5
  %14 = sext i8 %13 to i64
  %15 = getelementptr inbounds i32, ptr %12, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !10
  switch i32 %16, label %42 [
    i32 98, label %17
    i32 111, label %18
    i32 109, label %19
    i32 112, label %31
    i32 118, label %34
    i32 48, label %37
    i32 49, label %37
    i32 50, label %37
    i32 51, label %37
    i32 52, label %37
    i32 53, label %37
    i32 54, label %37
    i32 55, label %37
    i32 56, label %37
    i32 57, label %37
  ]

17:                                               ; preds = %9
  store i32 0, ptr getelementptr inbounds (i8, ptr @dc, i64 40), align 4, !tbaa !12
  br label %.thread

18:                                               ; preds = %9
  store i32 1, ptr getelementptr inbounds (i8, ptr @dc, i64 44), align 4, !tbaa !14
  br label %.thread

19:                                               ; preds = %9
  %20 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.1) #9
  %21 = getelementptr inbounds i8, ptr %0, i64 2
  %22 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %21) #9
  %23 = call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.2)
  store ptr %23, ptr @sofile, align 16, !tbaa !8
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %19
  %26 = load ptr, ptr @stderr, align 8, !tbaa !8
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.3, ptr noundef nonnull %3) #11
  call void @exit(i32 noundef 4) #12
  unreachable

28:                                               ; preds = %19
  call void @profile()
  %29 = load ptr, ptr @sofile, align 16, !tbaa !8
  %30 = call i32 @fclose(ptr noundef %29)
  br label %.thread

31:                                               ; preds = %9
  %32 = getelementptr inbounds i8, ptr %0, i64 2
  %33 = call i32 (ptr, ...) @ctod(ptr noundef nonnull %32) #9
  call void (ptr, i32, i32, i32, i32, i32, ...) @set(ptr noundef nonnull getelementptr inbounds (i8, ptr @pg, i64 36), i32 noundef %33, i32 noundef 49, i32 noundef 0, i32 noundef 0, i32 noundef 256) #9
  br label %.thread

34:                                               ; preds = %9
  %35 = load ptr, ptr @stderr, align 8, !tbaa !8
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.4) #11
  store i32 1, ptr %1, align 4, !tbaa !10
  br label %.thread

37:                                               ; preds = %9, %9, %9, %9, %9, %9, %9, %9, %9, %9
  %38 = call i32 (ptr, ...) @ctod(ptr noundef nonnull %10) #9
  store i32 %38, ptr getelementptr inbounds (i8, ptr @pg, i64 44), align 4, !tbaa !15
  br label %.thread

39:                                               ; preds = %7
  %40 = getelementptr inbounds i8, ptr %0, i64 1
  %41 = call i32 (ptr, ...) @ctod(ptr noundef nonnull %40) #9
  store i32 %41, ptr getelementptr inbounds (i8, ptr @pg, i64 40), align 4, !tbaa !17
  br label %.thread

42:                                               ; preds = %9, %7
  %.018 = phi ptr [ %10, %9 ], [ %0, %7 ]
  %43 = load ptr, ptr @stderr, align 8, !tbaa !8
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.5, ptr noundef nonnull %.018) #11
  br label %.thread

.thread:                                          ; preds = %39, %17, %18, %28, %31, %34, %37, %42
  %.0 = phi i32 [ -1, %42 ], [ 0, %37 ], [ 0, %34 ], [ 0, %31 ], [ 0, %28 ], [ 0, %18 ], [ 0, %17 ], [ 0, %39 ]
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %3) #9
  ret i32 %.0
}

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

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7

declare void @set(...) local_unnamed_addr #8

declare i32 @ctod(...) local_unnamed_addr #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nofree nounwind memory(read) "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 nofree nounwind willreturn memory(argmem: readwrite) "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 nofree nosync nounwind willreturn memory(none) "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 = { noreturn 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 #8 = { "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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!13, !11, i64 40}
!13 = !{!"docctl", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !6, i64 48, !6, i64 49, !11, i64 52, !11, i64 56, !11, i64 60, !6, i64 64}
!14 = !{!13, !11, i64 44}
!15 = !{!16, !11, i64 44}
!16 = !{!"page", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 200080, !6, i64 400080, !6, i64 600080}
!17 = !{!16, !11, i64 40}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass