; LLVM IR from clausecker/24puzzle :: cmd (pdbquality)

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

@pdb_jobs = external global i32, align 4
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@optind = external global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [66 x i8], align 16
  %13 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 231, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %14 = load i32, ptr @pdb_jobs, align 4, !tbaa !5
  store i32 %14, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 66, ptr %12) #6
  br label %15

15:                                               ; preds = %49, %2
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = call i32 @__posix_getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str) #6
  store i32 %18, ptr %9, align 4, !tbaa !5
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = icmp ne i32 %19, -1
  br i1 %20, label %21, label %50

21:                                               ; preds = %15
  %22 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %22, label %45 [
    i32 106, label %23
    i32 116, label %35
    i32 118, label %44
  ]

23:                                               ; preds = %21
  %24 = load ptr, ptr @optarg, align 8, !tbaa !9
  %25 = call i32 @atoi(ptr noundef %24) #7
  store i32 %25, ptr %11, align 4, !tbaa !5
  %26 = load i32, ptr %11, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 1
  br i1 %27, label %31, label %28

28:                                               ; preds = %23
  %29 = load i32, ptr %11, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 256
  br i1 %30, label %31, label %34

31:                                               ; preds = %28, %23
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.1, i32 noundef 256) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %110

34:                                               ; preds = %28
  br label %49

35:                                               ; preds = %21
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call i32 @tileset_parse(ptr noundef %8, ptr noundef %36)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %35
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.2, ptr noundef %41) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %110

43:                                               ; preds = %35
  br label %49

44:                                               ; preds = %21
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %49

45:                                               ; preds = %21
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 0
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  call void @usage(ptr noundef %48) #8
  unreachable

49:                                               ; preds = %44, %43, %34
  br label %15, !llvm.loop !11

50:                                               ; preds = %15
  %51 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %51, ptr @pdb_jobs, align 4, !tbaa !5
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = load i32, ptr @optind, align 4, !tbaa !5
  %54 = sub nsw i32 %52, %53
  switch i32 %54, label %97 [
    i32 1, label %55
    i32 0, label %81
  ]

55:                                               ; preds = %50
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = load i32, ptr @optind, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = call noalias ptr @fopen(ptr noundef %60, ptr noundef @.str.3)
  store ptr %61, ptr %7, align 8, !tbaa !9
  %62 = load ptr, ptr %7, align 8, !tbaa !9
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %70

64:                                               ; preds = %55
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = load i32, ptr @optind, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  call void @perror(ptr noundef %69)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %110

70:                                               ; preds = %55
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = load ptr, ptr %7, align 8, !tbaa !9
  %73 = call i32 @fileno(ptr noundef %72) #6
  %74 = call ptr @pdb_mmap(i32 noundef %71, i32 noundef %73, i32 noundef 0)
  store ptr %74, ptr %6, align 8, !tbaa !9
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %78

77:                                               ; preds = %70
  call void @perror(ptr noundef @.str.4)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %110

78:                                               ; preds = %70
  %79 = load ptr, ptr %7, align 8, !tbaa !9
  %80 = call i32 @fclose(ptr noundef %79)
  br label %101

81:                                               ; preds = %50
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = call ptr @pdb_allocate(i32 noundef %82)
  store ptr %83, ptr %6, align 8, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %87

86:                                               ; preds = %81
  call void @perror(ptr noundef @.str.5)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %110

87:                                               ; preds = %81
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %87
  %92 = load ptr, ptr @stderr, align 8, !tbaa !9
  br label %94

93:                                               ; preds = %87
  br label %94

94:                                               ; preds = %93, %91
  %95 = phi ptr [ %92, %91 ], [ null, %93 ]
  %96 = call i32 @pdb_generate(ptr noundef %88, ptr noundef %95)
  br label %101

97:                                               ; preds = %50
  %98 = load ptr, ptr %5, align 8, !tbaa !9
  %99 = getelementptr inbounds ptr, ptr %98, i64 0
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  call void @usage(ptr noundef %100) #8
  unreachable

101:                                              ; preds = %94, %78
  %102 = getelementptr inbounds [66 x i8], ptr %12, i64 0, i64 0
  %103 = load i32, ptr %8, align 4, !tbaa !5
  call void @tileset_list_string(ptr noundef %102, i32 noundef %103)
  %104 = load ptr, ptr %6, align 8, !tbaa !9
  %105 = call double @pdb_h_average(ptr noundef %104)
  %106 = load ptr, ptr %6, align 8, !tbaa !9
  %107 = call double @pdb_eta(ptr noundef %106)
  %108 = getelementptr inbounds [66 x i8], ptr %12, i64 0, i64 0
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %105, double noundef %107, ptr noundef %108)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %110

110:                                              ; preds = %101, %86, %77, %64, %39, %31
  call void @llvm.lifetime.end.p0(i64 66, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %111 = load i32, ptr %3, align 4
  ret i32 %111
}

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

; Function Attrs: nounwind
declare i32 @__posix_getopt(i32 noundef, ptr noundef, ptr noundef) #2

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

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

declare i32 @tileset_parse(ptr noundef, ptr noundef) #4

; Function Attrs: noreturn nounwind uwtable
declare hidden void @usage(ptr noundef) #5

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

declare void @perror(ptr noundef) #4

declare ptr @pdb_mmap(i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #2

declare i32 @fclose(ptr noundef) #4

declare ptr @pdb_allocate(i32 noundef) #4

declare i32 @pdb_generate(ptr noundef, ptr noundef) #4

declare void @tileset_list_string(ptr noundef, i32 noundef) #4

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

declare double @pdb_h_average(ptr noundef) #4

declare double @pdb_eta(ptr noundef) #4

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

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 = { 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 = { 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 = { "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 = { noreturn 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"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"

@pdb_jobs = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca [66 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 231, ptr %3, align 4, !tbaa !5
  %5 = load i32, ptr @pdb_jobs, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 66, ptr nonnull %4) #7
  br label %.outer

.outer:                                           ; preds = %6, %2
  %.not31 = phi i1 [ true, %2 ], [ false, %6 ]
  %.0.ph = phi i32 [ %5, %2 ], [ %.0.ph58, %6 ]
  br label %.outer57

.outer57:                                         ; preds = %.outer, %8
  %.0.ph58 = phi i32 [ %.0.ph, %.outer ], [ %10, %8 ]
  br label %6

6:                                                ; preds = %.outer57, %15
  %7 = call i32 @__posix_getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #7
  switch i32 %7, label %22 [
    i32 -1, label %24
    i32 106, label %8
    i32 116, label %15
    i32 118, label %.outer
  ], !llvm.loop !9

8:                                                ; preds = %6
  %9 = load ptr, ptr @optarg, align 8, !tbaa !11
  %10 = call i32 @atoi(ptr nocapture noundef %9) #8
  %11 = add i32 %10, -257
  %or.cond = icmp ult i32 %11, -256
  br i1 %or.cond, label %12, label %.outer57, !llvm.loop !9

12:                                               ; preds = %8
  %13 = load ptr, ptr @stderr, align 8, !tbaa !11
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.1, i32 noundef 256) #9
  br label %62

15:                                               ; preds = %6
  %16 = load ptr, ptr @optarg, align 8, !tbaa !11
  %17 = call i32 @tileset_parse(ptr noundef nonnull %3, ptr noundef %16) #7
  %.not32 = icmp eq i32 %17, 0
  br i1 %.not32, label %6, label %18, !llvm.loop !9

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !11
  %20 = load ptr, ptr @optarg, align 8, !tbaa !11
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.2, ptr noundef %20) #9
  br label %62

22:                                               ; preds = %6
  %23 = load ptr, ptr %1, align 8, !tbaa !11
  call void @usage(ptr noundef %23) #10
  unreachable

24:                                               ; preds = %6
  store i32 %.0.ph58, ptr @pdb_jobs, align 4, !tbaa !5
  %25 = load i32, ptr @optind, align 4, !tbaa !5
  %26 = sub nsw i32 %0, %25
  switch i32 %26, label %55 [
    i32 1, label %27
    i32 0, label %46
  ]

27:                                               ; preds = %24
  %28 = sext i32 %25 to i64
  %29 = getelementptr inbounds ptr, ptr %1, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = call noalias ptr @fopen(ptr noundef %30, ptr noundef nonnull @.str.3)
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %38

33:                                               ; preds = %27
  %34 = load i32, ptr @optind, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds ptr, ptr %1, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  call void @perror(ptr noundef %37) #11
  br label %62

38:                                               ; preds = %27
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = call i32 @fileno(ptr noundef nonnull %31) #7
  %41 = call ptr @pdb_mmap(i32 noundef %39, i32 noundef %40, i32 noundef 0) #7
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %38
  call void @perror(ptr noundef nonnull @.str.4) #11
  br label %62

44:                                               ; preds = %38
  %45 = call i32 @fclose(ptr noundef nonnull %31)
  br label %57

46:                                               ; preds = %24
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = call ptr @pdb_allocate(i32 noundef %47) #7
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  call void @perror(ptr noundef nonnull @.str.5) #11
  br label %62

51:                                               ; preds = %46
  %52 = load ptr, ptr @stderr, align 8
  %53 = select i1 %.not31, ptr null, ptr %52
  %54 = call i32 @pdb_generate(ptr noundef nonnull %48, ptr noundef %53) #7
  br label %57

55:                                               ; preds = %24
  %56 = load ptr, ptr %1, align 8, !tbaa !11
  call void @usage(ptr noundef %56) #10
  unreachable

57:                                               ; preds = %51, %44
  %.025 = phi ptr [ %48, %51 ], [ %41, %44 ]
  %58 = load i32, ptr %3, align 4, !tbaa !5
  call void @tileset_list_string(ptr noundef nonnull %4, i32 noundef %58) #7
  %59 = call double @pdb_h_average(ptr noundef nonnull %.025) #7
  %60 = call double @pdb_eta(ptr noundef nonnull %.025) #7
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %59, double noundef %60, ptr noundef nonnull %4)
  br label %62

62:                                               ; preds = %57, %50, %43, %33, %18, %12
  %.024 = phi i32 [ 1, %18 ], [ 1, %12 ], [ 1, %50 ], [ 0, %57 ], [ 1, %33 ], [ 1, %43 ]
  call void @llvm.lifetime.end.p0(i64 66, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret i32 %.024
}

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

; Function Attrs: nounwind
declare i32 @__posix_getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @tileset_parse(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: noreturn nounwind uwtable
declare hidden void @usage(ptr noundef) local_unnamed_addr #6

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #4

declare ptr @pdb_mmap(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

declare ptr @pdb_allocate(i32 noundef) local_unnamed_addr #5

declare i32 @pdb_generate(ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @tileset_list_string(ptr noundef, i32 noundef) local_unnamed_addr #5

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

declare double @pdb_h_average(ptr noundef) local_unnamed_addr #5

declare double @pdb_eta(ptr noundef) local_unnamed_addr #5

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

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 = { 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 = { 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 #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 = { "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 = { noreturn 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn }
attributes #11 = { cold }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopUnrollPass,SROAPass,SimplifyCFGPass