; LLVM IR from cselab/aphros :: src/inside (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Inside = type { i32, ptr, ptr, ptr, %struct.anon }
%struct.anon = type { [2 x double], double, ptr, ptr, ptr, i32, 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 i32 @inside_inside(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local double @inside_distance(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  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 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Inside, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  store ptr %30, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.Inside, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  store ptr %33, ptr %11, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Inside, ptr %34, i32 0, i32 4
  %36 = getelementptr inbounds %struct.anon, ptr %35, i32 0, i32 5
  %37 = load i32, ptr %36, align 8, !tbaa !15
  store i32 %37, ptr %24, align 4, !tbaa !16
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Inside, ptr %38, i32 0, i32 4
  %40 = getelementptr inbounds %struct.anon, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %40, align 4, !tbaa !17
  store i32 %41, ptr %25, align 4, !tbaa !16
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Inside, ptr %42, i32 0, i32 4
  %44 = getelementptr inbounds %struct.anon, ptr %43, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  store ptr %45, ptr %15, align 8, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Inside, ptr %46, i32 0, i32 4
  %48 = getelementptr inbounds %struct.anon, ptr %47, i32 0, i32 1
  %49 = load double, ptr %48, align 8, !tbaa !19
  store double %49, ptr %14, align 8, !tbaa !20
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.Inside, ptr %50, i32 0, i32 4
  %52 = getelementptr inbounds %struct.anon, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  store ptr %53, ptr %23, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Inside, ptr %54, i32 0, i32 4
  %56 = getelementptr inbounds %struct.anon, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds [2 x double], ptr %56, i64 0, i64 0
  store ptr %57, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 0
  %60 = load double, ptr %59, align 8, !tbaa !20
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 0
  %63 = load double, ptr %62, align 8, !tbaa !20
  %64 = fsub double %60, %63
  %65 = load double, ptr %14, align 8, !tbaa !20
  %66 = fdiv double %64, %65
  %67 = fptosi double %66 to i32
  store i32 %67, ptr %19, align 4, !tbaa !16
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 1
  %70 = load double, ptr %69, align 8, !tbaa !20
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 1
  %73 = load double, ptr %72, align 8, !tbaa !20
  %74 = fsub double %70, %73
  %75 = load double, ptr %14, align 8, !tbaa !20
  %76 = fdiv double %74, %75
  %77 = fptosi double %76 to i32
  store i32 %77, ptr %20, align 4, !tbaa !16
  %78 = load i32, ptr %19, align 4, !tbaa !16
  %79 = load i32, ptr %20, align 4, !tbaa !16
  %80 = load i32, ptr %24, align 4, !tbaa !16
  %81 = mul nsw i32 %79, %80
  %82 = add nsw i32 %78, %81
  store i32 %82, ptr %17, align 4, !tbaa !16
  %83 = load i32, ptr %17, align 4, !tbaa !16
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %2
  store i32 0, ptr %17, align 4, !tbaa !16
  br label %86

86:                                               ; preds = %85, %2
  %87 = load i32, ptr %17, align 4, !tbaa !16
  %88 = load i32, ptr %24, align 4, !tbaa !16
  %89 = load i32, ptr %25, align 4, !tbaa !16
  %90 = mul nsw i32 %88, %89
  %91 = icmp sge i32 %87, %90
  br i1 %91, label %92, label %97

92:                                               ; preds = %86
  %93 = load i32, ptr %24, align 4, !tbaa !16
  %94 = load i32, ptr %25, align 4, !tbaa !16
  %95 = mul nsw i32 %93, %94
  %96 = sub nsw i32 %95, 1
  store i32 %96, ptr %17, align 4, !tbaa !16
  br label %97

97:                                               ; preds = %92, %86
  store double 0x7FEFFFFFFFFFFFFF, ptr %13, align 8, !tbaa !20
  store i32 0, ptr %18, align 4, !tbaa !16
  br label %98

98:                                               ; preds = %162, %97
  %99 = load i32, ptr %18, align 4, !tbaa !16
  %100 = load ptr, ptr %23, align 8, !tbaa !5
  %101 = load i32, ptr %17, align 4, !tbaa !16
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !16
  %105 = icmp slt i32 %99, %104
  br i1 %105, label %106, label %165

106:                                              ; preds = %98
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = load i32, ptr %17, align 4, !tbaa !16
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load i32, ptr %18, align 4, !tbaa !16
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %111, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !16
  store i32 %115, ptr %26, align 4, !tbaa !16
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load i32, ptr %26, align 4, !tbaa !16
  %118 = mul nsw i32 3, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %116, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !16
  store i32 %121, ptr %16, align 4, !tbaa !16
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load i32, ptr %26, align 4, !tbaa !16
  %124 = mul nsw i32 3, %123
  %125 = add nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %122, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !16
  store i32 %128, ptr %21, align 4, !tbaa !16
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load i32, ptr %26, align 4, !tbaa !16
  %131 = mul nsw i32 3, %130
  %132 = add nsw i32 %131, 2
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %129, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !16
  store i32 %135, ptr %22, align 4, !tbaa !16
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i32, ptr %16, align 4, !tbaa !16
  %138 = mul nsw i32 3, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %136, i64 %139
  store ptr %140, ptr %6, align 8, !tbaa !5
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = load i32, ptr %21, align 4, !tbaa !16
  %143 = mul nsw i32 3, %142
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %141, i64 %144
  store ptr %145, ptr %7, align 8, !tbaa !5
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = load i32, ptr %22, align 4, !tbaa !16
  %148 = mul nsw i32 3, %147
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %146, i64 %149
  store ptr %150, ptr %8, align 8, !tbaa !5
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = call double @tri_point_distance2(ptr noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154)
  store double %155, ptr %12, align 8, !tbaa !20
  %156 = load double, ptr %12, align 8, !tbaa !20
  %157 = load double, ptr %13, align 8, !tbaa !20
  %158 = fcmp olt double %156, %157
  br i1 %158, label %159, label %161

159:                                              ; preds = %106
  %160 = load double, ptr %12, align 8, !tbaa !20
  store double %160, ptr %13, align 8, !tbaa !20
  br label %161

161:                                              ; preds = %159, %106
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %18, align 4, !tbaa !16
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %18, align 4, !tbaa !16
  br label %98, !llvm.loop !22

165:                                              ; preds = %98
  %166 = load double, ptr %13, align 8, !tbaa !20
  %167 = call double @sqrt(double noundef %166) #3
  store double %167, ptr %12, align 8, !tbaa !20
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = call i32 @inside_inside(ptr noundef %168, ptr noundef %169)
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %175

172:                                              ; preds = %165
  %173 = load double, ptr %12, align 8, !tbaa !20
  %174 = fneg double %173
  store double %174, ptr %3, align 8
  store i32 1, ptr %27, align 4
  br label %177

175:                                              ; preds = %165
  %176 = load double, ptr %12, align 8, !tbaa !20
  store double %176, ptr %3, align 8
  store i32 1, ptr %27, align 4
  br label %177

177:                                              ; preds = %175, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %178 = load double, ptr %3, align 8
  ret double %178
}

; Function Attrs: nounwind uwtable
declare hidden double @tri_point_distance2(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare double @sqrt(double 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 = { 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 = { 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, !6, i64 24}
!10 = !{!"Inside", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !7, i64 0, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52}
!13 = !{!"double", !7, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!10, !11, i64 80}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !11, i64 84}
!18 = !{!10, !6, i64 72}
!19 = !{!10, !13, i64 48}
!20 = !{!13, !13, i64 0}
!21 = !{!10, !6, i64 64}
!22 = distinct !{!22, !23}
!23 = !{!"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: nounwind uwtable
declare dso_local i32 @inside_inside(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local double @inside_distance(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = getelementptr inbounds i8, ptr %0, i64 80
  %9 = load i32, ptr %8, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %0, i64 84
  %11 = load i32, ptr %10, align 4, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = load double, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %0, i64 64
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = load double, ptr %1, align 8, !tbaa !18
  %17 = load double, ptr %7, align 8, !tbaa !18
  %18 = fsub double %16, %17
  %19 = fdiv double %18, %13
  %20 = fptosi double %19 to i32
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = load double, ptr %23, align 8, !tbaa !18
  %25 = fsub double %22, %24
  %26 = fdiv double %25, %13
  %27 = fptosi double %26 to i32
  %28 = mul nsw i32 %9, %27
  %29 = add nsw i32 %28, %20
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %29, i32 0)
  %30 = mul nsw i32 %11, %9
  %.not = icmp slt i32 %spec.store.select, %30
  %31 = add nsw i32 %30, -1
  %spec.select = select i1 %.not, i32 %spec.store.select, i32 %31
  %32 = sext i32 %spec.select to i64
  %33 = getelementptr inbounds i32, ptr %15, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !19
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %36 = getelementptr inbounds i8, ptr %0, i64 72
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds ptr, ptr %37, i64 %32
  br label %39

39:                                               ; preds = %.lr.ph, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %.05461 = phi double [ 0x7FEFFFFFFFFFFFFF, %.lr.ph ], [ %.1, %39 ]
  %40 = load ptr, ptr %38, align 8, !tbaa !21
  %41 = getelementptr inbounds i32, ptr %40, i64 %indvars.iv
  %42 = load i32, ptr %41, align 4, !tbaa !19
  %43 = mul nsw i32 %42, 3
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %6, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !19
  %47 = getelementptr i8, ptr %45, i64 4
  %48 = load i32, ptr %47, align 4, !tbaa !19
  %49 = getelementptr i8, ptr %45, i64 8
  %50 = load i32, ptr %49, align 4, !tbaa !19
  %51 = mul nsw i32 %46, 3
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %4, i64 %52
  %54 = mul nsw i32 %48, 3
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %4, i64 %55
  %57 = mul nsw i32 %50, 3
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %4, i64 %58
  %60 = tail call double @tri_point_distance2(ptr noundef %53, ptr noundef %56, ptr noundef %59, ptr noundef nonnull %1)
  %61 = fcmp olt double %60, %.05461
  %.1 = select i1 %61, double %60, double %.05461
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = load i32, ptr %33, align 4, !tbaa !19
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next, %63
  br i1 %64, label %39, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %39, %2
  %.054.lcssa = phi double [ 0x7FEFFFFFFFFFFFFF, %2 ], [ %.1, %39 ]
  %65 = tail call double @sqrt(double noundef %.054.lcssa) #3
  %66 = tail call i32 @inside_inside(ptr noundef %0, ptr noundef nonnull %1)
  %.not59 = icmp eq i32 %66, 0
  %67 = fneg double %65
  %.0 = select i1 %.not59, double %65, double %67
  ret double %.0
}

; Function Attrs: nounwind uwtable
declare hidden double @tri_point_distance2(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 24}
!6 = !{!"Inside", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"", !8, i64 0, !12, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !7, i64 48, !7, i64 52}
!12 = !{!"double", !8, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 80}
!15 = !{!6, !7, i64 84}
!16 = !{!6, !12, i64 48}
!17 = !{!6, !10, i64 64}
!18 = !{!12, !12, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !10, i64 72}
!21 = !{!10, !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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