; LLVM IR from vul337/PrIntFuzz :: config/linux/firmware/carl9170fw/tools/lib (carlfw)

; 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.carl9170fw_last_desc = type { %struct.carl9170fw_desc_head }
%struct.carl9170fw_desc_head = type { [4 x i8], i16, i8, i8 }
%struct.carlfw = type { %struct.carlfw_file, %struct.carlfw_file, %struct.list_head, i32, i32 }
%struct.carlfw_file = type { ptr, i64, ptr }
%struct.list_head = type { ptr, ptr }
%struct.carlfw_list_entry = type { %struct.carlfw_list_entry_head, %union.anon }
%struct.carlfw_list_entry_head = type { %struct.list_head }
%union.anon = type { [0 x i32], [8 x i8] }

@__const.carlfw_store.last_desc = external hidden unnamed_addr constant %struct.carl9170fw_last_desc, align 1
@.str.3 = external hidden unnamed_addr constant [2 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: nounwind uwtable
define dso_local i32 @carlfw_store(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.carl9170fw_last_desc, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.carlfw_store.last_desc, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = call i32 @carlfw_apply_checksums(ptr noundef %14)
  store i32 %15, ptr %7, align 4, !tbaa !9
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %20

18:                                               ; preds = %1
  %19 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %19, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %132

20:                                               ; preds = %1
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.carlfw, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %struct.carlfw_file, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = call noalias ptr @fopen(ptr noundef %24, ptr noundef @.str.3)
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %32, label %28

28:                                               ; preds = %20
  %29 = call ptr @__errno_location() #7
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = sub nsw i32 0, %30
  store i32 %31, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %132

32:                                               ; preds = %20
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.carlfw, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.carlfw_file, ptr %34, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.carlfw, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %struct.carlfw_file, ptr %38, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !17
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call i64 @fwrite(ptr noundef %36, i64 noundef %40, i64 noundef 1, ptr noundef %41)
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 1
  br i1 %45, label %46, label %50

46:                                               ; preds = %32
  %47 = call ptr @__errno_location() #7
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = sub nsw i32 0, %48
  store i32 %49, ptr %7, align 4, !tbaa !9
  br label %128

50:                                               ; preds = %32
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.carlfw, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %struct.carlfw_file, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %64

56:                                               ; preds = %50
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call i32 @fclose(ptr noundef %57)
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.carlfw, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %struct.carlfw_file, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = call noalias ptr @fopen(ptr noundef %62, ptr noundef @.str.3)
  store ptr %63, ptr %6, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %56, %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.carlfw, ptr %65, i32 0, i32 2
  %67 = getelementptr inbounds %struct.list_head, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  store ptr %68, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = ptrtoint ptr %69 to i64
  %71 = sub i64 %70, 0
  %72 = inttoptr i64 %71 to ptr
  store ptr %72, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %73, ptr %5, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %106, %64
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.carlfw_list_entry, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.carlfw_list_entry_head, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.carlfw, ptr %78, i32 0, i32 2
  %80 = icmp ne ptr %77, %79
  br i1 %80, label %81, label %117

81:                                               ; preds = %74
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.carlfw_list_entry, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds %struct.carl9170fw_desc_head, ptr %83, i32 0, i32 1
  %85 = load i16, ptr %84, align 4, !tbaa !20
  %86 = zext i16 %85 to i32
  store i32 %86, ptr %8, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = icmp sgt i32 %87, 8192
  br i1 %88, label %89, label %90

89:                                               ; preds = %81
  store i32 -7, ptr %7, align 4, !tbaa !9
  br label %128

90:                                               ; preds = %81
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.carlfw_list_entry, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds [0 x i32], ptr %92, i64 0, i64 0
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call i64 @fwrite(ptr noundef %93, i64 noundef %95, i64 noundef 1, ptr noundef %96)
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %7, align 4, !tbaa !9
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 1
  br i1 %100, label %101, label %105

101:                                              ; preds = %90
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = call i32 @ferror(ptr noundef %102) #6
  %104 = sub nsw i32 0, %103
  store i32 %104, ptr %7, align 4, !tbaa !9
  br label %128

105:                                              ; preds = %90
  br label %106

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.carlfw_list_entry, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %struct.carlfw_list_entry_head, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.list_head, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !21
  store ptr %111, ptr %12, align 8, !tbaa !5
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = ptrtoint ptr %112 to i64
  %114 = sub i64 %113, 0
  %115 = inttoptr i64 %114 to ptr
  store ptr %115, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %116, ptr %5, align 8, !tbaa !5
  br label %74, !llvm.loop !24

117:                                              ; preds = %74
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = call i64 @fwrite(ptr noundef %4, i64 noundef 8, i64 noundef 1, ptr noundef %118)
  %120 = trunc i64 %119 to i32
  store i32 %120, ptr %7, align 4, !tbaa !9
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 1
  br i1 %122, label %123, label %127

123:                                              ; preds = %117
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = call i32 @ferror(ptr noundef %124) #6
  %126 = sub nsw i32 0, %125
  store i32 %126, ptr %7, align 4, !tbaa !9
  br label %128

127:                                              ; preds = %117
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %127, %123, %101, %89, %46
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = call i32 @fclose(ptr noundef %129)
  %131 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %131, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %132

132:                                              ; preds = %128, %28, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  %133 = load i32, ptr %2, align 4
  ret i32 %133
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

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

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @ferror(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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(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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"carlfw", !13, i64 0, !13, i64 24, !15, i64 48, !10, i64 64, !10, i64 68}
!13 = !{!"carlfw_file", !6, i64 0, !14, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"list_head", !6, i64 0, !6, i64 8}
!16 = !{!12, !6, i64 16}
!17 = !{!12, !14, i64 8}
!18 = !{!12, !6, i64 24}
!19 = !{!12, !6, i64 48}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"carlfw_list_entry", !23, i64 0, !7, i64 16}
!23 = !{!"carlfw_list_entry_head", !15, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"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.carl9170fw_last_desc = type { %struct.carl9170fw_desc_head }
%struct.carl9170fw_desc_head = type { [4 x i8], i16, i8, i8 }

@__const.carlfw_store.last_desc = external hidden unnamed_addr constant %struct.carl9170fw_last_desc, align 1
@.str.3 = external hidden unnamed_addr constant [2 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @carlfw_store(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca %struct.carl9170fw_last_desc, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %3 = load i64, ptr @__const.carlfw_store.last_desc, align 1
  store i64 %3, ptr %2, align 8
  %4 = tail call i32 @carlfw_apply_checksums(ptr noundef %0)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %5, label %52

5:                                                ; preds = %1
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = tail call noalias ptr @fopen(ptr noundef %6, ptr noundef nonnull @.str.3)
  %.not38 = icmp eq ptr %7, null
  br i1 %.not38, label %8, label %12

8:                                                ; preds = %5
  %9 = tail call ptr @__errno_location() #6
  %10 = load i32, ptr %9, align 4, !tbaa !14
  %11 = sub nsw i32 0, %10
  br label %52

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i64, ptr %15, align 8, !tbaa !16
  %17 = tail call i64 @fwrite(ptr noundef %14, i64 noundef %16, i64 noundef 1, ptr noundef nonnull %7)
  %18 = and i64 %17, 4294967295
  %.not39 = icmp eq i64 %18, 1
  br i1 %.not39, label %23, label %19

19:                                               ; preds = %12
  %20 = tail call ptr @__errno_location() #6
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = sub nsw i32 0, %21
  br label %.loopexit

23:                                               ; preds = %12
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %.not40 = icmp eq ptr %25, null
  br i1 %.not40, label %30, label %26

26:                                               ; preds = %23
  %27 = tail call i32 @fclose(ptr noundef nonnull %7)
  %28 = load ptr, ptr %24, align 8, !tbaa !17
  %29 = tail call noalias ptr @fopen(ptr noundef %28, ptr noundef nonnull @.str.3)
  br label %30

30:                                               ; preds = %26, %23
  %.033 = phi ptr [ %29, %26 ], [ %7, %23 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  br label %32

32:                                               ; preds = %37, %30
  %.032.in = phi ptr [ %31, %30 ], [ %.032, %37 ]
  %.032 = load ptr, ptr %.032.in, align 8, !tbaa !18
  %.not41 = icmp eq ptr %.032, %31
  br i1 %.not41, label %45, label %33

33:                                               ; preds = %32
  %34 = getelementptr inbounds i8, ptr %.032, i64 20
  %35 = load i16, ptr %34, align 4, !tbaa !19
  %36 = icmp ugt i16 %35, 8192
  br i1 %36, label %.loopexit, label %37

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %.032, i64 16
  %39 = zext nneg i16 %35 to i64
  %40 = tail call i64 @fwrite(ptr noundef nonnull %38, i64 noundef %39, i64 noundef 1, ptr noundef %.033)
  %41 = and i64 %40, 4294967295
  %.not43 = icmp eq i64 %41, 1
  br i1 %.not43, label %32, label %42, !llvm.loop !20

42:                                               ; preds = %37
  %43 = tail call i32 @ferror(ptr noundef %.033) #5
  %44 = sub nsw i32 0, %43
  br label %.loopexit

45:                                               ; preds = %32
  %46 = call i64 @fwrite(ptr noundef nonnull %2, i64 noundef 8, i64 noundef 1, ptr noundef %.033)
  %47 = and i64 %46, 4294967295
  %.not42 = icmp eq i64 %47, 1
  br i1 %.not42, label %.loopexit, label %48

48:                                               ; preds = %45
  %49 = tail call i32 @ferror(ptr noundef %.033) #5
  %50 = sub nsw i32 0, %49
  br label %.loopexit

.loopexit:                                        ; preds = %33, %45, %48, %42, %19
  %.034 = phi i32 [ %22, %19 ], [ %44, %42 ], [ %50, %48 ], [ 0, %45 ], [ -7, %33 ]
  %.1 = phi ptr [ %7, %19 ], [ %.033, %42 ], [ %.033, %48 ], [ %.033, %45 ], [ %.033, %33 ]
  %51 = tail call i32 @fclose(ptr noundef %.1)
  br label %52

52:                                               ; preds = %1, %.loopexit, %8
  %.0 = phi i32 [ %.034, %.loopexit ], [ %11, %8 ], [ %4, %1 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @carlfw_apply_checksums(ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind memory(read)
declare noundef i32 @ferror(ptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { nofree nounwind 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(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, !8, i64 0}
!6 = !{!"carlfw", !7, i64 0, !7, i64 24, !12, i64 48, !13, i64 64, !13, i64 68}
!7 = !{!"carlfw_file", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"list_head", !8, i64 0, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!6, !8, i64 16}
!16 = !{!6, !11, i64 8}
!17 = !{!6, !8, i64 24}
!18 = !{!8, !8, i64 0}
!19 = !{!9, !9, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass