; LLVM IR from mackorone/mms :: old/v2/src/mouse/continuous (Continuous)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.continuous::Continuous" = type { %class.IMouseAlgorithm, i32, i32, i32, i32, float, float, [256 x i8], [5 x i8], [3 x i8], i8, i8, i32, i8, i8, i8, i8, i32, i32, i32, i8, i8, i8, i8, i8, float, i32, i32, i32, double, double, double, double, double, double, i32, i32, ptr }
%class.IMouseAlgorithm = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.63 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [8 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: mustprogress uwtable
define dso_local void @_ZN10continuous10Continuous5solveEiibcPN3sim14MouseInterfaceE(ptr noundef nonnull align 8 dereferenceable(408) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3, i8 noundef signext %4, ptr noundef %5) unnamed_addr #1 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca [3 x i8], align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  %17 = zext i1 %3 to i8
  store i8 %17, ptr %10, align 1, !tbaa !11
  store i8 %4, ptr %11, align 1, !tbaa !13
  store ptr %5, ptr %12, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8
  %19 = load ptr, ptr %12, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 37
  store ptr %19, ptr %20, align 8, !tbaa !14
  %21 = call noundef zeroext i1 @_ZN10continuous10Continuous8wallLeftEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  %22 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 9
  %23 = getelementptr inbounds [3 x i8], ptr %22, i64 0, i64 0
  %24 = zext i1 %21 to i8
  store volatile i8 %24, ptr %23, align 1, !tbaa !11
  %25 = call noundef zeroext i1 @_ZN10continuous10Continuous9wallFrontEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  %26 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 9
  %27 = getelementptr inbounds [3 x i8], ptr %26, i64 0, i64 1
  %28 = zext i1 %25 to i8
  store volatile i8 %28, ptr %27, align 1, !tbaa !11
  %29 = call noundef zeroext i1 @_ZN10continuous10Continuous9wallRightEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  %30 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 9
  %31 = getelementptr inbounds [3 x i8], ptr %30, i64 0, i64 2
  %32 = zext i1 %29 to i8
  store volatile i8 %32, ptr %31, align 1, !tbaa !11
  %33 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 24
  store volatile i8 0, ptr %33, align 4, !tbaa !20
  %34 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 11
  store volatile i8 1, ptr %34, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %35 = call noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  store i64 %35, ptr %13, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %116, %6
  br label %37

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %38 = call noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  %39 = load i64, ptr %13, align 8, !tbaa !22
  %40 = sub nsw i64 %38, %39
  store i64 %40, ptr %15, align 8, !tbaa !22
  %41 = load i64, ptr %15, align 8, !tbaa !22
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = icmp sge i64 %41, %43
  br i1 %44, label %45, label %116

45:                                               ; preds = %37
  %46 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 11
  %47 = load volatile i8, ptr %46, align 1, !tbaa !21, !range !24, !noundef !25
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %114

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 3, ptr %16) #4
  %50 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 9
  %51 = getelementptr inbounds [3 x i8], ptr %50, i64 0, i64 0
  %52 = load volatile i8, ptr %51, align 1, !tbaa !11, !range !24, !noundef !25
  %53 = trunc i8 %52 to i1
  %54 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 0
  %55 = zext i1 %53 to i8
  store i8 %55, ptr %54, align 1, !tbaa !11
  %56 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 9
  %57 = getelementptr inbounds [3 x i8], ptr %56, i64 0, i64 1
  %58 = load volatile i8, ptr %57, align 1, !tbaa !11, !range !24, !noundef !25
  %59 = trunc i8 %58 to i1
  %60 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 1
  %61 = zext i1 %59 to i8
  store i8 %61, ptr %60, align 1, !tbaa !11
  %62 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 9
  %63 = getelementptr inbounds [3 x i8], ptr %62, i64 0, i64 2
  %64 = load volatile i8, ptr %63, align 1, !tbaa !11, !range !24, !noundef !25
  %65 = trunc i8 %64 to i1
  %66 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 2
  %67 = zext i1 %65 to i8
  store i8 %67, ptr %66, align 1, !tbaa !11
  %68 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 11
  store volatile i8 0, ptr %68, align 1, !tbaa !21
  %69 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 2
  %70 = load i8, ptr %69, align 1, !tbaa !11, !range !24, !noundef !25
  %71 = trunc i8 %70 to i1
  br i1 %71, label %78, label %72

72:                                               ; preds = %49
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.63)
  %74 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %75 = getelementptr inbounds [256 x i8], ptr %74, i64 0, i64 0
  store volatile i8 114, ptr %75, align 8, !tbaa !13
  %76 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %77 = getelementptr inbounds [256 x i8], ptr %76, i64 0, i64 1
  store volatile i8 0, ptr %77, align 1, !tbaa !13
  br label %112

78:                                               ; preds = %49
  %79 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 1
  %80 = load i8, ptr %79, align 1, !tbaa !11, !range !24, !noundef !25
  %81 = trunc i8 %80 to i1
  br i1 %81, label %92, label %82

82:                                               ; preds = %78
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.64)
  %84 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 3
  %85 = load i32, ptr %84, align 8, !tbaa !26
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %85)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef @.str.65)
  %88 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %89 = getelementptr inbounds [256 x i8], ptr %88, i64 0, i64 0
  store volatile i8 102, ptr %89, align 8, !tbaa !13
  %90 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %91 = getelementptr inbounds [256 x i8], ptr %90, i64 0, i64 1
  store volatile i8 0, ptr %91, align 1, !tbaa !13
  br label %111

92:                                               ; preds = %78
  %93 = getelementptr inbounds [3 x i8], ptr %16, i64 0, i64 0
  %94 = load i8, ptr %93, align 1, !tbaa !11, !range !24, !noundef !25
  %95 = trunc i8 %94 to i1
  br i1 %95, label %102, label %96

96:                                               ; preds = %92
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.66)
  %98 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %99 = getelementptr inbounds [256 x i8], ptr %98, i64 0, i64 0
  store volatile i8 108, ptr %99, align 8, !tbaa !13
  %100 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %101 = getelementptr inbounds [256 x i8], ptr %100, i64 0, i64 1
  store volatile i8 0, ptr %101, align 1, !tbaa !13
  br label %110

102:                                              ; preds = %92
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.67)
  %104 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %105 = getelementptr inbounds [256 x i8], ptr %104, i64 0, i64 0
  store volatile i8 97, ptr %105, align 8, !tbaa !13
  %106 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %107 = getelementptr inbounds [256 x i8], ptr %106, i64 0, i64 1
  store volatile i8 102, ptr %107, align 1, !tbaa !13
  %108 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 7
  %109 = getelementptr inbounds [256 x i8], ptr %108, i64 0, i64 2
  store volatile i8 0, ptr %109, align 2, !tbaa !13
  br label %110

110:                                              ; preds = %102, %96
  br label %111

111:                                              ; preds = %110, %82
  br label %112

112:                                              ; preds = %111, %72
  %113 = getelementptr inbounds %"class.continuous::Continuous", ptr %18, i32 0, i32 10
  store volatile i8 1, ptr %113, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 3, ptr %16) #4
  br label %114

114:                                              ; preds = %112, %45
  call void @_ZN10continuous10Continuous10correctionEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  %115 = call noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408) %18)
  store i64 %115, ptr %13, align 8, !tbaa !22
  br label %116

116:                                              ; preds = %114, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %36, !llvm.loop !28
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10continuous10Continuous8wallLeftEv(ptr noundef nonnull align 8 dereferenceable(408)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10continuous10Continuous9wallFrontEv(ptr noundef nonnull align 8 dereferenceable(408)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10continuous10Continuous9wallRightEv(ptr noundef nonnull align 8 dereferenceable(408)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10continuous10Continuous10correctionEv(ptr noundef nonnull align 8 dereferenceable(408)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 400}
!15 = !{!"_ZTSN10continuous10ContinuousE", !16, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !17, i64 24, !17, i64 28, !7, i64 32, !7, i64 288, !7, i64 293, !12, i64 296, !12, i64 297, !10, i64 300, !12, i64 304, !12, i64 305, !12, i64 306, !12, i64 307, !10, i64 308, !10, i64 312, !10, i64 316, !12, i64 320, !12, i64 321, !12, i64 322, !12, i64 323, !12, i64 324, !17, i64 328, !18, i64 332, !10, i64 336, !10, i64 340, !19, i64 344, !19, i64 352, !19, i64 360, !19, i64 368, !19, i64 376, !19, i64 384, !10, i64 392, !10, i64 396, !6, i64 400}
!16 = !{!"_ZTS15IMouseAlgorithm"}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSN10continuous10ContinuousUt_E", !7, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!15, !12, i64 324}
!21 = !{!15, !12, i64 297}
!22 = !{!23, !23, i64 0}
!23 = !{!"long long", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!15, !10, i64 16}
!27 = !{!15, !12, i64 296}
!28 = distinct !{!28, !29}
!29 = !{!"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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.63 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN10continuous10Continuous5solveEiibcPN3sim14MouseInterfaceE(ptr noundef nonnull align 8 dereferenceable(408) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3, i8 noundef signext %4, ptr noundef %5) unnamed_addr #0 align 2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 400
  store ptr %5, ptr %7, align 8, !tbaa !5
  %8 = tail call noundef zeroext i1 @_ZN10continuous10Continuous8wallLeftEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  %9 = getelementptr inbounds i8, ptr %0, i64 293
  %10 = zext i1 %8 to i8
  store volatile i8 %10, ptr %9, align 1, !tbaa !16
  %11 = tail call noundef zeroext i1 @_ZN10continuous10Continuous9wallFrontEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  %12 = getelementptr inbounds i8, ptr %0, i64 294
  %13 = zext i1 %11 to i8
  store volatile i8 %13, ptr %12, align 2, !tbaa !16
  %14 = tail call noundef zeroext i1 @_ZN10continuous10Continuous9wallRightEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  %15 = getelementptr inbounds i8, ptr %0, i64 295
  %16 = zext i1 %14 to i8
  store volatile i8 %16, ptr %15, align 1, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %0, i64 324
  store volatile i8 0, ptr %17, align 4, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %0, i64 297
  store volatile i8 1, ptr %18, align 1, !tbaa !18
  %19 = tail call noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = getelementptr inbounds i8, ptr %0, i64 33
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = getelementptr inbounds i8, ptr %0, i64 34
  %24 = getelementptr inbounds i8, ptr %0, i64 296
  br label %.outer

.outer:                                           ; preds = %52, %6
  %.0.ph = phi i64 [ %53, %52 ], [ %19, %6 ]
  br label %25

25:                                               ; preds = %.outer, %25
  %26 = tail call noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  %27 = icmp sgt i64 %26, %.0.ph
  br i1 %27, label %28, label %25, !llvm.loop !19

28:                                               ; preds = %25
  %29 = load volatile i8, ptr %18, align 1, !tbaa !18, !range !21, !noundef !22
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %52

31:                                               ; preds = %28
  %32 = load volatile i8, ptr %9, align 1, !tbaa !16, !range !21, !noundef !22
  %33 = trunc nuw i8 %32 to i1
  %34 = load volatile i8, ptr %12, align 2, !tbaa !16, !range !21, !noundef !22
  %35 = load volatile i8, ptr %15, align 1, !tbaa !16, !range !21, !noundef !22
  %36 = trunc nuw i8 %35 to i1
  store volatile i8 0, ptr %18, align 1, !tbaa !18
  br i1 %36, label %39, label %37

37:                                               ; preds = %31
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.63)
  store volatile i8 114, ptr %20, align 8, !tbaa !23
  store volatile i8 0, ptr %21, align 1, !tbaa !23
  br label %51

39:                                               ; preds = %31
  %40 = trunc nuw i8 %34 to i1
  br i1 %40, label %46, label %41

41:                                               ; preds = %39
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.64)
  %43 = load i32, ptr %22, align 8, !tbaa !24
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %43)
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.65)
  store volatile i8 102, ptr %20, align 8, !tbaa !23
  store volatile i8 0, ptr %21, align 1, !tbaa !23
  br label %51

46:                                               ; preds = %39
  br i1 %33, label %49, label %47

47:                                               ; preds = %46
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.66)
  store volatile i8 108, ptr %20, align 8, !tbaa !23
  store volatile i8 0, ptr %21, align 1, !tbaa !23
  br label %51

49:                                               ; preds = %46
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.67)
  store volatile i8 97, ptr %20, align 8, !tbaa !23
  store volatile i8 102, ptr %21, align 1, !tbaa !23
  store volatile i8 0, ptr %23, align 2, !tbaa !23
  br label %51

51:                                               ; preds = %41, %49, %47, %37
  store volatile i8 1, ptr %24, align 8, !tbaa !25
  br label %52

52:                                               ; preds = %51, %28
  tail call void @_ZN10continuous10Continuous10correctionEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  %53 = tail call noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408) %0)
  br label %.outer, !llvm.loop !19
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10continuous10Continuous8wallLeftEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10continuous10Continuous9wallFrontEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10continuous10Continuous9wallRightEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10continuous10Continuous6millisEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10continuous10Continuous10correctionEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress noreturn 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 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 #2 = { inlinehint mustprogress 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" }

!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, !15, i64 400}
!6 = !{!"_ZTSN10continuous10ContinuousE", !7, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !11, i64 24, !11, i64 28, !9, i64 32, !9, i64 288, !9, i64 293, !12, i64 296, !12, i64 297, !8, i64 300, !12, i64 304, !12, i64 305, !12, i64 306, !12, i64 307, !8, i64 308, !8, i64 312, !8, i64 316, !12, i64 320, !12, i64 321, !12, i64 322, !12, i64 323, !12, i64 324, !11, i64 328, !13, i64 332, !8, i64 336, !8, i64 340, !14, i64 344, !14, i64 352, !14, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !8, i64 392, !8, i64 396, !15, i64 400}
!7 = !{!"_ZTS15IMouseAlgorithm"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"_ZTSN10continuous10ContinuousUt_E", !9, i64 0}
!14 = !{!"double", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!6, !12, i64 324}
!18 = !{!6, !12, i64 297}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!9, !9, i64 0}
!24 = !{!6, !8, i64 16}
!25 = !{!6, !12, i64 296}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass