; LLVM IR from dloebl/cgif :: tests (noise6_interlaced)

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

@seed = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @psdrand() #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca %struct.st_gifconfig, align 8
  %4 = alloca %struct.st_frameconfig, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [18 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 18, ptr %7) #6
  store i64 42, ptr @seed, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %39, %0
  %12 = load i32, ptr %8, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 6
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %42

15:                                               ; preds = %11
  %16 = call i32 @psdrand()
  %17 = srem i32 %16, 256
  %18 = trunc i32 %17 to i8
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = mul nsw i32 %19, 3
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [18 x i8], ptr %7, i64 0, i64 %21
  store i8 %18, ptr %22, align 1, !tbaa !11
  %23 = call i32 @psdrand()
  %24 = srem i32 %23, 256
  %25 = trunc i32 %24 to i8
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = mul nsw i32 %26, 3
  %28 = add nsw i32 %27, 1
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [18 x i8], ptr %7, i64 0, i64 %29
  store i8 %25, ptr %30, align 1, !tbaa !11
  %31 = call i32 @psdrand()
  %32 = srem i32 %31, 256
  %33 = trunc i32 %32 to i8
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = mul nsw i32 %34, 3
  %36 = add nsw i32 %35, 2
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [18 x i8], ptr %7, i64 0, i64 %37
  store i8 %33, ptr %38, align 1, !tbaa !11
  br label %39

39:                                               ; preds = %15
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %8, align 4, !tbaa !9
  br label %11, !llvm.loop !12

42:                                               ; preds = %14
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 48, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 32, i1 false)
  %43 = getelementptr inbounds %struct.st_gifconfig, ptr %3, i32 0, i32 4
  store i16 700, ptr %43, align 8, !tbaa !14
  %44 = getelementptr inbounds %struct.st_gifconfig, ptr %3, i32 0, i32 5
  store i16 320, ptr %44, align 2, !tbaa !18
  %45 = getelementptr inbounds [18 x i8], ptr %7, i64 0, i64 0
  %46 = getelementptr inbounds %struct.st_gifconfig, ptr %3, i32 0, i32 0
  store ptr %45, ptr %46, align 8, !tbaa !19
  %47 = getelementptr inbounds %struct.st_gifconfig, ptr %3, i32 0, i32 6
  store i16 6, ptr %47, align 4, !tbaa !20
  %48 = getelementptr inbounds %struct.st_gifconfig, ptr %3, i32 0, i32 1
  store ptr @.str, ptr %48, align 8, !tbaa !21
  %49 = call ptr @cgif_newgif(ptr noundef %3)
  store ptr %49, ptr %2, align 8, !tbaa !22
  %50 = load ptr, ptr %2, align 8, !tbaa !22
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %55

52:                                               ; preds = %42
  %53 = load ptr, ptr @stderr, align 8, !tbaa !22
  %54 = call i32 @fputs(ptr noundef @.str.1, ptr noundef %53)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %88

55:                                               ; preds = %42
  %56 = call noalias ptr @malloc(i64 noundef 224000) #7
  store ptr %56, ptr %5, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %69, %55
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = icmp slt i32 %58, 224000
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %72

61:                                               ; preds = %57
  %62 = call i32 @psdrand()
  %63 = srem i32 %62, 6
  %64 = trunc i32 %63 to i8
  %65 = load ptr, ptr %5, align 8, !tbaa !22
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %65, i64 %67
  store i8 %64, ptr %68, align 1, !tbaa !11
  br label %69

69:                                               ; preds = %61
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %10, align 4, !tbaa !9
  br label %57, !llvm.loop !23

72:                                               ; preds = %60
  %73 = load ptr, ptr %5, align 8, !tbaa !22
  %74 = getelementptr inbounds %struct.st_frameconfig, ptr %4, i32 0, i32 1
  store ptr %73, ptr %74, align 8, !tbaa !24
  %75 = getelementptr inbounds %struct.st_frameconfig, ptr %4, i32 0, i32 2
  store i32 8, ptr %75, align 8, !tbaa !26
  %76 = load ptr, ptr %2, align 8, !tbaa !22
  %77 = call i32 @cgif_addframe(ptr noundef %76, ptr noundef %4)
  store i32 %77, ptr %6, align 4, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !22
  call void @free(ptr noundef %78) #6
  %79 = load ptr, ptr %2, align 8, !tbaa !22
  %80 = call i32 @cgif_close(ptr noundef %79)
  store i32 %80, ptr %6, align 4, !tbaa !9
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %87

83:                                               ; preds = %72
  %84 = load ptr, ptr @stderr, align 8, !tbaa !22
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.2, i32 noundef %85) #6
  store i32 2, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %88

87:                                               ; preds = %72
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %88

88:                                               ; preds = %87, %83, %52
  call void @llvm.lifetime.end.p0(i64 18, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %89 = load i32, ptr %1, align 4
  ret i32 %89
}

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare ptr @cgif_newgif(ptr noundef) #3

declare i32 @fputs(ptr noundef, ptr noundef) #3

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

declare i32 @cgif_addframe(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

declare i32 @cgif_close(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 #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 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 = !{!"long", !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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !17, i64 24}
!15 = !{!"st_gifconfig", !16, i64 0, !16, i64 8, !10, i64 16, !10, i64 20, !17, i64 24, !17, i64 26, !17, i64 28, !17, i64 30, !16, i64 32, !16, i64 40}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!15, !17, i64 26}
!19 = !{!15, !16, i64 0}
!20 = !{!15, !17, i64 28}
!21 = !{!15, !16, i64 8}
!22 = !{!16, !16, i64 0}
!23 = distinct !{!23, !13}
!24 = !{!25, !16, i64 8}
!25 = !{!"st_frameconfig", !16, i64 0, !16, i64 8, !10, i64 16, !10, i64 20, !17, i64 24, !17, i64 26, !7, i64 28}
!26 = !{!25, !10, i64 16}


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

@seed = external hidden local_unnamed_addr global i64, align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @psdrand() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.st_gifconfig, align 8
  %2 = alloca %struct.st_frameconfig, align 8
  %3 = alloca [18 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 18, ptr nonnull %3) #7
  store i64 42, ptr @seed, align 8, !tbaa !5
  %4 = tail call i32 @psdrand()
  %5 = trunc i32 %4 to i8
  store i8 %5, ptr %3, align 16, !tbaa !9
  %6 = tail call i32 @psdrand()
  %7 = trunc i32 %6 to i8
  %8 = getelementptr inbounds i8, ptr %3, i64 1
  store i8 %7, ptr %8, align 1, !tbaa !9
  %9 = tail call i32 @psdrand()
  %10 = trunc i32 %9 to i8
  %11 = getelementptr inbounds i8, ptr %3, i64 2
  store i8 %10, ptr %11, align 2, !tbaa !9
  %12 = tail call i32 @psdrand()
  %13 = trunc i32 %12 to i8
  %14 = getelementptr inbounds i8, ptr %3, i64 3
  store i8 %13, ptr %14, align 1, !tbaa !9
  %15 = tail call i32 @psdrand()
  %16 = trunc i32 %15 to i8
  %17 = getelementptr inbounds i8, ptr %3, i64 4
  store i8 %16, ptr %17, align 4, !tbaa !9
  %18 = tail call i32 @psdrand()
  %19 = trunc i32 %18 to i8
  %20 = getelementptr inbounds i8, ptr %3, i64 5
  store i8 %19, ptr %20, align 1, !tbaa !9
  %21 = tail call i32 @psdrand()
  %22 = trunc i32 %21 to i8
  %23 = getelementptr inbounds i8, ptr %3, i64 6
  store i8 %22, ptr %23, align 2, !tbaa !9
  %24 = tail call i32 @psdrand()
  %25 = trunc i32 %24 to i8
  %26 = getelementptr inbounds i8, ptr %3, i64 7
  store i8 %25, ptr %26, align 1, !tbaa !9
  %27 = tail call i32 @psdrand()
  %28 = trunc i32 %27 to i8
  %29 = getelementptr inbounds i8, ptr %3, i64 8
  store i8 %28, ptr %29, align 8, !tbaa !9
  %30 = tail call i32 @psdrand()
  %31 = trunc i32 %30 to i8
  %32 = getelementptr inbounds i8, ptr %3, i64 9
  store i8 %31, ptr %32, align 1, !tbaa !9
  %33 = tail call i32 @psdrand()
  %34 = trunc i32 %33 to i8
  %35 = getelementptr inbounds i8, ptr %3, i64 10
  store i8 %34, ptr %35, align 2, !tbaa !9
  %36 = tail call i32 @psdrand()
  %37 = trunc i32 %36 to i8
  %38 = getelementptr inbounds i8, ptr %3, i64 11
  store i8 %37, ptr %38, align 1, !tbaa !9
  %39 = tail call i32 @psdrand()
  %40 = trunc i32 %39 to i8
  %41 = getelementptr inbounds i8, ptr %3, i64 12
  store i8 %40, ptr %41, align 4, !tbaa !9
  %42 = tail call i32 @psdrand()
  %43 = trunc i32 %42 to i8
  %44 = getelementptr inbounds i8, ptr %3, i64 13
  store i8 %43, ptr %44, align 1, !tbaa !9
  %45 = tail call i32 @psdrand()
  %46 = trunc i32 %45 to i8
  %47 = getelementptr inbounds i8, ptr %3, i64 14
  store i8 %46, ptr %47, align 2, !tbaa !9
  %48 = tail call i32 @psdrand()
  %49 = trunc i32 %48 to i8
  %50 = getelementptr inbounds i8, ptr %3, i64 15
  store i8 %49, ptr %50, align 1, !tbaa !9
  %51 = tail call i32 @psdrand()
  %52 = trunc i32 %51 to i8
  %53 = getelementptr inbounds i8, ptr %3, i64 16
  store i8 %52, ptr %53, align 16, !tbaa !9
  %54 = tail call i32 @psdrand()
  %55 = trunc i32 %54 to i8
  %56 = getelementptr inbounds i8, ptr %3, i64 17
  store i8 %55, ptr %56, align 1, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %57, i8 0, i64 32, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 0, i64 32, i1 false)
  %58 = getelementptr inbounds i8, ptr %1, i64 24
  store i16 700, ptr %58, align 8, !tbaa !10
  %59 = getelementptr inbounds i8, ptr %1, i64 26
  store i16 320, ptr %59, align 2, !tbaa !15
  store ptr %3, ptr %1, align 8, !tbaa !16
  %60 = getelementptr inbounds i8, ptr %1, i64 28
  store i16 6, ptr %60, align 4, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr @.str, ptr %61, align 8, !tbaa !18
  %62 = call ptr @cgif_newgif(ptr noundef nonnull %1) #7
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %67

64:                                               ; preds = %0
  %65 = load ptr, ptr @stderr, align 8, !tbaa !19
  %66 = call i32 @fputs(ptr noundef nonnull @.str.1, ptr noundef %65) #8
  br label %82

67:                                               ; preds = %0
  %68 = call noalias dereferenceable_or_null(224000) ptr @malloc(i64 noundef 224000) #9
  br label %74

69:                                               ; preds = %74
  %70 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %68, ptr %70, align 8, !tbaa !20
  %71 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 8, ptr %71, align 8, !tbaa !22
  %72 = call i32 @cgif_addframe(ptr noundef nonnull %62, ptr noundef nonnull %2) #7
  call void @free(ptr noundef nonnull %68) #7
  %73 = call i32 @cgif_close(ptr noundef nonnull %62) #7
  %.not = icmp eq i32 %73, 0
  br i1 %.not, label %82, label %79

74:                                               ; preds = %67, %74
  %indvars.iv = phi i64 [ 0, %67 ], [ %indvars.iv.next, %74 ]
  %75 = call i32 @psdrand()
  %76 = srem i32 %75, 6
  %77 = trunc nsw i32 %76 to i8
  %78 = getelementptr inbounds i8, ptr %68, i64 %indvars.iv
  store i8 %77, ptr %78, align 1, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 224000
  br i1 %exitcond.not, label %69, label %74, !llvm.loop !23

79:                                               ; preds = %69
  %80 = load ptr, ptr @stderr, align 8, !tbaa !19
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.2, i32 noundef %73) #10
  br label %82

82:                                               ; preds = %69, %79, %64
  %.017 = phi i32 [ 1, %64 ], [ 2, %79 ], [ 0, %69 ]
  call void @llvm.lifetime.end.p0(i64 18, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #7
  ret i32 %.017
}

; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare ptr @cgif_newgif(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, 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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

declare i32 @cgif_close(ptr noundef) local_unnamed_addr #3

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #7 = { nounwind }
attributes #8 = { cold }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { cold 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !14, i64 24}
!11 = !{!"st_gifconfig", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !14, i64 24, !14, i64 26, !14, i64 28, !14, i64 30, !12, i64 32, !12, i64 40}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!11, !14, i64 26}
!16 = !{!11, !12, i64 0}
!17 = !{!11, !14, i64 28}
!18 = !{!11, !12, i64 8}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !12, i64 8}
!21 = !{!"st_frameconfig", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !14, i64 24, !14, i64 26, !7, i64 28}
!22 = !{!21, !13, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass