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

; 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.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { 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.SphObstStr = type { i32, i32, ptr, ptr }
%struct.AtomListStr = type { i32, [27 x i32], [27 x i32], [27 x i32], double, ptr, ptr, ptr }
%struct.PropertyStr = type { [8 x i8], [2 x [16 x i8]], [8 x i8], i32, i32, i32, double, double, [3 x double], %struct.AtomSeqStr, ptr, ptr }
%struct.AtomSeqStr = type { i32, i32, i32 }
%struct.DynamicStr = type { [4 x i32], [4 x double], [4 x double], %struct.HBStr, %struct.HBNeighborStr, %struct.InteractionEventStr }
%struct.HBStr = type { i32, i32, i8, i32 }
%struct.HBNeighborStr = type { [5 x i32], i32, i32 }
%struct.InteractionEventStr = type { i32, i64, i64, double, double, i32, i32 }

@wallExist = external global [20 x i8], align 16
@obstObj = external global %struct.ObstructionStr, align 8
@CG = external global %struct.CGGovStr, align 8
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@tunlObj = external global %struct.TunnelStr, align 8
@flow = external global %struct.FlowStr, align 8
@SphObstObj = external global %struct.SphObstStr, 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 willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @Predict(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr null, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ResetTarget(ptr noundef %7, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %108, %2
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = load i32, ptr %6, align 4, !tbaa !9
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds i32, ptr %10, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %111

17:                                               ; preds = %9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.AtomListStr, ptr %18, i32 0, i32 7
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds i32, ptr %21, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %20, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.AtomStr, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds %struct.PropertyStr, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds [2 x [16 x i8]], ptr %32, i64 0, i64 1
  %34 = getelementptr inbounds [16 x i8], ptr %33, i64 0, i64 0
  %35 = call i32 @strcmp(ptr noundef %34, ptr noundef @.str.8) #5
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %17
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.AtomStr, ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds %struct.DynamicStr, ptr %40, i32 0, i32 5
  %42 = getelementptr inbounds %struct.InteractionEventStr, ptr %41, i32 0, i32 3
  store double 1.000000e+08, ptr %42, align 8, !tbaa !17
  br label %108

43:                                               ; preds = %17
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  call void @BondTime(ptr noundef %44, ptr noundef %45)
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  call void @CollisionTime(ptr noundef %46, ptr noundef %47)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  call void @PBCandCrossCellTime(ptr noundef %48)
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  call void @ThermostatTime(ptr noundef %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  call void @HBTime(ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @HBNeighborTime(ptr noundef %52, ptr noundef %53)
  %54 = call i32 @strcmp(ptr noundef @wallExist, ptr noundef @.str.12) #5
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %43
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  call void @WallTime(ptr noundef %57)
  br label %58

58:                                               ; preds = %56, %43
  %59 = load i32, ptr @obstObj, align 8, !tbaa !23
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = load i32, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 1), align 8, !tbaa !25
  %63 = icmp ne i32 %62, 2
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  call void @ObstTime(ptr noundef %65)
  br label %66

66:                                               ; preds = %64, %61, %58
  %67 = load i32, ptr @obstObj, align 8, !tbaa !23
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %92

69:                                               ; preds = %66
  %70 = load i32, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 1), align 8, !tbaa !25
  %71 = icmp eq i32 %70, 2
  br i1 %71, label %72, label %92

72:                                               ; preds = %69
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.AtomStr, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  %76 = getelementptr inbounds %struct.PropertyStr, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds [2 x [16 x i8]], ptr %76, i64 0, i64 0
  %78 = getelementptr inbounds [16 x i8], ptr %77, i64 0, i64 0
  %79 = call i32 @strcmp(ptr noundef %78, ptr noundef @.str.13) #5
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %90, label %81

81:                                               ; preds = %72
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.AtomStr, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = getelementptr inbounds %struct.PropertyStr, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds [2 x [16 x i8]], ptr %85, i64 0, i64 1
  %87 = getelementptr inbounds [16 x i8], ptr %86, i64 0, i64 0
  %88 = call i32 @strcmp(ptr noundef %87, ptr noundef @.str.14) #5
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %81, %72
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  call void @CGSurfaceTime(ptr noundef %91)
  br label %92

92:                                               ; preds = %90, %81, %69, %66
  %93 = load i32, ptr @tunlObj, align 8, !tbaa !27
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  call void @TunnelTime(ptr noundef %96)
  br label %97

97:                                               ; preds = %95, %92
  %98 = load i32, ptr @flow, align 8, !tbaa !29
  %99 = icmp eq i32 %98, 3
  br i1 %99, label %100, label %102

100:                                              ; preds = %97
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  call void @ChargeTime(ptr noundef %101)
  br label %102

102:                                              ; preds = %100, %97
  %103 = load i32, ptr @SphObstObj, align 8, !tbaa !34
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  call void @SphObstTime(ptr noundef %106)
  br label %107

107:                                              ; preds = %105, %102
  br label %108

108:                                              ; preds = %107, %37
  %109 = load i32, ptr %6, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !9
  br label %9, !llvm.loop !36

111:                                              ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

declare void @ResetTarget(ptr noundef, ptr noundef) #3

declare void @BondTime(ptr noundef, ptr noundef) #3

declare void @CollisionTime(ptr noundef, ptr noundef) #3

declare void @PBCandCrossCellTime(ptr noundef) #3

declare void @ThermostatTime(ptr noundef) #3

declare void @HBTime(ptr noundef, ptr noundef) #3

declare void @HBNeighborTime(ptr noundef, ptr noundef) #3

declare void @WallTime(ptr noundef) #3

declare void @ObstTime(ptr noundef) #3

declare void @CGSurfaceTime(ptr noundef) #3

declare void @TunnelTime(ptr noundef) #3

declare void @ChargeTime(ptr noundef) #3

declare void @SphObstTime(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 352}
!12 = !{!"AtomListStr", !10, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !13, i64 328, !6, i64 336, !6, i64 344, !6, i64 352}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = !{!18, !13, i64 152}
!18 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !19, i64 80, !20, i64 96, !21, i64 128}
!19 = !{!"HBStr", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 12}
!20 = !{!"HBNeighborStr", !7, i64 0, !10, i64 20, !10, i64 24}
!21 = !{!"InteractionEventStr", !10, i64 0, !22, i64 8, !22, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 44}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"ObstructionStr", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!26, !10, i64 32}
!26 = !{!"CGGovStr", !7, i64 0, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48}
!27 = !{!28, !10, i64 0}
!28 = !{!"TunnelStr", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !15, i64 24}
!29 = !{!30, !10, i64 0}
!30 = !{!"FlowStr", !10, i64 0, !31, i64 8, !32, i64 40, !33, i64 88}
!31 = !{!"ConstVStr", !7, i64 0}
!32 = !{!"ForceStr", !7, i64 0, !6, i64 32, !6, i64 40}
!33 = !{!"ChargeStr", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!34 = !{!35, !10, i64 0}
!35 = !{!"SphObstStr", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


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

@wallExist = external global [20 x i8], align 16
@obstObj = external local_unnamed_addr global %struct.ObstructionStr, align 8
@CG = external local_unnamed_addr global %struct.CGGovStr, align 8
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@tunlObj = external local_unnamed_addr global %struct.TunnelStr, align 8
@flow = external local_unnamed_addr global %struct.FlowStr, align 8
@SphObstObj = external local_unnamed_addr global %struct.SphObstStr, align 8

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

; Function Attrs: nounwind uwtable
define dso_local void @Predict(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  tail call void @ResetTarget(ptr noundef %0, ptr noundef %1) #3
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %.not34 = icmp eq i32 %4, 0
  br i1 %.not34, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = getelementptr inbounds i8, ptr %1, i64 352
  br label %6

._crit_edge:                                      ; preds = %54, %2
  ret void

6:                                                ; preds = %.lr.ph, %54
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %54 ]
  %7 = phi i32 [ %4, %.lr.ph ], [ %56, %54 ]
  %8 = load ptr, ptr %5, align 8, !tbaa !9
  %9 = sext i32 %7 to i64
  %10 = getelementptr inbounds ptr, ptr %8, i64 %9
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.8) #4
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %20

16:                                               ; preds = %6
  %17 = getelementptr inbounds i8, ptr %11, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %18, i64 152
  store double 1.000000e+08, ptr %19, align 8, !tbaa !17
  br label %54

20:                                               ; preds = %6
  tail call void @BondTime(ptr noundef nonnull %11, ptr noundef nonnull %1) #3
  tail call void @CollisionTime(ptr noundef nonnull %11, ptr noundef nonnull %1) #3
  tail call void @PBCandCrossCellTime(ptr noundef nonnull %11) #3
  tail call void @ThermostatTime(ptr noundef nonnull %11) #3
  tail call void @HBTime(ptr noundef nonnull %11, ptr noundef nonnull %1) #3
  tail call void @HBNeighborTime(ptr noundef nonnull %11, ptr noundef nonnull %1) #3
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @wallExist, ptr noundef nonnull dereferenceable(1) @.str.12) #4
  %.not31 = icmp eq i32 %21, 0
  br i1 %.not31, label %23, label %22

22:                                               ; preds = %20
  tail call void @WallTime(ptr noundef nonnull %11) #3
  br label %23

23:                                               ; preds = %22, %20
  %24 = load i32, ptr @obstObj, align 8, !tbaa !23
  %25 = icmp ne i32 %24, 0
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @CG, i64 32), align 8
  %27 = icmp ne i32 %26, 2
  %or.cond = select i1 %25, i1 %27, i1 false
  br i1 %or.cond, label %28, label %29

28:                                               ; preds = %23
  tail call void @ObstTime(ptr noundef nonnull %11) #3
  %.pre = load i32, ptr @obstObj, align 8, !tbaa !23
  %.pre37 = load i32, ptr getelementptr inbounds (i8, ptr @CG, i64 32), align 8
  br label %29

29:                                               ; preds = %28, %23
  %30 = phi i32 [ %.pre37, %28 ], [ %26, %23 ]
  %31 = phi i32 [ %.pre, %28 ], [ %24, %23 ]
  %32 = icmp ne i32 %31, 0
  %33 = icmp eq i32 %30, 2
  %or.cond3 = select i1 %32, i1 %33, i1 false
  br i1 %or.cond3, label %34, label %44

34:                                               ; preds = %29
  %35 = load ptr, ptr %11, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %36, ptr noundef nonnull dereferenceable(1) @.str.13) #4
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %43, label %39

39:                                               ; preds = %34
  %40 = getelementptr inbounds i8, ptr %35, i64 24
  %41 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) @.str.14) #4
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %39, %34
  tail call void @CGSurfaceTime(ptr noundef nonnull %11) #3
  br label %44

44:                                               ; preds = %43, %39, %29
  %45 = load i32, ptr @tunlObj, align 8, !tbaa !25
  %.not32 = icmp eq i32 %45, 0
  br i1 %.not32, label %47, label %46

46:                                               ; preds = %44
  tail call void @TunnelTime(ptr noundef nonnull %11) #3
  br label %47

47:                                               ; preds = %46, %44
  %48 = load i32, ptr @flow, align 8, !tbaa !27
  %49 = icmp eq i32 %48, 3
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  tail call void @ChargeTime(ptr noundef nonnull %11) #3
  br label %51

51:                                               ; preds = %50, %47
  %52 = load i32, ptr @SphObstObj, align 8, !tbaa !32
  %.not33 = icmp eq i32 %52, 0
  br i1 %.not33, label %54, label %53

53:                                               ; preds = %51
  tail call void @SphObstTime(ptr noundef nonnull %11) #3
  br label %54

54:                                               ; preds = %51, %53, %16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %.not = icmp eq i32 %56, 0
  br i1 %.not, label %._crit_edge, label %6, !llvm.loop !34
}

declare void @ResetTarget(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @BondTime(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @CollisionTime(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @PBCandCrossCellTime(ptr noundef) local_unnamed_addr #2

declare void @ThermostatTime(ptr noundef) local_unnamed_addr #2

declare void @HBTime(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @HBNeighborTime(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @WallTime(ptr noundef) local_unnamed_addr #2

declare void @ObstTime(ptr noundef) local_unnamed_addr #2

declare void @CGSurfaceTime(ptr noundef) local_unnamed_addr #2

declare void @TunnelTime(ptr noundef) local_unnamed_addr #2

declare void @ChargeTime(ptr noundef) local_unnamed_addr #2

declare void @SphObstTime(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !12, i64 352}
!10 = !{!"AtomListStr", !6, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !11, i64 328, !12, i64 336, !12, i64 344, !12, i64 352}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"AtomStr", !12, i64 0, !12, i64 8}
!16 = !{!15, !12, i64 8}
!17 = !{!18, !11, i64 152}
!18 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !19, i64 80, !20, i64 96, !21, i64 128}
!19 = !{!"HBStr", !6, i64 0, !6, i64 4, !7, i64 8, !6, i64 12}
!20 = !{!"HBNeighborStr", !7, i64 0, !6, i64 20, !6, i64 24}
!21 = !{!"InteractionEventStr", !6, i64 0, !22, i64 8, !22, i64 16, !11, i64 24, !11, i64 32, !6, i64 40, !6, i64 44}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"ObstructionStr", !6, i64 0, !6, i64 4, !12, i64 8, !12, i64 16, !12, i64 24}
!25 = !{!26, !6, i64 0}
!26 = !{!"TunnelStr", !6, i64 0, !6, i64 4, !12, i64 8, !12, i64 16, !15, i64 24}
!27 = !{!28, !6, i64 0}
!28 = !{!"FlowStr", !6, i64 0, !29, i64 8, !30, i64 40, !31, i64 88}
!29 = !{!"ConstVStr", !7, i64 0}
!30 = !{!"ForceStr", !7, i64 0, !12, i64 32, !12, i64 40}
!31 = !{!"ChargeStr", !6, i64 0, !6, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!32 = !{!33, !6, i64 0}
!33 = !{!"SphObstStr", !6, i64 0, !6, i64 4, !12, i64 8, !12, i64 16}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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