; 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.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@atomSiteHeader = external hidden constant [372 x i8], align 16
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 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
declare ptr @strcpy(ptr noundef, ptr noundef) #1

declare void @remove_ext(ptr noundef) #2

declare void @remove_path(ptr noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @write_pockets_single_mmcif(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %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 [250 x i8], align 16
  %11 = 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 250, ptr %10) #5
  %12 = getelementptr inbounds [250 x i8], ptr %10, i64 0, i64 0
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call ptr @strcpy(ptr noundef %12, ptr noundef %13) #5
  %15 = getelementptr inbounds [250 x i8], ptr %10, i64 0, i64 0
  call void @remove_ext(ptr noundef %15)
  %16 = getelementptr inbounds [250 x i8], ptr %10, i64 0, i64 0
  call void @remove_path(ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %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 %11, align 8, !tbaa !5
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = getelementptr inbounds [250 x i8], ptr %10, i64 0, i64 0
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.9, ptr noundef %20) #5
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.10, ptr noundef @atomSiteHeader) #5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %161

26:                                               ; preds = %3
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %43

29:                                               ; preds = %26
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.s_pdb, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %42

34:                                               ; preds = %29
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.s_pdb, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.s_pdb, ptr %39, i32 0, i32 10
  %41 = load i32, ptr %40, align 4, !tbaa !14
  call void @write_mmcif_atoms(ptr noundef %35, ptr noundef %38, i32 noundef %41)
  br label %42

42:                                               ; preds = %34, %29
  br label %43

43:                                               ; preds = %42, %26
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %156

46:                                               ; preds = %43
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.c_lst_pockets, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.c_lst_pockets, ptr %50, i32 0, i32 2
  store ptr %49, ptr %51, align 8, !tbaa !18
  br label %52

52:                                               ; preds = %146, %46
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.c_lst_pockets, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %155

57:                                               ; preds = %52
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.c_lst_pockets, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = getelementptr inbounds %struct.node_pocket, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds %struct.s_pocket, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds %struct.c_lst_vertices, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !23
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.c_lst_pockets, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  %70 = getelementptr inbounds %struct.node_pocket, ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds %struct.s_pocket, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds %struct.c_lst_vertices, ptr %73, i32 0, i32 2
  store ptr %66, ptr %74, align 8, !tbaa !25
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %125, %57
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.c_lst_pockets, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = getelementptr inbounds %struct.node_pocket, ptr %78, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  %81 = getelementptr inbounds %struct.s_pocket, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = getelementptr inbounds %struct.c_lst_vertices, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !25
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %146

86:                                               ; preds = %75
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %9, align 4, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = call ptr @strstr(ptr noundef %89, ptr noundef @.str.12) #6
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %106

92:                                               ; preds = %86
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.c_lst_pockets, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = getelementptr inbounds %struct.node_pocket, ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !19
  %99 = getelementptr inbounds %struct.s_pocket, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !21
  %101 = getelementptr inbounds %struct.c_lst_vertices, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !25
  %103 = getelementptr inbounds %struct.node_vertice, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = load i32, ptr %9, align 4, !tbaa !9
  call void @write_pdb_vert(ptr noundef %93, ptr noundef %104, i32 noundef %105)
  br label %125

106:                                              ; preds = %86
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = call ptr @strstr(ptr noundef %107, ptr noundef @.str.13) #6
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %124

110:                                              ; preds = %106
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.c_lst_pockets, ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = getelementptr inbounds %struct.node_pocket, ptr %114, i32 0, i32 2
  %116 = load ptr, ptr %115, align 8, !tbaa !19
  %117 = getelementptr inbounds %struct.s_pocket, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = getelementptr inbounds %struct.c_lst_vertices, ptr %118, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !25
  %121 = getelementptr inbounds %struct.node_vertice, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !26
  %123 = load i32, ptr %9, align 4, !tbaa !9
  call void @write_mmcif_vert(ptr noundef %111, ptr noundef %122, i32 noundef %123)
  br label %124

124:                                              ; preds = %110, %106
  br label %125

125:                                              ; preds = %124, %92
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.c_lst_pockets, ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %129 = getelementptr inbounds %struct.node_pocket, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !19
  %131 = getelementptr inbounds %struct.s_pocket, ptr %130, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !21
  %133 = getelementptr inbounds %struct.c_lst_vertices, ptr %132, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = getelementptr inbounds %struct.node_vertice, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !28
  store ptr %136, ptr %8, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.c_lst_pockets, ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = getelementptr inbounds %struct.node_pocket, ptr %140, i32 0, i32 2
  %142 = load ptr, ptr %141, align 8, !tbaa !19
  %143 = getelementptr inbounds %struct.s_pocket, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !21
  %145 = getelementptr inbounds %struct.c_lst_vertices, ptr %144, i32 0, i32 2
  store ptr %137, ptr %145, align 8, !tbaa !25
  br label %75, !llvm.loop !29

146:                                              ; preds = %75
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.c_lst_pockets, ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !18
  %150 = getelementptr inbounds %struct.node_pocket, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !31
  store ptr %151, ptr %7, align 8, !tbaa !5
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.c_lst_pockets, ptr %153, i32 0, i32 2
  store ptr %152, ptr %154, align 8, !tbaa !18
  br label %52, !llvm.loop !32

155:                                              ; preds = %52
  br label %156

156:                                              ; preds = %155, %43
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.14) #5
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = call i32 @fclose(ptr noundef %159)
  br label %165

161:                                              ; preds = %3
  %162 = load ptr, ptr @stderr, align 8, !tbaa !5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.5, ptr noundef %163) #5
  br label %165

165:                                              ; preds = %161, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 250, 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_mmcif_atoms(ptr noundef, ptr noundef, i32 noundef) #4

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 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 #4 = { 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 #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.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@atomSiteHeader = external hidden constant [372 x i8], align 16
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; 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 #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

declare void @remove_ext(ptr noundef) local_unnamed_addr #3

declare void @remove_path(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @write_pockets_single_mmcif(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2) local_unnamed_addr #5 {
  %4 = alloca [250 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 250, ptr nonnull %4) #6
  %5 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %0) #6
  call void @remove_ext(ptr noundef nonnull %4) #6
  call void @remove_path(ptr noundef nonnull %4) #6
  %6 = call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.6)
  %7 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.9, ptr noundef nonnull %4) #6
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.10, ptr noundef nonnull @atomSiteHeader) #6
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %48, label %9

9:                                                ; preds = %3
  %.not40 = icmp eq ptr %1, null
  br i1 %.not40, label %16, label %10

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

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %1, i64 76
  %15 = load i32, ptr %14, align 4, !tbaa !12
  call void @write_mmcif_atoms(ptr noundef nonnull %6, ptr noundef nonnull %12, i32 noundef %15)
  br label %16

16:                                               ; preds = %10, %13, %9
  %.not42 = icmp eq ptr %2, null
  br i1 %.not42, label %.loopexit47, label %17

17:                                               ; preds = %16
  %18 = getelementptr inbounds i8, ptr %2, i64 16
  %storemerge50 = load ptr, ptr %2, align 8, !tbaa !13
  store ptr %storemerge50, ptr %18, align 8, !tbaa !14
  %.not4351 = icmp eq ptr %storemerge50, null
  br i1 %.not4351, label %.loopexit47, label %.lr.ph53

.loopexit:                                        ; preds = %37, %.lr.ph53
  %.lcssa = phi ptr [ %19, %.lr.ph53 ], [ %38, %37 ]
  %storemerge = load ptr, ptr %.lcssa, align 8, !tbaa !13
  store ptr %storemerge, ptr %18, align 8, !tbaa !14
  %.not43 = icmp eq ptr %storemerge, null
  br i1 %.not43, label %.loopexit47, label %.lr.ph53, !llvm.loop !17

.lr.ph53:                                         ; preds = %17, %.loopexit
  %19 = phi ptr [ %storemerge, %.loopexit ], [ %storemerge50, %17 ]
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !21
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %23, i64 16
  store ptr %24, ptr %25, align 8, !tbaa !25
  %.not4448 = icmp eq ptr %24, null
  br i1 %.not4448, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph53, %37
  %26 = phi ptr [ %45, %37 ], [ %24, %.lr.ph53 ]
  %.049 = phi i32 [ %27, %37 ], [ 0, %.lr.ph53 ]
  %27 = add nuw nsw i32 %.049, 1
  %28 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.12) #7
  %.not45 = icmp eq ptr %28, null
  br i1 %.not45, label %32, label %29

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %26, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !26
  call void @write_pdb_vert(ptr noundef nonnull %6, ptr noundef %31, i32 noundef %27) #6
  br label %37

32:                                               ; preds = %.lr.ph
  %33 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.13) #7
  %.not46 = icmp eq ptr %33, null
  br i1 %.not46, label %37, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %26, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  call void @write_mmcif_vert(ptr noundef nonnull %6, ptr noundef %36, i32 noundef %27) #6
  br label %37

37:                                               ; preds = %32, %34, %29
  %38 = load ptr, ptr %18, align 8, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !19
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !21
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %45 = load ptr, ptr %44, align 8, !tbaa !28
  store ptr %45, ptr %43, align 8, !tbaa !25
  %.not44 = icmp eq ptr %45, null
  br i1 %.not44, label %.loopexit, label %.lr.ph, !llvm.loop !29

.loopexit47:                                      ; preds = %.loopexit, %17, %16
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.14) #6
  %47 = call i32 @fclose(ptr noundef nonnull %6)
  br label %51

48:                                               ; preds = %3
  %49 = load ptr, ptr @stderr, align 8, !tbaa !13
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.5, ptr noundef %0) #8
  br label %51

51:                                               ; preds = %48, %.loopexit47
  call void @llvm.lifetime.end.p0(i64 250, ptr nonnull %4) #6
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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