; 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.AtomListStr = type { i32, [27 x i32], [27 x i32], [27 x i32], double, ptr, ptr, ptr }
%struct.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.DynamicWallStr = type { [16 x i8], i32, i32, double, double, double, double, [4 x double] }
%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 }
%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.FileStr = type { i32, [256 x i8], ptr }

@fileList = external global ptr, align 8
@atomList = external global %struct.AtomListStr, align 8
@CG = external global %struct.CGGovStr, align 8
@currenttime = external global double, align 8
@outputrate = external global double, align 8
@outputrecord = external global double, align 8
@timestep = external global double, align 8
@frame = external global i64, align 8
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@oldcurrenttime = external global double, align 8
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@stdout = external global ptr, align 8
@wallDyn = external global %struct.DynamicWallStr, align 8
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@countReCal = external global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local void @SingleThreadRun() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [256 x i32], align 16
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr @atomList, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  br label %9

9:                                                ; preds = %209, %0
  %10 = load double, ptr @currenttime, align 8, !tbaa !5
  %11 = load double, ptr @timestep, align 8, !tbaa !5
  %12 = fcmp ole double %10, %11
  br i1 %12, label %13, label %210

13:                                               ; preds = %9
  %14 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  call void @AssignJob(ptr noundef %6, ptr noundef %7, ptr noundef %14, ptr noundef %15)
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.AtomListStr, ptr %16, i32 0, i32 4
  %18 = load double, ptr %17, align 8, !tbaa !11
  call void @UpdateData(double noundef %18)
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.AtomListStr, ptr %19, i32 0, i32 4
  %21 = load double, ptr %20, align 8, !tbaa !11
  call void @TimeForward(double noundef %21)
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.AtomListStr, ptr %22, i32 0, i32 4
  %24 = load double, ptr %23, align 8, !tbaa !11
  %25 = load double, ptr @currenttime, align 8, !tbaa !5
  %26 = fadd double %25, %24
  store double %26, ptr @currenttime, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !9
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.AtomListStr, ptr %29, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load ptr, ptr %6, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.AtomStr, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %struct.DynamicStr, ptr %34, i32 0, i32 3
  %36 = getelementptr inbounds %struct.HBStr, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !17
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %31, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %56

43:                                               ; preds = %13
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.AtomListStr, ptr %44, i32 0, i32 7
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = load ptr, ptr %7, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.AtomStr, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = getelementptr inbounds %struct.DynamicStr, ptr %49, i32 0, i32 3
  %51 = getelementptr inbounds %struct.HBStr, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !17
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %46, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  br label %57

56:                                               ; preds = %13
  br label %57

57:                                               ; preds = %56, %43
  %58 = phi ptr [ %55, %43 ], [ null, %56 ]
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = call i32 @HazardCheck(ptr noundef %27, ptr noundef %28, ptr noundef %40, ptr noundef %58, ptr noundef %59)
  store i32 %60, ptr %1, align 4, !tbaa !23
  %61 = load i32, ptr %1, align 4, !tbaa !23
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %200, label %63

63:                                               ; preds = %57
  %64 = load i64, ptr @frame, align 8, !tbaa !24
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr @frame, align 8, !tbaa !24
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  call void @DoEvent(ptr noundef %66)
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.AtomStr, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds %struct.DynamicStr, ptr %69, i32 0, i32 5
  %71 = getelementptr inbounds %struct.InteractionEventStr, ptr %70, i32 0, i32 1
  %72 = load i64, ptr %71, align 8, !tbaa !25
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %71, align 8, !tbaa !25
  %74 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  %75 = load i32, ptr %74, align 16, !tbaa !23
  %76 = icmp eq i32 %75, 2
  br i1 %76, label %77, label %94

77:                                               ; preds = %63
  %78 = load ptr, ptr %7, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.AtomStr, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = getelementptr inbounds %struct.PropertyStr, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds [2 x [16 x i8]], ptr %81, i64 0, i64 1
  %83 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 0
  %84 = call i32 @strcmp(ptr noundef %83, ptr noundef @.str.8) #7
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %94

86:                                               ; preds = %77
  %87 = load ptr, ptr %7, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.AtomStr, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = getelementptr inbounds %struct.DynamicStr, ptr %89, i32 0, i32 5
  %91 = getelementptr inbounds %struct.InteractionEventStr, ptr %90, i32 0, i32 1
  %92 = load i64, ptr %91, align 8, !tbaa !25
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %91, align 8, !tbaa !25
  br label %94

94:                                               ; preds = %86, %77, %63
  %95 = load i32, ptr getelementptr inbounds (%struct.CGGovStr, ptr @CG, i32 0, i32 1), align 8, !tbaa !27
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %132

97:                                               ; preds = %94
  %98 = load ptr, ptr %6, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.AtomStr, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds %struct.DynamicStr, ptr %100, i32 0, i32 5
  %102 = getelementptr inbounds %struct.InteractionEventStr, ptr %101, i32 0, i32 5
  %103 = load i32, ptr %102, align 8, !tbaa !29
  %104 = icmp eq i32 %103, 11
  br i1 %104, label %105, label %132

105:                                              ; preds = %97
  %106 = load ptr, ptr %6, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.AtomStr, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  %109 = getelementptr inbounds %struct.PropertyStr, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds [2 x [16 x i8]], ptr %109, i64 0, i64 1
  %111 = getelementptr inbounds [16 x i8], ptr %110, i64 0, i64 0
  %112 = call i32 @strcmp(ptr noundef %111, ptr noundef @.str.8) #7
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %105
  %115 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  %116 = load ptr, ptr %5, align 8, !tbaa !9
  call void @FixAssignRenewList(ptr noundef %115, ptr noundef %116)
  br label %117

117:                                              ; preds = %114, %105
  %118 = call i32 @strcmp(ptr noundef getelementptr inbounds ([2 x [16 x i8]], ptr @CG, i64 0, i64 1), ptr noundef @.str.9) #7
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %131

120:                                              ; preds = %117
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.AtomStr, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !26
  %124 = getelementptr inbounds %struct.PropertyStr, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds [8 x i8], ptr %124, i64 0, i64 0
  %126 = call i32 @strcmp(ptr noundef %125, ptr noundef @.str.10) #7
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %131

128:                                              ; preds = %120
  %129 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  %130 = load ptr, ptr %5, align 8, !tbaa !9
  call void @CGResidueRenew(ptr noundef %129, ptr noundef %130)
  br label %131

131:                                              ; preds = %128, %120, %117
  br label %132

132:                                              ; preds = %131, %97, %94
  %133 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  %134 = load ptr, ptr %5, align 8, !tbaa !9
  call void @Predict(ptr noundef %133, ptr noundef %134)
  %135 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  call void @UpdateCBT(ptr noundef %135)
  %136 = load double, ptr @currenttime, align 8, !tbaa !5
  %137 = load double, ptr @oldcurrenttime, align 8, !tbaa !5
  %138 = fsub double %136, %137
  %139 = load double, ptr @timestep, align 8, !tbaa !5
  %140 = load double, ptr @oldcurrenttime, align 8, !tbaa !5
  %141 = fsub double %139, %140
  %142 = fdiv double %138, %141
  %143 = fmul double %142, 1.000000e+02
  store double %143, ptr %3, align 8, !tbaa !5
  %144 = load double, ptr %3, align 8, !tbaa !5
  %145 = load double, ptr %4, align 8, !tbaa !5
  %146 = fadd double %145, 1.000000e-02
  %147 = fcmp oge double %144, %146
  %148 = xor i1 %147, true
  %149 = xor i1 %148, true
  %150 = zext i1 %149 to i32
  %151 = sext i32 %150 to i64
  %152 = call i64 @llvm.expect.i64(i64 %151, i64 0)
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %161

154:                                              ; preds = %132
  %155 = load double, ptr %3, align 8, !tbaa !5
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %155)
  %157 = load ptr, ptr @stdout, align 8, !tbaa !9
  %158 = call i32 @fflush(ptr noundef %157)
  %159 = load double, ptr %4, align 8, !tbaa !5
  %160 = fadd double %159, 1.000000e-02
  store double %160, ptr %4, align 8, !tbaa !5
  br label %161

161:                                              ; preds = %154, %132
  %162 = call i32 @strcmp(ptr noundef @wallDyn, ptr noundef @.str.12) #7
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  call void @DoWallDyn()
  br label %165

165:                                              ; preds = %164, %161
  %166 = load double, ptr @currenttime, align 8, !tbaa !5
  %167 = load double, ptr @outputrecord, align 8, !tbaa !5
  %168 = fcmp oge double %166, %167
  %169 = xor i1 %168, true
  %170 = xor i1 %169, true
  %171 = zext i1 %170 to i32
  %172 = sext i32 %171 to i64
  %173 = call i64 @llvm.expect.i64(i64 %172, i64 0)
  %174 = icmp ne i64 %173, 0
  br i1 %174, label %175, label %199

175:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !23
  br label %176

176:                                              ; preds = %192, %175
  %177 = load i32, ptr %8, align 4, !tbaa !23
  %178 = icmp slt i32 %177, 15
  br i1 %178, label %180, label %179

179:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %195

180:                                              ; preds = %176
  %181 = load ptr, ptr @fileList, align 8, !tbaa !9
  %182 = load i32, ptr %8, align 4, !tbaa !23
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds %struct.FileStr, ptr %181, i64 %183
  %185 = getelementptr inbounds %struct.FileStr, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !30
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %191

188:                                              ; preds = %180
  %189 = load i32, ptr %8, align 4, !tbaa !23
  %190 = load ptr, ptr @fileList, align 8, !tbaa !9
  call void @SaveData(i32 noundef %189, ptr noundef %190)
  br label %191

191:                                              ; preds = %188, %180
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %8, align 4, !tbaa !23
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %8, align 4, !tbaa !23
  br label %176, !llvm.loop !32

195:                                              ; preds = %179
  %196 = load double, ptr @outputrate, align 8, !tbaa !5
  %197 = load double, ptr @outputrecord, align 8, !tbaa !5
  %198 = fadd double %197, %196
  store double %198, ptr @outputrecord, align 8, !tbaa !5
  br label %199

199:                                              ; preds = %195, %165
  br label %209

200:                                              ; preds = %57
  %201 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  store i32 1, ptr %201, align 16, !tbaa !23
  %202 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 2
  store i32 0, ptr %202, align 8, !tbaa !23
  %203 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 3
  store i32 0, ptr %203, align 4, !tbaa !23
  %204 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  %205 = load ptr, ptr %5, align 8, !tbaa !9
  call void @Predict(ptr noundef %204, ptr noundef %205)
  %206 = getelementptr inbounds [256 x i32], ptr %2, i64 0, i64 0
  call void @UpdateCBT(ptr noundef %206)
  %207 = load i64, ptr @countReCal, align 8, !tbaa !24
  %208 = add nsw i64 %207, 1
  store i64 %208, ptr @countReCal, align 8, !tbaa !24
  br label %209

209:                                              ; preds = %200, %199
  br label %9, !llvm.loop !34

210:                                              ; preds = %9
  call void @FreeVariables()
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

declare void @UpdateData(double noundef) #2

declare void @TimeForward(double noundef) #2

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

declare void @DoEvent(ptr noundef) #2

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

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

declare void @UpdateCBT(ptr noundef) #2

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

declare i32 @fflush(ptr noundef) #2

declare void @DoWallDyn() #2

; Function Attrs: nounwind uwtable
declare dso_local void @FreeVariables() #0

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"double", !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, !6, i64 328}
!12 = !{!"AtomListStr", !13, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !6, i64 328, !10, i64 336, !10, i64 344, !10, i64 352}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 352}
!15 = !{!16, !10, i64 8}
!16 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!17 = !{!18, !13, i64 84}
!18 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !19, i64 80, !20, i64 96, !21, i64 128}
!19 = !{!"HBStr", !13, i64 0, !13, i64 4, !7, i64 8, !13, i64 12}
!20 = !{!"HBNeighborStr", !7, i64 0, !13, i64 20, !13, i64 24}
!21 = !{!"InteractionEventStr", !13, i64 0, !22, i64 8, !22, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44}
!22 = !{!"long", !7, i64 0}
!23 = !{!13, !13, i64 0}
!24 = !{!22, !22, i64 0}
!25 = !{!18, !22, i64 136}
!26 = !{!16, !10, i64 0}
!27 = !{!28, !13, i64 32}
!28 = !{!"CGGovStr", !7, i64 0, !13, i64 32, !13, i64 36, !10, i64 40, !10, i64 48}
!29 = !{!18, !13, i64 168}
!30 = !{!31, !13, i64 0}
!31 = !{!"FileStr", !13, i64 0, !7, i64 4, !10, i64 264}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


; 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.AtomListStr = type { i32, [27 x i32], [27 x i32], [27 x i32], double, ptr, ptr, ptr }
%struct.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.DynamicWallStr = type { [16 x i8], i32, i32, double, double, double, double, [4 x double] }

@fileList = external local_unnamed_addr global ptr, align 8
@atomList = external global %struct.AtomListStr, align 8
@CG = external global %struct.CGGovStr, align 8
@currenttime = external local_unnamed_addr global double, align 8
@outputrate = external local_unnamed_addr global double, align 8
@outputrecord = external local_unnamed_addr global double, align 8
@timestep = external local_unnamed_addr global double, align 8
@frame = external local_unnamed_addr global i64, align 8
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@oldcurrenttime = external local_unnamed_addr global double, align 8
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@wallDyn = external global %struct.DynamicWallStr, align 8
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@countReCal = external local_unnamed_addr global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local void @SingleThreadRun() local_unnamed_addr #0 {
  %1 = alloca [256 x i32], align 16
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %1, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %4 = load double, ptr @currenttime, align 8, !tbaa !5
  %5 = load double, ptr @timestep, align 8, !tbaa !5
  %6 = fcmp ugt double %4, %5
  br i1 %6, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = getelementptr inbounds i8, ptr %1, i64 12
  br label %9

9:                                                ; preds = %.lr.ph, %166
  %.02030 = phi double [ 0.000000e+00, %.lr.ph ], [ %.2, %166 ]
  call void @AssignJob(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %1, ptr noundef nonnull @atomList)
  %10 = load double, ptr getelementptr inbounds (i8, ptr @atomList, i64 328), align 8, !tbaa !9
  call void @UpdateData(double noundef %10) #6
  %11 = load double, ptr getelementptr inbounds (i8, ptr @atomList, i64 328), align 8, !tbaa !9
  call void @TimeForward(double noundef %11) #6
  %12 = load double, ptr getelementptr inbounds (i8, ptr @atomList, i64 328), align 8, !tbaa !9
  %13 = load double, ptr @currenttime, align 8, !tbaa !5
  %14 = fadd double %12, %13
  store double %14, ptr @currenttime, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !13
  %16 = load ptr, ptr %3, align 8, !tbaa !13
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @atomList, i64 352), align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %15, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %19, i64 84
  %21 = load i32, ptr %20, align 4, !tbaa !17
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds ptr, ptr %17, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %33, label %25

25:                                               ; preds = %9
  %26 = getelementptr inbounds i8, ptr %16, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %27, i64 84
  %29 = load i32, ptr %28, align 4, !tbaa !17
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %17, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  br label %33

33:                                               ; preds = %9, %25
  %34 = phi ptr [ %32, %25 ], [ null, %9 ]
  %35 = call i32 @HazardCheck(ptr noundef nonnull %15, ptr noundef %16, ptr noundef %24, ptr noundef %34, ptr noundef nonnull @atomList)
  %.not24 = icmp eq i32 %35, 0
  br i1 %.not24, label %36, label %163

36:                                               ; preds = %33
  %37 = load i64, ptr @frame, align 8, !tbaa !23
  %38 = add nsw i64 %37, 1
  store i64 %38, ptr @frame, align 8, !tbaa !23
  call void @DoEvent(ptr noundef nonnull @atomList) #6
  %39 = load ptr, ptr %2, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %41, i64 136
  %43 = load i64, ptr %42, align 8, !tbaa !24
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %42, align 8, !tbaa !24
  %45 = load i32, ptr %1, align 16, !tbaa !25
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %58

47:                                               ; preds = %36
  %48 = load ptr, ptr %3, align 8, !tbaa !13
  %49 = load ptr, ptr %48, align 8, !tbaa !26
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %50, ptr noundef nonnull dereferenceable(1) @.str.8) #7
  %.not25 = icmp eq i32 %51, 0
  br i1 %.not25, label %58, label %52

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %48, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = getelementptr inbounds i8, ptr %54, i64 136
  %56 = load i64, ptr %55, align 8, !tbaa !24
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %55, align 8, !tbaa !24
  br label %58

58:                                               ; preds = %52, %47, %36
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @CG, i64 32), align 8, !tbaa !27
  %.not26 = icmp eq i32 %59, 0
  br i1 %.not26, label %79, label %60

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %41, i64 168
  %62 = load i32, ptr %61, align 8, !tbaa !29
  %63 = icmp eq i32 %62, 11
  br i1 %63, label %64, label %79

64:                                               ; preds = %60
  %65 = load ptr, ptr %39, align 8, !tbaa !26
  %66 = getelementptr inbounds i8, ptr %65, i64 24
  %67 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %66, ptr noundef nonnull dereferenceable(1) @.str.8) #7
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  call void @FixAssignRenewList(ptr noundef nonnull %1, ptr noundef nonnull @atomList) #6
  br label %70

70:                                               ; preds = %69, %64
  %71 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @CG, i64 16), ptr noundef nonnull dereferenceable(1) @.str.9) #7
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %79

73:                                               ; preds = %70
  %74 = load ptr, ptr %2, align 8, !tbaa !13
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  %76 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %75, ptr noundef nonnull dereferenceable(1) @.str.10) #7
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  call void @CGResidueRenew(ptr noundef nonnull %1, ptr noundef nonnull @atomList) #6
  br label %79

79:                                               ; preds = %70, %73, %78, %60, %58
  call void @Predict(ptr noundef nonnull %1, ptr noundef nonnull @atomList)
  call void @UpdateCBT(ptr noundef nonnull %1) #6
  %80 = load double, ptr @currenttime, align 8, !tbaa !5
  %81 = load double, ptr @oldcurrenttime, align 8, !tbaa !5
  %82 = fsub double %80, %81
  %83 = load double, ptr @timestep, align 8, !tbaa !5
  %84 = fsub double %83, %81
  %85 = fdiv double %82, %84
  %86 = fmul double %85, 1.000000e+02
  %87 = fadd double %.02030, 1.000000e-02
  %88 = fcmp ult double %86, %87
  br i1 %88, label %93, label %89, !prof !30

89:                                               ; preds = %79
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %86)
  %91 = load ptr, ptr @stdout, align 8, !tbaa !13
  %92 = call i32 @fflush(ptr noundef %91)
  br label %93

93:                                               ; preds = %89, %79
  %.1 = phi double [ %87, %89 ], [ %.02030, %79 ]
  %94 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @wallDyn, ptr noundef nonnull dereferenceable(1) @.str.12) #7
  %.not27 = icmp eq i32 %94, 0
  br i1 %.not27, label %96, label %95

95:                                               ; preds = %93
  call void @DoWallDyn() #6
  br label %96

96:                                               ; preds = %95, %93
  %97 = load double, ptr @currenttime, align 8, !tbaa !5
  %98 = load double, ptr @outputrecord, align 8, !tbaa !5
  %99 = fcmp ult double %97, %98
  br i1 %99, label %166, label %.preheader.preheader, !prof !30

.preheader.preheader:                             ; preds = %96
  %100 = load ptr, ptr @fileList, align 8, !tbaa !13
  %101 = load i32, ptr %100, align 8, !tbaa !31
  %.not28 = icmp eq i32 %101, 0
  br i1 %.not28, label %.preheader.1, label %102

102:                                              ; preds = %.preheader.preheader
  call void @SaveData(i32 noundef 0, ptr noundef nonnull %100) #6
  %.pre = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader, %102
  %103 = phi ptr [ %100, %.preheader.preheader ], [ %.pre, %102 ]
  %104 = getelementptr inbounds i8, ptr %103, i64 272
  %105 = load i32, ptr %104, align 8, !tbaa !31
  %.not28.1 = icmp eq i32 %105, 0
  br i1 %.not28.1, label %.preheader.2, label %106

106:                                              ; preds = %.preheader.1
  call void @SaveData(i32 noundef 1, ptr noundef nonnull %103) #6
  %.pre32 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.2

.preheader.2:                                     ; preds = %106, %.preheader.1
  %107 = phi ptr [ %.pre32, %106 ], [ %103, %.preheader.1 ]
  %108 = getelementptr inbounds i8, ptr %107, i64 544
  %109 = load i32, ptr %108, align 8, !tbaa !31
  %.not28.2 = icmp eq i32 %109, 0
  br i1 %.not28.2, label %.preheader.3, label %110

110:                                              ; preds = %.preheader.2
  call void @SaveData(i32 noundef 2, ptr noundef nonnull %107) #6
  %.pre33 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.3

.preheader.3:                                     ; preds = %110, %.preheader.2
  %111 = phi ptr [ %.pre33, %110 ], [ %107, %.preheader.2 ]
  %112 = getelementptr inbounds i8, ptr %111, i64 816
  %113 = load i32, ptr %112, align 8, !tbaa !31
  %.not28.3 = icmp eq i32 %113, 0
  br i1 %.not28.3, label %.preheader.4, label %114

114:                                              ; preds = %.preheader.3
  call void @SaveData(i32 noundef 3, ptr noundef nonnull %111) #6
  %.pre34 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.4

.preheader.4:                                     ; preds = %114, %.preheader.3
  %115 = phi ptr [ %.pre34, %114 ], [ %111, %.preheader.3 ]
  %116 = getelementptr inbounds i8, ptr %115, i64 1088
  %117 = load i32, ptr %116, align 8, !tbaa !31
  %.not28.4 = icmp eq i32 %117, 0
  br i1 %.not28.4, label %.preheader.5, label %118

118:                                              ; preds = %.preheader.4
  call void @SaveData(i32 noundef 4, ptr noundef nonnull %115) #6
  %.pre35 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.5

.preheader.5:                                     ; preds = %118, %.preheader.4
  %119 = phi ptr [ %.pre35, %118 ], [ %115, %.preheader.4 ]
  %120 = getelementptr inbounds i8, ptr %119, i64 1360
  %121 = load i32, ptr %120, align 8, !tbaa !31
  %.not28.5 = icmp eq i32 %121, 0
  br i1 %.not28.5, label %.preheader.6, label %122

122:                                              ; preds = %.preheader.5
  call void @SaveData(i32 noundef 5, ptr noundef nonnull %119) #6
  %.pre36 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.6

.preheader.6:                                     ; preds = %122, %.preheader.5
  %123 = phi ptr [ %.pre36, %122 ], [ %119, %.preheader.5 ]
  %124 = getelementptr inbounds i8, ptr %123, i64 1632
  %125 = load i32, ptr %124, align 8, !tbaa !31
  %.not28.6 = icmp eq i32 %125, 0
  br i1 %.not28.6, label %.preheader.7, label %126

126:                                              ; preds = %.preheader.6
  call void @SaveData(i32 noundef 6, ptr noundef nonnull %123) #6
  %.pre37 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.7

.preheader.7:                                     ; preds = %126, %.preheader.6
  %127 = phi ptr [ %.pre37, %126 ], [ %123, %.preheader.6 ]
  %128 = getelementptr inbounds i8, ptr %127, i64 1904
  %129 = load i32, ptr %128, align 8, !tbaa !31
  %.not28.7 = icmp eq i32 %129, 0
  br i1 %.not28.7, label %.preheader.8, label %130

130:                                              ; preds = %.preheader.7
  call void @SaveData(i32 noundef 7, ptr noundef nonnull %127) #6
  %.pre38 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.8

.preheader.8:                                     ; preds = %130, %.preheader.7
  %131 = phi ptr [ %.pre38, %130 ], [ %127, %.preheader.7 ]
  %132 = getelementptr inbounds i8, ptr %131, i64 2176
  %133 = load i32, ptr %132, align 8, !tbaa !31
  %.not28.8 = icmp eq i32 %133, 0
  br i1 %.not28.8, label %.preheader.9, label %134

134:                                              ; preds = %.preheader.8
  call void @SaveData(i32 noundef 8, ptr noundef nonnull %131) #6
  %.pre39 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.9

.preheader.9:                                     ; preds = %134, %.preheader.8
  %135 = phi ptr [ %.pre39, %134 ], [ %131, %.preheader.8 ]
  %136 = getelementptr inbounds i8, ptr %135, i64 2448
  %137 = load i32, ptr %136, align 8, !tbaa !31
  %.not28.9 = icmp eq i32 %137, 0
  br i1 %.not28.9, label %.preheader.10, label %138

138:                                              ; preds = %.preheader.9
  call void @SaveData(i32 noundef 9, ptr noundef nonnull %135) #6
  %.pre40 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.10

.preheader.10:                                    ; preds = %138, %.preheader.9
  %139 = phi ptr [ %.pre40, %138 ], [ %135, %.preheader.9 ]
  %140 = getelementptr inbounds i8, ptr %139, i64 2720
  %141 = load i32, ptr %140, align 8, !tbaa !31
  %.not28.10 = icmp eq i32 %141, 0
  br i1 %.not28.10, label %.preheader.11, label %142

142:                                              ; preds = %.preheader.10
  call void @SaveData(i32 noundef 10, ptr noundef nonnull %139) #6
  %.pre41 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.11

.preheader.11:                                    ; preds = %142, %.preheader.10
  %143 = phi ptr [ %.pre41, %142 ], [ %139, %.preheader.10 ]
  %144 = getelementptr inbounds i8, ptr %143, i64 2992
  %145 = load i32, ptr %144, align 8, !tbaa !31
  %.not28.11 = icmp eq i32 %145, 0
  br i1 %.not28.11, label %.preheader.12, label %146

146:                                              ; preds = %.preheader.11
  call void @SaveData(i32 noundef 11, ptr noundef nonnull %143) #6
  %.pre42 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.12

.preheader.12:                                    ; preds = %146, %.preheader.11
  %147 = phi ptr [ %.pre42, %146 ], [ %143, %.preheader.11 ]
  %148 = getelementptr inbounds i8, ptr %147, i64 3264
  %149 = load i32, ptr %148, align 8, !tbaa !31
  %.not28.12 = icmp eq i32 %149, 0
  br i1 %.not28.12, label %.preheader.13, label %150

150:                                              ; preds = %.preheader.12
  call void @SaveData(i32 noundef 12, ptr noundef nonnull %147) #6
  %.pre43 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.13

.preheader.13:                                    ; preds = %150, %.preheader.12
  %151 = phi ptr [ %.pre43, %150 ], [ %147, %.preheader.12 ]
  %152 = getelementptr inbounds i8, ptr %151, i64 3536
  %153 = load i32, ptr %152, align 8, !tbaa !31
  %.not28.13 = icmp eq i32 %153, 0
  br i1 %.not28.13, label %.preheader.14, label %154

154:                                              ; preds = %.preheader.13
  call void @SaveData(i32 noundef 13, ptr noundef nonnull %151) #6
  %.pre44 = load ptr, ptr @fileList, align 8, !tbaa !13
  br label %.preheader.14

.preheader.14:                                    ; preds = %154, %.preheader.13
  %155 = phi ptr [ %.pre44, %154 ], [ %151, %.preheader.13 ]
  %156 = getelementptr inbounds i8, ptr %155, i64 3808
  %157 = load i32, ptr %156, align 8, !tbaa !31
  %.not28.14 = icmp eq i32 %157, 0
  br i1 %.not28.14, label %159, label %158

158:                                              ; preds = %.preheader.14
  call void @SaveData(i32 noundef 14, ptr noundef nonnull %155) #6
  br label %159

159:                                              ; preds = %158, %.preheader.14
  %160 = load double, ptr @outputrate, align 8, !tbaa !5
  %161 = load double, ptr @outputrecord, align 8, !tbaa !5
  %162 = fadd double %160, %161
  store double %162, ptr @outputrecord, align 8, !tbaa !5
  br label %166

163:                                              ; preds = %33
  store i32 1, ptr %1, align 16, !tbaa !25
  store i32 0, ptr %7, align 8, !tbaa !25
  store i32 0, ptr %8, align 4, !tbaa !25
  call void @Predict(ptr noundef nonnull %1, ptr noundef nonnull @atomList)
  call void @UpdateCBT(ptr noundef nonnull %1) #6
  %164 = load i64, ptr @countReCal, align 8, !tbaa !23
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr @countReCal, align 8, !tbaa !23
  br label %166

166:                                              ; preds = %96, %159, %163
  %.2 = phi double [ %.02030, %163 ], [ %.1, %159 ], [ %.1, %96 ]
  %167 = load double, ptr @currenttime, align 8, !tbaa !5
  %168 = load double, ptr @timestep, align 8, !tbaa !5
  %169 = fcmp ugt double %167, %168
  br i1 %169, label %._crit_edge, label %9, !llvm.loop !33

._crit_edge:                                      ; preds = %166, %0
  call void @FreeVariables()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %1) #6
  ret void
}

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

declare void @SaveData(i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

declare void @UpdateData(double noundef) local_unnamed_addr #2

declare void @TimeForward(double noundef) local_unnamed_addr #2

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

declare void @DoEvent(ptr noundef) local_unnamed_addr #2

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

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

declare void @UpdateCBT(ptr noundef) local_unnamed_addr #2

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

declare void @DoWallDyn() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @FreeVariables() local_unnamed_addr #0

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 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 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 328}
!10 = !{!"AtomListStr", !11, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !6, i64 328, !12, i64 336, !12, i64 344, !12, i64 352}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !12, i64 352}
!15 = !{!16, !12, i64 8}
!16 = !{!"AtomStr", !12, i64 0, !12, i64 8}
!17 = !{!18, !11, i64 84}
!18 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !19, i64 80, !20, i64 96, !21, i64 128}
!19 = !{!"HBStr", !11, i64 0, !11, i64 4, !7, i64 8, !11, i64 12}
!20 = !{!"HBNeighborStr", !7, i64 0, !11, i64 20, !11, i64 24}
!21 = !{!"InteractionEventStr", !11, i64 0, !22, i64 8, !22, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 44}
!22 = !{!"long", !7, i64 0}
!23 = !{!22, !22, i64 0}
!24 = !{!18, !22, i64 136}
!25 = !{!11, !11, i64 0}
!26 = !{!16, !12, i64 0}
!27 = !{!28, !11, i64 32}
!28 = !{!"CGGovStr", !7, i64 0, !11, i64 32, !11, i64 36, !12, i64 40, !12, i64 48}
!29 = !{!18, !11, i64 168}
!30 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!31 = !{!32, !11, i64 0}
!32 = !{!"FileStr", !11, i64 0, !7, i64 4, !12, i64 264}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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