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

; 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_pocket = type { ptr, ptr, float, float, float, float, [3 x float], i32, i32, i32, i32 }
%struct.c_lst_vertices = type { ptr, ptr, ptr, i64 }
%struct.node_vertice = type { ptr, ptr, ptr }
%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 }

@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 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: nounwind uwtable
define dso_local void @write_pocket_pdb_DB(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 ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  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) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %16 = call ptr @my_malloc(i64 noundef 80)
  store ptr %16, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call noalias ptr @fopen(ptr noundef %17, ptr noundef @.str.6)
  store ptr %18, ptr %14, align 8, !tbaa !5
  %19 = load ptr, ptr %14, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %134

21:                                               ; preds = %3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %134

24:                                               ; preds = %21
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.s_pocket, ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %struct.c_lst_vertices, ptr %27, i32 0, i32 3
  %29 = load i64, ptr %28, align 8, !tbaa !14
  %30 = mul i64 %29, 8
  %31 = call ptr @my_malloc(i64 noundef %30)
  store ptr %31, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.s_pocket, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct.c_lst_vertices, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  store ptr %36, ptr %15, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %40, %24
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %53

40:                                               ; preds = %37
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.node_vertice, ptr %41, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  store ptr %43, ptr %47, align 8, !tbaa !5
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.node_vertice, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  store ptr %50, ptr %15, align 8, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %8, align 4, !tbaa !9
  br label %37, !llvm.loop !21

53:                                               ; preds = %37
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call ptr @get_surrounding_atoms_idx(ptr noundef %54, i32 noundef %55, ptr noundef %56, ptr noundef %11)
  store ptr %57, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %126, %53
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %129

62:                                               ; preds = %58
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.s_pdb, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %65, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %73, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.s_atm, ptr %75, i32 0, i32 9
  %77 = getelementptr inbounds [7 x i8], ptr %76, i64 0, i64 0
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.s_atm, ptr %78, i32 0, i32 14
  %80 = load i32, ptr %79, align 8, !tbaa !25
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.s_atm, ptr %81, i32 0, i32 8
  %83 = getelementptr inbounds [5 x i8], ptr %82, i64 0, i64 0
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.s_atm, ptr %84, i32 0, i32 29
  %86 = load i8, ptr %85, align 1, !tbaa !28
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.s_atm, ptr %87, i32 0, i32 13
  %89 = getelementptr inbounds [8 x i8], ptr %88, i64 0, i64 0
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.s_atm, ptr %90, i32 0, i32 10
  %92 = getelementptr inbounds [16 x i8], ptr %91, i64 0, i64 0
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.s_atm, ptr %93, i32 0, i32 16
  %95 = load i32, ptr %94, align 8, !tbaa !29
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.s_atm, ptr %96, i32 0, i32 28
  %98 = load i8, ptr %97, align 8, !tbaa !30
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_atm, ptr %99, i32 0, i32 5
  %101 = load float, ptr %100, align 4, !tbaa !31
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.s_atm, ptr %102, i32 0, i32 6
  %104 = load float, ptr %103, align 8, !tbaa !32
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.s_atm, ptr %105, i32 0, i32 7
  %107 = load float, ptr %106, align 4, !tbaa !33
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.s_atm, ptr %108, i32 0, i32 26
  %110 = load float, ptr %109, align 8, !tbaa !34
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.s_atm, ptr %111, i32 0, i32 25
  %113 = load float, ptr %112, align 4, !tbaa !35
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.s_atm, ptr %114, i32 0, i32 20
  %116 = load i32, ptr %115, align 8, !tbaa !36
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.s_atm, ptr %117, i32 0, i32 12
  %119 = getelementptr inbounds [3 x i8], ptr %118, i64 0, i64 0
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.s_atm, ptr %120, i32 0, i32 19
  %122 = load i32, ptr %121, align 4, !tbaa !37
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.s_atm, ptr %123, i32 0, i32 27
  %125 = load float, ptr %124, align 4, !tbaa !38
  call void @write_pdb_atom_line(ptr noundef %74, ptr noundef %77, i32 noundef %80, ptr noundef %83, i8 noundef signext %86, ptr noundef %89, ptr noundef %92, i32 noundef %95, i8 noundef signext %98, float noundef %101, float noundef %104, float noundef %107, float noundef %110, float noundef %113, i32 noundef %116, ptr noundef %119, i32 noundef %122, float noundef %125)
  br label %126

126:                                              ; preds = %62
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %7, align 4, !tbaa !9
  br label %58, !llvm.loop !39

129:                                              ; preds = %58
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.7) #4
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = call i32 @fclose(ptr noundef %132)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %145

134:                                              ; preds = %21, %3
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = icmp ne ptr %135, null
  br i1 %136, label %141, label %137

137:                                              ; preds = %134
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.5, ptr noundef %139) #4
  br label %144

141:                                              ; preds = %134
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.8) #4
  br label %144

144:                                              ; preds = %141, %137
  br label %145

145:                                              ; preds = %144, %129
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  call void @my_free(ptr noundef %146)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

declare ptr @my_malloc(i64 noundef) #3

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

declare void @write_pdb_atom_line(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, ptr noundef, ptr noundef, i32 noundef, i8 noundef signext, float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef, ptr noundef, i32 noundef, float noundef) #3

declare void @my_free(ptr noundef) #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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, !6, i64 8}
!12 = !{!"s_pocket", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !7, i64 32, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !16, i64 24}
!15 = !{!"c_lst_vertices", !6, i64 0, !6, i64 8, !6, i64 16, !16, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !6, i64 0}
!18 = !{!19, !6, i64 16}
!19 = !{!"node_vertice", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!19, !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !6, i64 24}
!24 = !{!"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}
!25 = !{!26, !10, i64 88}
!26 = !{!"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, !27, i64 164, !6, i64 168, !10, i64 176}
!27 = !{!"short", !7, i64 0}
!28 = !{!26, !7, i64 145}
!29 = !{!26, !10, i64 96}
!30 = !{!26, !7, i64 144}
!31 = !{!26, !13, i64 20}
!32 = !{!26, !13, i64 24}
!33 = !{!26, !13, i64 28}
!34 = !{!26, !13, i64 136}
!35 = !{!26, !13, i64 132}
!36 = !{!26, !10, i64 112}
!37 = !{!26, !10, i64 108}
!38 = !{!26, !13, i64 140}
!39 = distinct !{!39, !22}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @write_pocket_pdb_DB(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca i32, align 4
  %5 = tail call ptr @my_malloc(i64 noundef 80) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  %6 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.6)
  %7 = icmp ne ptr %6, null
  %8 = icmp ne ptr %1, null
  %or.cond = and i1 %8, %7
  br i1 %or.cond, label %9, label %66

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %11, i64 24
  %13 = load i64, ptr %12, align 8, !tbaa !13
  %14 = shl i64 %13, 3
  %15 = tail call ptr @my_malloc(i64 noundef %14) #4
  %16 = load ptr, ptr %10, align 8, !tbaa !9
  %.046 = load ptr, ptr %16, align 8, !tbaa !16
  %.not47 = icmp eq ptr %.046, null
  br i1 %.not47, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %9 ]
  %.049 = phi ptr [ %.0, %.lr.ph ], [ %.046, %9 ]
  %17 = getelementptr inbounds i8, ptr %.049, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv
  store ptr %18, ptr %19, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.0 = load ptr, ptr %.049, align 8, !tbaa !16
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !19

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %20 = trunc nuw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %9
  %.043.lcssa = phi i32 [ 0, %9 ], [ %20, %._crit_edge.loopexit ]
  %21 = call ptr @get_surrounding_atoms_idx(ptr noundef %15, i32 noundef %.043.lcssa, ptr noundef %2, ptr noundef nonnull %4) #4
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %2, i64 24
  br label %25

25:                                               ; preds = %.lr.ph52, %25
  %indvars.iv55 = phi i64 [ 0, %.lr.ph52 ], [ %indvars.iv.next56, %25 ]
  %26 = load ptr, ptr %24, align 8, !tbaa !21
  %27 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv55
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %26, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %31, i64 37
  %33 = getelementptr inbounds i8, ptr %31, i64 88
  %34 = load i32, ptr %33, align 8, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %31, i64 32
  %36 = getelementptr inbounds i8, ptr %31, i64 145
  %37 = load i8, ptr %36, align 1, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %31, i64 79
  %39 = getelementptr inbounds i8, ptr %31, i64 44
  %40 = getelementptr inbounds i8, ptr %31, i64 96
  %41 = load i32, ptr %40, align 8, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %31, i64 144
  %43 = load i8, ptr %42, align 8, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %31, i64 20
  %45 = load float, ptr %44, align 4, !tbaa !29
  %46 = getelementptr inbounds i8, ptr %31, i64 24
  %47 = load float, ptr %46, align 8, !tbaa !30
  %48 = getelementptr inbounds i8, ptr %31, i64 28
  %49 = load float, ptr %48, align 4, !tbaa !31
  %50 = getelementptr inbounds i8, ptr %31, i64 136
  %51 = load float, ptr %50, align 8, !tbaa !32
  %52 = getelementptr inbounds i8, ptr %31, i64 132
  %53 = load float, ptr %52, align 4, !tbaa !33
  %54 = getelementptr inbounds i8, ptr %31, i64 112
  %55 = load i32, ptr %54, align 8, !tbaa !34
  %56 = getelementptr inbounds i8, ptr %31, i64 76
  %57 = getelementptr inbounds i8, ptr %31, i64 108
  %58 = load i32, ptr %57, align 4, !tbaa !35
  %59 = getelementptr inbounds i8, ptr %31, i64 140
  %60 = load float, ptr %59, align 4, !tbaa !36
  call void @write_pdb_atom_line(ptr noundef nonnull %6, ptr noundef nonnull %32, i32 noundef %34, ptr noundef nonnull %35, i8 noundef signext %37, ptr noundef nonnull %38, ptr noundef nonnull %39, i32 noundef %41, i8 noundef signext %43, float noundef %45, float noundef %47, float noundef %49, float noundef %51, float noundef %53, i32 noundef %55, ptr noundef nonnull %56, i32 noundef %58, float noundef %60) #4
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next56, %62
  br i1 %63, label %25, label %._crit_edge53, !llvm.loop !37

._crit_edge53:                                    ; preds = %25, %._crit_edge
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.7) #4
  %65 = call i32 @fclose(ptr noundef nonnull %6)
  br label %72

66:                                               ; preds = %3
  %67 = load ptr, ptr @stderr, align 8, !tbaa !16
  br i1 %7, label %70, label %68

68:                                               ; preds = %66
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.5, ptr noundef %0) #5
  br label %72

70:                                               ; preds = %66
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.8) #5
  br label %72

72:                                               ; preds = %68, %70, %._crit_edge53
  call void @my_free(ptr noundef %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

declare ptr @my_malloc(i64 noundef) local_unnamed_addr #3

declare ptr @get_surrounding_atoms_idx(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @write_pdb_atom_line(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, ptr noundef, ptr noundef, i32 noundef, i8 noundef signext, float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef, ptr noundef, i32 noundef, float noundef) local_unnamed_addr #3

declare void @my_free(ptr noundef) local_unnamed_addr #3

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 }
attributes #5 = { cold 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"s_pocket", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !7, i64 32, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !15, i64 24}
!14 = !{!"c_lst_vertices", !11, i64 0, !11, i64 8, !11, i64 16, !15, i64 24}
!15 = !{!"long", !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 16}
!18 = !{!"node_vertice", !11, i64 0, !11, i64 8, !11, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !11, i64 24}
!22 = !{!"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}
!23 = !{!24, !6, i64 88}
!24 = !{!"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, !25, i64 164, !11, i64 168, !6, i64 176}
!25 = !{!"short", !7, i64 0}
!26 = !{!24, !7, i64 145}
!27 = !{!24, !6, i64 96}
!28 = !{!24, !7, i64 144}
!29 = !{!24, !12, i64 20}
!30 = !{!24, !12, i64 24}
!31 = !{!24, !12, i64 28}
!32 = !{!24, !12, i64 136}
!33 = !{!24, !12, i64 132}
!34 = !{!24, !6, i64 112}
!35 = !{!24, !6, i64 108}
!36 = !{!24, !12, i64 140}
!37 = distinct !{!37, !20}


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