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

; 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.iwjsreg = type { ptr, ptr, ptr, ptr, ptr, %union.pthread_rwlock_t, %struct.iwref_holder, ptr, ptr, ptr, ptr, i32, i8 }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%struct.iwref_holder = type { ptr, i64, ptr }
%struct.jbl_node = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, %union.anon }
%union.anon = type { ptr }

@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 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

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

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

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

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

declare void @iwlog3(i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

declare i64 @jbn_at(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @iwjsreg_at_str(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [32 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %13, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.iwjsreg, ptr %14, i32 0, i32 7
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.iwjsreg, ptr %17, i32 0, i32 10
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  %20 = call i64 %16(ptr noundef %19)
  %21 = icmp ne i64 %20, 0
  %22 = xor i1 %21, true
  %23 = xor i1 %22, true
  %24 = zext i1 %23 to i32
  %25 = sext i32 %24 to i64
  %26 = call i64 @llvm.expect.i64(i64 %25, i64 0)
  %27 = icmp ne i64 %26, 0
  br i1 %27, label %28, label %36

28:                                               ; preds = %3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.iwjsreg, ptr %29, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.iwjsreg, ptr %32, i32 0, i32 10
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = call i64 %31(ptr noundef %34)
  store i64 %35, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

36:                                               ; preds = %3
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.iwjsreg, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call i64 @jbn_at(ptr noundef %39, ptr noundef %40, ptr noundef %9)
  store i64 %41, ptr %8, align 8, !tbaa !9
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = icmp ne i64 %42, 0
  %44 = xor i1 %43, true
  %45 = xor i1 %44, true
  %46 = zext i1 %45 to i32
  %47 = sext i32 %46 to i64
  %48 = call i64 @llvm.expect.i64(i64 %47, i64 0)
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %36
  br label %124

51:                                               ; preds = %36
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.jbl_node, ptr %52, i32 0, i32 8
  %54 = load i32, ptr %53, align 4, !tbaa !18
  switch i32 %54, label %122 [
    i32 5, label %55
    i32 2, label %67
    i32 1, label %82
    i32 3, label %91
    i32 4, label %106
  ]

55:                                               ; preds = %51
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.jbl_node, ptr %56, i32 0, i32 9
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = call noalias ptr @strdup(ptr noundef %58) #6
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %59, ptr %60, align 8, !tbaa !5
  %61 = icmp ne ptr %59, null
  br i1 %61, label %66, label %62

62:                                               ; preds = %55
  %63 = call ptr @__errno_location() #7
  %64 = load i32, ptr %63, align 4, !tbaa !21
  %65 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %64)
  store i64 %65, ptr %8, align 8, !tbaa !9
  br label %124

66:                                               ; preds = %55
  br label %123

67:                                               ; preds = %51
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.jbl_node, ptr %68, i32 0, i32 9
  %70 = load i8, ptr %69, align 8, !tbaa !20, !range !22, !noundef !23
  %71 = trunc i8 %70 to i1
  %72 = zext i1 %71 to i64
  %73 = select i1 %71, ptr @.str.5, ptr @.str.6
  %74 = call noalias ptr @strdup(ptr noundef %73) #6
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %74, ptr %75, align 8, !tbaa !5
  %76 = icmp ne ptr %74, null
  br i1 %76, label %81, label %77

77:                                               ; preds = %67
  %78 = call ptr @__errno_location() #7
  %79 = load i32, ptr %78, align 4, !tbaa !21
  %80 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %79)
  store i64 %80, ptr %8, align 8, !tbaa !9
  br label %124

81:                                               ; preds = %67
  br label %123

82:                                               ; preds = %51
  %83 = call noalias ptr @strdup(ptr noundef @.str.7) #6
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %83, ptr %84, align 8, !tbaa !5
  %85 = icmp ne ptr %83, null
  br i1 %85, label %90, label %86

86:                                               ; preds = %82
  %87 = call ptr @__errno_location() #7
  %88 = load i32, ptr %87, align 4, !tbaa !21
  %89 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %88)
  store i64 %89, ptr %8, align 8, !tbaa !9
  br label %124

90:                                               ; preds = %82
  br label %123

91:                                               ; preds = %51
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.jbl_node, ptr %92, i32 0, i32 9
  %94 = load i64, ptr %93, align 8, !tbaa !20
  %95 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %96 = call i32 @iwitoa(i64 noundef %94, ptr noundef %95, i32 noundef 32)
  %97 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %98 = call noalias ptr @strdup(ptr noundef %97) #6
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %98, ptr %99, align 8, !tbaa !5
  %100 = icmp ne ptr %98, null
  br i1 %100, label %105, label %101

101:                                              ; preds = %91
  %102 = call ptr @__errno_location() #7
  %103 = load i32, ptr %102, align 4, !tbaa !21
  %104 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %103)
  store i64 %104, ptr %8, align 8, !tbaa !9
  br label %124

105:                                              ; preds = %91
  br label %123

106:                                              ; preds = %51
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.jbl_node, ptr %107, i32 0, i32 9
  %109 = load double, ptr %108, align 8, !tbaa !20
  %110 = fpext double %109 to x86_fp80
  %111 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %112 = call ptr @iwftoa(x86_fp80 noundef %110, ptr noundef %111)
  %113 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %114 = call noalias ptr @strdup(ptr noundef %113) #6
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %114, ptr %115, align 8, !tbaa !5
  %116 = icmp ne ptr %114, null
  br i1 %116, label %121, label %117

117:                                              ; preds = %106
  %118 = call ptr @__errno_location() #7
  %119 = load i32, ptr %118, align 4, !tbaa !21
  %120 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %119)
  store i64 %120, ptr %8, align 8, !tbaa !9
  br label %124

121:                                              ; preds = %106
  br label %123

122:                                              ; preds = %51
  store i64 70030, ptr %8, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %122, %121, %105, %90, %81, %66
  br label %124

124:                                              ; preds = %123, %117, %101, %86, %77, %62, %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.iwjsreg, ptr %125, i32 0, i32 9
  %127 = load ptr, ptr %126, align 8, !tbaa !24
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.iwjsreg, ptr %128, i32 0, i32 10
  %130 = load ptr, ptr %129, align 8, !tbaa !16
  %131 = call i64 %127(ptr noundef %130)
  store i64 %131, ptr %12, align 8, !tbaa !9
  %132 = load i64, ptr %12, align 8, !tbaa !9
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %142

134:                                              ; preds = %124
  %135 = load i64, ptr %8, align 8, !tbaa !9
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %139, label %137

137:                                              ; preds = %134
  %138 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %138, ptr %8, align 8, !tbaa !9
  br label %141

139:                                              ; preds = %134
  %140 = load i64, ptr %12, align 8, !tbaa !9
  call void @iwlog3(i32 noundef 0, i64 noundef %140, ptr noundef @.str.3, i32 noundef 520, ptr noundef @.str.4)
  br label %141

141:                                              ; preds = %139, %137
  br label %142

142:                                              ; preds = %141, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %143 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %143, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

144:                                              ; preds = %142, %28
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %145 = load i64, ptr %4, align 8
  ret i64 %145
}

declare i32 @iwitoa(i64 noundef, ptr noundef, i32 noundef) #1

declare ptr @iwftoa(x86_fp80 noundef, ptr noundef) #1

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 120}
!12 = !{!"iwjsreg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !13, i64 96, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !14, i64 152, !15, i64 156}
!13 = !{!"iwref_holder", !6, i64 0, !7, i64 8, !6, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!12, !6, i64 144}
!17 = !{!12, !6, i64 8}
!18 = !{!19, !14, i64 52}
!19 = !{!"jbl_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36, !6, i64 40, !14, i64 48, !14, i64 52, !7, i64 56}
!20 = !{!7, !7, i64 0}
!21 = !{!14, !14, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!12, !6, i64 136}


; 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.3 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() 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) #0

declare void @iwlog3(i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

declare i64 @jbn_at(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @iwjsreg_at_str(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #4 {
  %4 = alloca ptr, align 8
  %5 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  store ptr null, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 120
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %0, i64 144
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = tail call i64 %7(ptr noundef %9) #5
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %15, label %11, !prof !15

11:                                               ; preds = %3
  %12 = load ptr, ptr %6, align 8, !tbaa !9
  %13 = load ptr, ptr %8, align 8, !tbaa !14
  %14 = tail call i64 %12(ptr noundef %13) #5
  br label %56

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  %18 = call i64 @jbn_at(ptr noundef %17, ptr noundef %1, ptr noundef nonnull %4) #5
  %.not24 = icmp eq i64 %18, 0
  br i1 %.not24, label %19, label %49, !prof !15

19:                                               ; preds = %15
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 52
  %22 = load i32, ptr %21, align 4, !tbaa !17
  switch i32 %22, label %49 [
    i32 5, label %23
    i32 2, label %27
    i32 1, label %33
    i32 3, label %35
    i32 4, label %40
  ]

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %20, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = call noalias ptr @strdup(ptr noundef %25) #5
  store ptr %26, ptr %2, align 8, !tbaa !5
  %.not29 = icmp eq ptr %26, null
  br i1 %.not29, label %.sink.split, label %49

27:                                               ; preds = %19
  %28 = getelementptr inbounds i8, ptr %20, i64 56
  %29 = load i8, ptr %28, align 8, !tbaa !19, !range !20, !noundef !21
  %30 = trunc nuw i8 %29 to i1
  %31 = select i1 %30, ptr @.str.5, ptr @.str.6
  %32 = call noalias ptr @strdup(ptr noundef nonnull %31) #5
  store ptr %32, ptr %2, align 8, !tbaa !5
  %.not28 = icmp eq ptr %32, null
  br i1 %.not28, label %.sink.split, label %49

33:                                               ; preds = %19
  %34 = call noalias ptr @strdup(ptr noundef nonnull @.str.7) #5
  store ptr %34, ptr %2, align 8, !tbaa !5
  %.not27 = icmp eq ptr %34, null
  br i1 %.not27, label %.sink.split, label %49

35:                                               ; preds = %19
  %36 = getelementptr inbounds i8, ptr %20, i64 56
  %37 = load i64, ptr %36, align 8, !tbaa !19
  %38 = call i32 @iwitoa(i64 noundef %37, ptr noundef nonnull %5, i32 noundef 32) #5
  %39 = call noalias ptr @strdup(ptr noundef nonnull %5) #5
  store ptr %39, ptr %2, align 8, !tbaa !5
  %.not26 = icmp eq ptr %39, null
  br i1 %.not26, label %.sink.split, label %49

40:                                               ; preds = %19
  %41 = getelementptr inbounds i8, ptr %20, i64 56
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = fpext double %42 to x86_fp80
  %44 = call ptr @iwftoa(x86_fp80 noundef %43, ptr noundef nonnull %5) #5
  %45 = call noalias ptr @strdup(ptr noundef nonnull %5) #5
  store ptr %45, ptr %2, align 8, !tbaa !5
  %.not25 = icmp eq ptr %45, null
  br i1 %.not25, label %.sink.split, label %49

.sink.split:                                      ; preds = %40, %35, %33, %27, %23
  %46 = tail call ptr @__errno_location() #6
  %47 = load i32, ptr %46, align 4, !tbaa !22
  %48 = call i64 @iwrc_set_errno(i64 noundef 70013, i32 noundef %47) #5
  br label %49

49:                                               ; preds = %.sink.split, %19, %23, %27, %33, %35, %40, %15
  %.020 = phi i64 [ %18, %15 ], [ 0, %40 ], [ 0, %35 ], [ 0, %33 ], [ 0, %27 ], [ 0, %23 ], [ 70030, %19 ], [ %48, %.sink.split ]
  %50 = getelementptr inbounds i8, ptr %0, i64 136
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  %52 = load ptr, ptr %8, align 8, !tbaa !14
  %53 = call i64 %51(ptr noundef %52) #5
  %.not30 = icmp eq i64 %53, 0
  br i1 %.not30, label %56, label %54

54:                                               ; preds = %49
  %.not31 = icmp eq i64 %.020, 0
  br i1 %.not31, label %56, label %55

55:                                               ; preds = %54
  call void @iwlog3(i32 noundef 0, i64 noundef %53, ptr noundef nonnull @.str.3, i32 noundef 520, ptr noundef nonnull @.str.4) #5
  br label %56

56:                                               ; preds = %49, %55, %54, %11
  %.0 = phi i64 [ %14, %11 ], [ %.020, %55 ], [ %.020, %49 ], [ %53, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret i64 %.0
}

declare i32 @iwitoa(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @iwftoa(x86_fp80 noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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, !6, i64 120}
!10 = !{!"iwjsreg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !11, i64 96, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !13, i64 156}
!11 = !{!"iwref_holder", !6, i64 0, !7, i64 8, !6, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!10, !6, i64 144}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!10, !6, i64 8}
!17 = !{!18, !12, i64 52}
!18 = !{!"jbl_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !6, i64 40, !12, i64 48, !12, i64 52, !7, i64 56}
!19 = !{!7, !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !12, i64 0}
!23 = !{!10, !6, i64 136}


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