; LLVM IR from alexzheng42/sDMD :: src (DataSave)

; 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.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.FlowStr = type { i32, %struct.ConstVStr, %struct.ForceStr, %struct.ChargeStr }
%struct.ConstVStr = type { [4 x double] }
%struct.ForceStr = type { [4 x double], ptr, ptr }
%struct.ChargeStr = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { ptr, ptr }
%struct.SphObstStr = type { i32, i32, ptr, ptr }
%struct.EventListStr = type { i32, ptr, ptr, ptr }

@atomnum = external global i32, align 4
@atom = external global ptr, align 8
@connectionMap = external global ptr, align 8
@wallExist = external global [20 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@wallType = external global [20 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@wall = external global ptr, align 8
@CG = external global %struct.CGGovStr, align 8
@flow = external global %struct.FlowStr, align 8
@obstObj = external global %struct.ObstructionStr, align 8
@tunlObj = external global %struct.TunnelStr, align 8
@SphObstObj = external global %struct.SphObstStr, align 8
@CBT = external global %struct.EventListStr, align 8
@protein = external global ptr, align 8
@aminoacid = external global ptr, align 8
@celllist = external global ptr, align 8

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

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

; Function Attrs: nounwind uwtable
define dso_local void @GlobalCloseFree() #1 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %2

2:                                                ; preds = %20, %0
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = load i32, ptr @atomnum, align 4, !tbaa !5
  %5 = icmp sle i32 %3, %4
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %23

7:                                                ; preds = %2
  %8 = load ptr, ptr @atom, align 8, !tbaa !9
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds %struct.AtomStr, ptr %8, i64 %10
  %12 = getelementptr inbounds %struct.AtomStr, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  call void @free(ptr noundef %13) #4
  %14 = load ptr, ptr @atom, align 8, !tbaa !9
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds %struct.AtomStr, ptr %14, i64 %16
  %18 = getelementptr inbounds %struct.AtomStr, ptr %17, i32 0, i32 1
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  call void @free(ptr noundef %19) #4
  br label %20

20:                                               ; preds = %7
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %1, align 4, !tbaa !5
  br label %2, !llvm.loop !14

23:                                               ; preds = %6
  %24 = load ptr, ptr @atom, align 8, !tbaa !9
  call void @free(ptr noundef %24) #4
  %25 = load ptr, ptr @connectionMap, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  call void @free(ptr noundef %27) #4
  %28 = load ptr, ptr @connectionMap, align 8, !tbaa !9
  call void @free(ptr noundef %28) #4
  %29 = call i32 @strcmp(ptr noundef @wallExist, ptr noundef @.str.7) #5
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %45

31:                                               ; preds = %23
  %32 = call i32 @strcmp(ptr noundef @wallType, ptr noundef @.str.8) #5
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %44

34:                                               ; preds = %31
  %35 = load ptr, ptr @wall, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.AtomStr, ptr %35, i64 0
  %37 = getelementptr inbounds %struct.AtomStr, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  call void @free(ptr noundef %38) #4
  %39 = load ptr, ptr @wall, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.AtomStr, ptr %39, i64 0
  %41 = getelementptr inbounds %struct.AtomStr, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  call void @free(ptr noundef %42) #4
  %43 = load ptr, ptr @wall, align 8, !tbaa !9
  call void @free(ptr noundef %43) #4
  br label %44

44:                                               ; preds = %34, %31
  br label %45

45:                                               ; preds = %44, %23
  %46 = load i32, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 1), align 8, !tbaa !16
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 3), align 8, !tbaa !18
  call void @free(ptr noundef %49) #4
  %50 = load ptr, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 4), align 8, !tbaa !19
  call void @free(ptr noundef %50) #4
  br label %51

51:                                               ; preds = %48, %45
  %52 = load ptr, ptr getelementptr inbounds (%struct.ForceStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 2), i32 0, i32 1), align 8, !tbaa !20
  call void @free(ptr noundef %52) #4
  %53 = load ptr, ptr getelementptr inbounds (%struct.ForceStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 2), i32 0, i32 2), align 8, !tbaa !25
  %54 = getelementptr inbounds ptr, ptr %53, i64 0
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  call void @free(ptr noundef %55) #4
  %56 = load ptr, ptr getelementptr inbounds (%struct.ForceStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 2), i32 0, i32 2), align 8, !tbaa !25
  call void @free(ptr noundef %56) #4
  %57 = load i32, ptr @flow, align 8, !tbaa !26
  %58 = icmp eq i32 %57, 3
  br i1 %58, label %59, label %70

59:                                               ; preds = %51
  %60 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 2), align 8, !tbaa !27
  %61 = getelementptr inbounds ptr, ptr %60, i64 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  call void @free(ptr noundef %62) #4
  %63 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 2), align 8, !tbaa !27
  call void @free(ptr noundef %63) #4
  %64 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 3), align 8, !tbaa !28
  %65 = getelementptr inbounds ptr, ptr %64, i64 0
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  call void @free(ptr noundef %66) #4
  %67 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 3), align 8, !tbaa !28
  call void @free(ptr noundef %67) #4
  %68 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 4), align 8, !tbaa !29
  call void @free(ptr noundef %68) #4
  %69 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 5), align 8, !tbaa !30
  call void @free(ptr noundef %69) #4
  br label %70

70:                                               ; preds = %59, %51
  %71 = load i32, ptr @obstObj, align 8, !tbaa !31
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %77

73:                                               ; preds = %70
  %74 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 3), align 8, !tbaa !33
  %75 = getelementptr inbounds ptr, ptr %74, i64 0
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  call void @free(ptr noundef %76) #4
  br label %77

77:                                               ; preds = %73, %70
  %78 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 3), align 8, !tbaa !33
  call void @free(ptr noundef %78) #4
  %79 = load i32, ptr @tunlObj, align 8, !tbaa !34
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %87

81:                                               ; preds = %77
  %82 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 2), align 8, !tbaa !36
  %83 = getelementptr inbounds ptr, ptr %82, i64 0
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  call void @free(ptr noundef %84) #4
  %85 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 2), align 8, !tbaa !36
  call void @free(ptr noundef %85) #4
  %86 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 3), align 8, !tbaa !37
  call void @free(ptr noundef %86) #4
  br label %87

87:                                               ; preds = %81, %77
  %88 = load i32, ptr @SphObstObj, align 8, !tbaa !38
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %87
  %91 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 3), align 8, !tbaa !40
  %92 = getelementptr inbounds ptr, ptr %91, i64 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  call void @free(ptr noundef %93) #4
  %94 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 3), align 8, !tbaa !40
  call void @free(ptr noundef %94) #4
  %95 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 2), align 8, !tbaa !41
  call void @free(ptr noundef %95) #4
  br label %96

96:                                               ; preds = %90, %87
  %97 = load ptr, ptr getelementptr inbounds (%struct.EventListStr, ptr @CBT, i32 0, i32 1), align 8, !tbaa !42
  call void @free(ptr noundef %97) #4
  %98 = load ptr, ptr getelementptr inbounds (%struct.EventListStr, ptr @CBT, i32 0, i32 2), align 8, !tbaa !44
  call void @free(ptr noundef %98) #4
  %99 = load ptr, ptr getelementptr inbounds (%struct.EventListStr, ptr @CBT, i32 0, i32 3), align 8, !tbaa !45
  call void @free(ptr noundef %99) #4
  %100 = load ptr, ptr @protein, align 8, !tbaa !9
  call void @free(ptr noundef %100) #4
  %101 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  call void @free(ptr noundef %101) #4
  %102 = load ptr, ptr @celllist, align 8, !tbaa !9
  call void @free(ptr noundef %102) #4
  ret void
}

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, 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 = { 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 }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !6, i64 32}
!17 = !{!"CGGovStr", !7, i64 0, !6, i64 32, !6, i64 36, !10, i64 40, !10, i64 48}
!18 = !{!17, !10, i64 40}
!19 = !{!17, !10, i64 48}
!20 = !{!21, !10, i64 72}
!21 = !{!"FlowStr", !6, i64 0, !22, i64 8, !23, i64 40, !24, i64 88}
!22 = !{!"ConstVStr", !7, i64 0}
!23 = !{!"ForceStr", !7, i64 0, !10, i64 32, !10, i64 40}
!24 = !{!"ChargeStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!25 = !{!21, !10, i64 80}
!26 = !{!21, !6, i64 0}
!27 = !{!21, !10, i64 96}
!28 = !{!21, !10, i64 104}
!29 = !{!21, !10, i64 112}
!30 = !{!21, !10, i64 120}
!31 = !{!32, !6, i64 0}
!32 = !{!"ObstructionStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24}
!33 = !{!32, !10, i64 16}
!34 = !{!35, !6, i64 0}
!35 = !{!"TunnelStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !12, i64 24}
!36 = !{!35, !10, i64 8}
!37 = !{!35, !10, i64 16}
!38 = !{!39, !6, i64 0}
!39 = !{!"SphObstStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16}
!40 = !{!39, !10, i64 16}
!41 = !{!39, !10, i64 8}
!42 = !{!43, !10, i64 8}
!43 = !{!"EventListStr", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!44 = !{!43, !10, i64 16}
!45 = !{!43, !10, i64 24}


; 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.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.FlowStr = type { i32, %struct.ConstVStr, %struct.ForceStr, %struct.ChargeStr }
%struct.ConstVStr = type { [4 x double] }
%struct.ForceStr = type { [4 x double], ptr, ptr }
%struct.ChargeStr = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { ptr, ptr }
%struct.SphObstStr = type { i32, i32, ptr, ptr }
%struct.EventListStr = type { i32, ptr, ptr, ptr }

@atomnum = external local_unnamed_addr global i32, align 4
@atom = external local_unnamed_addr global ptr, align 8
@connectionMap = external local_unnamed_addr global ptr, align 8
@wallExist = external global [20 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@wallType = external global [20 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@wall = external local_unnamed_addr global ptr, align 8
@CG = external local_unnamed_addr global %struct.CGGovStr, align 8
@flow = external local_unnamed_addr global %struct.FlowStr, align 8
@obstObj = external local_unnamed_addr global %struct.ObstructionStr, align 8
@tunlObj = external local_unnamed_addr global %struct.TunnelStr, align 8
@SphObstObj = external local_unnamed_addr global %struct.SphObstStr, align 8
@CBT = external local_unnamed_addr global %struct.EventListStr, align 8
@protein = external local_unnamed_addr global ptr, align 8
@aminoacid = external local_unnamed_addr global ptr, align 8
@celllist = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @GlobalCloseFree() local_unnamed_addr #0 {
  %1 = load i32, ptr @atomnum, align 4, !tbaa !5
  %.not10 = icmp slt i32 %1, 0
  br i1 %.not10, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %2 = load ptr, ptr @atom, align 8, !tbaa !9
  tail call void @free(ptr noundef %2) #3
  %3 = load ptr, ptr @connectionMap, align 8, !tbaa !9
  %4 = load ptr, ptr %3, align 8, !tbaa !9
  tail call void @free(ptr noundef %4) #3
  %5 = load ptr, ptr @connectionMap, align 8, !tbaa !9
  tail call void @free(ptr noundef %5) #3
  %6 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @wallExist, ptr noundef nonnull dereferenceable(1) @.str.7) #4
  %.not4 = icmp eq i32 %6, 0
  br i1 %.not4, label %24, label %15

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %7 = load ptr, ptr @atom, align 8, !tbaa !9
  %8 = getelementptr inbounds %struct.AtomStr, ptr %7, i64 %indvars.iv
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  tail call void @free(ptr noundef %9) #3
  %10 = load ptr, ptr @atom, align 8, !tbaa !9
  %11 = getelementptr inbounds %struct.AtomStr, ptr %10, i64 %indvars.iv, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  tail call void @free(ptr noundef %12) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @atomnum, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %.not.not = icmp slt i64 %indvars.iv, %14
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !14

15:                                               ; preds = %._crit_edge
  %16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @wallType, ptr noundef nonnull dereferenceable(1) @.str.8) #4
  %.not5 = icmp eq i32 %16, 0
  br i1 %.not5, label %24, label %17

17:                                               ; preds = %15
  %18 = load ptr, ptr @wall, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  tail call void @free(ptr noundef %20) #3
  %21 = load ptr, ptr @wall, align 8, !tbaa !9
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  tail call void @free(ptr noundef %22) #3
  %23 = load ptr, ptr @wall, align 8, !tbaa !9
  tail call void @free(ptr noundef %23) #3
  br label %24

24:                                               ; preds = %15, %17, %._crit_edge
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @CG, i64 32), align 8, !tbaa !16
  %.not6 = icmp eq i32 %25, 0
  br i1 %.not6, label %29, label %26

26:                                               ; preds = %24
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @CG, i64 40), align 8, !tbaa !18
  tail call void @free(ptr noundef %27) #3
  %28 = load ptr, ptr getelementptr inbounds (i8, ptr @CG, i64 48), align 8, !tbaa !19
  tail call void @free(ptr noundef %28) #3
  br label %29

29:                                               ; preds = %26, %24
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 72), align 8, !tbaa !20
  tail call void @free(ptr noundef %30) #3
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 80), align 8, !tbaa !25
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  tail call void @free(ptr noundef %32) #3
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 80), align 8, !tbaa !25
  tail call void @free(ptr noundef %33) #3
  %34 = load i32, ptr @flow, align 8, !tbaa !26
  %35 = icmp eq i32 %34, 3
  br i1 %35, label %36, label %45

36:                                               ; preds = %29
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 96), align 8, !tbaa !27
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  tail call void @free(ptr noundef %38) #3
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 96), align 8, !tbaa !27
  tail call void @free(ptr noundef %39) #3
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 104), align 8, !tbaa !28
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  tail call void @free(ptr noundef %41) #3
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 104), align 8, !tbaa !28
  tail call void @free(ptr noundef %42) #3
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 112), align 8, !tbaa !29
  tail call void @free(ptr noundef %43) #3
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 120), align 8, !tbaa !30
  tail call void @free(ptr noundef %44) #3
  br label %45

45:                                               ; preds = %36, %29
  %46 = load i32, ptr @obstObj, align 8, !tbaa !31
  %.not7 = icmp eq i32 %46, 0
  br i1 %.not7, label %50, label %47

47:                                               ; preds = %45
  %48 = load ptr, ptr getelementptr inbounds (i8, ptr @obstObj, i64 16), align 8, !tbaa !33
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  tail call void @free(ptr noundef %49) #3
  br label %50

50:                                               ; preds = %47, %45
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @obstObj, i64 16), align 8, !tbaa !33
  tail call void @free(ptr noundef %51) #3
  %52 = load i32, ptr @tunlObj, align 8, !tbaa !34
  %.not8 = icmp eq i32 %52, 0
  br i1 %.not8, label %58, label %53

53:                                               ; preds = %50
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 8), align 8, !tbaa !36
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  tail call void @free(ptr noundef %55) #3
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 8), align 8, !tbaa !36
  tail call void @free(ptr noundef %56) #3
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 16), align 8, !tbaa !37
  tail call void @free(ptr noundef %57) #3
  br label %58

58:                                               ; preds = %53, %50
  %59 = load i32, ptr @SphObstObj, align 8, !tbaa !38
  %.not9 = icmp eq i32 %59, 0
  br i1 %.not9, label %65, label %60

60:                                               ; preds = %58
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 16), align 8, !tbaa !40
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  tail call void @free(ptr noundef %62) #3
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 16), align 8, !tbaa !40
  tail call void @free(ptr noundef %63) #3
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 8), align 8, !tbaa !41
  tail call void @free(ptr noundef %64) #3
  br label %65

65:                                               ; preds = %60, %58
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @CBT, i64 8), align 8, !tbaa !42
  tail call void @free(ptr noundef %66) #3
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @CBT, i64 16), align 8, !tbaa !44
  tail call void @free(ptr noundef %67) #3
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @CBT, i64 24), align 8, !tbaa !45
  tail call void @free(ptr noundef %68) #3
  %69 = load ptr, ptr @protein, align 8, !tbaa !9
  tail call void @free(ptr noundef %69) #3
  %70 = load ptr, ptr @aminoacid, align 8, !tbaa !9
  tail call void @free(ptr noundef %70) #3
  %71 = load ptr, ptr @celllist, align 8, !tbaa !9
  tail call void @free(ptr noundef %71) #3
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !6, i64 32}
!17 = !{!"CGGovStr", !7, i64 0, !6, i64 32, !6, i64 36, !10, i64 40, !10, i64 48}
!18 = !{!17, !10, i64 40}
!19 = !{!17, !10, i64 48}
!20 = !{!21, !10, i64 72}
!21 = !{!"FlowStr", !6, i64 0, !22, i64 8, !23, i64 40, !24, i64 88}
!22 = !{!"ConstVStr", !7, i64 0}
!23 = !{!"ForceStr", !7, i64 0, !10, i64 32, !10, i64 40}
!24 = !{!"ChargeStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!25 = !{!21, !10, i64 80}
!26 = !{!21, !6, i64 0}
!27 = !{!21, !10, i64 96}
!28 = !{!21, !10, i64 104}
!29 = !{!21, !10, i64 112}
!30 = !{!21, !10, i64 120}
!31 = !{!32, !6, i64 0}
!32 = !{!"ObstructionStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24}
!33 = !{!32, !10, i64 16}
!34 = !{!35, !6, i64 0}
!35 = !{!"TunnelStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16, !12, i64 24}
!36 = !{!35, !10, i64 8}
!37 = !{!35, !10, i64 16}
!38 = !{!39, !6, i64 0}
!39 = !{!"SphObstStr", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16}
!40 = !{!39, !10, i64 16}
!41 = !{!39, !10, i64 8}
!42 = !{!43, !10, i64 8}
!43 = !{!"EventListStr", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!44 = !{!43, !10, i64 16}
!45 = !{!43, !10, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass