; LLVM IR from joembedded/JesFs :: jesfs_hl (fs_rename)

; 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.SFLASH_INFO = type { i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, %union.SF_BUFFER, i8 }
%union.SF_BUFFER = type { [32 x i32] }
%struct.FS_DESC = type { i32, i32, i32, i32, i32, i32, i16, i8 }

@sflash_info = external global %struct.SFLASH_INFO, align 4

; 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

declare signext i16 @_supply_voltage_check() #1

declare void @sflash_read(i32 noundef, ptr noundef, i16 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i16 @sflash_find_mlen(i32 noundef, i16 noundef zeroext) #2

declare signext i16 @sflash_SectorErase(i32 noundef) #1

declare signext i16 @sflash_SectorWrite(i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @fs_delete(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local signext i16 @fs_rename(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i16, align 2
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i16, align 2
  %7 = alloca [6 x i32], align 16
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
  %10 = load i8, ptr getelementptr inbounds (%struct.SFLASH_INFO, ptr @sflash_info, i32 0, i32 11), align 4, !tbaa !9
  %11 = zext i8 %10 to i32
  %12 = and i32 %11, 3
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  store i16 -148, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

15:                                               ; preds = %2
  %16 = call signext i16 @_supply_voltage_check()
  %17 = icmp ne i16 %16, 0
  br i1 %17, label %18, label %23

18:                                               ; preds = %15
  %19 = load i8, ptr getelementptr inbounds (%struct.SFLASH_INFO, ptr @sflash_info, i32 0, i32 11), align 4, !tbaa !9
  %20 = zext i8 %19 to i32
  %21 = or i32 %20, 2
  %22 = trunc i32 %21 to i8
  store i8 %22, ptr getelementptr inbounds (%struct.SFLASH_INFO, ptr @sflash_info, i32 0, i32 11), align 4, !tbaa !9
  store i16 -147, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

23:                                               ; preds = %15
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.FS_DESC, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %33

28:                                               ; preds = %23
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.FS_DESC, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 4, !tbaa !13
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %28, %23
  store i16 -135, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

34:                                               ; preds = %28
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.FS_DESC, ptr %35, i32 0, i32 7
  %37 = load i8, ptr %36, align 2, !tbaa !15
  %38 = zext i8 %37 to i32
  %39 = and i32 %38, 9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  store i16 -133, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

42:                                               ; preds = %34
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.FS_DESC, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 4, !tbaa !16
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  store i16 -134, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

48:                                               ; preds = %42
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.FS_DESC, ptr %49, i32 0, i32 3
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = icmp eq i32 %51, -1
  br i1 %52, label %53, label %60

53:                                               ; preds = %48
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.FS_DESC, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = add i32 %56, 12
  %58 = add i32 %57, 36
  %59 = call zeroext i16 @sflash_find_mlen(i32 noundef %58, i16 noundef zeroext 4048)
  store i16 %59, ptr %6, align 2, !tbaa !17
  br label %72

60:                                               ; preds = %48
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.FS_DESC, ptr %61, i32 0, i32 3
  %63 = load i32, ptr %62, align 4, !tbaa !16
  %64 = icmp ugt i32 %63, 4048
  br i1 %64, label %65, label %66

65:                                               ; preds = %60
  store i16 4048, ptr %6, align 2, !tbaa !17
  br label %71

66:                                               ; preds = %60
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.FS_DESC, ptr %67, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !16
  %70 = trunc i32 %69 to i16
  store i16 %70, ptr %6, align 2, !tbaa !17
  br label %71

71:                                               ; preds = %66, %65
  br label %72

72:                                               ; preds = %71, %53
  %73 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 0
  store i32 -54982, ptr %73, align 16, !tbaa !18
  %74 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 1
  store i32 -1, ptr %74, align 4, !tbaa !18
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.FS_DESC, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !13
  %78 = add i32 %77, 8
  %79 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 2
  call void @sflash_read(i32 noundef %78, ptr noundef %79, i16 noundef zeroext 16)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.FS_DESC, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 4, !tbaa !13
  %83 = add i32 %82, 12
  %84 = add i32 %83, 36
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.FS_DESC, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = add i32 %87, 12
  %89 = add i32 %88, 36
  %90 = load i16, ptr %6, align 2, !tbaa !17
  %91 = call signext i16 @flash_intrasec_copy(i32 noundef %84, i32 noundef %89, i16 noundef zeroext %90)
  store i16 %91, ptr %8, align 2, !tbaa !17
  %92 = load i16, ptr %8, align 2, !tbaa !17
  %93 = icmp ne i16 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %72
  %95 = load i16, ptr %8, align 2, !tbaa !17
  store i16 %95, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

96:                                               ; preds = %72
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.FS_DESC, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !13
  %100 = call signext i16 @sflash_SectorErase(i32 noundef %99)
  store i16 %100, ptr %8, align 2, !tbaa !17
  %101 = load i16, ptr %8, align 2, !tbaa !17
  %102 = icmp ne i16 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %96
  %104 = load i16, ptr %8, align 2, !tbaa !17
  store i16 %104, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

105:                                              ; preds = %96
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.FS_DESC, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = add i32 %108, 12
  %110 = add i32 %109, 12
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.FS_DESC, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4, !tbaa !13
  %114 = add i32 %113, 12
  %115 = add i32 %114, 12
  %116 = load i16, ptr %6, align 2, !tbaa !17
  %117 = zext i16 %116 to i32
  %118 = add nsw i32 %117, 36
  %119 = sub nsw i32 %118, 12
  %120 = trunc i32 %119 to i16
  %121 = call signext i16 @flash_intrasec_copy(i32 noundef %110, i32 noundef %115, i16 noundef zeroext %120)
  store i16 %121, ptr %8, align 2, !tbaa !17
  %122 = load i16, ptr %8, align 2, !tbaa !17
  %123 = icmp ne i16 %122, 0
  br i1 %123, label %124, label %126

124:                                              ; preds = %105
  %125 = load i16, ptr %8, align 2, !tbaa !17
  store i16 %125, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

126:                                              ; preds = %105
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.FS_DESC, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 4, !tbaa !13
  %130 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 0
  %131 = call signext i16 @sflash_SectorWrite(i32 noundef %129, ptr noundef %130, i32 noundef 24)
  store i16 %131, ptr %8, align 2, !tbaa !17
  %132 = load i16, ptr %8, align 2, !tbaa !17
  %133 = icmp ne i16 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %126
  %135 = load i16, ptr %8, align 2, !tbaa !17
  store i16 %135, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

136:                                              ; preds = %126
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.FS_DESC, ptr %137, i32 0, i32 7
  store i8 0, ptr %138, align 2, !tbaa !15
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = call signext i16 @fs_delete(ptr noundef %139)
  store i16 %140, ptr %8, align 2, !tbaa !17
  %141 = load i16, ptr %8, align 2, !tbaa !17
  %142 = icmp ne i16 %141, 0
  br i1 %142, label %143, label %145

143:                                              ; preds = %136
  %144 = load i16, ptr %8, align 2, !tbaa !17
  store i16 %144, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

145:                                              ; preds = %136
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.FS_DESC, ptr %146, i32 0, i32 0
  store i32 0, ptr %147, align 4, !tbaa !13
  store i16 0, ptr %3, align 2
  store i32 1, ptr %9, align 4
  br label %148

148:                                              ; preds = %145, %143, %134, %124, %103, %94, %47, %41, %33, %18, %14
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
  %149 = load i16, ptr %3, align 2
  ret i16 %149
}

; Function Attrs: nounwind uwtable
declare hidden signext i16 @flash_intrasec_copy(i32 noundef, i32 noundef, i16 noundef zeroext) #2

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 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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 160}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 22, !12, i64 24, !12, i64 26, !12, i64 28, !7, i64 32, !7, i64 160}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !11, i64 0}
!14 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !7, i64 26}
!15 = !{!14, !7, i64 26}
!16 = !{!14, !11, i64 12}
!17 = !{!12, !12, i64 0}
!18 = !{!11, !11, i64 0}


; 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.SFLASH_INFO = type { i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, %union.SF_BUFFER, i8 }
%union.SF_BUFFER = type { [32 x i32] }

@sflash_info = external local_unnamed_addr global %struct.SFLASH_INFO, align 4

; 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

declare signext i16 @_supply_voltage_check() local_unnamed_addr #1

declare void @sflash_read(i32 noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i16 @sflash_find_mlen(i32 noundef, i16 noundef zeroext) local_unnamed_addr #2

declare signext i16 @sflash_SectorErase(i32 noundef) local_unnamed_addr #1

declare signext i16 @sflash_SectorWrite(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @fs_delete(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local signext i16 @fs_rename(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [6 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  %4 = load i8, ptr getelementptr inbounds (i8, ptr @sflash_info, i64 160), align 4, !tbaa !5
  %5 = and i8 %4, 3
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %6, label %56

6:                                                ; preds = %2
  %7 = tail call signext i16 @_supply_voltage_check() #4
  %.not38 = icmp eq i16 %7, 0
  br i1 %.not38, label %11, label %8

8:                                                ; preds = %6
  %9 = load i8, ptr getelementptr inbounds (i8, ptr @sflash_info, i64 160), align 4, !tbaa !5
  %10 = or i8 %9, 2
  store i8 %10, ptr getelementptr inbounds (i8, ptr @sflash_info, i64 160), align 4, !tbaa !5
  br label %56

11:                                               ; preds = %6
  %12 = load i32, ptr %0, align 4, !tbaa !11
  %.not39 = icmp eq i32 %12, 0
  br i1 %.not39, label %56, label %13

13:                                               ; preds = %11
  %14 = load i32, ptr %1, align 4, !tbaa !11
  %.not40 = icmp eq i32 %14, 0
  br i1 %.not40, label %56, label %15

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %1, i64 26
  %17 = load i8, ptr %16, align 2, !tbaa !13
  %18 = and i8 %17, 9
  %.not41 = icmp eq i8 %18, 0
  br i1 %.not41, label %19, label %56

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %1, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %.not42 = icmp eq i32 %21, 0
  br i1 %.not42, label %22, label %56

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 12
  %24 = load i32, ptr %23, align 4, !tbaa !14
  %25 = icmp eq i32 %24, -1
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = add i32 %12, 48
  %28 = tail call zeroext i16 @sflash_find_mlen(i32 noundef %27, i16 noundef zeroext 4048)
  %.pre = load i32, ptr %0, align 4, !tbaa !11
  br label %30

29:                                               ; preds = %22
  %spec.select48 = tail call i32 @llvm.umin.i32(i32 %24, i32 4048)
  %spec.select = trunc nuw nsw i32 %spec.select48 to i16
  br label %30

30:                                               ; preds = %29, %26
  %31 = phi i32 [ %.pre, %26 ], [ %12, %29 ]
  %.0 = phi i16 [ %28, %26 ], [ %spec.select, %29 ]
  store i32 -54982, ptr %3, align 16, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 -1, ptr %32, align 4, !tbaa !15
  %33 = add i32 %31, 8
  %34 = getelementptr inbounds i8, ptr %3, i64 8
  call void @sflash_read(i32 noundef %33, ptr noundef nonnull %34, i16 noundef zeroext 16) #4
  %35 = load i32, ptr %0, align 4, !tbaa !11
  %36 = add i32 %35, 48
  %37 = load i32, ptr %1, align 4, !tbaa !11
  %38 = add i32 %37, 48
  %39 = call signext i16 @flash_intrasec_copy(i32 noundef %36, i32 noundef %38, i16 noundef zeroext %.0)
  %.not43 = icmp eq i16 %39, 0
  br i1 %.not43, label %40, label %56

40:                                               ; preds = %30
  %41 = load i32, ptr %0, align 4, !tbaa !11
  %42 = call signext i16 @sflash_SectorErase(i32 noundef %41) #4
  %.not44 = icmp eq i16 %42, 0
  br i1 %.not44, label %43, label %56

43:                                               ; preds = %40
  %44 = load i32, ptr %1, align 4, !tbaa !11
  %45 = add i32 %44, 24
  %46 = load i32, ptr %0, align 4, !tbaa !11
  %47 = add i32 %46, 24
  %48 = add i16 %.0, 24
  %49 = call signext i16 @flash_intrasec_copy(i32 noundef %45, i32 noundef %47, i16 noundef zeroext %48)
  %.not45 = icmp eq i16 %49, 0
  br i1 %.not45, label %50, label %56

50:                                               ; preds = %43
  %51 = load i32, ptr %0, align 4, !tbaa !11
  %52 = call signext i16 @sflash_SectorWrite(i32 noundef %51, ptr noundef nonnull %3, i32 noundef 24) #4
  %.not46 = icmp eq i16 %52, 0
  br i1 %.not46, label %53, label %56

53:                                               ; preds = %50
  store i8 0, ptr %16, align 2, !tbaa !13
  %54 = call signext i16 @fs_delete(ptr noundef nonnull %1)
  %.not47 = icmp eq i16 %54, 0
  br i1 %.not47, label %55, label %56

55:                                               ; preds = %53
  store i32 0, ptr %1, align 4, !tbaa !11
  br label %56

56:                                               ; preds = %53, %50, %43, %40, %30, %19, %15, %11, %13, %2, %55, %8
  %.030 = phi i16 [ -147, %8 ], [ 0, %55 ], [ -148, %2 ], [ -135, %13 ], [ -135, %11 ], [ -133, %15 ], [ -134, %19 ], [ %39, %30 ], [ %42, %40 ], [ %49, %43 ], [ %52, %50 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  ret i16 %.030
}

; Function Attrs: nounwind uwtable
declare hidden signext i16 @flash_intrasec_copy(i32 noundef, i32 noundef, i16 noundef zeroext) local_unnamed_addr #2

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

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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 160}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !10, i64 22, !10, i64 24, !10, i64 26, !10, i64 28, !8, i64 32, !8, i64 160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !8, i64 26}
!13 = !{!12, !8, i64 26}
!14 = !{!12, !7, i64 12}
!15 = !{!7, !7, i64 0}


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