; LLVM IR from AlgoGenesis/C :: Backtracking Algorithms/Chess-In-Terminal/src (main)

; 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.Game = type { i32, [8 x [8 x i16]], i32, i32, i32 }

@dialog_cursor_i = external dso_local global i32, align 4
@curr_mode = external dso_local global i32, align 4
@n_curr_mode_choices = external dso_local global i32, align 4
@curr_mode_labels = external dso_local global ptr, align 8
@win_dialog = external dso_local global ptr, align 8
@__const.update_win_dialog.welcome_msg = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 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

declare i32 @wattr_on(ptr noundef, i32 noundef, ptr noundef) #2

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

declare i32 @wattr_off(ptr noundef, i32 noundef, ptr noundef) #2

declare i32 @wrefresh(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @update_win_dialog(ptr noundef byval(%struct.Game) align 8 %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca [11 x i8], align 1
  %4 = alloca [26 x i8], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  %7 = load i32, ptr @curr_mode, align 4, !tbaa !5
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %25

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 11, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.update_win_dialog.welcome_msg, i64 11, i1 false)
  %10 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %11 = call i32 @wattr_on(ptr noundef %10, i32 noundef 2097152, ptr noundef null)
  %12 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
  %15 = call i64 @strlen(ptr noundef %14) #7
  %16 = sub i64 26, %15
  %17 = udiv i64 %16, 2
  %18 = trunc i64 %17 to i32
  %19 = getelementptr inbounds [11 x i8], ptr %3, i64 0, i64 0
  %20 = call i32 (ptr, i32, i32, ptr, ...) @mvwprintw(ptr noundef %12, i32 noundef %13, i32 noundef %18, ptr noundef @.str.5, ptr noundef %19)
  %21 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %22 = call i32 @wattr_off(ptr noundef %21, i32 noundef 2097152, ptr noundef null)
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 11, ptr %3) #6
  br label %25

25:                                               ; preds = %9, %1
  %26 = load i32, ptr @curr_mode, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 2
  br i1 %27, label %28, label %70

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 26, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %29 = getelementptr inbounds %struct.Game, ptr %0, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !11
  %31 = and i32 %30, 16
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  store ptr @.str.6, ptr %5, align 8, !tbaa !9
  br label %41

34:                                               ; preds = %28
  %35 = getelementptr inbounds %struct.Game, ptr %0, i32 0, i32 2
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = and i32 %36, 32
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store ptr @.str.7, ptr %5, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %39, %34
  br label %41

41:                                               ; preds = %40, %33
  %42 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.Game, ptr %0, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = sitofp i32 %45 to float
  %47 = fdiv float %46, 2.000000e+00
  %48 = fpext float %47 to double
  %49 = getelementptr inbounds %struct.Game, ptr %0, i32 0, i32 4
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = sitofp i32 %50 to float
  %52 = fdiv float %51, 2.000000e+00
  %53 = fpext float %52 to double
  %54 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %42, ptr noundef @.str.8, ptr noundef %43, double noundef %48, double noundef %53) #6
  %55 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %56 = call i32 @wattr_on(ptr noundef %55, i32 noundef 2097152, ptr noundef null)
  %57 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
  %60 = call i64 @strlen(ptr noundef %59) #7
  %61 = sub i64 26, %60
  %62 = udiv i64 %61, 2
  %63 = trunc i64 %62 to i32
  %64 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 0
  %65 = call i32 (ptr, i32, i32, ptr, ...) @mvwprintw(ptr noundef %57, i32 noundef %58, i32 noundef %63, ptr noundef @.str.5, ptr noundef %64)
  %66 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %67 = call i32 @wattr_off(ptr noundef %66, i32 noundef 2097152, ptr noundef null)
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 26, ptr %4) #6
  br label %70

70:                                               ; preds = %41, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %110, %70
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = load i32, ptr @n_curr_mode_choices, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %113

76:                                               ; preds = %71
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = load i32, ptr @dialog_cursor_i, align 4, !tbaa !5
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %76
  %81 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %82 = call i32 @wattr_on(ptr noundef %81, i32 noundef 262144, ptr noundef null)
  br label %83

83:                                               ; preds = %80, %76
  %84 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = add nsw i32 %85, %86
  %88 = load ptr, ptr @curr_mode_labels, align 8, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = call i64 @strlen(ptr noundef %92) #7
  %94 = sub i64 26, %93
  %95 = udiv i64 %94, 2
  %96 = trunc i64 %95 to i32
  %97 = load ptr, ptr @curr_mode_labels, align 8, !tbaa !9
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = call i32 (ptr, i32, i32, ptr, ...) @mvwprintw(ptr noundef %84, i32 noundef %87, i32 noundef %96, ptr noundef @.str.5, ptr noundef %101)
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = load i32, ptr @dialog_cursor_i, align 4, !tbaa !5
  %105 = icmp eq i32 %103, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %83
  %107 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %108 = call i32 @wattr_off(ptr noundef %107, i32 noundef 262144, ptr noundef null)
  br label %109

109:                                              ; preds = %106, %83
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %6, align 4, !tbaa !5
  br label %71, !llvm.loop !15

113:                                              ; preds = %75
  %114 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %115 = call i32 @wrefresh(ptr noundef %114)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret void
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr 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 "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) }

!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 = !{!12, !6, i64 132}
!12 = !{!"", !6, i64 0, !7, i64 4, !6, i64 132, !6, i64 136, !6, i64 140}
!13 = !{!12, !6, i64 136}
!14 = !{!12, !6, i64 140}
!15 = distinct !{!15, !16}
!16 = !{!"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.Game = type { i32, [8 x [8 x i16]], i32, i32, i32 }

@dialog_cursor_i = external dso_local local_unnamed_addr global i32, align 4
@curr_mode = external dso_local local_unnamed_addr global i32, align 4
@n_curr_mode_choices = external dso_local local_unnamed_addr global i32, align 4
@curr_mode_labels = external dso_local local_unnamed_addr global ptr, align 8
@win_dialog = external dso_local local_unnamed_addr global ptr, align 8
@__const.update_win_dialog.welcome_msg = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 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: 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

declare i32 @wattr_on(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @mvwprintw(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

declare i32 @wattr_off(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @wrefresh(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @update_win_dialog(ptr nocapture noundef readonly byval(%struct.Game) align 8 %0) local_unnamed_addr #3 {
  %2 = alloca [11 x i8], align 1
  %3 = alloca [26 x i8], align 16
  %4 = load i32, ptr @curr_mode, align 4, !tbaa !5
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %6, label %17

6:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(11) %2, ptr noundef nonnull align 1 dereferenceable(11) @__const.update_win_dialog.welcome_msg, i64 11, i1 false)
  %7 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %8 = tail call i32 @wattr_on(ptr noundef %7, i32 noundef 2097152, ptr noundef null) #6
  %9 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %10 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #7
  %11 = sub i64 26, %10
  %12 = lshr i64 %11, 1
  %13 = trunc i64 %12 to i32
  %14 = call i32 (ptr, i32, i32, ptr, ...) @mvwprintw(ptr noundef %9, i32 noundef 1, i32 noundef %13, ptr noundef nonnull @.str.5, ptr noundef nonnull %2) #6
  %15 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %16 = call i32 @wattr_off(ptr noundef %15, i32 noundef 2097152, ptr noundef null) #6
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %2) #6
  %.pr = load i32, ptr @curr_mode, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %6, %1
  %18 = phi i32 [ %.pr, %6 ], [ %4, %1 ]
  %.013 = phi i32 [ 2, %6 ], [ 1, %1 ]
  %19 = icmp eq i32 %18, 2
  br i1 %19, label %20, label %46

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %3) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 132
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = and i32 %22, 16
  %.not = icmp eq i32 %23, 0
  %.012 = select i1 %.not, ptr @.str.7, ptr @.str.6
  %24 = getelementptr inbounds i8, ptr %0, i64 136
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = sitofp i32 %25 to float
  %27 = fmul float %26, 5.000000e-01
  %28 = fpext float %27 to double
  %29 = getelementptr inbounds i8, ptr %0, i64 140
  %30 = load i32, ptr %29, align 4, !tbaa !14
  %31 = sitofp i32 %30 to float
  %32 = fmul float %31, 5.000000e-01
  %33 = fpext float %32 to double
  %34 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull %.012, double noundef %28, double noundef %33) #6
  %35 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %36 = call i32 @wattr_on(ptr noundef %35, i32 noundef 2097152, ptr noundef null) #6
  %37 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %38 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #7
  %39 = sub i64 26, %38
  %40 = lshr i64 %39, 1
  %41 = trunc i64 %40 to i32
  %42 = call i32 (ptr, i32, i32, ptr, ...) @mvwprintw(ptr noundef %37, i32 noundef %.013, i32 noundef %41, ptr noundef nonnull @.str.5, ptr noundef nonnull %3) #6
  %43 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %44 = call i32 @wattr_off(ptr noundef %43, i32 noundef 2097152, ptr noundef null) #6
  %45 = add nuw nsw i32 %.013, 1
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %3) #6
  br label %46

46:                                               ; preds = %20, %17
  %.1 = phi i32 [ %45, %20 ], [ %.013, %17 ]
  %47 = load i32, ptr @n_curr_mode_choices, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %46
  %.pre17 = load i32, ptr @dialog_cursor_i, align 4, !tbaa !5
  br label %.lr.ph

._crit_edge:                                      ; preds = %75, %46
  %49 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %50 = call i32 @wrefresh(ptr noundef %49) #6
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %75
  %51 = phi i32 [ %.pre17, %.lr.ph.preheader ], [ %76, %75 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %75 ]
  %52 = zext i32 %51 to i64
  %53 = icmp eq i64 %indvars.iv, %52
  br i1 %53, label %54, label %57

54:                                               ; preds = %.lr.ph
  %55 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %56 = call i32 @wattr_on(ptr noundef %55, i32 noundef 262144, ptr noundef null) #6
  br label %57

57:                                               ; preds = %54, %.lr.ph
  %58 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %59 = load ptr, ptr @curr_mode_labels, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %59, i64 %indvars.iv
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %61) #7
  %63 = sub i64 26, %62
  %64 = lshr i64 %63, 1
  %65 = trunc i64 %64 to i32
  %66 = trunc i64 %indvars.iv to i32
  %67 = add i32 %.1, %66
  %68 = call i32 (ptr, i32, i32, ptr, ...) @mvwprintw(ptr noundef %58, i32 noundef %67, i32 noundef %65, ptr noundef nonnull @.str.5, ptr noundef %61) #6
  %69 = load i32, ptr @dialog_cursor_i, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = icmp eq i64 %indvars.iv, %70
  br i1 %71, label %72, label %75

72:                                               ; preds = %57
  %73 = load ptr, ptr @win_dialog, align 8, !tbaa !9
  %74 = call i32 @wattr_off(ptr noundef %73, i32 noundef 262144, ptr noundef null) #6
  %.pre = load i32, ptr @dialog_cursor_i, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %57, %72
  %76 = phi i32 [ %69, %57 ], [ %.pre, %72 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %77 = load i32, ptr @n_curr_mode_choices, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next, %78
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !15
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) 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 = { "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 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"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 = !{!12, !6, i64 132}
!12 = !{!"", !6, i64 0, !7, i64 4, !6, i64 132, !6, i64 136, !6, i64 140}
!13 = !{!12, !6, i64 136}
!14 = !{!12, !6, i64 140}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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