; 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_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.c_lst_pockets = type { ptr, ptr, ptr, i64, ptr }
%struct.node_pocket = type { ptr, ptr, ptr }
%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 }

@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.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; 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) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @write_pockets_single_pdb(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %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 i32, align 4
  %10 = 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 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call noalias ptr @fopen(ptr noundef %11, ptr noundef @.str.6)
  store ptr %12, ptr %10, align 8, !tbaa !5
  %13 = load ptr, ptr %10, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %148

15:                                               ; preds = %3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %32

18:                                               ; preds = %15
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.s_pdb, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %31

23:                                               ; preds = %18
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.s_pdb, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_pdb, ptr %28, i32 0, i32 10
  %30 = load i32, ptr %29, align 4, !tbaa !14
  call void @write_pdb_atoms(ptr noundef %24, ptr noundef %27, i32 noundef %30)
  br label %31

31:                                               ; preds = %23, %18
  br label %32

32:                                               ; preds = %31, %15
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %145

35:                                               ; preds = %32
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.c_lst_pockets, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.c_lst_pockets, ptr %39, i32 0, i32 2
  store ptr %38, ptr %40, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %135, %35
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.c_lst_pockets, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %144

46:                                               ; preds = %41
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.c_lst_pockets, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = getelementptr inbounds %struct.node_pocket, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = getelementptr inbounds %struct.s_pocket, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds %struct.c_lst_vertices, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.c_lst_pockets, ptr %56, i32 0, i32 2
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = getelementptr inbounds %struct.node_pocket, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = getelementptr inbounds %struct.s_pocket, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !21
  %63 = getelementptr inbounds %struct.c_lst_vertices, ptr %62, i32 0, i32 2
  store ptr %55, ptr %63, align 8, !tbaa !25
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %114, %46
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.c_lst_pockets, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds %struct.node_pocket, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !19
  %70 = getelementptr inbounds %struct.s_pocket, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = getelementptr inbounds %struct.c_lst_vertices, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %135

75:                                               ; preds = %64
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !9
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call ptr @strstr(ptr noundef %78, ptr noundef @.str.12) #6
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %95

81:                                               ; preds = %75
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.c_lst_pockets, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = getelementptr inbounds %struct.node_pocket, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds %struct.s_pocket, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !21
  %90 = getelementptr inbounds %struct.c_lst_vertices, ptr %89, i32 0, i32 2
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = getelementptr inbounds %struct.node_vertice, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !26
  %94 = load i32, ptr %9, align 4, !tbaa !9
  call void @write_pdb_vert(ptr noundef %82, ptr noundef %93, i32 noundef %94)
  br label %114

95:                                               ; preds = %75
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = call ptr @strstr(ptr noundef %96, ptr noundef @.str.13) #6
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %113

99:                                               ; preds = %95
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.c_lst_pockets, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !18
  %104 = getelementptr inbounds %struct.node_pocket, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !19
  %106 = getelementptr inbounds %struct.s_pocket, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !21
  %108 = getelementptr inbounds %struct.c_lst_vertices, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  %110 = getelementptr inbounds %struct.node_vertice, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !26
  %112 = load i32, ptr %9, align 4, !tbaa !9
  call void @write_mmcif_vert(ptr noundef %100, ptr noundef %111, i32 noundef %112)
  br label %113

113:                                              ; preds = %99, %95
  br label %114

114:                                              ; preds = %113, %81
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.c_lst_pockets, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = getelementptr inbounds %struct.node_pocket, ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = getelementptr inbounds %struct.s_pocket, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !21
  %122 = getelementptr inbounds %struct.c_lst_vertices, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !25
  %124 = getelementptr inbounds %struct.node_vertice, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !28
  store ptr %125, ptr %8, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.c_lst_pockets, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  %130 = getelementptr inbounds %struct.node_pocket, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = getelementptr inbounds %struct.s_pocket, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = getelementptr inbounds %struct.c_lst_vertices, ptr %133, i32 0, i32 2
  store ptr %126, ptr %134, align 8, !tbaa !25
  br label %64, !llvm.loop !29

135:                                              ; preds = %64
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.c_lst_pockets, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !18
  %139 = getelementptr inbounds %struct.node_pocket, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !31
  store ptr %140, ptr %7, align 8, !tbaa !5
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.c_lst_pockets, ptr %142, i32 0, i32 2
  store ptr %141, ptr %143, align 8, !tbaa !18
  br label %41, !llvm.loop !32

144:                                              ; preds = %41
  br label %145

145:                                              ; preds = %144, %32
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = call i32 @fclose(ptr noundef %146)
  br label %152

148:                                              ; preds = %3
  %149 = load ptr, ptr @stderr, align 8, !tbaa !5
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.5, ptr noundef %150) #5
  br label %152

152:                                              ; preds = %148, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @write_pdb_atoms(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strstr(ptr noundef, ptr noundef) #4

declare void @write_pdb_vert(ptr noundef, ptr noundef, i32 noundef) #2

declare void @write_mmcif_vert(ptr noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 16}
!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, !10, i64 76}
!15 = !{!16, !6, i64 0}
!16 = !{!"c_lst_pockets", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24, !6, i64 32}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 16}
!19 = !{!20, !6, i64 16}
!20 = !{!"node_pocket", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !6, i64 8}
!22 = !{!"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}
!23 = !{!24, !6, i64 0}
!24 = !{!"c_lst_vertices", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24}
!25 = !{!24, !6, i64 16}
!26 = !{!27, !6, i64 16}
!27 = !{!"node_vertice", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!27, !6, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!20, !6, i64 0}
!32 = distinct !{!32, !30}


; 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.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @write_pockets_single_pdb(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.6)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %43, label %5

5:                                                ; preds = %3
  %.not36 = icmp eq ptr %1, null
  br i1 %.not36, label %12, label %6

6:                                                ; preds = %5
  %7 = getelementptr inbounds i8, ptr %1, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not37 = icmp eq ptr %8, null
  br i1 %.not37, label %12, label %9

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %1, i64 76
  %11 = load i32, ptr %10, align 4, !tbaa !12
  tail call void @write_pdb_atoms(ptr noundef nonnull %4, ptr noundef nonnull %8, i32 noundef %11)
  br label %12

12:                                               ; preds = %6, %9, %5
  %.not38 = icmp eq ptr %2, null
  br i1 %.not38, label %.loopexit43, label %13

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %2, i64 16
  %storemerge46 = load ptr, ptr %2, align 8, !tbaa !13
  store ptr %storemerge46, ptr %14, align 8, !tbaa !14
  %.not3947 = icmp eq ptr %storemerge46, null
  br i1 %.not3947, label %.loopexit43, label %.lr.ph49

.loopexit:                                        ; preds = %33, %.lr.ph49
  %.lcssa = phi ptr [ %15, %.lr.ph49 ], [ %34, %33 ]
  %storemerge = load ptr, ptr %.lcssa, align 8, !tbaa !13
  store ptr %storemerge, ptr %14, align 8, !tbaa !14
  %.not39 = icmp eq ptr %storemerge, null
  br i1 %.not39, label %.loopexit43, label %.lr.ph49, !llvm.loop !17

.lr.ph49:                                         ; preds = %13, %.loopexit
  %15 = phi ptr [ %storemerge, %.loopexit ], [ %storemerge46, %13 ]
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !21
  %20 = load ptr, ptr %19, align 8, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr %20, ptr %21, align 8, !tbaa !25
  %.not4044 = icmp eq ptr %20, null
  br i1 %.not4044, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph49, %33
  %22 = phi ptr [ %41, %33 ], [ %20, %.lr.ph49 ]
  %.045 = phi i32 [ %23, %33 ], [ 0, %.lr.ph49 ]
  %23 = add nuw nsw i32 %.045, 1
  %24 = tail call ptr @strstr(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.12) #4
  %.not41 = icmp eq ptr %24, null
  br i1 %.not41, label %28, label %25

25:                                               ; preds = %.lr.ph
  %26 = getelementptr inbounds i8, ptr %22, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !26
  tail call void @write_pdb_vert(ptr noundef nonnull %4, ptr noundef %27, i32 noundef %23) #5
  br label %33

28:                                               ; preds = %.lr.ph
  %29 = tail call ptr @strstr(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.13) #4
  %.not42 = icmp eq ptr %29, null
  br i1 %.not42, label %33, label %30

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %22, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !26
  tail call void @write_mmcif_vert(ptr noundef nonnull %4, ptr noundef %32, i32 noundef %23) #5
  br label %33

33:                                               ; preds = %28, %30, %25
  %34 = load ptr, ptr %14, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !25
  %41 = load ptr, ptr %40, align 8, !tbaa !28
  store ptr %41, ptr %39, align 8, !tbaa !25
  %.not40 = icmp eq ptr %41, null
  br i1 %.not40, label %.loopexit, label %.lr.ph, !llvm.loop !29

.loopexit43:                                      ; preds = %.loopexit, %13, %12
  %42 = tail call i32 @fclose(ptr noundef nonnull %4)
  br label %46

43:                                               ; preds = %3
  %44 = load ptr, ptr @stderr, align 8, !tbaa !13
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.5, ptr noundef %0) #6
  br label %46

46:                                               ; preds = %43, %.loopexit43
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @write_pdb_atoms(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #2

declare void @write_pdb_vert(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @write_mmcif_vert(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: 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 willreturn memory(read) }
attributes #5 = { nounwind }
attributes #6 = { 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, !7, i64 16}
!6 = !{!"s_pdb", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !8, i64 116, !8, i64 199, !11, i64 700, !11, i64 704, !11, i64 708, !10, i64 712, !10, i64 716}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 76}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 16}
!15 = !{!"c_lst_pockets", !7, i64 0, !7, i64 8, !7, i64 16, !16, i64 24, !7, i64 32}
!16 = !{!"long", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !7, i64 16}
!20 = !{!"node_pocket", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!22, !7, i64 8}
!22 = !{!"s_pocket", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !8, i64 32, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!23 = !{!24, !7, i64 0}
!24 = !{!"c_lst_vertices", !7, i64 0, !7, i64 8, !7, i64 16, !16, i64 24}
!25 = !{!24, !7, i64 16}
!26 = !{!27, !7, i64 16}
!27 = !{!"node_vertice", !7, i64 0, !7, i64 8, !7, i64 16}
!28 = !{!27, !7, i64 0}
!29 = distinct !{!29, !18}


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