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

; 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.AtomListStr = type { i32, [27 x i32], [27 x i32], [27 x i32], double, ptr, ptr, ptr }
%struct.AtomStr = type { ptr, ptr }
%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 }

@collisioneventsum = external global i64, align 8
@bondeventsum = external global i64, align 8
@HBNeighboreventsum = external global i64, align 8
@HBeventsum = external global i64, align 8
@thermostateventsum = external global i64, align 8
@pbcandcrosseventsum = external global i64, align 8
@walleventsum = external global i64, align 8
@CGeventsum = external global i64, align 8
@.str = external hidden unnamed_addr constant [62 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @DoEvent(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.AtomListStr, ptr %8, i32 0, i32 5
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %10, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.AtomListStr, ptr %11, i32 0, i32 6
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  store ptr %13, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.AtomStr, ptr %14, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds %struct.DynamicStr, ptr %16, i32 0, i32 5
  %18 = getelementptr inbounds %struct.InteractionEventStr, ptr %17, i32 0, i32 5
  %19 = load i32, ptr %18, align 8, !tbaa !16
  store i32 %19, ptr %7, align 4, !tbaa !22
  %20 = load i32, ptr %7, align 4, !tbaa !22
  switch i32 %20, label %109 [
    i32 0, label %21
    i32 1, label %27
    i32 3, label %33
    i32 2, label %39
    i32 4, label %75
    i32 10, label %79
    i32 12, label %110
    i32 5, label %84
    i32 11, label %88
    i32 6, label %93
    i32 7, label %97
    i32 8, label %101
    i32 9, label %103
    i32 15, label %107
    i32 14, label %107
    i32 13, label %107
  ]

21:                                               ; preds = %1
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  call void @InteractionEvent(ptr noundef %22, ptr noundef %23, ptr noundef null, ptr noundef null, ptr noundef %24)
  %25 = load i64, ptr @collisioneventsum, align 8, !tbaa !23
  %26 = add nsw i64 %25, 1
  store i64 %26, ptr @collisioneventsum, align 8, !tbaa !23
  br label %110

27:                                               ; preds = %1
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  call void @InteractionEvent(ptr noundef %28, ptr noundef %29, ptr noundef null, ptr noundef null, ptr noundef %30)
  %31 = load i64, ptr @bondeventsum, align 8, !tbaa !23
  %32 = add nsw i64 %31, 1
  store i64 %32, ptr @bondeventsum, align 8, !tbaa !23
  br label %110

33:                                               ; preds = %1
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  call void @InteractionEvent(ptr noundef %34, ptr noundef %35, ptr noundef null, ptr noundef null, ptr noundef %36)
  %37 = load i64, ptr @HBNeighboreventsum, align 8, !tbaa !23
  %38 = add nsw i64 %37, 1
  store i64 %38, ptr @HBNeighboreventsum, align 8, !tbaa !23
  br label %110

39:                                               ; preds = %1
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.AtomListStr, ptr %40, i32 0, i32 7
  %42 = load ptr, ptr %41, align 8, !tbaa !24
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.AtomStr, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = getelementptr inbounds %struct.DynamicStr, ptr %45, i32 0, i32 3
  %47 = getelementptr inbounds %struct.HBStr, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !25
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %42, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.AtomListStr, ptr %52, i32 0, i32 7
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.AtomStr, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds %struct.DynamicStr, ptr %57, i32 0, i32 3
  %59 = getelementptr inbounds %struct.HBStr, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !25
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %54, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  store ptr %63, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  call void @InteractionEvent(ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68)
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  call void @HBEvent(ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72)
  %73 = load i64, ptr @HBeventsum, align 8, !tbaa !23
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr @HBeventsum, align 8, !tbaa !23
  br label %110

75:                                               ; preds = %1
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  call void @ThermostatEvent(ptr noundef %76)
  %77 = load i64, ptr @thermostateventsum, align 8, !tbaa !23
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr @thermostateventsum, align 8, !tbaa !23
  br label %110

79:                                               ; preds = %1
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  call void @PBCandCrossCellEvent(ptr noundef %80, ptr noundef %81)
  %82 = load i64, ptr @pbcandcrosseventsum, align 8, !tbaa !23
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr @pbcandcrosseventsum, align 8, !tbaa !23
  br label %110

84:                                               ; preds = %1
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @WallEvent(ptr noundef %85)
  %86 = load i64, ptr @walleventsum, align 8, !tbaa !23
  %87 = add nsw i64 %86, 1
  store i64 %87, ptr @walleventsum, align 8, !tbaa !23
  br label %110

88:                                               ; preds = %1
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  call void @CGSurfaceEvent(ptr noundef %89, ptr noundef %90)
  %91 = load i64, ptr @CGeventsum, align 8, !tbaa !23
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr @CGeventsum, align 8, !tbaa !23
  br label %110

93:                                               ; preds = %1
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  call void @ObstEvent(ptr noundef %94)
  %95 = load i64, ptr @walleventsum, align 8, !tbaa !23
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr @walleventsum, align 8, !tbaa !23
  br label %110

97:                                               ; preds = %1
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  call void @TunnelEvent(ptr noundef %98)
  %99 = load i64, ptr @walleventsum, align 8, !tbaa !23
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr @walleventsum, align 8, !tbaa !23
  br label %110

101:                                              ; preds = %1
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  call void @ChargeEvent(ptr noundef %102)
  br label %110

103:                                              ; preds = %1
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  call void @SphObstEvent(ptr noundef %104)
  %105 = load i64, ptr @walleventsum, align 8, !tbaa !23
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr @walleventsum, align 8, !tbaa !23
  br label %110

107:                                              ; preds = %1, %1, %1
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 105)
  call void @exit(i32 noundef 1) #5
  unreachable

109:                                              ; preds = %1
  br label %110

110:                                              ; preds = %109, %103, %101, %97, %93, %88, %84, %79, %75, %39, %33, %27, %21, %1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @InteractionEvent(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HBEvent(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ThermostatEvent(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @PBCandCrossCellEvent(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @WallEvent(ptr noundef) #0

declare void @CGSurfaceEvent(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @ObstEvent(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @TunnelEvent(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ChargeEvent(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @SphObstEvent(ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn 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 #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 336}
!10 = !{!"AtomListStr", !11, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !12, i64 328, !6, i64 336, !6, i64 344, !6, i64 352}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !6, i64 344}
!14 = !{!15, !6, i64 8}
!15 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!16 = !{!17, !11, i64 168}
!17 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !18, i64 80, !19, i64 96, !20, i64 128}
!18 = !{!"HBStr", !11, i64 0, !11, i64 4, !7, i64 8, !11, i64 12}
!19 = !{!"HBNeighborStr", !7, i64 0, !11, i64 20, !11, i64 24}
!20 = !{!"InteractionEventStr", !11, i64 0, !21, i64 8, !21, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44}
!21 = !{!"long", !7, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!21, !21, i64 0}
!24 = !{!10, !6, i64 352}
!25 = !{!17, !11, i64 84}


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

@collisioneventsum = external local_unnamed_addr global i64, align 8
@bondeventsum = external local_unnamed_addr global i64, align 8
@HBNeighboreventsum = external local_unnamed_addr global i64, align 8
@HBeventsum = external local_unnamed_addr global i64, align 8
@thermostateventsum = external local_unnamed_addr global i64, align 8
@pbcandcrosseventsum = external local_unnamed_addr global i64, align 8
@walleventsum = external local_unnamed_addr global i64, align 8
@CGeventsum = external local_unnamed_addr global i64, align 8
@.str = external hidden unnamed_addr constant [62 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @DoEvent(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 336
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 344
  %5 = load ptr, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %7, i64 168
  %9 = load i32, ptr %8, align 8, !tbaa !15
  switch i32 %9, label %60 [
    i32 0, label %10
    i32 1, label %13
    i32 3, label %16
    i32 2, label %19
    i32 4, label %36
    i32 10, label %39
    i32 13, label %58
    i32 5, label %42
    i32 11, label %45
    i32 6, label %48
    i32 7, label %51
    i32 8, label %54
    i32 9, label %55
    i32 15, label %58
    i32 14, label %58
  ]

10:                                               ; preds = %1
  tail call void @InteractionEvent(ptr noundef nonnull %3, ptr noundef %5, ptr noundef null, ptr noundef null, ptr noundef nonnull %0)
  %11 = load i64, ptr @collisioneventsum, align 8, !tbaa !21
  %12 = add nsw i64 %11, 1
  store i64 %12, ptr @collisioneventsum, align 8, !tbaa !21
  br label %60

13:                                               ; preds = %1
  tail call void @InteractionEvent(ptr noundef nonnull %3, ptr noundef %5, ptr noundef null, ptr noundef null, ptr noundef nonnull %0)
  %14 = load i64, ptr @bondeventsum, align 8, !tbaa !21
  %15 = add nsw i64 %14, 1
  store i64 %15, ptr @bondeventsum, align 8, !tbaa !21
  br label %60

16:                                               ; preds = %1
  tail call void @InteractionEvent(ptr noundef nonnull %3, ptr noundef %5, ptr noundef null, ptr noundef null, ptr noundef nonnull %0)
  %17 = load i64, ptr @HBNeighboreventsum, align 8, !tbaa !21
  %18 = add nsw i64 %17, 1
  store i64 %18, ptr @HBNeighboreventsum, align 8, !tbaa !21
  br label %60

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 352
  %21 = load ptr, ptr %20, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %7, i64 84
  %23 = load i32, ptr %22, align 4, !tbaa !23
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds ptr, ptr %21, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !24
  %27 = getelementptr inbounds i8, ptr %5, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %28, i64 84
  %30 = load i32, ptr %29, align 4, !tbaa !23
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds ptr, ptr %21, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  tail call void @InteractionEvent(ptr noundef nonnull %3, ptr noundef %5, ptr noundef %26, ptr noundef %33, ptr noundef nonnull %0)
  tail call void @HBEvent(ptr noundef nonnull %3, ptr noundef %5, ptr noundef %26, ptr noundef %33)
  %34 = load i64, ptr @HBeventsum, align 8, !tbaa !21
  %35 = add nsw i64 %34, 1
  store i64 %35, ptr @HBeventsum, align 8, !tbaa !21
  br label %60

36:                                               ; preds = %1
  tail call void @ThermostatEvent(ptr noundef nonnull %3)
  %37 = load i64, ptr @thermostateventsum, align 8, !tbaa !21
  %38 = add nsw i64 %37, 1
  store i64 %38, ptr @thermostateventsum, align 8, !tbaa !21
  br label %60

39:                                               ; preds = %1
  tail call void @PBCandCrossCellEvent(ptr noundef nonnull %3, ptr noundef nonnull %0)
  %40 = load i64, ptr @pbcandcrosseventsum, align 8, !tbaa !21
  %41 = add nsw i64 %40, 1
  store i64 %41, ptr @pbcandcrosseventsum, align 8, !tbaa !21
  br label %60

42:                                               ; preds = %1
  tail call void @WallEvent(ptr noundef nonnull %3)
  %43 = load i64, ptr @walleventsum, align 8, !tbaa !21
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr @walleventsum, align 8, !tbaa !21
  br label %60

45:                                               ; preds = %1
  tail call void @CGSurfaceEvent(ptr noundef nonnull %3, ptr noundef nonnull %0) #4
  %46 = load i64, ptr @CGeventsum, align 8, !tbaa !21
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr @CGeventsum, align 8, !tbaa !21
  br label %60

48:                                               ; preds = %1
  tail call void @ObstEvent(ptr noundef nonnull %3)
  %49 = load i64, ptr @walleventsum, align 8, !tbaa !21
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr @walleventsum, align 8, !tbaa !21
  br label %60

51:                                               ; preds = %1
  tail call void @TunnelEvent(ptr noundef nonnull %3)
  %52 = load i64, ptr @walleventsum, align 8, !tbaa !21
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr @walleventsum, align 8, !tbaa !21
  br label %60

54:                                               ; preds = %1
  tail call void @ChargeEvent(ptr noundef nonnull %3)
  br label %60

55:                                               ; preds = %1
  tail call void @SphObstEvent(ptr noundef nonnull %3)
  %56 = load i64, ptr @walleventsum, align 8, !tbaa !21
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr @walleventsum, align 8, !tbaa !21
  br label %60

58:                                               ; preds = %1, %1, %1
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.1, i32 noundef 105)
  tail call void @exit(i32 noundef 1) #5
  unreachable

60:                                               ; preds = %1, %55, %54, %51, %48, %45, %42, %39, %36, %19, %16, %13, %10
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @InteractionEvent(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HBEvent(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @ThermostatEvent(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @PBCandCrossCellEvent(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @WallEvent(ptr noundef) local_unnamed_addr #0

declare void @CGSurfaceEvent(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @ObstEvent(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @TunnelEvent(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @ChargeEvent(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @SphObstEvent(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { nounwind }
attributes #5 = { noreturn 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, !11, i64 336}
!6 = !{!"AtomListStr", !7, i64 0, !8, i64 4, !8, i64 112, !8, i64 220, !10, i64 328, !11, i64 336, !11, i64 344, !11, i64 352}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 344}
!13 = !{!14, !11, i64 8}
!14 = !{!"AtomStr", !11, i64 0, !11, i64 8}
!15 = !{!16, !7, i64 168}
!16 = !{!"DynamicStr", !8, i64 0, !8, i64 16, !8, i64 48, !17, i64 80, !18, i64 96, !19, i64 128}
!17 = !{!"HBStr", !7, i64 0, !7, i64 4, !8, i64 8, !7, i64 12}
!18 = !{!"HBNeighborStr", !8, i64 0, !7, i64 20, !7, i64 24}
!19 = !{!"InteractionEventStr", !7, i64 0, !20, i64 8, !20, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 44}
!20 = !{!"long", !8, i64 0}
!21 = !{!20, !20, i64 0}
!22 = !{!6, !11, i64 352}
!23 = !{!16, !7, i64 84}
!24 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass