; LLVM IR from Discngine/fpocket :: src (asa)

; 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.s_pdb = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, float, float, float, float, float, float, [83 x i8], [500 x i8], float, float, float, i32, i32 }
%struct.s_atm = type { i32, float, float, float, float, float, float, float, [5 x i8], [7 x i8], [16 x i8], [16 x i8], [3 x i8], [8 x i8], i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i8, i8, float, float, float, float, i16, ptr, i32 }
%struct.s_vvertice = type { i32, i32, i32, i32, i32, float, float, float, float, i32, i32, [4 x i32], [4 x ptr], [3 x float], float }

@.str.1 = external hidden unnamed_addr constant [2 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
define dso_local ptr @get_surrounding_atoms_idx(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %143, %4
  %16 = load i32, ptr %11, align 4, !tbaa !9
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.s_pdb, ptr %17, i32 0, i32 10
  %19 = load i32, ptr %18, align 4, !tbaa !11
  %20 = icmp slt i32 %16, %19
  br i1 %20, label %21, label %146

21:                                               ; preds = %15
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.s_pdb, ptr %22, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %24, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.s_atm, ptr %29, i32 0, i32 12
  %31 = getelementptr inbounds [3 x i8], ptr %30, i64 0, i64 0
  %32 = call i32 @strncmp(ptr noundef %31, ptr noundef @.str.1, i64 noundef 1) #7
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %142

34:                                               ; preds = %21
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %138, %34
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %43

39:                                               ; preds = %35
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  %42 = xor i1 %41, true
  br label %43

43:                                               ; preds = %39, %35
  %44 = phi i1 [ false, %35 ], [ %42, %39 ]
  br i1 %44, label %45, label %141

45:                                               ; preds = %43
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = call i32 @in_tab(ptr noundef %46, i32 noundef %48, i32 noundef %49)
  store i32 %50, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %137, label %53

53:                                               ; preds = %45
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.s_atm, ptr %54, i32 0, i32 5
  %56 = load float, ptr %55, align 4, !tbaa !15
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.s_atm, ptr %57, i32 0, i32 6
  %59 = load float, ptr %58, align 8, !tbaa !18
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.s_atm, ptr %60, i32 0, i32 7
  %62 = load float, ptr %61, align 4, !tbaa !19
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %63, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.s_vvertice, ptr %67, i32 0, i32 6
  %69 = load float, ptr %68, align 8, !tbaa !20
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.s_vvertice, ptr %74, i32 0, i32 7
  %76 = load float, ptr %75, align 4, !tbaa !22
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.s_vvertice, ptr %81, i32 0, i32 8
  %83 = load float, ptr %82, align 8, !tbaa !23
  %84 = call float @ddist(float noundef %56, float noundef %59, float noundef %62, float noundef %69, float noundef %76, float noundef %83)
  %85 = fpext float %84 to double
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds ptr, ptr %86, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.s_vvertice, ptr %90, i32 0, i32 5
  %92 = load float, ptr %91, align 4, !tbaa !24
  %93 = fpext float %92 to double
  %94 = fadd double %93, 1.000000e+00
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_vvertice, ptr %99, i32 0, i32 5
  %101 = load float, ptr %100, align 4, !tbaa !24
  %102 = fpext float %101 to double
  %103 = fadd double %102, 1.000000e+00
  %104 = fmul double %94, %103
  %105 = fcmp olt double %85, %104
  br i1 %105, label %106, label %137

106:                                              ; preds = %53
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %109, ptr %110, align 4, !tbaa !9
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %122

113:                                              ; preds = %106
  %114 = call noalias ptr @malloc(i64 noundef 4) #8
  store ptr %114, ptr %10, align 8, !tbaa !5
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %116, i64 %120
  store i32 %115, ptr %121, align 4, !tbaa !9
  br label %136

122:                                              ; preds = %106
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = mul i64 4, %126
  %128 = call ptr @realloc(ptr noundef %123, i64 noundef %127) #9
  store ptr %128, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = sub nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %130, i64 %134
  store i32 %129, ptr %135, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %122, %113
  br label %137

137:                                              ; preds = %136, %53, %45
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %12, align 4, !tbaa !9
  br label %35, !llvm.loop !25

141:                                              ; preds = %43
  br label %142

142:                                              ; preds = %141, %21
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %11, align 4, !tbaa !9
  br label %15, !llvm.loop !27

146:                                              ; preds = %15
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret ptr %147
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @in_tab(ptr noundef, i32 noundef, i32 noundef) #3

declare float @ddist(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #5

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 willreturn memory(read) "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 allocsize(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 #5 = { nounwind allocsize(1) "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind allocsize(1) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 76}
!12 = !{!"s_pdb", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !7, i64 116, !7, i64 199, !13, i64 700, !13, i64 704, !13, i64 708, !10, i64 712, !10, i64 716}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 24}
!15 = !{!16, !13, i64 20}
!16 = !{!"s_atm", !10, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !7, i64 32, !7, i64 37, !7, i64 44, !7, i64 60, !7, i64 76, !7, i64 79, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !7, i64 144, !7, i64 145, !13, i64 148, !13, i64 152, !13, i64 156, !13, i64 160, !17, i64 164, !6, i64 168, !10, i64 176}
!17 = !{!"short", !7, i64 0}
!18 = !{!16, !13, i64 24}
!19 = !{!16, !13, i64 28}
!20 = !{!21, !13, i64 24}
!21 = !{!"s_vvertice", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !10, i64 36, !10, i64 40, !7, i64 44, !7, i64 64, !7, i64 96, !13, i64 108}
!22 = !{!21, !13, i64 28}
!23 = !{!21, !13, i64 32}
!24 = !{!21, !13, i64 20}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @get_surrounding_atoms_idx(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  store i32 0, ptr %3, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 76
  %6 = load i32, ptr %5, align 4, !tbaa !9
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph49, label %._crit_edge

.lr.ph49:                                         ; preds = %4
  %8 = getelementptr inbounds i8, ptr %2, i64 24
  %rhsc = load i8, ptr @.str.1, align 1
  %9 = icmp sgt i32 %1, 0
  br i1 %9, label %.lr.ph49.split.us.preheader, label %._crit_edge

.lr.ph49.split.us.preheader:                      ; preds = %.lr.ph49
  %10 = zext nneg i32 %1 to i64
  br label %.lr.ph49.split.us

.lr.ph49.split.us:                                ; preds = %.lr.ph49.split.us.preheader, %..loopexit_crit_edge.us
  %11 = phi i32 [ %6, %.lr.ph49.split.us.preheader ], [ %57, %..loopexit_crit_edge.us ]
  %indvars.iv53 = phi i64 [ 0, %.lr.ph49.split.us.preheader ], [ %indvars.iv.next54, %..loopexit_crit_edge.us ]
  %.04146.us = phi ptr [ null, %.lr.ph49.split.us.preheader ], [ %.3.us, %..loopexit_crit_edge.us ]
  %12 = load ptr, ptr %8, align 8, !tbaa !13
  %13 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv53
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %14, i64 76
  %lhsc.us = load i8, ptr %15, align 1
  %.not.us = icmp eq i8 %lhsc.us, %rhsc
  br i1 %.not.us, label %..loopexit_crit_edge.us, label %.preheader.us

16:                                               ; preds = %.preheader.us, %54
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %54 ]
  %.144.us = phi ptr [ %.04146.us, %.preheader.us ], [ %.2.us, %54 ]
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = tail call i32 @in_tab(ptr noundef %.144.us, i32 noundef %17, i32 noundef %63) #4
  %.not43.us = icmp eq i32 %18, 0
  br i1 %.not43.us, label %19, label %..loopexit_crit_edge.us.loopexit

19:                                               ; preds = %16
  %20 = load float, ptr %60, align 4, !tbaa !15
  %21 = load float, ptr %61, align 8, !tbaa !18
  %22 = load float, ptr %62, align 4, !tbaa !19
  %23 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  %26 = load float, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %24, i64 28
  %28 = load float, ptr %27, align 4, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %24, i64 32
  %30 = load float, ptr %29, align 8, !tbaa !23
  %31 = tail call float @ddist(float noundef %20, float noundef %21, float noundef %22, float noundef %26, float noundef %28, float noundef %30) #4
  %32 = fpext float %31 to double
  %33 = load ptr, ptr %23, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %33, i64 20
  %35 = load float, ptr %34, align 4, !tbaa !24
  %36 = fpext float %35 to double
  %37 = fadd double %36, 1.000000e+00
  %38 = fmul double %37, %37
  %39 = fcmp ogt double %38, %32
  br i1 %39, label %40, label %54

40:                                               ; preds = %19
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  %43 = icmp eq ptr %.144.us, null
  br i1 %43, label %49, label %44

44:                                               ; preds = %40
  %45 = sext i32 %42 to i64
  %46 = shl nsw i64 %45, 2
  %47 = tail call ptr @realloc(ptr noundef nonnull %.144.us, i64 noundef %46) #5
  %48 = load i32, ptr %3, align 4, !tbaa !5
  br label %.sink.split

49:                                               ; preds = %40
  %50 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #6
  br label %.sink.split

.sink.split:                                      ; preds = %44, %49
  %.sink61 = phi i32 [ %42, %49 ], [ %48, %44 ]
  %.sink = phi ptr [ %50, %49 ], [ %47, %44 ]
  %51 = sext i32 %.sink61 to i64
  %52 = getelementptr i32, ptr %.sink, i64 %51
  %53 = getelementptr i8, ptr %52, i64 -4
  store i32 %63, ptr %53, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %.sink.split, %19
  %.2.us = phi ptr [ %.144.us, %19 ], [ %.sink, %.sink.split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = icmp ult i64 %indvars.iv.next, %10
  %56 = and i1 %55, %.not43.us
  br i1 %56, label %16, label %..loopexit_crit_edge.us.loopexit, !llvm.loop !25

..loopexit_crit_edge.us.loopexit:                 ; preds = %16, %54
  %.2.us58 = phi ptr [ %.2.us, %54 ], [ %.144.us, %16 ]
  %.pre = load i32, ptr %5, align 4, !tbaa !9
  br label %..loopexit_crit_edge.us

..loopexit_crit_edge.us:                          ; preds = %..loopexit_crit_edge.us.loopexit, %.lr.ph49.split.us
  %57 = phi i32 [ %11, %.lr.ph49.split.us ], [ %.pre, %..loopexit_crit_edge.us.loopexit ]
  %.3.us = phi ptr [ %.04146.us, %.lr.ph49.split.us ], [ %.2.us58, %..loopexit_crit_edge.us.loopexit ]
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next54, %58
  br i1 %59, label %.lr.ph49.split.us, label %._crit_edge, !llvm.loop !27

.preheader.us:                                    ; preds = %.lr.ph49.split.us
  %60 = getelementptr inbounds i8, ptr %14, i64 20
  %61 = getelementptr inbounds i8, ptr %14, i64 24
  %62 = getelementptr inbounds i8, ptr %14, i64 28
  %63 = trunc nuw nsw i64 %indvars.iv53 to i32
  br label %16

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us, %.lr.ph49, %4
  %.041.lcssa = phi ptr [ null, %4 ], [ null, %.lr.ph49 ], [ %.3.us, %..loopexit_crit_edge.us ]
  ret ptr %.041.lcssa
}

declare i32 @in_tab(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare float @ddist(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) 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 = { "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(1) }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 76}
!10 = !{!"s_pdb", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !7, i64 116, !7, i64 199, !12, i64 700, !12, i64 704, !12, i64 708, !6, i64 712, !6, i64 716}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 24}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !12, i64 20}
!16 = !{!"s_atm", !6, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !7, i64 32, !7, i64 37, !7, i64 44, !7, i64 60, !7, i64 76, !7, i64 79, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !7, i64 144, !7, i64 145, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !17, i64 164, !11, i64 168, !6, i64 176}
!17 = !{!"short", !7, i64 0}
!18 = !{!16, !12, i64 24}
!19 = !{!16, !12, i64 28}
!20 = !{!21, !12, i64 24}
!21 = !{!"s_vvertice", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 36, !6, i64 40, !7, i64 44, !7, i64 64, !7, i64 96, !12, i64 108}
!22 = !{!21, !12, i64 28}
!23 = !{!21, !12, i64 32}
!24 = !{!21, !12, i64 20}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


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