; LLVM IR from csviragh/robotsim :: src/utilities (dynamics_utils)

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

@RandomizePhase.MaxStep = external hidden global i32, align 4
@RandomizePhase.RandomPlaceVector = external hidden global [3 x double], align 16
@RandomizePhase.ActualAgentsVelocity = external hidden global [3 x double], align 16
@RandomizePhase.AgentjsCoords = external hidden global [3 x double], align 16
@RandomizePhase.DiffCoords = external hidden global [3 x double], align 16
@RandomizePhase.isArrangementCorrect = external hidden global i8, align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [42 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: nounwind uwtable
declare dso_local void @InsertAgentsVelocity(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @GetAgentsCoordinates(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @InsertAgentsCoordinates(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

declare void @VectDifference(ptr noundef, ptr noundef, ptr noundef) #3

declare double @VectAbs(ptr noundef) #3

declare void @NullVect(ptr noundef, i32 noundef) #3

declare void @FillVect(ptr noundef, double noundef, double noundef, double noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @RandomizePhase(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, i32 noundef %7, i32 noundef %8, double noundef %9) #1 {
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store double %1, ptr %12, align 8, !tbaa !9
  store double %2, ptr %13, align 8, !tbaa !9
  store double %3, ptr %14, align 8, !tbaa !9
  store double %4, ptr %15, align 8, !tbaa !9
  store double %5, ptr %16, align 8, !tbaa !9
  store double %6, ptr %17, align 8, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !11
  store i32 %8, ptr %19, align 4, !tbaa !11
  store double %9, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.phase_t, ptr %24, i32 0, i32 5
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %27 = mul nsw i32 100, %26
  store i32 %27, ptr @RandomizePhase.MaxStep, align 4, !tbaa !11
  store i8 0, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !15
  %28 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %28, ptr %21, align 4, !tbaa !11
  br label %29

29:                                               ; preds = %38, %10
  %30 = load i32, ptr %21, align 4, !tbaa !11
  %31 = load i32, ptr %19, align 4, !tbaa !11
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %33, label %41

33:                                               ; preds = %29
  call void @FillVect(ptr noundef @RandomizePhase.RandomPlaceVector, double noundef 2.000000e+22, double noundef 2.000000e+22, double noundef 2.000000e+22)
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load i32, ptr %21, align 4, !tbaa !11
  call void @InsertAgentsCoordinates(ptr noundef %34, ptr noundef @RandomizePhase.RandomPlaceVector, i32 noundef %35)
  call void @NullVect(ptr noundef @RandomizePhase.RandomPlaceVector, i32 noundef 3)
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load i32, ptr %21, align 4, !tbaa !11
  call void @InsertAgentsVelocity(ptr noundef %36, ptr noundef @RandomizePhase.RandomPlaceVector, i32 noundef %37)
  br label %38

38:                                               ; preds = %33
  %39 = load i32, ptr %21, align 4, !tbaa !11
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %21, align 4, !tbaa !11
  br label %29, !llvm.loop !17

41:                                               ; preds = %29
  call void @NullVect(ptr noundef @RandomizePhase.ActualAgentsVelocity, i32 noundef 3)
  store i32 0, ptr %23, align 4, !tbaa !11
  %42 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %42, ptr %21, align 4, !tbaa !11
  br label %43

43:                                               ; preds = %121, %41
  %44 = load i32, ptr %21, align 4, !tbaa !11
  %45 = load i32, ptr %19, align 4, !tbaa !11
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %124

47:                                               ; preds = %43
  br label %48

48:                                               ; preds = %115, %47
  %49 = load i8, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !15, !range !19, !noundef !20
  %50 = trunc i8 %49 to i1
  %51 = zext i1 %50 to i32
  %52 = icmp eq i32 0, %51
  br i1 %52, label %53, label %116

53:                                               ; preds = %48
  store i8 1, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !15
  %54 = load double, ptr %15, align 8, !tbaa !9
  %55 = load double, ptr %12, align 8, !tbaa !9
  %56 = fdiv double %55, 2.000000e+00
  %57 = fsub double %54, %56
  %58 = load double, ptr %15, align 8, !tbaa !9
  %59 = load double, ptr %12, align 8, !tbaa !9
  %60 = fdiv double %59, 2.000000e+00
  %61 = fadd double %58, %60
  %62 = call double @randomizeDouble(double noundef %57, double noundef %61)
  store double %62, ptr @RandomizePhase.RandomPlaceVector, align 16, !tbaa !9
  %63 = load double, ptr %16, align 8, !tbaa !9
  %64 = load double, ptr %13, align 8, !tbaa !9
  %65 = fdiv double %64, 2.000000e+00
  %66 = fsub double %63, %65
  %67 = load double, ptr %16, align 8, !tbaa !9
  %68 = load double, ptr %13, align 8, !tbaa !9
  %69 = fdiv double %68, 2.000000e+00
  %70 = fadd double %67, %69
  %71 = call double @randomizeDouble(double noundef %66, double noundef %70)
  store double %71, ptr getelementptr inbounds ([3 x double], ptr @RandomizePhase.RandomPlaceVector, i64 0, i64 1), align 8, !tbaa !9
  %72 = load double, ptr %17, align 8, !tbaa !9
  %73 = load double, ptr %14, align 8, !tbaa !9
  %74 = fdiv double %73, 2.000000e+00
  %75 = fsub double %72, %74
  %76 = load double, ptr %17, align 8, !tbaa !9
  %77 = load double, ptr %14, align 8, !tbaa !9
  %78 = fdiv double %77, 2.000000e+00
  %79 = fadd double %76, %78
  %80 = call double @randomizeDouble(double noundef %75, double noundef %79)
  store double %80, ptr getelementptr inbounds ([3 x double], ptr @RandomizePhase.RandomPlaceVector, i64 0, i64 2), align 16, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %103, %53
  %82 = load i32, ptr %22, align 4, !tbaa !11
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.phase_t, ptr %83, i32 0, i32 5
  %85 = load i32, ptr %84, align 4, !tbaa !13
  %86 = icmp slt i32 %82, %85
  br i1 %86, label %87, label %106

87:                                               ; preds = %81
  %88 = load i32, ptr %21, align 4, !tbaa !11
  %89 = load i32, ptr %22, align 4, !tbaa !11
  %90 = icmp eq i32 %88, %89
  br i1 %90, label %91, label %94

91:                                               ; preds = %87
  %92 = load i32, ptr %19, align 4, !tbaa !11
  %93 = sub nsw i32 %92, 1
  store i32 %93, ptr %22, align 4, !tbaa !11
  br label %103

94:                                               ; preds = %87
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load i32, ptr %22, align 4, !tbaa !11
  call void @GetAgentsCoordinates(ptr noundef @RandomizePhase.AgentjsCoords, ptr noundef %95, i32 noundef %96)
  call void @VectDifference(ptr noundef @RandomizePhase.DiffCoords, ptr noundef @RandomizePhase.AgentjsCoords, ptr noundef @RandomizePhase.RandomPlaceVector)
  %97 = call double @VectAbs(ptr noundef @RandomizePhase.DiffCoords)
  %98 = load double, ptr %20, align 8, !tbaa !9
  %99 = fmul double 4.000000e+00, %98
  %100 = fcmp ole double %97, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %94
  store i8 0, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !15
  br label %106

102:                                              ; preds = %94
  br label %103

103:                                              ; preds = %102, %91
  %104 = load i32, ptr %22, align 4, !tbaa !11
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %22, align 4, !tbaa !11
  br label %81, !llvm.loop !21

106:                                              ; preds = %101, %81
  %107 = load i32, ptr %23, align 4, !tbaa !11
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %23, align 4, !tbaa !11
  %109 = load i32, ptr %23, align 4, !tbaa !11
  %110 = load i32, ptr @RandomizePhase.MaxStep, align 4, !tbaa !11
  %111 = icmp sgt i32 %109, %110
  br i1 %111, label %112, label %115

112:                                              ; preds = %106
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.1) #5
  call void @exit(i32 noundef -1) #6
  unreachable

115:                                              ; preds = %106
  br label %48, !llvm.loop !22

116:                                              ; preds = %48
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %21, align 4, !tbaa !11
  call void @InsertAgentsVelocity(ptr noundef %117, ptr noundef @RandomizePhase.ActualAgentsVelocity, i32 noundef %118)
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = load i32, ptr %21, align 4, !tbaa !11
  call void @InsertAgentsCoordinates(ptr noundef %119, ptr noundef @RandomizePhase.RandomPlaceVector, i32 noundef %120)
  store i8 0, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !15
  br label %121

121:                                              ; preds = %116
  %122 = load i32, ptr %21, align 4, !tbaa !11
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %21, align 4, !tbaa !11
  br label %43, !llvm.loop !23

124:                                              ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  ret void
}

declare double @randomizeDouble(double noundef, double noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 "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 }
attributes #6 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 36}
!14 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36}
!15 = !{!16, !16, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


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

@RandomizePhase.MaxStep = external hidden local_unnamed_addr global i32, align 4
@RandomizePhase.RandomPlaceVector = external hidden global [3 x double], align 16
@RandomizePhase.ActualAgentsVelocity = external hidden global [3 x double], align 16
@RandomizePhase.AgentjsCoords = external hidden global [3 x double], align 16
@RandomizePhase.DiffCoords = external hidden global [3 x double], align 16
@RandomizePhase.isArrangementCorrect = external hidden local_unnamed_addr global i8, align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

declare void @VectDifference(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @VectAbs(ptr noundef) local_unnamed_addr #2

declare void @NullVect(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @FillVect(ptr noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @RandomizePhase(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, i32 noundef %7, i32 noundef %8, double noundef %9) local_unnamed_addr #0 {
  %11 = getelementptr inbounds i8, ptr %0, i64 36
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = mul nsw i32 %12, 100
  store i32 %13, ptr @RandomizePhase.MaxStep, align 4, !tbaa !11
  store i8 0, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !12
  %14 = icmp slt i32 %7, %8
  br i1 %14, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %10
  tail call void @NullVect(ptr noundef nonnull @RandomizePhase.ActualAgentsVelocity, i32 noundef 3) #4
  br label %._crit_edge52

.lr.ph:                                           ; preds = %10, %.lr.ph
  %.04146 = phi i32 [ %15, %.lr.ph ], [ %7, %10 ]
  tail call void @FillVect(ptr noundef nonnull @RandomizePhase.RandomPlaceVector, double noundef 2.000000e+22, double noundef 2.000000e+22, double noundef 2.000000e+22) #4
  tail call void @InsertAgentsCoordinates(ptr noundef %0, ptr noundef nonnull @RandomizePhase.RandomPlaceVector, i32 noundef %.04146)
  tail call void @NullVect(ptr noundef nonnull @RandomizePhase.RandomPlaceVector, i32 noundef 3) #4
  tail call void @InsertAgentsVelocity(ptr noundef %0, ptr noundef nonnull @RandomizePhase.RandomPlaceVector, i32 noundef %.04146)
  %15 = add i32 %.04146, 1
  %exitcond.not = icmp eq i32 %15, %8
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph
  tail call void @NullVect(ptr noundef nonnull @RandomizePhase.ActualAgentsVelocity, i32 noundef 3) #4
  br i1 %14, label %.preheader.lr.ph, label %._crit_edge52

.preheader.lr.ph:                                 ; preds = %._crit_edge
  %16 = fmul double %1, 5.000000e-01
  %17 = fsub double %4, %16
  %18 = fadd double %16, %4
  %19 = fmul double %2, 5.000000e-01
  %20 = fsub double %5, %19
  %21 = fadd double %19, %5
  %22 = fmul double %3, 5.000000e-01
  %23 = fsub double %6, %22
  %24 = fadd double %22, %6
  %25 = fmul double %9, 4.000000e+00
  %26 = add nsw i32 %8, -1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %51
  %.051 = phi i32 [ 0, %.preheader.lr.ph ], [ %.1, %51 ]
  %.14250 = phi i32 [ %7, %.preheader.lr.ph ], [ %52, %51 ]
  br label %27

27:                                               ; preds = %.preheader, %.loopexit
  %.1 = phi i32 [ %46, %.loopexit ], [ %.051, %.preheader ]
  %28 = load i8, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !12, !range !16, !noundef !17
  %29 = icmp eq i8 %28, 0
  br i1 %29, label %30, label %51

30:                                               ; preds = %27
  store i8 1, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !12
  %31 = tail call double @randomizeDouble(double noundef %17, double noundef %18) #4
  store double %31, ptr @RandomizePhase.RandomPlaceVector, align 16, !tbaa !18
  %32 = tail call double @randomizeDouble(double noundef %20, double noundef %21) #4
  store double %32, ptr getelementptr inbounds (i8, ptr @RandomizePhase.RandomPlaceVector, i64 8), align 8, !tbaa !18
  %33 = tail call double @randomizeDouble(double noundef %23, double noundef %24) #4
  store double %33, ptr getelementptr inbounds (i8, ptr @RandomizePhase.RandomPlaceVector, i64 16), align 16, !tbaa !18
  %34 = load i32, ptr %11, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph49, label %.loopexit

.lr.ph49:                                         ; preds = %30, %42
  %36 = phi i32 [ %43, %42 ], [ %34, %30 ]
  %.03947 = phi i32 [ %44, %42 ], [ 0, %30 ]
  %37 = icmp eq i32 %.14250, %.03947
  br i1 %37, label %42, label %38

38:                                               ; preds = %.lr.ph49
  tail call void @GetAgentsCoordinates(ptr noundef nonnull @RandomizePhase.AgentjsCoords, ptr noundef nonnull %0, i32 noundef %.03947)
  tail call void @VectDifference(ptr noundef nonnull @RandomizePhase.DiffCoords, ptr noundef nonnull @RandomizePhase.AgentjsCoords, ptr noundef nonnull @RandomizePhase.RandomPlaceVector) #4
  %39 = tail call double @VectAbs(ptr noundef nonnull @RandomizePhase.DiffCoords) #4
  %40 = fcmp ugt double %39, %25
  br i1 %40, label %._crit_edge55, label %41

._crit_edge55:                                    ; preds = %38
  %.pre = load i32, ptr %11, align 4, !tbaa !5
  br label %42

41:                                               ; preds = %38
  store i8 0, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !12
  br label %.loopexit

42:                                               ; preds = %._crit_edge55, %.lr.ph49
  %43 = phi i32 [ %.pre, %._crit_edge55 ], [ %36, %.lr.ph49 ]
  %.140 = phi i32 [ %.03947, %._crit_edge55 ], [ %26, %.lr.ph49 ]
  %44 = add nsw i32 %.140, 1
  %45 = icmp slt i32 %44, %43
  br i1 %45, label %.lr.ph49, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %42, %30, %41
  %46 = add nsw i32 %.1, 1
  %47 = load i32, ptr @RandomizePhase.MaxStep, align 4, !tbaa !11
  %.not = icmp slt i32 %.1, %47
  br i1 %.not, label %27, label %48, !llvm.loop !21

48:                                               ; preds = %.loopexit
  %49 = load ptr, ptr @stderr, align 8, !tbaa !22
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.1) #5
  tail call void @exit(i32 noundef -1) #6
  unreachable

51:                                               ; preds = %27
  tail call void @InsertAgentsVelocity(ptr noundef %0, ptr noundef nonnull @RandomizePhase.ActualAgentsVelocity, i32 noundef %.14250)
  tail call void @InsertAgentsCoordinates(ptr noundef %0, ptr noundef nonnull @RandomizePhase.RandomPlaceVector, i32 noundef %.14250)
  store i8 0, ptr @RandomizePhase.isArrangementCorrect, align 1, !tbaa !12
  %52 = add i32 %.14250, 1
  %exitcond54.not = icmp eq i32 %52, %8
  br i1 %exitcond54.not, label %._crit_edge52, label %.preheader, !llvm.loop !23

._crit_edge52:                                    ; preds = %51, %._crit_edge.thread, %._crit_edge
  ret void
}

declare double @randomizeDouble(double noundef, double noundef) local_unnamed_addr #2

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

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 = { 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 #4 = { nounwind }
attributes #5 = { cold nounwind }
attributes #6 = { 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, !10, i64 36}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !15}


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