; LLVM IR from openssl/openssl :: crypto (punycode)

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

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ossl_punycode_decode(ptr noundef, i64 noundef, ptr 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

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

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

27:                                               ; preds = %3
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %126

28:                                               ; preds = %3
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load i64, ptr %7, align 8, !tbaa !9
  %31 = call i32 @WPACKET_init_static_len(ptr noundef %12, ptr noundef %29, i64 noundef %30, i64 noundef 0)
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %126

34:                                               ; preds = %28
  br label %35

35:                                               ; preds = %118, %34
  br label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call ptr @strchr(ptr noundef %37, i32 noundef 46) #6
  store ptr %38, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %47

41:                                               ; preds = %36
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = ptrtoint ptr %42 to i64
  %45 = ptrtoint ptr %43 to i64
  %46 = sub i64 %44, %45
  br label %50

47:                                               ; preds = %36
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call i64 @strlen(ptr noundef %48) #6
  br label %50

50:                                               ; preds = %47, %41
  %51 = phi i64 [ %46, %41 ], [ %49, %47 ]
  store i64 %51, ptr %15, align 8, !tbaa !9
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call i32 @strncmp(ptr noundef %52, ptr noundef @.str.2, i64 noundef 4) #6
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %62, label %55

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i64, ptr %15, align 8, !tbaa !9
  %58 = call i32 @WPACKET_memcpy(ptr noundef %12, ptr noundef %56, i64 noundef %57)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %61

61:                                               ; preds = %60, %55
  br label %105

62:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 512, ptr %16, align 4, !tbaa !11
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 4
  %65 = load i64, ptr %15, align 8, !tbaa !9
  %66 = sub i64 %65, 4
  %67 = getelementptr inbounds [512 x i32], ptr %11, i64 0, i64 0
  %68 = call i32 @ossl_punycode_decode(ptr noundef %64, i64 noundef %66, ptr noundef %67, ptr noundef %16)
  %69 = icmp sle i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %62
  store i32 -1, ptr %9, align 4, !tbaa !11
  store i32 4, ptr %13, align 4
  br label %102

71:                                               ; preds = %62
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %98, %71
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = load i32, ptr %16, align 4, !tbaa !11
  %75 = icmp ult i32 %73, %74
  br i1 %75, label %76, label %101

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 6, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %77 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 0
  %78 = load i32, ptr %10, align 4, !tbaa !11
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [512 x i32], ptr %11, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = call i32 @codepoint2utf8(ptr noundef %77, i64 noundef %82)
  %84 = sext i32 %83 to i64
  store i64 %84, ptr %18, align 8, !tbaa !9
  %85 = load i64, ptr %18, align 8, !tbaa !9
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %76
  store i32 -1, ptr %9, align 4, !tbaa !11
  store i32 4, ptr %13, align 4
  br label %95

88:                                               ; preds = %76
  %89 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 0
  %90 = load i64, ptr %18, align 8, !tbaa !9
  %91 = call i32 @WPACKET_memcpy(ptr noundef %12, ptr noundef %89, i64 noundef %90)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %88
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %93, %88
  store i32 0, ptr %13, align 4
  br label %95

95:                                               ; preds = %94, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 6, ptr %17) #5
  %96 = load i32, ptr %13, align 4
  switch i32 %96, label %102 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %10, align 4, !tbaa !11
  %100 = add i32 %99, 1
  store i32 %100, ptr %10, align 4, !tbaa !11
  br label %72, !llvm.loop !13

101:                                              ; preds = %72
  store i32 0, ptr %13, align 4
  br label %102

102:                                              ; preds = %101, %95, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %103 = load i32, ptr %13, align 4
  switch i32 %103, label %116 [
    i32 0, label %104
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104, %61
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  store i32 3, ptr %13, align 4
  br label %116

109:                                              ; preds = %105
  %110 = call i32 @WPACKET_put_bytes__(ptr noundef %12, i64 noundef 46, i64 noundef 1)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %113

113:                                              ; preds = %112, %109
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i64 1
  store ptr %115, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %13, align 4
  br label %116

116:                                              ; preds = %113, %108, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %117 = load i32, ptr %13, align 4
  switch i32 %117, label %126 [
    i32 0, label %118
    i32 3, label %119
    i32 4, label %124
  ]

118:                                              ; preds = %116
  br label %35

119:                                              ; preds = %116
  %120 = call i32 @WPACKET_put_bytes__(ptr noundef %12, i64 noundef 0, i64 noundef 1)
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %123, label %122

122:                                              ; preds = %119
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %123

123:                                              ; preds = %122, %119
  br label %124

124:                                              ; preds = %123, %116
  call void @WPACKET_cleanup(ptr noundef %12)
  %125 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %125, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %126

126:                                              ; preds = %124, %116, %33, %27
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %127 = load i32, ptr %4, align 4
  ret i32 %127
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @ossl_assert_int(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @WPACKET_init_static_len(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #3

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

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

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

declare i32 @WPACKET_memcpy(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @codepoint2utf8(ptr noundef, i64 noundef) #0

declare i32 @WPACKET_put_bytes__(ptr noundef, i64 noundef, i64 noundef) #3

declare void @WPACKET_cleanup(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ossl_punycode_decode(ptr noundef, i64 noundef, ptr 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @ossl_a2ulabel(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = alloca [512 x i32], align 16
  %5 = alloca %struct.wpacket_st, align 8
  %6 = alloca i32, align 4
  %7 = alloca [6 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #5
  %8 = icmp ne ptr %1, null
  %9 = zext i1 %8 to i32
  %10 = tail call i32 @ossl_assert_int(i32 noundef %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 263)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %49, label %11

11:                                               ; preds = %3
  %12 = call i32 @WPACKET_init_static_len(ptr noundef nonnull %5, ptr noundef %1, i64 noundef %2, i64 noundef 0) #5
  %.not36 = icmp eq i32 %12, 0
  br i1 %.not36, label %49, label %.preheader61

.preheader61:                                     ; preds = %11, %43
  %.027 = phi i32 [ %spec.select44, %43 ], [ 1, %11 ]
  %.026 = phi ptr [ %45, %43 ], [ %0, %11 ]
  %13 = call ptr @strchr(ptr noundef nonnull dereferenceable(1) %.026, i32 noundef 46) #6
  %.not37 = icmp eq ptr %13, null
  br i1 %.not37, label %18, label %14

14:                                               ; preds = %.preheader61
  %15 = ptrtoint ptr %13 to i64
  %16 = ptrtoint ptr %.026 to i64
  %17 = sub i64 %15, %16
  br label %20

18:                                               ; preds = %.preheader61
  %19 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.026) #6
  br label %20

20:                                               ; preds = %18, %14
  %21 = phi i64 [ %17, %14 ], [ %19, %18 ]
  %22 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.026, ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef 4) #6
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %26, label %24

24:                                               ; preds = %20
  %25 = call i32 @WPACKET_memcpy(ptr noundef nonnull %5, ptr noundef %.026, i64 noundef %21) #5
  %.not38 = icmp eq i32 %25, 0
  %spec.select = select i1 %.not38, i32 0, i32 %.027
  br label %42

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 512, ptr %6, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %.026, i64 4
  %28 = add i64 %21, -4
  %29 = call i32 @ossl_punycode_decode(ptr noundef nonnull %27, i64 noundef %28, ptr noundef nonnull %4, ptr noundef nonnull %6)
  %30 = icmp slt i32 %29, 1
  br i1 %30, label %.thread57, label %.preheader

.preheader:                                       ; preds = %26
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %.not65 = icmp eq i32 %31, 0
  br i1 %.not65, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %36
  %indvars.iv = phi i64 [ %indvars.iv.next, %36 ], [ 0, %.preheader ]
  %.12864 = phi i32 [ %spec.select43, %36 ], [ %.027, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %7) #5
  %32 = getelementptr inbounds [512 x i32], ptr %4, i64 0, i64 %indvars.iv
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  %35 = call i32 @codepoint2utf8(ptr noundef nonnull %7, i64 noundef %34)
  %.not40 = icmp eq i32 %35, 0
  br i1 %.not40, label %.thread, label %36

.thread:                                          ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %7) #5
  br label %.thread57

36:                                               ; preds = %.lr.ph
  %37 = sext i32 %35 to i64
  %38 = call i32 @WPACKET_memcpy(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef %37) #5
  %.not39 = icmp eq i32 %38, 0
  %spec.select43 = select i1 %.not39, i32 0, i32 %.12864
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %7) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = icmp ult i64 %indvars.iv.next, %40
  br i1 %41, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.thread57:                                        ; preds = %26, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %48

._crit_edge:                                      ; preds = %36, %.preheader
  %.128.lcssa = phi i32 [ %.027, %.preheader ], [ %spec.select43, %36 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %42

42:                                               ; preds = %._crit_edge, %24
  %.5 = phi i32 [ %.128.lcssa, %._crit_edge ], [ %spec.select, %24 ]
  br i1 %.not37, label %46, label %43

43:                                               ; preds = %42
  %44 = call i32 @WPACKET_put_bytes__(ptr noundef nonnull %5, i64 noundef 46, i64 noundef 1) #5
  %.not41 = icmp eq i32 %44, 0
  %spec.select44 = select i1 %.not41, i32 0, i32 %.5
  %45 = getelementptr inbounds i8, ptr %13, i64 1
  br label %.preheader61

46:                                               ; preds = %42
  %47 = call i32 @WPACKET_put_bytes__(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 1) #5
  %.not42 = icmp eq i32 %47, 0
  %spec.select45 = select i1 %.not42, i32 0, i32 %.5
  br label %48

48:                                               ; preds = %.thread57, %46
  %.8 = phi i32 [ %spec.select45, %46 ], [ -1, %.thread57 ]
  call void @WPACKET_cleanup(ptr noundef nonnull %5) #5
  br label %49

49:                                               ; preds = %11, %3, %48
  %.0 = phi i32 [ %.8, %48 ], [ -1, %3 ], [ -1, %11 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #5
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @ossl_assert_int(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @WPACKET_init_static_len(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strchr(ptr noundef, i32 noundef) local_unnamed_addr #4

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

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

declare i32 @WPACKET_memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @codepoint2utf8(ptr noundef, i64 noundef) local_unnamed_addr #0

declare i32 @WPACKET_put_bytes__(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @WPACKET_cleanup(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 = { inlinehint 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 #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 = { 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 }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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