; LLVM IR from n0bel/ESPrinkler :: espfs (espfs)

; 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.EspFsHeader = type { i32, i8, i8, i16, i32, i32 }
%struct.EspFsFile = type { ptr, i8, i32, ptr, ptr, ptr }

@espFsData = external hidden global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 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

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

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

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @espFsOpen(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [256 x i8], align 16
  %7 = alloca %struct.EspFsHeader, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %10 = load ptr, ptr @espFsData, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %14

12:                                               ; preds = %1
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store ptr null, ptr %2, align 8
  br label %117

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %15 = load ptr, ptr @espFsData, align 8, !tbaa !5
  store ptr %15, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  br label %16

16:                                               ; preds = %22, %14
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 0
  %19 = load i8, ptr %18, align 1, !tbaa !9
  %20 = sext i8 %19 to i32
  %21 = icmp eq i32 %20, 47
  br i1 %21, label %22, label %25

22:                                               ; preds = %16
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i32 1
  store ptr %24, ptr %3, align 8, !tbaa !5
  br label %16, !llvm.loop !10

25:                                               ; preds = %16
  br label %26

26:                                               ; preds = %115, %25
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %28, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %29, i64 16, i1 false)
  %30 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 0
  %31 = load i32, ptr %30, align 1, !tbaa !12
  %32 = icmp ne i32 %31, 1936085829
  br i1 %32, label %33, label %35

33:                                               ; preds = %27
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %116

35:                                               ; preds = %27
  %36 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 1
  %37 = load i8, ptr %36, align 1, !tbaa !16
  %38 = sext i8 %37 to i32
  %39 = and i32 %38, 1
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %35
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %116

43:                                               ; preds = %35
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 1 %47, i64 256, i1 false)
  %48 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = call i32 @strcmp(ptr noundef %48, ptr noundef %49) #7
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %93

52:                                               ; preds = %43
  %53 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 3
  %54 = load i16, ptr %53, align 1, !tbaa !17
  %55 = sext i16 %54 to i32
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = sext i32 %55 to i64
  %58 = getelementptr inbounds i8, ptr %56, i64 %57
  store ptr %58, ptr %4, align 8, !tbaa !5
  %59 = call noalias ptr @malloc(i64 noundef 40) #8
  store ptr %59, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %52
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %116

63:                                               ; preds = %52
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.EspFsFile, ptr %65, i32 0, i32 0
  store ptr %64, ptr %66, align 8, !tbaa !18
  %67 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 2
  %68 = load i8, ptr %67, align 1, !tbaa !20
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.EspFsFile, ptr %69, i32 0, i32 1
  store i8 %68, ptr %70, align 8, !tbaa !21
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.EspFsFile, ptr %72, i32 0, i32 4
  store ptr %71, ptr %73, align 8, !tbaa !22
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.EspFsFile, ptr %75, i32 0, i32 3
  store ptr %74, ptr %76, align 8, !tbaa !23
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.EspFsFile, ptr %77, i32 0, i32 2
  store i32 0, ptr %78, align 4, !tbaa !24
  %79 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 2
  %80 = load i8, ptr %79, align 1, !tbaa !20
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %63
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.EspFsFile, ptr %84, i32 0, i32 5
  store ptr null, ptr %85, align 8, !tbaa !25
  br label %91

86:                                               ; preds = %63
  %87 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 2
  %88 = load i8, ptr %87, align 1, !tbaa !20
  %89 = sext i8 %88 to i32
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %89)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %116

91:                                               ; preds = %83
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %92, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %116

93:                                               ; preds = %43
  %94 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 3
  %95 = load i16, ptr %94, align 1, !tbaa !17
  %96 = sext i16 %95 to i32
  %97 = getelementptr inbounds %struct.EspFsHeader, ptr %7, i32 0, i32 4
  %98 = load i32, ptr %97, align 1, !tbaa !26
  %99 = add nsw i32 %96, %98
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = sext i32 %99 to i64
  %102 = getelementptr inbounds i8, ptr %100, i64 %101
  store ptr %102, ptr %4, align 8, !tbaa !5
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = ptrtoint ptr %103 to i32
  %105 = and i32 %104, 3
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %115

107:                                              ; preds = %93
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = ptrtoint ptr %108 to i32
  %110 = and i32 %109, 3
  %111 = sub nsw i32 4, %110
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = sext i32 %111 to i64
  %114 = getelementptr inbounds i8, ptr %112, i64 %113
  store ptr %114, ptr %4, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %107, %93
  br label %26

116:                                              ; preds = %91, %86, %62, %41, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %117

117:                                              ; preds = %116, %12
  %118 = load ptr, ptr %2, align 8
  ret ptr %118
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

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

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !14, i64 0}
!13 = !{!"", !14, i64 0, !7, i64 4, !7, i64 5, !15, i64 6, !14, i64 8, !14, i64 12}
!14 = !{!"int", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!13, !7, i64 4}
!17 = !{!13, !15, i64 6}
!18 = !{!19, !6, i64 0}
!19 = !{!"EspFsFile", !6, i64 0, !7, i64 8, !14, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!13, !7, i64 5}
!21 = !{!19, !7, i64 8}
!22 = !{!19, !6, i64 24}
!23 = !{!19, !6, i64 16}
!24 = !{!19, !14, i64 12}
!25 = !{!19, !6, i64 32}
!26 = !{!13, !14, i64 8}


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

@espFsData = external hidden local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind uwtable
define dso_local noalias noundef ptr @espFsOpen(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  %2 = alloca [256 x i8], align 16
  %3 = load ptr, ptr @espFsData, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %7

5:                                                ; preds = %1
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %46

7:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #6
  br label %8

8:                                                ; preds = %8, %7
  %.027 = phi ptr [ %0, %7 ], [ %11, %8 ]
  %9 = load i8, ptr %.027, align 1, !tbaa !9
  %10 = icmp eq i8 %9, 47
  %11 = getelementptr inbounds i8, ptr %.027, i64 1
  br i1 %10, label %8, label %.preheader, !llvm.loop !10

.preheader:                                       ; preds = %8
  %.sroa.0.0.copyload42 = load i32, ptr %3, align 1
  %.not49 = icmp eq i32 %.sroa.0.0.copyload42, 1936085829
  br i1 %.not49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %36, %.preheader
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %45

.lr.ph:                                           ; preds = %.preheader, %36
  %.02850 = phi ptr [ %.129, %36 ], [ %3, %.preheader ]
  %.sroa.8.0.copyload52.in = getelementptr inbounds i8, ptr %.02850, i64 6
  %.sroa.8.0.copyload52 = load i16, ptr %.sroa.8.0.copyload52.in, align 1
  %.sroa.10.0.copyload53.in = getelementptr inbounds i8, ptr %.02850, i64 8
  %.sroa.10.0.copyload53 = load i32, ptr %.sroa.10.0.copyload53.in, align 1
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %.02850, i64 4
  %.sroa.4.0.copyload = load i8, ptr %.sroa.4.0..sroa_idx, align 1
  %13 = and i8 %.sroa.4.0.copyload, 1
  %.not34 = icmp eq i8 %13, 0
  br i1 %.not34, label %16, label %14

14:                                               ; preds = %.lr.ph
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %45

16:                                               ; preds = %.lr.ph
  %.sroa.5.0.copyload51.in = getelementptr inbounds i8, ptr %.02850, i64 5
  %.sroa.5.0.copyload51 = load i8, ptr %.sroa.5.0.copyload51.in, align 1
  %17 = getelementptr inbounds i8, ptr %.02850, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %2, ptr noundef nonnull align 1 dereferenceable(256) %17, i64 256, i1 false)
  %18 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %.027) #7
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %36

20:                                               ; preds = %16
  %21 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #8
  %22 = icmp eq ptr %21, null
  br i1 %22, label %45, label %23

23:                                               ; preds = %20
  %24 = sext i16 %.sroa.8.0.copyload52 to i64
  %25 = getelementptr inbounds i8, ptr %17, i64 %24
  store ptr %.02850, ptr %21, align 8, !tbaa !12
  %26 = getelementptr inbounds i8, ptr %21, i64 8
  store i8 %.sroa.5.0.copyload51, ptr %26, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %25, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr %25, ptr %28, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %21, i64 12
  store i32 0, ptr %29, align 4, !tbaa !18
  %30 = icmp eq i8 %.sroa.5.0.copyload51, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %23
  %32 = getelementptr inbounds i8, ptr %21, i64 32
  store ptr null, ptr %32, align 8, !tbaa !19
  br label %45

33:                                               ; preds = %23
  %34 = sext i8 %.sroa.5.0.copyload51 to i32
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %34)
  br label %45

36:                                               ; preds = %16
  %37 = sext i16 %.sroa.8.0.copyload52 to i32
  %38 = add nsw i32 %.sroa.10.0.copyload53, %37
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i8, ptr %17, i64 %39
  %41 = ptrtoint ptr %40 to i64
  %42 = trunc i64 %41 to i32
  %43 = and i32 %42, 3
  %.not35 = icmp eq i32 %43, 0
  %44 = sub nuw nsw i32 4, %43
  %narrow = select i1 %.not35, i32 0, i32 %44
  %.129.idx = zext nneg i32 %narrow to i64
  %.129 = getelementptr inbounds i8, ptr %40, i64 %.129.idx
  %.sroa.0.0.copyload = load i32, ptr %.129, align 1
  %.not = icmp eq i32 %.sroa.0.0.copyload, 1936085829
  br i1 %.not, label %.lr.ph, label %._crit_edge

45:                                               ; preds = %20, %31, %33, %14, %._crit_edge
  %.0 = phi ptr [ null, %._crit_edge ], [ null, %14 ], [ %21, %31 ], [ null, %33 ], [ null, %20 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #6
  br label %46

46:                                               ; preds = %45, %5
  %.1 = phi ptr [ null, %5 ], [ %.0, %45 ]
  ret ptr %.1
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree 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 = { nofree 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 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !6, i64 0}
!13 = !{!"EspFsFile", !6, i64 0, !7, i64 8, !14, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !7, i64 8}
!16 = !{!13, !6, i64 24}
!17 = !{!13, !6, i64 16}
!18 = !{!13, !14, i64 12}
!19 = !{!13, !6, i64 32}


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