; LLVM IR from petecoup/argon :: src/codec (ppm_codec)

; 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.arRGBBitmap = type { i32, i32, ptr }

@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [46 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 i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @scan_past_whitespace(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @ar_read_ppm_file(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [16 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call noalias ptr @fopen(ptr noundef %12, ptr noundef @.str.3)
  store ptr %13, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %14 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call i64 @fread(ptr noundef %14, i64 noundef 1, i64 noundef 2, ptr noundef %15)
  store i64 %16, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %17 = load i64, ptr %9, align 8, !tbaa !9
  %18 = icmp ne i64 %17, 2
  br i1 %18, label %29, label %19

19:                                               ; preds = %1
  %20 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %21 = load i8, ptr %20, align 16, !tbaa !11
  %22 = sext i8 %21 to i32
  %23 = icmp ne i32 %22, 80
  br i1 %23, label %29, label %24

24:                                               ; preds = %19
  %25 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 1
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = sext i8 %26 to i32
  %28 = icmp ne i32 %27, 54
  br i1 %28, label %29, label %31

29:                                               ; preds = %24, %19, %1
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

31:                                               ; preds = %24
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @scan_past_whitespace(ptr noundef %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %35 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %33, ptr noundef @.str.5, ptr noundef %34)
  store i32 %35, ptr %10, align 4, !tbaa !12
  %36 = load i32, ptr %10, align 4, !tbaa !12
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %41, label %38

38:                                               ; preds = %31
  %39 = load i32, ptr %10, align 4, !tbaa !12
  %40 = icmp eq i32 %39, -1
  br i1 %40, label %41, label %43

41:                                               ; preds = %38, %31
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

43:                                               ; preds = %38
  %44 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %45 = call i32 @atoi(ptr noundef %44) #5
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %45)
  %47 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %48 = call i32 @atoi(ptr noundef %47) #5
  store i32 %48, ptr %7, align 4, !tbaa !12
  %49 = load i32, ptr %7, align 4, !tbaa !12
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %43
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

53:                                               ; preds = %43
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @scan_past_whitespace(ptr noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %57 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %55, ptr noundef @.str.5, ptr noundef %56)
  store i32 %57, ptr %10, align 4, !tbaa !12
  %58 = load i32, ptr %10, align 4, !tbaa !12
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %63, label %60

60:                                               ; preds = %53
  %61 = load i32, ptr %10, align 4, !tbaa !12
  %62 = icmp eq i32 %61, -1
  br i1 %62, label %63, label %65

63:                                               ; preds = %60, %53
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

65:                                               ; preds = %60
  %66 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %67 = call i32 @atoi(ptr noundef %66) #5
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %67)
  %69 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %70 = call i32 @atoi(ptr noundef %69) #5
  store i32 %70, ptr %8, align 4, !tbaa !12
  %71 = load i32, ptr %8, align 4, !tbaa !12
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %65
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

75:                                               ; preds = %65
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  call void @scan_past_whitespace(ptr noundef %76)
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %79 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %77, ptr noundef @.str.5, ptr noundef %78)
  store i32 %79, ptr %10, align 4, !tbaa !12
  %80 = load i32, ptr %10, align 4, !tbaa !12
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %85, label %82

82:                                               ; preds = %75
  %83 = load i32, ptr %10, align 4, !tbaa !12
  %84 = icmp eq i32 %83, -1
  br i1 %84, label %85, label %87

85:                                               ; preds = %82, %75
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

87:                                               ; preds = %82
  %88 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %89 = call i32 @atoi(ptr noundef %88) #5
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %89)
  %91 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %92 = call i32 @atoi(ptr noundef %91) #5
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %98, label %94

94:                                               ; preds = %87
  %95 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %96 = call i32 @atoi(ptr noundef %95) #5
  %97 = icmp sgt i32 %96, 255
  br i1 %97, label %98, label %101

98:                                               ; preds = %94, %87
  %99 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %99)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

101:                                              ; preds = %94
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  call void @scan_past_whitespace(ptr noundef %102)
  %103 = load i32, ptr %7, align 4, !tbaa !12
  %104 = load i32, ptr %8, align 4, !tbaa !12
  %105 = call ptr @ar_create_bitmap(i32 noundef %103, i32 noundef %104)
  store ptr %105, ptr %5, align 8, !tbaa !5
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.arRGBBitmap, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = load i32, ptr %7, align 4, !tbaa !12
  %110 = mul i32 3, %109
  %111 = load i32, ptr %8, align 4, !tbaa !12
  %112 = mul i32 %110, %111
  %113 = zext i32 %112 to i64
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = call i64 @fread(ptr noundef %108, i64 noundef 1, i64 noundef %113, ptr noundef %114)
  store i64 %115, ptr %9, align 8, !tbaa !9
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = load i32, ptr %7, align 4, !tbaa !12
  %118 = mul i32 3, %117
  %119 = load i32, ptr %8, align 4, !tbaa !12
  %120 = mul i32 %118, %119
  %121 = zext i32 %120 to i64
  %122 = icmp ne i64 %116, %121
  br i1 %122, label %123, label %131

123:                                              ; preds = %101
  %124 = load i64, ptr %9, align 8, !tbaa !9
  %125 = trunc i64 %124 to i32
  %126 = load i32, ptr %7, align 4, !tbaa !12
  %127 = mul i32 3, %126
  %128 = load i32, ptr %8, align 4, !tbaa !12
  %129 = mul i32 %127, %128
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %125, i32 noundef %129)
  br label %131

131:                                              ; preds = %123, %101
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %132, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %133

133:                                              ; preds = %131, %98, %85, %73, %63, %51, %41, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %134 = load ptr, ptr %2, align 8
  ret ptr %134
}

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

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

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

declare ptr @ar_create_bitmap(i32 noundef, i32 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 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 = { inlinehint nounwind willreturn memory(read) 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 }
attributes #5 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"arRGBBitmap", !13, i64 0, !13, i64 4, !6, 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"

@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [46 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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: nounwind uwtable
declare dso_local void @scan_past_whitespace(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @ar_read_ppm_file(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = alloca [16 x i8], align 16
  %3 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %4 = call i64 @fread(ptr noundef nonnull %2, i64 noundef 1, i64 noundef 2, ptr noundef %3)
  %5 = icmp ne i64 %4, 2
  %6 = load i8, ptr %2, align 16
  %7 = icmp ne i8 %6, 80
  %or.cond = select i1 %5, i1 true, i1 %7
  %8 = getelementptr inbounds i8, ptr %2, i64 1
  %9 = load i8, ptr %8, align 1
  %10 = icmp ne i8 %9, 54
  %or.cond7 = select i1 %or.cond, i1 true, i1 %10
  br i1 %or.cond7, label %11, label %13

11:                                               ; preds = %1
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %61

13:                                               ; preds = %1
  tail call void @scan_past_whitespace(ptr noundef %3)
  %14 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %3, ptr noundef nonnull @.str.5, ptr noundef nonnull %2) #5
  %15 = add i32 %14, 1
  %or.cond9 = icmp ult i32 %15, 2
  br i1 %or.cond9, label %16, label %18

16:                                               ; preds = %13
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %61

18:                                               ; preds = %13
  %19 = call i32 @atoi(ptr nocapture noundef %2) #6
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %19)
  %21 = call i32 @atoi(ptr nocapture noundef %2) #6
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %18
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %61

25:                                               ; preds = %18
  call void @scan_past_whitespace(ptr noundef %3)
  %26 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %3, ptr noundef nonnull @.str.5, ptr noundef nonnull %2) #5
  %27 = add i32 %26, 1
  %or.cond11 = icmp ult i32 %27, 2
  br i1 %or.cond11, label %28, label %30

28:                                               ; preds = %25
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %61

30:                                               ; preds = %25
  %31 = call i32 @atoi(ptr nocapture noundef %2) #6
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %31)
  %33 = call i32 @atoi(ptr nocapture noundef %2) #6
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %30
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %61

37:                                               ; preds = %30
  call void @scan_past_whitespace(ptr noundef %3)
  %38 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %3, ptr noundef nonnull @.str.5, ptr noundef nonnull %2) #5
  %39 = add i32 %38, 1
  %or.cond13 = icmp ult i32 %39, 2
  br i1 %or.cond13, label %40, label %42

40:                                               ; preds = %37
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %61

42:                                               ; preds = %37
  %43 = call i32 @atoi(ptr nocapture noundef %2) #6
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %43)
  %45 = call i32 @atoi(ptr nocapture noundef %2) #6
  %46 = icmp eq i32 %45, 0
  %47 = icmp sgt i32 %45, 255
  %or.cond48 = or i1 %46, %47
  br i1 %or.cond48, label %48, label %50

48:                                               ; preds = %42
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull %2)
  br label %61

50:                                               ; preds = %42
  call void @scan_past_whitespace(ptr noundef %3)
  %51 = call ptr @ar_create_bitmap(i32 noundef %21, i32 noundef %33) #5
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = mul i32 %21, 3
  %55 = mul i32 %54, %33
  %56 = zext i32 %55 to i64
  %57 = call i64 @fread(ptr noundef %53, i64 noundef 1, i64 noundef %56, ptr noundef %3)
  %.not = icmp eq i64 %57, %56
  br i1 %.not, label %61, label %58

58:                                               ; preds = %50
  %59 = trunc i64 %57 to i32
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %59, i32 noundef %55)
  br label %61

61:                                               ; preds = %50, %58, %48, %40, %35, %28, %23, %16, %11
  %.0 = phi ptr [ null, %11 ], [ null, %16 ], [ null, %23 ], [ null, %28 ], [ null, %35 ], [ null, %40 ], [ null, %48 ], [ %51, %58 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret ptr %.0
}

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

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

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

declare ptr @ar_create_bitmap(i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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(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, !10, i64 8}
!6 = !{!"arRGBBitmap", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}


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