; LLVM IR from caryll/otfcc :: dep/extern (json-builder)

; 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_object_entry = type { ptr, i32, ptr }
%struct._json_value = type { ptr, i32, %union.anon, %union.anon.2 }
%union.anon = type { %struct.anon }
%struct.anon = type { i32, ptr }
%union.anon.2 = type { ptr }
%struct.anon.0 = type { i32, ptr }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.json_object_sort = external hidden unnamed_addr constant [50 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @builderize(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @json_object_sort(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct._json_object_entry, align 8
  %10 = alloca %struct._json_object_entry, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = call i32 @builderize(ptr noundef %11)
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %2
  store i32 1, ptr %7, align 4
  br label %112

15:                                               ; preds = %2
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._json_value, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp eq i32 %18, 1
  br i1 %19, label %20, label %21

20:                                               ; preds = %15
  br label %22

21:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 319, ptr noundef @__PRETTY_FUNCTION__.json_object_sort) #6
  unreachable

22:                                               ; preds = %20
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._json_value, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !11
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %28

27:                                               ; preds = %22
  br label %29

28:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 320, ptr noundef @__PRETTY_FUNCTION__.json_object_sort) #6
  unreachable

29:                                               ; preds = %27
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %108, %29
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._json_value, ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds %struct.anon.0, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = icmp ult i32 %31, %35
  br i1 %36, label %37, label %111

37:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._json_value, ptr %38, i32 0, i32 2
  %40 = getelementptr inbounds %struct.anon.0, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds %struct._json_object_entry, ptr %41, i64 %43
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %44, i64 24, i1 false), !tbaa.struct !14
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %104, %37
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._json_value, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds %struct.anon.0, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !13
  %51 = icmp ult i32 %46, %50
  br i1 %51, label %52, label %107

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._json_value, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %struct.anon.0, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds %struct._json_object_entry, ptr %56, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %59, i64 24, i1 false), !tbaa.struct !14
  %60 = getelementptr inbounds %struct._json_object_entry, ptr %10, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !15
  %62 = getelementptr inbounds %struct._json_object_entry, ptr %9, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !15
  %64 = icmp ne i32 %61, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %52
  store i32 7, ptr %7, align 4
  br label %101

66:                                               ; preds = %52
  %67 = getelementptr inbounds %struct._json_object_entry, ptr %10, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = getelementptr inbounds %struct._json_object_entry, ptr %9, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds %struct._json_object_entry, ptr %10, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !15
  %73 = zext i32 %72 to i64
  %74 = call i32 @memcmp(ptr noundef %68, ptr noundef %70, i64 noundef %73) #7
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %66
  store i32 7, ptr %7, align 4
  br label %101

77:                                               ; preds = %66
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._json_value, ptr %78, i32 0, i32 2
  %80 = getelementptr inbounds %struct.anon.0, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds %struct._json_object_entry, ptr %81, i64 %83
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._json_value, ptr %85, i32 0, i32 2
  %87 = getelementptr inbounds %struct.anon.0, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds %struct._json_object_entry, ptr %88, i64 %90
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %84, ptr align 8 %91, i64 24, i1 false), !tbaa.struct !14
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._json_value, ptr %92, i32 0, i32 2
  %94 = getelementptr inbounds %struct.anon.0, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds %struct._json_object_entry, ptr %95, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %98, ptr align 8 %10, i64 24, i1 false), !tbaa.struct !14
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = add i32 %99, 1
  store i32 %100, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %7, align 4
  br label %101

101:                                              ; preds = %77, %76, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  %102 = load i32, ptr %7, align 4
  switch i32 %102, label %115 [
    i32 0, label %103
    i32 7, label %104
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %101
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %8, align 4, !tbaa !9
  br label %45, !llvm.loop !18

107:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = add i32 %109, 1
  store i32 %110, ptr %5, align 4, !tbaa !9
  br label %30, !llvm.loop !20

111:                                              ; preds = %30
  store i32 0, ptr %7, align 4
  br label %112

112:                                              ; preds = %111, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %113 = load i32, ptr %7, align 4
  switch i32 %113, label %115 [
    i32 0, label %114
    i32 1, label %114
  ]

114:                                              ; preds = %112, %112
  ret void

115:                                              ; preds = %112, %101
  unreachable
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { nounwind willreturn 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 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!12, !10, i64 8}
!12 = !{!"_json_value", !6, i64 0, !10, i64 8, !7, i64 16, !7, i64 32}
!13 = !{!7, !7, i64 0}
!14 = !{i64 0, i64 8, !5, i64 8, i64 4, !9, i64 16, i64 8, !5}
!15 = !{!16, !10, i64 8}
!16 = !{!"_json_object_entry", !6, i64 0, !10, i64 8, !6, i64 16}
!17 = !{!16, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


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

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.json_object_sort = external hidden unnamed_addr constant [50 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @builderize(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @json_object_sort(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #3 {
  %.sroa.7 = alloca [12 x i8], align 4
  %3 = tail call i32 @builderize(ptr noundef %0)
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %.loopexit, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i32 %6, 1
  br i1 %7, label %9, label %8

8:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 319, ptr noundef nonnull @__PRETTY_FUNCTION__.json_object_sort) #5
  unreachable

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %.preheader, label %19

.preheader:                                       ; preds = %9
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %.not35 = icmp eq i32 %14, 0
  br i1 %.not35, label %.loopexit, label %.lr.ph34

.lr.ph34:                                         ; preds = %.preheader
  %15 = getelementptr inbounds i8, ptr %1, i64 24
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load i32, ptr %16, align 8, !tbaa !11
  %.not36 = icmp eq i32 %18, 0
  br i1 %.not36, label %.loopexit, label %.lr.ph34.split

19:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 320, ptr noundef nonnull @__PRETTY_FUNCTION__.json_object_sort) #5
  unreachable

.lr.ph34.split:                                   ; preds = %.lr.ph34, %._crit_edge
  %20 = phi i32 [ %40, %._crit_edge ], [ %14, %.lr.ph34 ]
  %21 = phi i32 [ %41, %._crit_edge ], [ %18, %.lr.ph34 ]
  %22 = phi i32 [ %42, %._crit_edge ], [ 1, %.lr.ph34 ]
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %._crit_edge ], [ 0, %.lr.ph34 ]
  %.02632 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %.lr.ph34 ]
  %23 = load ptr, ptr %15, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct._json_object_entry, ptr %23, i64 %indvars.iv40
  %.sroa.06.0.copyload = load ptr, ptr %24, align 8, !tbaa !12
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !13
  %.not37 = icmp eq i32 %22, 0
  br i1 %.not37, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph34.split
  %25 = zext i32 %.sroa.4.0.copyload to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %36
  %26 = phi i32 [ %21, %.lr.ph.preheader ], [ %37, %36 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %36 ]
  %.131 = phi i32 [ %.02632, %.lr.ph.preheader ], [ %.2, %36 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %.sroa.7)
  %27 = load ptr, ptr %17, align 8, !tbaa !11
  %28 = getelementptr inbounds %struct._json_object_entry, ptr %27, i64 %indvars.iv
  %.sroa.0.0.copyload = load ptr, ptr %28, align 8, !tbaa !12
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 8
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !13
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %.sroa.7, ptr noundef nonnull align 4 dereferenceable(12) %.sroa.7.0..sroa_idx, i64 12, i1 false), !tbaa.struct !14
  %.not28 = icmp eq i32 %.sroa.5.0.copyload, %.sroa.4.0.copyload
  br i1 %.not28, label %29, label %36

29:                                               ; preds = %.lr.ph
  %bcmp = tail call i32 @bcmp(ptr %.sroa.0.0.copyload, ptr %.sroa.06.0.copyload, i64 %25)
  %.not29 = icmp eq i32 %bcmp, 0
  br i1 %.not29, label %30, label %36

30:                                               ; preds = %29
  %31 = zext i32 %.131 to i64
  %32 = getelementptr inbounds %struct._json_object_entry, ptr %27, i64 %31
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %32, i64 24, i1 false), !tbaa.struct !15
  %33 = load ptr, ptr %17, align 8, !tbaa !11
  %34 = getelementptr inbounds %struct._json_object_entry, ptr %33, i64 %31
  store ptr %.sroa.0.0.copyload, ptr %34, align 8, !tbaa !12
  %.sroa.5.0..sroa_idx2 = getelementptr inbounds i8, ptr %34, i64 8
  store i32 %.sroa.4.0.copyload, ptr %.sroa.5.0..sroa_idx2, align 8, !tbaa !13
  %.sroa.7.0..sroa_idx5 = getelementptr inbounds i8, ptr %34, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %.sroa.7.0..sroa_idx5, ptr noundef nonnull align 4 dereferenceable(12) %.sroa.7, i64 12, i1 false), !tbaa.struct !14
  %35 = add i32 %.131, 1
  %.pre = load i32, ptr %16, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %29, %.lr.ph, %30
  %37 = phi i32 [ %.pre, %30 ], [ %26, %.lr.ph ], [ %26, %29 ]
  %.2 = phi i32 [ %35, %30 ], [ %.131, %.lr.ph ], [ %.131, %29 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %.sroa.7)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !16

._crit_edge.loopexit:                             ; preds = %36
  %.pre43 = load i32, ptr %13, align 8, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph34.split
  %40 = phi i32 [ %20, %.lr.ph34.split ], [ %.pre43, %._crit_edge.loopexit ]
  %41 = phi i32 [ %21, %.lr.ph34.split ], [ %37, %._crit_edge.loopexit ]
  %42 = phi i32 [ 0, %.lr.ph34.split ], [ %37, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.02632, %.lr.ph34.split ], [ %.2, %._crit_edge.loopexit ]
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %43 = zext i32 %40 to i64
  %44 = icmp ult i64 %indvars.iv.next41, %43
  br i1 %44, label %.lr.ph34.split, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %._crit_edge, %.lr.ph34, %.preheader, %2
  ret void
}

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #5 = { 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, !10, i64 8}
!6 = !{!"_json_value", !7, i64 0, !10, i64 8, !8, i64 16, !8, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{i64 4, i64 8, !12}
!15 = !{i64 0, i64 8, !12, i64 8, i64 4, !13, i64 16, i64 8, !12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17, !19}
!19 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass