; LLVM IR from Softmotions/iowow :: src/json (iwjson)

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

; 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 allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

declare i64 @iwrc_set_errno(i64 noundef, i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local void @jbn_add_item(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind uwtable
define dso_local i64 @jbn_add_item_str(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #6 {
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %24

19:                                               ; preds = %6
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.jbl_node, ptr %20, i32 0, i32 8
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp ult i32 %22, 6
  br i1 %23, label %24, label %25

24:                                               ; preds = %19, %6
  store i64 70017, ptr %7, align 8
  br label %167

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  %28 = xor i1 %27, true
  %29 = xor i1 %28, true
  %30 = zext i1 %29 to i32
  %31 = sext i32 %30 to i64
  %32 = call i64 @llvm.expect.i64(i64 %31, i64 1)
  %33 = icmp ne i64 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %25
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = call ptr @iwpool_calloc(i64 noundef 64, ptr noundef %35)
  store ptr %36, ptr %15, align 8, !tbaa !5
  br label %39

37:                                               ; preds = %25
  %38 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 64) #9
  store ptr %38, ptr %15, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %37, %34
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %46, label %42

42:                                               ; preds = %39
  %43 = call ptr @__errno_location() #10
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %44)
  store i64 %45, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %166

46:                                               ; preds = %39
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.jbl_node, ptr %47, i32 0, i32 8
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = icmp eq i32 %49, 6
  br i1 %50, label %51, label %99

51:                                               ; preds = %46
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  store i64 70017, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %166

55:                                               ; preds = %51
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  %58 = xor i1 %57, true
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i32
  %61 = sext i32 %60 to i64
  %62 = call i64 @llvm.expect.i64(i64 %61, i64 1)
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %64, label %80

64:                                               ; preds = %55
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call ptr @iwpool_strdup(ptr noundef %65, ptr noundef %66, ptr noundef %14)
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.jbl_node, ptr %68, i32 0, i32 3
  store ptr %67, ptr %69, align 8, !tbaa !15
  %70 = load i64, ptr %14, align 8, !tbaa !13
  %71 = icmp ne i64 %70, 0
  %72 = xor i1 %71, true
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i32
  %75 = sext i32 %74 to i64
  %76 = call i64 @llvm.expect.i64(i64 %75, i64 0)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %64
  br label %164

79:                                               ; preds = %64
  br label %91

80:                                               ; preds = %55
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = call noalias ptr @strdup(ptr noundef %81) #8
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.jbl_node, ptr %83, i32 0, i32 3
  store ptr %82, ptr %84, align 8, !tbaa !15
  %85 = icmp ne ptr %82, null
  br i1 %85, label %90, label %86

86:                                               ; preds = %80
  %87 = call ptr @__errno_location() #10
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %88)
  store i64 %89, ptr %14, align 8, !tbaa !13
  br label %164

90:                                               ; preds = %80
  br label %91

91:                                               ; preds = %90, %79
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.jbl_node, ptr %92, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = call i64 @strlen(ptr noundef %94) #11
  %96 = trunc i64 %95 to i32
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.jbl_node, ptr %97, i32 0, i32 4
  store i32 %96, ptr %98, align 8, !tbaa !16
  br label %99

99:                                               ; preds = %91, %46
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.jbl_node, ptr %100, i32 0, i32 8
  store i32 5, ptr %101, align 4, !tbaa !11
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %155

104:                                              ; preds = %99
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = icmp slt i32 %105, 0
  br i1 %106, label %107, label %111

107:                                              ; preds = %104
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = call i64 @strlen(ptr noundef %108) #11
  %110 = trunc i64 %109 to i32
  store i32 %110, ptr %11, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %107, %104
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  %114 = xor i1 %113, true
  %115 = xor i1 %114, true
  %116 = zext i1 %115 to i32
  %117 = sext i32 %116 to i64
  %118 = call i64 @llvm.expect.i64(i64 %117, i64 1)
  %119 = icmp ne i64 %118, 0
  br i1 %119, label %120, label %138

120:                                              ; preds = %111
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = call ptr @iwpool_strndup(ptr noundef %121, ptr noundef %122, i64 noundef %124, ptr noundef %14)
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.jbl_node, ptr %126, i32 0, i32 9
  store ptr %125, ptr %127, align 8, !tbaa !17
  %128 = load i64, ptr %14, align 8, !tbaa !13
  %129 = icmp ne i64 %128, 0
  %130 = xor i1 %129, true
  %131 = xor i1 %130, true
  %132 = zext i1 %131 to i32
  %133 = sext i32 %132 to i64
  %134 = call i64 @llvm.expect.i64(i64 %133, i64 0)
  %135 = icmp ne i64 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %120
  br label %164

137:                                              ; preds = %120
  br label %151

138:                                              ; preds = %111
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = call noalias ptr @strndup(ptr noundef %139, i64 noundef %141) #8
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.jbl_node, ptr %143, i32 0, i32 9
  store ptr %142, ptr %144, align 8, !tbaa !17
  %145 = icmp ne ptr %142, null
  br i1 %145, label %150, label %146

146:                                              ; preds = %138
  %147 = call ptr @__errno_location() #10
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %148)
  store i64 %149, ptr %14, align 8, !tbaa !13
  br label %164

150:                                              ; preds = %138
  br label %151

151:                                              ; preds = %150, %137
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.jbl_node, ptr %153, i32 0, i32 7
  store i32 %152, ptr %154, align 8, !tbaa !18
  br label %155

155:                                              ; preds = %151, %99
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  call void @jbn_add_item(ptr noundef %156, ptr noundef %157)
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %163

160:                                              ; preds = %155
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %161, ptr %162, align 8, !tbaa !5
  br label %163

163:                                              ; preds = %160, %155
  br label %164

164:                                              ; preds = %163, %146, %136, %86, %78
  %165 = load i64, ptr %14, align 8, !tbaa !13
  store i64 %165, ptr %7, align 8
  store i32 1, ptr %16, align 4
  br label %166

166:                                              ; preds = %164, %54, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %167

167:                                              ; preds = %166, %24
  %168 = load i64, ptr %7, align 8
  ret i64 %168
}

declare ptr @iwpool_calloc(i64 noundef, ptr noundef) #2

declare ptr @iwpool_strdup(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #7

declare ptr @iwpool_strndup(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare noalias ptr @strndup(ptr noundef, i64 noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0,1) "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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 "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 = { nounwind }
attributes #9 = { nounwind allocsize(0,1) }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { 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 52}
!12 = !{!"jbl_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !10, i64 48, !10, i64 52, !7, i64 56}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !10, i64 32}
!17 = !{!7, !7, i64 0}
!18 = !{!12, !10, i64 48}


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

; 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: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

declare i64 @iwrc_set_errno(i64 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @jbn_add_item(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local i64 @jbn_add_item_str(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef writeonly %4, ptr noundef %5) local_unnamed_addr #5 {
  %7 = alloca i64, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %68, label %8

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 52
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp ult i32 %10, 6
  br i1 %11, label %68, label %12

12:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store i64 0, ptr %7, align 8, !tbaa !11
  %.not43 = icmp eq ptr %5, null
  br i1 %.not43, label %15, label %13, !prof !13

13:                                               ; preds = %12
  %14 = tail call ptr @iwpool_calloc(i64 noundef 64, ptr noundef nonnull %5) #7
  br label %17

15:                                               ; preds = %12
  %16 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 1, i64 noundef 64) #8
  br label %17

17:                                               ; preds = %15, %13
  %.0 = phi ptr [ %14, %13 ], [ %16, %15 ]
  %.not44 = icmp eq ptr %.0, null
  br i1 %.not44, label %18, label %22

18:                                               ; preds = %17
  %19 = tail call ptr @__errno_location() #9
  %20 = load i32, ptr %19, align 4, !tbaa !14
  %21 = tail call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %20) #7
  br label %67

22:                                               ; preds = %17
  %23 = load i32, ptr %9, align 4, !tbaa !5
  %24 = icmp eq i32 %23, 6
  br i1 %24, label %25, label %42

25:                                               ; preds = %22
  %.not45 = icmp eq ptr %1, null
  br i1 %.not45, label %67, label %26

26:                                               ; preds = %25
  %27 = getelementptr inbounds i8, ptr %.0, i64 24
  br i1 %.not43, label %31, label %28, !prof !13

28:                                               ; preds = %26
  %29 = call ptr @iwpool_strdup(ptr noundef nonnull %5, ptr noundef nonnull %1, ptr noundef nonnull %7) #7
  store ptr %29, ptr %27, align 8, !tbaa !15
  %30 = load i64, ptr %7, align 8, !tbaa !11
  %.not47 = icmp eq i64 %30, 0
  br i1 %.not47, label %37, label %65, !prof !16

31:                                               ; preds = %26
  %32 = tail call noalias ptr @strdup(ptr noundef nonnull %1) #7
  store ptr %32, ptr %27, align 8, !tbaa !15
  %.not46 = icmp eq ptr %32, null
  br i1 %.not46, label %33, label %37

33:                                               ; preds = %31
  %34 = tail call ptr @__errno_location() #9
  %35 = load i32, ptr %34, align 4, !tbaa !14
  %36 = tail call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %35) #7
  store i64 %36, ptr %7, align 8, !tbaa !11
  br label %65

37:                                               ; preds = %31, %28
  %38 = phi ptr [ %32, %31 ], [ %29, %28 ]
  %39 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %38) #10
  %40 = trunc i64 %39 to i32
  %41 = getelementptr inbounds i8, ptr %.0, i64 32
  store i32 %40, ptr %41, align 8, !tbaa !17
  br label %42

42:                                               ; preds = %37, %22
  %43 = getelementptr inbounds i8, ptr %.0, i64 52
  store i32 5, ptr %43, align 4, !tbaa !5
  %.not48 = icmp eq ptr %2, null
  br i1 %.not48, label %63, label %44

44:                                               ; preds = %42
  %45 = icmp slt i32 %3, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %44
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #10
  %48 = trunc i64 %47 to i32
  br label %49

49:                                               ; preds = %46, %44
  %.035 = phi i32 [ %48, %46 ], [ %3, %44 ]
  %50 = sext i32 %.035 to i64
  %51 = getelementptr inbounds i8, ptr %.0, i64 56
  br i1 %.not43, label %55, label %52, !prof !13

52:                                               ; preds = %49
  %53 = call ptr @iwpool_strndup(ptr noundef nonnull %5, ptr noundef nonnull %2, i64 noundef %50, ptr noundef nonnull %7) #7
  store ptr %53, ptr %51, align 8, !tbaa !18
  %54 = load i64, ptr %7, align 8, !tbaa !11
  %.not50 = icmp eq i64 %54, 0
  br i1 %.not50, label %61, label %65, !prof !16

55:                                               ; preds = %49
  %56 = call noalias ptr @strndup(ptr noundef nonnull %2, i64 noundef %50) #7
  store ptr %56, ptr %51, align 8, !tbaa !18
  %.not49 = icmp eq ptr %56, null
  br i1 %.not49, label %57, label %61

57:                                               ; preds = %55
  %58 = tail call ptr @__errno_location() #9
  %59 = load i32, ptr %58, align 4, !tbaa !14
  %60 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %59) #7
  store i64 %60, ptr %7, align 8, !tbaa !11
  br label %65

61:                                               ; preds = %55, %52
  %62 = getelementptr inbounds i8, ptr %.0, i64 48
  store i32 %.035, ptr %62, align 8, !tbaa !19
  br label %63

63:                                               ; preds = %61, %42
  call void @jbn_add_item(ptr noundef nonnull %0, ptr noundef nonnull %.0)
  %.not51 = icmp eq ptr %4, null
  br i1 %.not51, label %65, label %64

64:                                               ; preds = %63
  store ptr %.0, ptr %4, align 8, !tbaa !20
  br label %65

65:                                               ; preds = %63, %64, %52, %28, %57, %33
  %66 = load i64, ptr %7, align 8, !tbaa !11
  br label %67

67:                                               ; preds = %25, %65, %18
  %.034 = phi i64 [ %66, %65 ], [ %21, %18 ], [ 70017, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %68

68:                                               ; preds = %6, %8, %67
  %.1 = phi i64 [ %.034, %67 ], [ 70017, %8 ], [ 70017, %6 ]
  ret i64 %.1
}

declare ptr @iwpool_calloc(i64 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @iwpool_strdup(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #6

declare ptr @iwpool_strndup(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strndup(ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: 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 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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0,1) }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { 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, !10, i64 52}
!6 = !{!"jbl_node", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !8, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !7, i64 24}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !10, i64 32}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !10, i64 48}
!20 = !{!7, !7, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass