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

; 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_min_max_coords = type { float, float, float, float, float, float }
%struct.s_pdb_grid = type { ptr, ptr, i32, i32, i32, float }
%struct.s_atom_ptr_list = type { ptr, i32 }
%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 }

; 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 ptr @float_get_min_max_from_pdb(ptr noundef) #1

declare ptr @my_malloc(i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @init_coord_grid(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %16 = call ptr @my_malloc(i64 noundef 32)
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store float 5.000000e+00, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call ptr @float_get_min_max_from_pdb(ptr noundef %17)
  store ptr %18, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.s_min_max_coords, ptr %19, i32 0, i32 3
  %21 = load float, ptr %20, align 4, !tbaa !11
  store float %21, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.s_min_max_coords, ptr %22, i32 0, i32 4
  %24 = load float, ptr %23, align 4, !tbaa !13
  store float %24, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.s_min_max_coords, ptr %25, i32 0, i32 5
  %27 = load float, ptr %26, align 4, !tbaa !14
  store float %27, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_min_max_coords, ptr %28, i32 0, i32 0
  %30 = load float, ptr %29, align 4, !tbaa !15
  store float %30, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.s_min_max_coords, ptr %31, i32 0, i32 1
  %33 = load float, ptr %32, align 4, !tbaa !16
  store float %33, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.s_min_max_coords, ptr %34, i32 0, i32 2
  %36 = load float, ptr %35, align 4, !tbaa !17
  store float %36, ptr %11, align 4, !tbaa !9
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  call void @my_free(ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store float 5.000000e+00, ptr %15, align 4, !tbaa !9
  %38 = load float, ptr %4, align 4, !tbaa !9
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.s_pdb_grid, ptr %39, i32 0, i32 5
  store float %38, ptr %40, align 4, !tbaa !18
  %41 = load float, ptr %6, align 4, !tbaa !9
  %42 = fpext float %41 to double
  %43 = load float, ptr %15, align 4, !tbaa !9
  %44 = fpext float %43 to double
  %45 = call double @llvm.fmuladd.f64(double 3.000000e+01, double %44, double %42)
  %46 = load float, ptr %9, align 4, !tbaa !9
  %47 = fpext float %46 to double
  %48 = fsub double %45, %47
  %49 = fptosi double %48 to i32
  %50 = sitofp i32 %49 to float
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.s_pdb_grid, ptr %51, i32 0, i32 5
  %53 = load float, ptr %52, align 4, !tbaa !18
  %54 = fdiv float %50, %53
  %55 = fadd float 1.000000e+00, %54
  %56 = fptosi float %55 to i32
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.s_pdb_grid, ptr %57, i32 0, i32 2
  store i32 %56, ptr %58, align 8, !tbaa !21
  %59 = load float, ptr %7, align 4, !tbaa !9
  %60 = fpext float %59 to double
  %61 = load float, ptr %15, align 4, !tbaa !9
  %62 = fpext float %61 to double
  %63 = call double @llvm.fmuladd.f64(double 3.000000e+01, double %62, double %60)
  %64 = load float, ptr %10, align 4, !tbaa !9
  %65 = fpext float %64 to double
  %66 = fsub double %63, %65
  %67 = fptosi double %66 to i32
  %68 = sitofp i32 %67 to float
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.s_pdb_grid, ptr %69, i32 0, i32 5
  %71 = load float, ptr %70, align 4, !tbaa !18
  %72 = fdiv float %68, %71
  %73 = fadd float 1.000000e+00, %72
  %74 = fptosi float %73 to i32
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.s_pdb_grid, ptr %75, i32 0, i32 3
  store i32 %74, ptr %76, align 4, !tbaa !22
  %77 = load float, ptr %8, align 4, !tbaa !9
  %78 = fpext float %77 to double
  %79 = load float, ptr %15, align 4, !tbaa !9
  %80 = fpext float %79 to double
  %81 = call double @llvm.fmuladd.f64(double 3.000000e+01, double %80, double %78)
  %82 = load float, ptr %11, align 4, !tbaa !9
  %83 = fpext float %82 to double
  %84 = fsub double %81, %83
  %85 = fptosi double %84 to i32
  %86 = sitofp i32 %85 to float
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.s_pdb_grid, ptr %87, i32 0, i32 5
  %89 = load float, ptr %88, align 4, !tbaa !18
  %90 = fdiv float %86, %89
  %91 = fadd float 1.000000e+00, %90
  %92 = fptosi float %91 to i32
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.s_pdb_grid, ptr %93, i32 0, i32 4
  store i32 %92, ptr %94, align 8, !tbaa !23
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.s_pdb_grid, ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 8, !tbaa !21
  %98 = sext i32 %97 to i64
  %99 = mul i64 8, %98
  %100 = call ptr @my_malloc(i64 noundef %99)
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.s_pdb_grid, ptr %101, i32 0, i32 0
  store ptr %100, ptr %102, align 8, !tbaa !24
  store i32 0, ptr %12, align 4, !tbaa !25
  br label %103

103:                                              ; preds = %191, %1
  %104 = load i32, ptr %12, align 4, !tbaa !25
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.s_pdb_grid, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !21
  %108 = icmp slt i32 %104, %107
  br i1 %108, label %109, label %194

109:                                              ; preds = %103
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.s_pdb_grid, ptr %110, i32 0, i32 3
  %112 = load i32, ptr %111, align 4, !tbaa !22
  %113 = sext i32 %112 to i64
  %114 = mul i64 8, %113
  %115 = call ptr @my_malloc(i64 noundef %114)
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.s_pdb_grid, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = load i32, ptr %12, align 4, !tbaa !25
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds ptr, ptr %118, i64 %120
  store ptr %115, ptr %121, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !25
  br label %122

122:                                              ; preds = %187, %109
  %123 = load i32, ptr %13, align 4, !tbaa !25
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.s_pdb_grid, ptr %124, i32 0, i32 3
  %126 = load i32, ptr %125, align 4, !tbaa !22
  %127 = icmp slt i32 %123, %126
  br i1 %127, label %128, label %190

128:                                              ; preds = %122
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.s_pdb_grid, ptr %129, i32 0, i32 4
  %131 = load i32, ptr %130, align 8, !tbaa !23
  %132 = sext i32 %131 to i64
  %133 = mul i64 16, %132
  %134 = call ptr @my_malloc(i64 noundef %133)
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.s_pdb_grid, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = load i32, ptr %12, align 4, !tbaa !25
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds ptr, ptr %137, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = load i32, ptr %13, align 4, !tbaa !25
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  store ptr %134, ptr %144, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !25
  br label %145

145:                                              ; preds = %183, %128
  %146 = load i32, ptr %14, align 4, !tbaa !25
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.s_pdb_grid, ptr %147, i32 0, i32 4
  %149 = load i32, ptr %148, align 8, !tbaa !23
  %150 = icmp slt i32 %146, %149
  br i1 %150, label %151, label %186

151:                                              ; preds = %145
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.s_pdb_grid, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !24
  %155 = load i32, ptr %12, align 4, !tbaa !25
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load i32, ptr %13, align 4, !tbaa !25
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i32, ptr %14, align 4, !tbaa !25
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.s_atom_ptr_list, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.s_atom_ptr_list, ptr %165, i32 0, i32 1
  store i32 0, ptr %166, align 8, !tbaa !26
  %167 = call ptr @my_malloc(i64 noundef 8)
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.s_pdb_grid, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !24
  %171 = load i32, ptr %12, align 4, !tbaa !25
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds ptr, ptr %170, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i32, ptr %13, align 4, !tbaa !25
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds ptr, ptr %174, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load i32, ptr %14, align 4, !tbaa !25
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %struct.s_atom_ptr_list, ptr %178, i64 %180
  %182 = getelementptr inbounds %struct.s_atom_ptr_list, ptr %181, i32 0, i32 0
  store ptr %167, ptr %182, align 8, !tbaa !28
  br label %183

183:                                              ; preds = %151
  %184 = load i32, ptr %14, align 4, !tbaa !25
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %14, align 4, !tbaa !25
  br label %145, !llvm.loop !29

186:                                              ; preds = %145
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %13, align 4, !tbaa !25
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %13, align 4, !tbaa !25
  br label %122, !llvm.loop !31

190:                                              ; preds = %122
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %12, align 4, !tbaa !25
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %12, align 4, !tbaa !25
  br label %103, !llvm.loop !32

194:                                              ; preds = %103
  %195 = call ptr @my_malloc(i64 noundef 12)
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.s_pdb_grid, ptr %196, i32 0, i32 1
  store ptr %195, ptr %197, align 8, !tbaa !33
  %198 = load float, ptr %9, align 4, !tbaa !9
  %199 = fpext float %198 to double
  %200 = load float, ptr %15, align 4, !tbaa !9
  %201 = fpext float %200 to double
  %202 = call double @llvm.fmuladd.f64(double -1.500000e+01, double %201, double %199)
  %203 = fptrunc double %202 to float
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.s_pdb_grid, ptr %204, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !33
  %207 = getelementptr inbounds float, ptr %206, i64 0
  store float %203, ptr %207, align 4, !tbaa !9
  %208 = load float, ptr %10, align 4, !tbaa !9
  %209 = fpext float %208 to double
  %210 = load float, ptr %15, align 4, !tbaa !9
  %211 = fpext float %210 to double
  %212 = call double @llvm.fmuladd.f64(double -1.500000e+01, double %211, double %209)
  %213 = fptrunc double %212 to float
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.s_pdb_grid, ptr %214, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !33
  %217 = getelementptr inbounds float, ptr %216, i64 1
  store float %213, ptr %217, align 4, !tbaa !9
  %218 = load float, ptr %11, align 4, !tbaa !9
  %219 = fpext float %218 to double
  %220 = load float, ptr %15, align 4, !tbaa !9
  %221 = fpext float %220 to double
  %222 = call double @llvm.fmuladd.f64(double -1.500000e+01, double %221, double %219)
  %223 = fptrunc double %222 to float
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.s_pdb_grid, ptr %224, i32 0, i32 1
  %226 = load ptr, ptr %225, align 8, !tbaa !33
  %227 = getelementptr inbounds float, ptr %226, i64 2
  store float %223, ptr %227, align 4, !tbaa !9
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.s_pdb, ptr %229, i32 0, i32 1
  store ptr %228, ptr %230, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

declare void @my_free(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"s_min_max_coords", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !10, i64 20}
!15 = !{!12, !10, i64 0}
!16 = !{!12, !10, i64 4}
!17 = !{!12, !10, i64 8}
!18 = !{!19, !10, i64 28}
!19 = !{!"s_pdb_grid", !6, i64 0, !6, i64 8, !20, i64 16, !20, i64 20, !20, i64 24, !10, i64 28}
!20 = !{!"int", !7, i64 0}
!21 = !{!19, !20, i64 16}
!22 = !{!19, !20, i64 20}
!23 = !{!19, !20, i64 24}
!24 = !{!19, !6, i64 0}
!25 = !{!20, !20, i64 0}
!26 = !{!27, !20, i64 8}
!27 = !{!"s_atom_ptr_list", !6, i64 0, !20, i64 8}
!28 = !{!27, !6, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = !{!19, !6, i64 8}
!34 = !{!35, !6, i64 8}
!35 = !{!"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, !20, i64 72, !20, i64 76, !20, i64 80, !20, i64 84, !20, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !7, i64 116, !7, i64 199, !10, i64 700, !10, i64 704, !10, i64 708, !20, i64 712, !20, i64 716}


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

%struct.s_atom_ptr_list = type { ptr, i32 }

; Function Attrs: nounwind uwtable
declare dso_local ptr @float_get_min_max_from_pdb(ptr noundef) local_unnamed_addr #0

declare ptr @my_malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @init_coord_grid(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call ptr @my_malloc(i64 noundef 32) #2
  %3 = tail call ptr @float_get_min_max_from_pdb(ptr noundef %0)
  %4 = getelementptr inbounds i8, ptr %3, i64 12
  %5 = getelementptr inbounds i8, ptr %3, i64 20
  %6 = load float, ptr %5, align 4, !tbaa !5
  %7 = load <2 x float>, ptr %3, align 4, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  %9 = load float, ptr %8, align 4, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %2, i64 28
  %11 = getelementptr inbounds i8, ptr %2, i64 16
  %12 = getelementptr inbounds i8, ptr %2, i64 20
  %13 = load <2 x float>, ptr %4, align 4, !tbaa !10
  tail call void @my_free(ptr noundef nonnull %3) #2
  store float 5.000000e+00, ptr %10, align 4, !tbaa !12
  %14 = fpext <2 x float> %13 to <2 x double>
  %15 = fadd <2 x double> %14, <double 1.500000e+02, double 1.500000e+02>
  %16 = fpext <2 x float> %7 to <2 x double>
  %17 = fsub <2 x double> %15, %16
  %18 = fptosi <2 x double> %17 to <2 x i32>
  %19 = sitofp <2 x i32> %18 to <2 x float>
  %20 = fdiv <2 x float> %19, <float 5.000000e+00, float 5.000000e+00>
  %21 = fadd <2 x float> %20, <float 1.000000e+00, float 1.000000e+00>
  %22 = fptosi <2 x float> %21 to <2 x i32>
  store <2 x i32> %22, ptr %11, align 8, !tbaa !16
  %23 = fpext float %6 to double
  %24 = fadd double %23, 1.500000e+02
  %25 = fpext float %9 to double
  %26 = fsub double %24, %25
  %27 = fptosi double %26 to i32
  %28 = sitofp i32 %27 to float
  %29 = fdiv float %28, 5.000000e+00
  %30 = fadd float %29, 1.000000e+00
  %31 = fptosi float %30 to i32
  %32 = getelementptr inbounds i8, ptr %2, i64 24
  store i32 %31, ptr %32, align 8, !tbaa !17
  %33 = extractelement <2 x i32> %22, i64 0
  %34 = sext i32 %33 to i64
  %35 = shl nsw i64 %34, 3
  %36 = tail call ptr @my_malloc(i64 noundef %35) #2
  store ptr %36, ptr %2, align 8, !tbaa !18
  %37 = load i32, ptr %11, align 8, !tbaa !19
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph71.preheader, label %._crit_edge72

.lr.ph71.preheader:                               ; preds = %1
  %.pre = load i32, ptr %12, align 4, !tbaa !20
  br label %.lr.ph71

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %._crit_edge68
  %39 = phi i32 [ %.pre, %.lr.ph71.preheader ], [ %77, %._crit_edge68 ]
  %indvars.iv77 = phi i64 [ 0, %.lr.ph71.preheader ], [ %indvars.iv.next78, %._crit_edge68 ]
  %40 = sext i32 %39 to i64
  %41 = shl nsw i64 %40, 3
  %42 = tail call ptr @my_malloc(i64 noundef %41) #2
  %43 = load ptr, ptr %2, align 8, !tbaa !18
  %44 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv77
  store ptr %42, ptr %44, align 8, !tbaa !21
  %45 = load i32, ptr %12, align 4, !tbaa !20
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph67.preheader, label %._crit_edge68

.lr.ph67.preheader:                               ; preds = %.lr.ph71
  %.pre80 = load i32, ptr %32, align 8, !tbaa !17
  br label %.lr.ph67

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %._crit_edge
  %47 = phi i32 [ %.pre80, %.lr.ph67.preheader ], [ %73, %._crit_edge ]
  %indvars.iv74 = phi i64 [ 0, %.lr.ph67.preheader ], [ %indvars.iv.next75, %._crit_edge ]
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 4
  %50 = tail call ptr @my_malloc(i64 noundef %49) #2
  %51 = load ptr, ptr %2, align 8, !tbaa !18
  %52 = getelementptr inbounds ptr, ptr %51, i64 %indvars.iv77
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv74
  store ptr %50, ptr %54, align 8, !tbaa !21
  %55 = load i32, ptr %32, align 8, !tbaa !17
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph67
  %.pre81 = load ptr, ptr %2, align 8, !tbaa !18
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %57 = phi ptr [ %.pre81, %.lr.ph.preheader ], [ %64, %.lr.ph ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %58 = getelementptr inbounds ptr, ptr %57, i64 %indvars.iv77
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = getelementptr inbounds ptr, ptr %59, i64 %indvars.iv74
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  %62 = getelementptr inbounds %struct.s_atom_ptr_list, ptr %61, i64 %indvars.iv, i32 1
  store i32 0, ptr %62, align 8, !tbaa !22
  %63 = tail call ptr @my_malloc(i64 noundef 8) #2
  %64 = load ptr, ptr %2, align 8, !tbaa !18
  %65 = getelementptr inbounds ptr, ptr %64, i64 %indvars.iv77
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv74
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = getelementptr inbounds %struct.s_atom_ptr_list, ptr %68, i64 %indvars.iv
  store ptr %63, ptr %69, align 8, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %70 = load i32, ptr %32, align 8, !tbaa !17
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next, %71
  br i1 %72, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph67
  %73 = phi i32 [ %55, %.lr.ph67 ], [ %70, %.lr.ph ]
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %74 = load i32, ptr %12, align 4, !tbaa !20
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next75, %75
  br i1 %76, label %.lr.ph67, label %._crit_edge68, !llvm.loop !27

._crit_edge68:                                    ; preds = %._crit_edge, %.lr.ph71
  %77 = phi i32 [ %45, %.lr.ph71 ], [ %74, %._crit_edge ]
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %78 = load i32, ptr %11, align 8, !tbaa !19
  %79 = sext i32 %78 to i64
  %80 = icmp slt i64 %indvars.iv.next78, %79
  br i1 %80, label %.lr.ph71, label %._crit_edge72, !llvm.loop !28

._crit_edge72:                                    ; preds = %._crit_edge68, %1
  %81 = tail call ptr @my_malloc(i64 noundef 12) #2
  %82 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %81, ptr %82, align 8, !tbaa !29
  %83 = fadd <2 x float> %7, <float -7.500000e+01, float -7.500000e+01>
  store <2 x float> %83, ptr %81, align 4, !tbaa !10
  %84 = fadd float %9, -7.500000e+01
  %85 = getelementptr inbounds i8, ptr %81, i64 8
  store float %84, ptr %85, align 4, !tbaa !10
  %86 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %2, ptr %86, align 8, !tbaa !30
  ret void
}

declare void @my_free(ptr noundef) local_unnamed_addr #1

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 = { 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, !7, i64 20}
!6 = !{!"s_min_max_coords", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!13, !7, i64 28}
!13 = !{!"s_pdb_grid", !14, i64 0, !14, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !7, i64 28}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!13, !15, i64 24}
!18 = !{!13, !14, i64 0}
!19 = !{!13, !15, i64 16}
!20 = !{!13, !15, i64 20}
!21 = !{!14, !14, i64 0}
!22 = !{!23, !15, i64 8}
!23 = !{!"s_atom_ptr_list", !14, i64 0, !15, i64 8}
!24 = !{!23, !14, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = !{!13, !14, i64 8}
!30 = !{!31, !14, i64 8}
!31 = !{!"s_pdb", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !8, i64 116, !8, i64 199, !7, i64 700, !7, i64 704, !7, i64 708, !15, i64 712, !15, i64 716}


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