; LLVM IR from microsoft/LightAIMD :: src (json)

; 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.json = type { ptr, i64, i64, ptr, ptr }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @json_unescape_string(ptr noundef, i64 noundef, ptr noundef) #0

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

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

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

declare ptr @x_malloc(i64 noundef) #2

declare void @x_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @json_print(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.json, ptr %10, i32 0, i32 2
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i64 %12, 4
  br i1 %13, label %14, label %34

14:                                               ; preds = %1
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.json, ptr %16, i32 0, i32 3
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  store ptr %18, ptr %3, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %31, %14
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %32

22:                                               ; preds = %19
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void @json_print(ptr noundef %23)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.json, ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  store ptr %26, ptr %3, align 8, !tbaa !5
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %31

29:                                               ; preds = %22
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %31

31:                                               ; preds = %29, %22
  br label %19, !llvm.loop !14

32:                                               ; preds = %19
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %131

34:                                               ; preds = %1
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.json, ptr %35, i32 0, i32 2
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp eq i64 %37, 5
  br i1 %38, label %39, label %68

39:                                               ; preds = %34
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.json, ptr %41, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !12
  store ptr %43, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 0, ptr %5, align 8, !tbaa !16
  br label %44

44:                                               ; preds = %65, %39
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %66

47:                                               ; preds = %44
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  call void @json_print(ptr noundef %48)
  %49 = load i64, ptr %5, align 8, !tbaa !16
  %50 = add i64 %49, 1
  store i64 %50, ptr %5, align 8, !tbaa !16
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.json, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  store ptr %53, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %65

56:                                               ; preds = %47
  %57 = load i64, ptr %5, align 8, !tbaa !16
  %58 = urem i64 %57, 2
  %59 = icmp eq i64 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %56
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %64

62:                                               ; preds = %56
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %64

64:                                               ; preds = %62, %60
  br label %65

65:                                               ; preds = %64, %47
  br label %44, !llvm.loop !17

66:                                               ; preds = %44
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %130

68:                                               ; preds = %34
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.json, ptr %69, i32 0, i32 2
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = icmp eq i64 %71, 1
  br i1 %72, label %73, label %83

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.json, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.json, ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !19
  call void @utf8_codepoints_to_cstr(ptr noundef %76, i64 noundef %79, ptr noundef %6)
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %80)
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  call void @x_free(ptr noundef %82)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %129

83:                                               ; preds = %68
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.json, ptr %84, i32 0, i32 2
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 2
  br i1 %87, label %88, label %98

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store ptr null, ptr %7, align 8, !tbaa !5
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.json, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.json, ptr %92, i32 0, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !19
  call void @utf8_codepoints_to_cstr(ptr noundef %91, i64 noundef %94, ptr noundef %7)
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %95)
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  call void @x_free(ptr noundef %97)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %128

98:                                               ; preds = %83
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.json, ptr %99, i32 0, i32 2
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = icmp eq i64 %101, 3
  br i1 %102, label %103, label %125

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.json, ptr %104, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !19
  %107 = mul i64 4, %106
  %108 = call ptr @x_malloc(i64 noundef %107)
  store ptr %108, ptr %8, align 8, !tbaa !5
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.json, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !18
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.json, ptr %112, i32 0, i32 1
  %114 = load i64, ptr %113, align 8, !tbaa !19
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = call i64 @json_unescape_string(ptr noundef %111, i64 noundef %114, ptr noundef %115)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr null, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.json, ptr %118, i32 0, i32 1
  %120 = load i64, ptr %119, align 8, !tbaa !19
  call void @utf8_codepoints_to_cstr(ptr noundef %117, i64 noundef %120, ptr noundef %9)
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  call void @x_free(ptr noundef %121)
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %122)
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  call void @x_free(ptr noundef %124)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %127

125:                                              ; preds = %98
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %127

127:                                              ; preds = %125, %103
  br label %128

128:                                              ; preds = %127, %88
  br label %129

129:                                              ; preds = %128, %73
  br label %130

130:                                              ; preds = %129, %66
  br label %131

131:                                              ; preds = %130, %32
  ret void
}

declare void @utf8_codepoints_to_cstr(ptr noundef, i64 noundef, ptr noundef) #2

attributes #0 = { 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 #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 = { 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, !11, i64 16}
!10 = !{!"json", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 24}
!13 = !{!10, !6, i64 32}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !15}
!18 = !{!10, !6, i64 0}
!19 = !{!10, !11, i64 8}


; 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"

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @json_unescape_string(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

declare ptr @x_malloc(i64 noundef) local_unnamed_addr #3

declare void @x_free(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @json_print(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load i64, ptr %5, align 8, !tbaa !5
  switch i64 %6, label %57 [
    i64 4, label %7
    i64 5, label %18
    i64 1, label %31
    i64 2, label %38
    i64 3, label %45
  ]

7:                                                ; preds = %1
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %.not3237 = icmp eq ptr %10, null
  br i1 %.not3237, label %._crit_edge41, label %.lr.ph40.preheader

.lr.ph40.preheader:                               ; preds = %7
  tail call void @json_print(ptr noundef nonnull %10)
  %11 = getelementptr inbounds i8, ptr %10, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %cond47 = icmp eq ptr %12, null
  br i1 %cond47, label %._crit_edge41, label %.lr.ph40

.lr.ph40:                                         ; preds = %.lr.ph40.preheader, %.lr.ph40
  %13 = phi ptr [ %16, %.lr.ph40 ], [ %12, %.lr.ph40.preheader ]
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @json_print(ptr noundef nonnull %13)
  %15 = getelementptr inbounds i8, ptr %13, i64 32
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %cond = icmp eq ptr %16, null
  br i1 %cond, label %._crit_edge41, label %.lr.ph40

._crit_edge41:                                    ; preds = %.lr.ph40, %.lr.ph40.preheader, %7
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %59

18:                                               ; preds = %1
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %.not34 = icmp eq ptr %21, null
  br i1 %.not34, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %18
  tail call void @json_print(ptr noundef nonnull %21)
  %22 = getelementptr inbounds i8, ptr %21, i64 32
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  %cond4344 = icmp eq ptr %23, null
  br i1 %cond4344, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %24 = phi ptr [ %29, %.lr.ph ], [ %23, %.lr.ph.preheader ]
  %.0273645 = phi i64 [ %25, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %25 = add i64 %.0273645, 1
  %26 = and i64 %.0273645, 1
  %.not31 = icmp eq i64 %26, 0
  %.str.9..str.6 = select i1 %.not31, ptr @.str.9, ptr @.str.6
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.9..str.6)
  tail call void @json_print(ptr noundef nonnull %24)
  %28 = getelementptr inbounds i8, ptr %24, i64 32
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %cond43 = icmp eq ptr %29, null
  br i1 %cond43, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.preheader, %18
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %59

31:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store ptr null, ptr %2, align 8, !tbaa !13
  %32 = load ptr, ptr %0, align 8, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load i64, ptr %33, align 8, !tbaa !15
  call void @utf8_codepoints_to_cstr(ptr noundef %32, i64 noundef %34, ptr noundef nonnull %2) #4
  %35 = load ptr, ptr %2, align 8, !tbaa !13
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %35)
  %37 = load ptr, ptr %2, align 8, !tbaa !13
  call void @x_free(ptr noundef %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %59

38:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store ptr null, ptr %3, align 8, !tbaa !13
  %39 = load ptr, ptr %0, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  %41 = load i64, ptr %40, align 8, !tbaa !15
  call void @utf8_codepoints_to_cstr(ptr noundef %39, i64 noundef %41, ptr noundef nonnull %3) #4
  %42 = load ptr, ptr %3, align 8, !tbaa !13
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %42)
  %44 = load ptr, ptr %3, align 8, !tbaa !13
  call void @x_free(ptr noundef %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %59

45:                                               ; preds = %1
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %47 = load i64, ptr %46, align 8, !tbaa !15
  %48 = shl i64 %47, 2
  %49 = tail call ptr @x_malloc(i64 noundef %48) #4
  %50 = load ptr, ptr %0, align 8, !tbaa !14
  %51 = load i64, ptr %46, align 8, !tbaa !15
  %52 = tail call i64 @json_unescape_string(ptr noundef %50, i64 noundef %51, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store ptr null, ptr %4, align 8, !tbaa !13
  %53 = load i64, ptr %46, align 8, !tbaa !15
  call void @utf8_codepoints_to_cstr(ptr noundef %49, i64 noundef %53, ptr noundef nonnull %4) #4
  call void @x_free(ptr noundef %49) #4
  %54 = load ptr, ptr %4, align 8, !tbaa !13
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %54)
  %56 = load ptr, ptr %4, align 8, !tbaa !13
  call void @x_free(ptr noundef %56) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %59

57:                                               ; preds = %1
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %59

59:                                               ; preds = %._crit_edge, %38, %57, %45, %31, %._crit_edge41
  ret void
}

declare void @utf8_codepoints_to_cstr(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #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 = { "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, !10, i64 16}
!6 = !{!"json", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 24}
!12 = !{!6, !7, i64 32}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !10, i64 8}


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