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

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@atomnum = external global i32, align 4
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@wallExist = external global [20 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@wallType = external global [20 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@boxDimension = external global [4 x double], align 16
@.str.10 = external hidden unnamed_addr constant [22 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

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

; 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 @strncmp(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

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

15:                                               ; preds = %3
  %16 = call i32 @strncmp(ptr noundef @wallType, ptr noundef @.str.7, i64 noundef 1) #6
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  store i32 1, ptr %9, align 4
  br label %239

19:                                               ; preds = %15
  %20 = call i32 @strncmp(ptr noundef @wallType, ptr noundef @.str.8, i64 noundef 1) #6
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %28

23:                                               ; preds = %19
  %24 = call i32 @strncmp(ptr noundef @wallType, ptr noundef @.str.9, i64 noundef 1) #6
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %26, %23
  br label %28

28:                                               ; preds = %27, %22
  br label %29

29:                                               ; preds = %28, %3
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call i32 @strncmp(ptr noundef %30, ptr noundef @.str.2, i64 noundef 1) #6
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br label %36

36:                                               ; preds = %33, %29
  %37 = phi i1 [ false, %29 ], [ %35, %33 ]
  %38 = xor i1 %37, true
  %39 = xor i1 %38, true
  %40 = zext i1 %39 to i32
  %41 = sext i32 %40 to i64
  %42 = call i64 @llvm.expect.i64(i64 %41, i64 0)
  %43 = icmp ne i64 %42, 0
  br i1 %43, label %44, label %143

44:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %139, %44
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = load i32, ptr @atomnum, align 4, !tbaa !9
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %142

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %134, %50
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %138

56:                                               ; preds = %51
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.AtomListStr, ptr %57, i32 0, i32 7
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.AtomStr, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  %66 = getelementptr inbounds %struct.DynamicStr, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [4 x double], ptr %66, i64 0, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !16
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !16
  %75 = fcmp oge double %70, %74
  br i1 %75, label %76, label %96

76:                                               ; preds = %56
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !16
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.AtomListStr, ptr %81, i32 0, i32 7
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.AtomStr, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  %90 = getelementptr inbounds %struct.DynamicStr, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [4 x double], ptr %90, i64 0, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = fsub double %94, %80
  store double %95, ptr %93, align 8, !tbaa !16
  br label %133

96:                                               ; preds = %56
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.AtomListStr, ptr %97, i32 0, i32 7
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %99, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.AtomStr, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !14
  %106 = getelementptr inbounds %struct.DynamicStr, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [4 x double], ptr %106, i64 0, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !16
  %111 = fcmp olt double %110, 0.000000e+00
  br i1 %111, label %112, label %132

112:                                              ; preds = %96
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !16
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.AtomListStr, ptr %117, i32 0, i32 7
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.AtomStr, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !14
  %126 = getelementptr inbounds %struct.DynamicStr, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [4 x double], ptr %126, i64 0, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !16
  %131 = fadd double %130, %116
  store double %131, ptr %129, align 8, !tbaa !16
  br label %132

132:                                              ; preds = %112, %96
  br label %133

133:                                              ; preds = %132, %76
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = add nsw i32 %136, %135
  store i32 %137, ptr %11, align 4, !tbaa !9
  br label %51, !llvm.loop !17

138:                                              ; preds = %55
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %10, align 4, !tbaa !9
  br label %45, !llvm.loop !19

142:                                              ; preds = %49
  br label %238

143:                                              ; preds = %36
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = call i32 @strncmp(ptr noundef %144, ptr noundef @.str.3, i64 noundef 1) #6
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %150

147:                                              ; preds = %143
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br label %150

150:                                              ; preds = %147, %143
  %151 = phi i1 [ false, %143 ], [ %149, %147 ]
  %152 = xor i1 %151, true
  %153 = xor i1 %152, true
  %154 = zext i1 %153 to i32
  %155 = sext i32 %154 to i64
  %156 = call i64 @llvm.expect.i64(i64 %155, i64 1)
  %157 = icmp ne i64 %156, 0
  br i1 %157, label %158, label %235

158:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %230, %158
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = load i32, ptr %7, align 4, !tbaa !9
  %162 = icmp sle i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %234

164:                                              ; preds = %159
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.AtomStr, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !14
  %168 = getelementptr inbounds %struct.DynamicStr, ptr %167, i32 0, i32 1
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [4 x double], ptr %168, i64 0, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !16
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !16
  %177 = fcmp oge double %172, %176
  %178 = xor i1 %177, true
  %179 = xor i1 %178, true
  %180 = zext i1 %179 to i32
  %181 = sext i32 %180 to i64
  %182 = call i64 @llvm.expect.i64(i64 %181, i64 0)
  %183 = icmp ne i64 %182, 0
  br i1 %183, label %184, label %198

184:                                              ; preds = %164
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !16
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.AtomStr, ptr %189, i32 0, i32 1
  %191 = load ptr, ptr %190, align 8, !tbaa !14
  %192 = getelementptr inbounds %struct.DynamicStr, ptr %191, i32 0, i32 1
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [4 x double], ptr %192, i64 0, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !16
  %197 = fsub double %196, %188
  store double %197, ptr %195, align 8, !tbaa !16
  br label %229

198:                                              ; preds = %164
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.AtomStr, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !14
  %202 = getelementptr inbounds %struct.DynamicStr, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [4 x double], ptr %202, i64 0, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !16
  %207 = fcmp olt double %206, 0.000000e+00
  %208 = xor i1 %207, true
  %209 = xor i1 %208, true
  %210 = zext i1 %209 to i32
  %211 = sext i32 %210 to i64
  %212 = call i64 @llvm.expect.i64(i64 %211, i64 0)
  %213 = icmp ne i64 %212, 0
  br i1 %213, label %214, label %228

214:                                              ; preds = %198
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %216
  %218 = load double, ptr %217, align 8, !tbaa !16
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.AtomStr, ptr %219, i32 0, i32 1
  %221 = load ptr, ptr %220, align 8, !tbaa !14
  %222 = getelementptr inbounds %struct.DynamicStr, ptr %221, i32 0, i32 1
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [4 x double], ptr %222, i64 0, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !16
  %227 = fadd double %226, %218
  store double %227, ptr %225, align 8, !tbaa !16
  br label %228

228:                                              ; preds = %214, %198
  br label %229

229:                                              ; preds = %228, %184
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %8, align 4, !tbaa !9
  %232 = load i32, ptr %12, align 4, !tbaa !9
  %233 = add nsw i32 %232, %231
  store i32 %233, ptr %12, align 4, !tbaa !9
  br label %159, !llvm.loop !20

234:                                              ; preds = %163
  br label %237

235:                                              ; preds = %150
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %237

237:                                              ; preds = %235, %234
  br label %238

238:                                              ; preds = %237, %142
  store i32 0, ptr %9, align 4
  br label %239

239:                                              ; preds = %238, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %240 = load i32, ptr %9, align 4
  switch i32 %240, label %242 [
    i32 0, label %241
    i32 1, label %241
  ]

241:                                              ; preds = %239, %239
  ret void

242:                                              ; preds = %239
  unreachable
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 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 8}
!15 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@atomnum = external local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@wallExist = external global [20 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@wallType = external local_unnamed_addr global [20 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@boxDimension = external local_unnamed_addr global [4 x double], align 16
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @PBC(ptr nocapture noundef readonly %0, ptr noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #1 {
  %4 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @wallExist, ptr noundef nonnull dereferenceable(1) @.str.6) #3
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %12, label %5

5:                                                ; preds = %3
  %lhsc = load i8, ptr @wallType, align 16
  %rhsc = load i8, ptr @.str.7, align 1
  %6 = icmp eq i8 %lhsc, %rhsc
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %5
  %rhsc52 = load i8, ptr @.str.8, align 1
  %8 = icmp eq i8 %lhsc, %rhsc52
  br i1 %8, label %12, label %9

9:                                                ; preds = %7
  %rhsc54 = load i8, ptr @.str.9, align 1
  %10 = icmp eq i8 %lhsc, %rhsc54
  %11 = select i1 %10, i64 1, i64 3
  br label %12

12:                                               ; preds = %9, %7, %3
  %.042 = phi i64 [ 3, %3 ], [ 3, %7 ], [ %11, %9 ]
  %.041 = phi i64 [ 1, %3 ], [ 2, %7 ], [ 1, %9 ]
  %lhsc55 = load i8, ptr %0, align 1
  %rhsc56 = load i8, ptr @.str.2, align 1
  %13 = icmp eq i8 %lhsc55, %rhsc56
  %14 = icmp eq ptr %1, null
  %15 = and i1 %14, %13
  br i1 %15, label %.preheader62, label %62, !prof !5

.preheader62:                                     ; preds = %12
  %16 = load i32, ptr @atomnum, align 4, !tbaa !6
  %.not6067 = icmp slt i32 %16, 1
  br i1 %.not6067, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader62
  %17 = getelementptr inbounds i8, ptr %2, i64 352
  %18 = load ptr, ptr %17, align 8, !tbaa !10
  %19 = add nuw i32 %16, 1
  %wide.trip.count = zext i32 %19 to i64
  %indvars.iv.next72 = add nuw nsw i64 %.041, 1
  %.not61.not = icmp ult i64 %.041, %.042
  %20 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %indvars.iv.next72
  %indvars.iv.next72.1 = add nuw nsw i64 %indvars.iv.next72, %.041
  %.not61.1 = icmp ugt i64 %indvars.iv.next72.1, %.042
  %21 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %indvars.iv.next72.1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %31
  %indvars.iv74 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next75, %31 ]
  %22 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv74
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = getelementptr inbounds i8, ptr %25, i64 24
  %28 = load double, ptr %27, align 8, !tbaa !17
  %29 = load double, ptr getelementptr inbounds (i8, ptr @boxDimension, i64 8), align 8, !tbaa !17
  %30 = fcmp ult double %28, %29
  br i1 %30, label %34, label %32

31:                                               ; preds = %58, %.sink.split.2, %50, %38
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next75, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !18

32:                                               ; preds = %.preheader
  %33 = fsub double %28, %29
  br label %.sink.split

34:                                               ; preds = %.preheader
  %35 = fcmp olt double %28, 0.000000e+00
  br i1 %35, label %36, label %38

36:                                               ; preds = %34
  %37 = fadd double %28, %29
  br label %.sink.split

.sink.split:                                      ; preds = %36, %32
  %.sink = phi double [ %33, %32 ], [ %37, %36 ]
  store double %.sink, ptr %27, align 8, !tbaa !17
  br label %38

38:                                               ; preds = %.sink.split, %34
  br i1 %.not61.not, label %39, label %31, !llvm.loop !20

39:                                               ; preds = %38
  %40 = getelementptr inbounds [4 x double], ptr %26, i64 0, i64 %indvars.iv.next72
  %41 = load double, ptr %40, align 8, !tbaa !17
  %42 = load double, ptr %20, align 8, !tbaa !17
  %43 = fcmp ult double %41, %42
  br i1 %43, label %46, label %44

44:                                               ; preds = %39
  %45 = fsub double %41, %42
  br label %.sink.split.1

46:                                               ; preds = %39
  %47 = fcmp olt double %41, 0.000000e+00
  br i1 %47, label %48, label %50

48:                                               ; preds = %46
  %49 = fadd double %41, %42
  br label %.sink.split.1

.sink.split.1:                                    ; preds = %48, %44
  %.sink.1 = phi double [ %45, %44 ], [ %49, %48 ]
  store double %.sink.1, ptr %40, align 8, !tbaa !17
  br label %50

50:                                               ; preds = %.sink.split.1, %46
  br i1 %.not61.1, label %31, label %51, !llvm.loop !20

51:                                               ; preds = %50
  %52 = getelementptr inbounds [4 x double], ptr %26, i64 0, i64 %indvars.iv.next72.1
  %53 = load double, ptr %52, align 8, !tbaa !17
  %54 = load double, ptr %21, align 8, !tbaa !17
  %55 = fcmp ult double %53, %54
  br i1 %55, label %58, label %56

56:                                               ; preds = %51
  %57 = fsub double %53, %54
  br label %.sink.split.2

58:                                               ; preds = %51
  %59 = fcmp olt double %53, 0.000000e+00
  br i1 %59, label %60, label %31

60:                                               ; preds = %58
  %61 = fadd double %53, %54
  br label %.sink.split.2

.sink.split.2:                                    ; preds = %60, %56
  %.sink.2 = phi double [ %57, %56 ], [ %61, %60 ]
  store double %.sink.2, ptr %52, align 8, !tbaa !17
  br label %31

62:                                               ; preds = %12
  %rhsc58 = load i8, ptr @.str.3, align 1
  %63 = icmp eq i8 %lhsc55, %rhsc58
  %64 = icmp ne ptr %1, null
  %65 = and i1 %64, %63
  br i1 %65, label %.preheader63, label %105, !prof !21

.preheader63:                                     ; preds = %62
  %66 = getelementptr inbounds i8, ptr %1, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %69 = getelementptr inbounds i8, ptr %67, i64 24
  %70 = load double, ptr %69, align 8, !tbaa !17
  %71 = load double, ptr getelementptr inbounds (i8, ptr @boxDimension, i64 8), align 8, !tbaa !17
  %72 = fcmp ult double %70, %71
  br i1 %72, label %75, label %73, !prof !21

73:                                               ; preds = %.preheader63
  %74 = fsub double %70, %71
  br label %.sink.split78

75:                                               ; preds = %.preheader63
  %76 = fcmp olt double %70, 0.000000e+00
  br i1 %76, label %77, label %79, !prof !5

77:                                               ; preds = %75
  %78 = fadd double %70, %71
  br label %.sink.split78

.sink.split78:                                    ; preds = %77, %73
  %.sink79 = phi double [ %74, %73 ], [ %78, %77 ]
  store double %.sink79, ptr %69, align 8, !tbaa !17
  br label %79

79:                                               ; preds = %.sink.split78, %75
  %indvars.iv.next = add nuw nsw i64 %.041, 1
  %.not59.not = icmp ult i64 %.041, %.042
  br i1 %.not59.not, label %80, label %.loopexit, !llvm.loop !22

80:                                               ; preds = %79
  %81 = getelementptr inbounds [4 x double], ptr %68, i64 0, i64 %indvars.iv.next
  %82 = load double, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %indvars.iv.next
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = fcmp ult double %82, %84
  br i1 %85, label %88, label %86, !prof !21

86:                                               ; preds = %80
  %87 = fsub double %82, %84
  br label %.sink.split78.1

88:                                               ; preds = %80
  %89 = fcmp olt double %82, 0.000000e+00
  br i1 %89, label %90, label %92, !prof !5

90:                                               ; preds = %88
  %91 = fadd double %82, %84
  br label %.sink.split78.1

.sink.split78.1:                                  ; preds = %90, %86
  %.sink79.1 = phi double [ %87, %86 ], [ %91, %90 ]
  store double %.sink79.1, ptr %81, align 8, !tbaa !17
  br label %92

92:                                               ; preds = %.sink.split78.1, %88
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.next, %.041
  %.not59.1 = icmp ugt i64 %indvars.iv.next.1, %.042
  br i1 %.not59.1, label %.loopexit, label %93, !llvm.loop !22

93:                                               ; preds = %92
  %94 = getelementptr inbounds [4 x double], ptr %68, i64 0, i64 %indvars.iv.next.1
  %95 = load double, ptr %94, align 8, !tbaa !17
  %96 = getelementptr inbounds [4 x double], ptr @boxDimension, i64 0, i64 %indvars.iv.next.1
  %97 = load double, ptr %96, align 8, !tbaa !17
  %98 = fcmp ult double %95, %97
  br i1 %98, label %101, label %99, !prof !21

99:                                               ; preds = %93
  %100 = fsub double %95, %97
  br label %.sink.split78.2

101:                                              ; preds = %93
  %102 = fcmp olt double %95, 0.000000e+00
  br i1 %102, label %103, label %.loopexit, !prof !5

103:                                              ; preds = %101
  %104 = fadd double %95, %97
  br label %.sink.split78.2

.sink.split78.2:                                  ; preds = %103, %99
  %.sink79.2 = phi double [ %100, %99 ], [ %104, %103 ]
  store double %.sink79.2, ptr %94, align 8, !tbaa !17
  br label %.loopexit

105:                                              ; preds = %62
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %.loopexit

.loopexit:                                        ; preds = %79, %92, %.sink.split78.2, %101, %31, %.preheader62, %105, %5
  ret void
}

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

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 352}
!11 = !{!"AtomListStr", !7, i64 0, !8, i64 4, !8, i64 112, !8, i64 220, !12, i64 328, !13, i64 336, !13, i64 344, !13, i64 352}
!12 = !{!"double", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !13, i64 8}
!16 = !{!"AtomStr", !13, i64 0, !13, i64 8}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!22 = distinct !{!22, !19}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass