; LLVM IR from csviragh/robotsim :: src (algo_spp_evol)

; 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.obstacle_t = type { [32 x i8], [10 x [3 x double]], [2 x double], i32 }

; 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 zeroext i1 @PointInObstacle(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local double @DistanceOfNearestPointOfObstacle(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca [3 x double], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store double 1.000000e+22, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store double 1.000000e+22, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #3
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %17

17:                                               ; preds = %87, %3
  %18 = load i32, ptr %8, align 4, !tbaa !11
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.obstacle_t, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !13
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %23, label %90

23:                                               ; preds = %17
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.obstacle_t, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %8, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [10 x [3 x double]], ptr %26, i64 0, i64 %28
  %30 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
  %31 = call double @DistanceOfTwoPoints2D(ptr noundef %24, ptr noundef %30)
  store double %31, ptr %14, align 8, !tbaa !9
  %32 = load double, ptr %14, align 8, !tbaa !9
  %33 = load double, ptr %11, align 8, !tbaa !9
  %34 = fcmp olt double %32, %33
  br i1 %34, label %35, label %38

35:                                               ; preds = %23
  %36 = load double, ptr %14, align 8, !tbaa !9
  store double %36, ptr %11, align 8, !tbaa !9
  %37 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %37, ptr %9, align 4, !tbaa !11
  br label %38

38:                                               ; preds = %35, %23
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.obstacle_t, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %8, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10 x [3 x double]], ptr %40, i64 0, i64 %42
  %44 = getelementptr inbounds [3 x double], ptr %43, i64 0, i64 0
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.obstacle_t, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %8, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.obstacle_t, ptr %49, i32 0, i32 3
  %51 = load i32, ptr %50, align 8, !tbaa !13
  %52 = srem i32 %48, %51
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [10 x [3 x double]], ptr %46, i64 0, i64 %53
  %55 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 0
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call i32 @AtShadow(ptr noundef %44, ptr noundef %55, ptr noundef %56)
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %86

59:                                               ; preds = %38
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.obstacle_t, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %8, align 4, !tbaa !11
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [10 x [3 x double]], ptr %62, i64 0, i64 %64
  %66 = getelementptr inbounds [3 x double], ptr %65, i64 0, i64 0
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.obstacle_t, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %8, align 4, !tbaa !11
  %70 = add nsw i32 %69, 1
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.obstacle_t, ptr %71, i32 0, i32 3
  %73 = load i32, ptr %72, align 8, !tbaa !13
  %74 = srem i32 %70, %73
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10 x [3 x double]], ptr %68, i64 0, i64 %75
  %77 = getelementptr inbounds [3 x double], ptr %76, i64 0, i64 0
  %78 = call double @DistanceFromLineXY(ptr noundef %60, ptr noundef %66, ptr noundef %77)
  store double %78, ptr %15, align 8, !tbaa !9
  %79 = load double, ptr %15, align 8, !tbaa !9
  %80 = load double, ptr %12, align 8, !tbaa !9
  %81 = fcmp olt double %79, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %59
  %83 = load double, ptr %15, align 8, !tbaa !9
  store double %83, ptr %12, align 8, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %84, ptr %10, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %82, %59
  br label %86

86:                                               ; preds = %85, %38
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %8, align 4, !tbaa !11
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !11
  br label %17, !llvm.loop !15

90:                                               ; preds = %17
  %91 = load double, ptr %12, align 8, !tbaa !9
  %92 = load double, ptr %11, align 8, !tbaa !9
  %93 = fcmp ogt double %91, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = load double, ptr %11, align 8, !tbaa !9
  br label %98

96:                                               ; preds = %90
  %97 = load double, ptr %12, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %96, %94
  %99 = phi double [ %95, %94 ], [ %97, %96 ]
  store double %99, ptr %13, align 8, !tbaa !9
  %100 = load double, ptr %11, align 8, !tbaa !9
  %101 = load double, ptr %12, align 8, !tbaa !9
  %102 = fcmp ole double %100, %101
  br i1 %102, label %103, label %119

103:                                              ; preds = %98
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.obstacle_t, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %9, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [10 x [3 x double]], ptr %106, i64 0, i64 %108
  %110 = getelementptr inbounds [3 x double], ptr %109, i64 0, i64 0
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.obstacle_t, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %9, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [10 x [3 x double]], ptr %113, i64 0, i64 %115
  %117 = getelementptr inbounds [3 x double], ptr %116, i64 0, i64 1
  %118 = load double, ptr %117, align 8, !tbaa !9
  call void @FillVect(ptr noundef %104, double noundef %111, double noundef %118, double noundef 0.000000e+00)
  br label %161

119:                                              ; preds = %98
  %120 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.obstacle_t, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %10, align 4, !tbaa !11
  %124 = add nsw i32 %123, 1
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.obstacle_t, ptr %125, i32 0, i32 3
  %127 = load i32, ptr %126, align 8, !tbaa !13
  %128 = srem i32 %124, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10 x [3 x double]], ptr %122, i64 0, i64 %129
  %131 = getelementptr inbounds [3 x double], ptr %130, i64 0, i64 0
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.obstacle_t, ptr %132, i32 0, i32 1
  %134 = load i32, ptr %10, align 4, !tbaa !11
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [10 x [3 x double]], ptr %133, i64 0, i64 %135
  %137 = getelementptr inbounds [3 x double], ptr %136, i64 0, i64 0
  call void @VectDifference(ptr noundef %120, ptr noundef %131, ptr noundef %137)
  %138 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %139 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @UnitVect(ptr noundef %138, ptr noundef %139)
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.obstacle_t, ptr %142, i32 0, i32 1
  %144 = load i32, ptr %10, align 4, !tbaa !11
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [10 x [3 x double]], ptr %143, i64 0, i64 %145
  %147 = getelementptr inbounds [3 x double], ptr %146, i64 0, i64 0
  call void @VectDifference(ptr noundef %140, ptr noundef %141, ptr noundef %147)
  %148 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %149 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %150 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = call double @ScalarProduct(ptr noundef %150, ptr noundef %151, i32 noundef 2)
  call void @MultiplicateWithScalar(ptr noundef %148, ptr noundef %149, double noundef %152, i32 noundef 3)
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.obstacle_t, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %10, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [10 x [3 x double]], ptr %155, i64 0, i64 %157
  %159 = getelementptr inbounds [3 x double], ptr %158, i64 0, i64 0
  %160 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @VectSum(ptr noundef %153, ptr noundef %159, ptr noundef %160)
  br label %161

161:                                              ; preds = %119, %103
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = call zeroext i1 @PointInObstacle(ptr noundef %162, ptr noundef %163)
  %165 = zext i1 %164 to i64
  %166 = select i1 %164, i32 -1, i32 1
  %167 = sitofp i32 %166 to double
  %168 = load double, ptr %13, align 8, !tbaa !9
  %169 = fmul double %167, %168
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret double %169
}

declare double @DistanceOfTwoPoints2D(ptr noundef, ptr noundef) #2

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

declare double @DistanceFromLineXY(ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare void @UnitVect(ptr noundef, ptr noundef) #2

declare void @MultiplicateWithScalar(ptr noundef, ptr noundef, double noundef, i32 noundef) #2

declare double @ScalarProduct(ptr noundef, ptr noundef, i32 noundef) #2

declare void @VectSum(ptr noundef, ptr noundef, ptr noundef) #2

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 = { "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 }

!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 288}
!14 = !{!"", !7, i64 0, !7, i64 32, !7, i64 272, !12, i64 288}
!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"

; 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: nounwind uwtable
declare dso_local zeroext i1 @PointInObstacle(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local double @DistanceOfNearestPointOfObstacle(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  %5 = getelementptr inbounds i8, ptr %1, i64 288
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 32
  br label %9

9:                                                ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %.05265 = phi i32 [ undef, %.lr.ph ], [ %.1, %28 ]
  %.05364 = phi i32 [ undef, %.lr.ph ], [ %.154, %28 ]
  %.05563 = phi double [ 1.000000e+22, %.lr.ph ], [ %.156, %28 ]
  %.05762 = phi double [ 1.000000e+22, %.lr.ph ], [ %.158, %28 ]
  %10 = getelementptr inbounds [10 x [3 x double]], ptr %8, i64 0, i64 %indvars.iv
  %11 = tail call double @DistanceOfTwoPoints2D(ptr noundef %2, ptr noundef nonnull %10) #3
  %12 = fcmp olt double %11, %.05762
  %.158 = select i1 %12, double %11, double %.05762
  %13 = trunc nuw nsw i64 %indvars.iv to i32
  %.1 = select i1 %12, i32 %13, i32 %.05265
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr %5, align 8, !tbaa !5
  %15 = trunc nuw nsw i64 %indvars.iv.next to i32
  %16 = srem i32 %15, %14
  %17 = zext nneg i32 %16 to i64
  %18 = getelementptr inbounds [10 x [3 x double]], ptr %8, i64 0, i64 %17
  %19 = tail call i32 @AtShadow(ptr noundef nonnull %10, ptr noundef nonnull %18, ptr noundef %2) #3
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %28, label %20

20:                                               ; preds = %9
  %21 = load i32, ptr %5, align 8, !tbaa !5
  %22 = srem i32 %15, %21
  %23 = zext nneg i32 %22 to i64
  %24 = getelementptr inbounds [10 x [3 x double]], ptr %8, i64 0, i64 %23
  %25 = tail call double @DistanceFromLineXY(ptr noundef %2, ptr noundef nonnull %10, ptr noundef nonnull %24) #3
  %26 = fcmp olt double %25, %.05563
  br i1 %26, label %27, label %28

27:                                               ; preds = %20
  br label %28

28:                                               ; preds = %9, %27, %20
  %.156 = phi double [ %25, %27 ], [ %.05563, %20 ], [ %.05563, %9 ]
  %.154 = phi i32 [ %13, %27 ], [ %.05364, %20 ], [ %.05364, %9 ]
  %29 = load i32, ptr %5, align 8, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %9, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %28
  %32 = sext i32 %.1 to i64
  %33 = fcmp ugt double %.158, %.156
  br i1 %33, label %39, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %3, %._crit_edge
  %.052.lcssa82 = phi i64 [ %32, %._crit_edge ], [ 0, %3 ]
  %.055.lcssa81 = phi double [ %.156, %._crit_edge ], [ 1.000000e+22, %3 ]
  %.057.lcssa79 = phi double [ %.158, %._crit_edge ], [ 1.000000e+22, %3 ]
  %34 = getelementptr inbounds i8, ptr %1, i64 32
  %35 = getelementptr inbounds [10 x [3 x double]], ptr %34, i64 0, i64 %.052.lcssa82
  %36 = load double, ptr %35, align 8, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %35, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !12
  tail call void @FillVect(ptr noundef %0, double noundef %36, double noundef %38, double noundef 0.000000e+00) #3
  br label %48

39:                                               ; preds = %._crit_edge
  %40 = getelementptr inbounds i8, ptr %1, i64 32
  %41 = add nsw i32 %.154, 1
  %42 = srem i32 %41, %29
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [10 x [3 x double]], ptr %40, i64 0, i64 %43
  %45 = sext i32 %.154 to i64
  %46 = getelementptr inbounds [10 x [3 x double]], ptr %40, i64 0, i64 %45
  call void @VectDifference(ptr noundef nonnull %4, ptr noundef nonnull %44, ptr noundef nonnull %46) #3
  call void @UnitVect(ptr noundef nonnull %4, ptr noundef nonnull %4) #3
  call void @VectDifference(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %46) #3
  %47 = call double @ScalarProduct(ptr noundef nonnull %4, ptr noundef %0, i32 noundef 2) #3
  call void @MultiplicateWithScalar(ptr noundef nonnull %4, ptr noundef nonnull %4, double noundef %47, i32 noundef 3) #3
  call void @VectSum(ptr noundef %0, ptr noundef nonnull %46, ptr noundef nonnull %4) #3
  br label %48

48:                                               ; preds = %39, %._crit_edge.thread
  %.055.lcssa80 = phi double [ %.156, %39 ], [ %.055.lcssa81, %._crit_edge.thread ]
  %.057.lcssa78 = phi double [ %.158, %39 ], [ %.057.lcssa79, %._crit_edge.thread ]
  %49 = fcmp ogt double %.055.lcssa80, %.057.lcssa78
  %50 = select i1 %49, double %.057.lcssa78, double %.055.lcssa80
  %51 = call zeroext i1 @PointInObstacle(ptr noundef nonnull %1, ptr noundef %2)
  %52 = fneg double %50
  %53 = select i1 %51, double %52, double %50
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  ret double %53
}

declare double @DistanceOfTwoPoints2D(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @DistanceFromLineXY(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare double @ScalarProduct(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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


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