; LLVM IR from clangen/musikcube :: src/3rdparty/win32_src/pdcurses (bkgd)

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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@__PRETTY_FUNCTION__.wbkgd = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @wbkgd(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %2
  br label %22

21:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 76, ptr noundef @__PRETTY_FUNCTION__.wbkgd) #5
  unreachable

22:                                               ; preds = %20
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %140

26:                                               ; preds = %22
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._win, ptr %27, i32 0, i32 8
  %29 = load i64, ptr %28, align 8, !tbaa !11
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = icmp eq i64 %29, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %26
  store i32 0, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %140

33:                                               ; preds = %26
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._win, ptr %34, i32 0, i32 8
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = and i64 %36, 9007190664806400
  store i64 %37, ptr %8, align 8, !tbaa !9
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = icmp ne i64 %38, 0
  br i1 %39, label %40, label %47

40:                                               ; preds = %33
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._win, ptr %41, i32 0, i32 8
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = and i64 %43, 9007199252643840
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = xor i64 %44, %45
  store i64 %46, ptr %14, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %40, %33
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._win, ptr %48, i32 0, i32 8
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = and i64 %50, 2097151
  store i64 %51, ptr %9, align 8, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load i64, ptr %5, align 8, !tbaa !9
  call void @wbkgdset(ptr noundef %52, i64 noundef %53)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._win, ptr %54, i32 0, i32 8
  %56 = load i64, ptr %55, align 8, !tbaa !11
  %57 = and i64 %56, 9007190664806400
  store i64 %57, ptr %10, align 8, !tbaa !9
  %58 = load i64, ptr %10, align 8, !tbaa !9
  %59 = icmp ne i64 %58, 0
  br i1 %59, label %60, label %67

60:                                               ; preds = %47
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._win, ptr %61, i32 0, i32 8
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = and i64 %63, 9007199252643840
  %65 = load i64, ptr %10, align 8, !tbaa !9
  %66 = xor i64 %64, %65
  store i64 %66, ptr %15, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %60, %47
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._win, ptr %68, i32 0, i32 8
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = and i64 %70, 2097151
  store i64 %71, ptr %11, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !15
  br label %72

72:                                               ; preds = %133, %67
  %73 = load i32, ptr %7, align 4, !tbaa !15
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._win, ptr %74, i32 0, i32 2
  %76 = load i32, ptr %75, align 8, !tbaa !16
  %77 = icmp slt i32 %73, %76
  br i1 %77, label %78, label %136

78:                                               ; preds = %72
  store i32 0, ptr %6, align 4, !tbaa !15
  br label %79

79:                                               ; preds = %129, %78
  %80 = load i32, ptr %6, align 4, !tbaa !15
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._win, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 4, !tbaa !17
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %85, label %132

85:                                               ; preds = %79
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._win, ptr %86, i32 0, i32 16
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = load i32, ptr %7, align 4, !tbaa !15
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !15
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i64, ptr %92, i64 %94
  store ptr %95, ptr %16, align 8, !tbaa !5
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  store i64 %97, ptr %5, align 8, !tbaa !9
  %98 = load i64, ptr %5, align 8, !tbaa !9
  %99 = and i64 %98, 9007190664806400
  store i64 %99, ptr %12, align 8, !tbaa !9
  %100 = load i64, ptr %5, align 8, !tbaa !9
  %101 = and i64 %100, 8587837440
  store i64 %101, ptr %13, align 8, !tbaa !9
  %102 = load i64, ptr %12, align 8, !tbaa !9
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = icmp eq i64 %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %85
  %106 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %106, ptr %12, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %105, %85
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = load i64, ptr %13, align 8, !tbaa !9
  %110 = xor i64 %109, %108
  store i64 %110, ptr %13, align 8, !tbaa !9
  %111 = load i64, ptr %15, align 8, !tbaa !9
  %112 = load i64, ptr %13, align 8, !tbaa !9
  %113 = or i64 %112, %111
  store i64 %113, ptr %13, align 8, !tbaa !9
  %114 = load i64, ptr %5, align 8, !tbaa !9
  %115 = and i64 %114, 2097151
  store i64 %115, ptr %5, align 8, !tbaa !9
  %116 = load i64, ptr %5, align 8, !tbaa !9
  %117 = load i64, ptr %9, align 8, !tbaa !9
  %118 = icmp eq i64 %116, %117
  br i1 %118, label %119, label %121

119:                                              ; preds = %107
  %120 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %120, ptr %5, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %119, %107
  %122 = load i64, ptr %13, align 8, !tbaa !9
  %123 = load i64, ptr %12, align 8, !tbaa !9
  %124 = or i64 %122, %123
  %125 = load i64, ptr %5, align 8, !tbaa !9
  %126 = or i64 %125, %124
  store i64 %126, ptr %5, align 8, !tbaa !9
  %127 = load i64, ptr %5, align 8, !tbaa !9
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 %127, ptr %128, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %121
  %130 = load i32, ptr %6, align 4, !tbaa !15
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %6, align 4, !tbaa !15
  br label %79, !llvm.loop !19

132:                                              ; preds = %79
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %7, align 4, !tbaa !15
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %7, align 4, !tbaa !15
  br label %72, !llvm.loop !21

136:                                              ; preds = %72
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = call i32 @touchwin(ptr noundef %137)
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PDC_sync(ptr noundef %139)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %140

140:                                              ; preds = %136, %32, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %141 = load i32, ptr %3, align 4
  ret i32 %141
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @wbkgdset(ptr noundef, i64 noundef) #0

declare i32 @touchwin(ptr noundef) #3

declare void @PDC_sync(ptr noundef) #3

; 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 = { noreturn 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 = { "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 = { noreturn 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 = !{!"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 = !{!12, !10, i64 40}
!12 = !{!"_win", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !10, i64 32, !10, i64 40, !14, i64 48, !14, i64 49, !14, i64 50, !14, i64 51, !14, i64 52, !14, i64 53, !14, i64 54, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !13, i64 8}
!17 = !{!12, !13, i64 12}
!18 = !{!12, !6, i64 56}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@__PRETTY_FUNCTION__.wbkgd = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @wbkgd(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 76, ptr noundef nonnull @__PRETTY_FUNCTION__.wbkgd) #3
  unreachable

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i64 %6, %1
  br i1 %7, label %51, label %8

8:                                                ; preds = %4
  %9 = and i64 %6, 9007190664806400
  %.not59 = icmp eq i64 %9, 0
  %10 = and i64 %6, 8587837440
  %spec.select = select i1 %.not59, i64 0, i64 %10
  %11 = and i64 %6, 2097151
  tail call void @wbkgdset(ptr noundef nonnull %0, i64 noundef %1)
  %12 = load i64, ptr %5, align 8, !tbaa !5
  %13 = and i64 %12, 9007190664806400
  %.not60 = icmp eq i64 %13, 0
  %14 = and i64 %12, 8587837440
  %.046 = select i1 %.not60, i64 0, i64 %14
  %15 = and i64 %12, 2097151
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.preheader.lr.ph, label %._crit_edge64

.preheader.lr.ph:                                 ; preds = %8
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !14
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.preheader.lr.ph.split.us, label %._crit_edge64

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %wide.trip.count70 = zext nneg i32 %17 to i64
  %wide.trip.count = zext nneg i32 %20 to i64
  %min.iters.check = icmp eq i32 %20, 1
  %n.vec = and i64 %wide.trip.count, 2147483646
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %9, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert72 = insertelement <2 x i64> poison, i64 %13, i64 0
  %broadcast.splat73 = shufflevector <2 x i64> %broadcast.splatinsert72, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert74 = insertelement <2 x i64> poison, i64 %spec.select, i64 0
  %broadcast.splat75 = shufflevector <2 x i64> %broadcast.splatinsert74, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert76 = insertelement <2 x i64> poison, i64 %.046, i64 0
  %broadcast.splat77 = shufflevector <2 x i64> %broadcast.splatinsert76, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert78 = insertelement <2 x i64> poison, i64 %11, i64 0
  %broadcast.splat79 = shufflevector <2 x i64> %broadcast.splatinsert78, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert80 = insertelement <2 x i64> poison, i64 %15, i64 0
  %broadcast.splat81 = shufflevector <2 x i64> %broadcast.splatinsert80, <2 x i64> poison, <2 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %._crit_edge.us ], [ 0, %.preheader.lr.ph.split.us ]
  %24 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv67
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader.us ]
  %26 = getelementptr inbounds i64, ptr %25, i64 %index
  %wide.load = load <2 x i64>, ptr %26, align 8, !tbaa !17
  %27 = and <2 x i64> %wide.load, <i64 9007190664806400, i64 9007190664806400>
  %28 = and <2 x i64> %wide.load, <i64 8587837440, i64 8587837440>
  %29 = icmp eq <2 x i64> %27, %broadcast.splat
  %30 = select <2 x i1> %29, <2 x i64> %broadcast.splat73, <2 x i64> %27
  %31 = xor <2 x i64> %28, %broadcast.splat75
  %32 = or <2 x i64> %31, %broadcast.splat77
  %33 = and <2 x i64> %wide.load, <i64 2097151, i64 2097151>
  %34 = icmp eq <2 x i64> %33, %broadcast.splat79
  %35 = select <2 x i1> %34, <2 x i64> %broadcast.splat81, <2 x i64> %33
  %36 = or disjoint <2 x i64> %32, %30
  %37 = or disjoint <2 x i64> %36, %35
  store <2 x i64> %37, ptr %26, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 2
  %38 = icmp eq i64 %index.next, %n.vec
  br i1 %38, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %39 = getelementptr inbounds i64, ptr %25, i64 %indvars.iv
  %40 = load i64, ptr %39, align 8, !tbaa !17
  %41 = and i64 %40, 9007190664806400
  %42 = and i64 %40, 8587837440
  %43 = icmp eq i64 %41, %9
  %spec.select61.us = select i1 %43, i64 %13, i64 %41
  %44 = xor i64 %42, %spec.select
  %45 = and i64 %40, 2097151
  %46 = icmp eq i64 %45, %11
  %.049.us = select i1 %46, i64 %15, i64 %45
  %47 = or disjoint i64 %44, %spec.select61.us
  %48 = or disjoint i64 %47, %.049.us
  %49 = or i64 %48, %.046
  store i64 %49, ptr %39, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !22

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next68, %wide.trip.count70
  br i1 %exitcond71.not, label %._crit_edge64, label %.preheader.us, !llvm.loop !23

._crit_edge64:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %8
  %50 = tail call i32 @touchwin(ptr noundef nonnull %0) #4
  tail call void @PDC_sync(ptr noundef nonnull %0) #4
  br label %51

51:                                               ; preds = %4, %._crit_edge64
  ret i32 0
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @wbkgdset(ptr noundef, i64 noundef) local_unnamed_addr #0

declare i32 @touchwin(ptr noundef) local_unnamed_addr #2

declare void @PDC_sync(ptr noundef) local_unnamed_addr #2

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 = { noreturn 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 = { "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 = { noreturn nounwind }
attributes #4 = { 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, !10, i64 40}
!6 = !{!"_win", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !11, i64 49, !11, i64 50, !11, i64 51, !11, i64 52, !11, i64 53, !11, i64 54, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !12, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 12}
!15 = !{!6, !12, i64 56}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !21, !20}
!23 = distinct !{!23, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass