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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.ParameterStr = type { i32, i32, [4 x double], [4 x double], [4 x double], double, double, double, double, [4 x double], double, double, double, double, double, [4 x double], [4 x double], [4 x double], [4 x double] }
%struct.InteractionEventStr = type { i32, i64, i64, double, double, i32, i32 }
%struct.AtomStr = type { ptr, ptr }
%struct.PropertyStr = type { [8 x i8], [2 x [16 x i8]], [8 x i8], i32, i32, i32, double, double, [3 x double], %struct.AtomSeqStr, ptr, ptr }
%struct.AtomSeqStr = type { i32, i32, i32 }
%struct.DynamicStr = type { [4 x i32], [4 x double], [4 x double], %struct.HBStr, %struct.HBNeighborStr, %struct.InteractionEventStr }
%struct.HBStr = type { i32, i32, i8, i32 }
%struct.HBNeighborStr = type { [5 x i32], i32, i32 }

@tmpDouble = external global double, align 8
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@obstObj = external global %struct.ObstructionStr, align 8
@.str.27 = external hidden unnamed_addr constant [61 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

; Function Attrs: nounwind uwtable
declare dso_local void @InitializeEvent(ptr noundef) #1

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

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

declare i32 @FindPair(ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local double @CalculateTime(ptr noundef) #1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @ObstTime(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.ParameterStr, align 8
  %5 = alloca %struct.InteractionEventStr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.AtomStr, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.PropertyStr, ptr %14, i32 0, i32 3
  %16 = load i32, ptr %15, align 8, !tbaa !11
  store i32 %16, ptr %3, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 336, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !16
  br label %17

17:                                               ; preds = %429, %1
  %18 = load i32, ptr %6, align 4, !tbaa !16
  %19 = load i32, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 1), align 4, !tbaa !17
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %432

22:                                               ; preds = %17
  call void @InitializeEvent(ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %23 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 4), align 8, !tbaa !19
  %24 = load i32, ptr %6, align 4, !tbaa !16
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds %struct.AtomStr, ptr %23, i64 %25
  store ptr %26, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !16
  br label %27

27:                                               ; preds = %425, %22
  %28 = load i32, ptr %9, align 4, !tbaa !16
  %29 = icmp sle i32 %28, 3
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %428

31:                                               ; preds = %27
  %32 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 3), align 8, !tbaa !20
  %33 = load i32, ptr %6, align 4, !tbaa !16
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %32, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = load i32, ptr %9, align 4, !tbaa !16
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !21
  %41 = fcmp olt double %40, 0.000000e+00
  br i1 %41, label %42, label %43

42:                                               ; preds = %31
  br label %425

43:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store double 0.000000e+00, ptr %10, align 8, !tbaa !21
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.AtomStr, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = getelementptr inbounds %struct.DynamicStr, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds [4 x double], ptr %47, i64 0, i64 0
  %49 = load double, ptr %48, align 8, !tbaa !21
  %50 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %51 = getelementptr inbounds [4 x double], ptr %50, i64 0, i64 0
  store double %49, ptr %51, align 8, !tbaa !21
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.AtomStr, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds %struct.DynamicStr, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds [4 x double], ptr %55, i64 0, i64 1
  %57 = load double, ptr %56, align 8, !tbaa !21
  %58 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %59 = getelementptr inbounds [4 x double], ptr %58, i64 0, i64 1
  store double %57, ptr %59, align 8, !tbaa !21
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.AtomStr, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = getelementptr inbounds %struct.DynamicStr, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds [4 x double], ptr %63, i64 0, i64 2
  %65 = load double, ptr %64, align 8, !tbaa !21
  %66 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %67 = getelementptr inbounds [4 x double], ptr %66, i64 0, i64 2
  store double %65, ptr %67, align 8, !tbaa !21
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.AtomStr, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  %71 = getelementptr inbounds %struct.DynamicStr, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds [4 x double], ptr %71, i64 0, i64 3
  %73 = load double, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %75 = getelementptr inbounds [4 x double], ptr %74, i64 0, i64 3
  store double %73, ptr %75, align 8, !tbaa !21
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.AtomStr, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !22
  %79 = getelementptr inbounds %struct.DynamicStr, ptr %78, i32 0, i32 2
  %80 = getelementptr inbounds [4 x double], ptr %79, i64 0, i64 0
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %83 = getelementptr inbounds [4 x double], ptr %82, i64 0, i64 0
  store double %81, ptr %83, align 8, !tbaa !21
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.AtomStr, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = getelementptr inbounds %struct.DynamicStr, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds [4 x double], ptr %87, i64 0, i64 1
  %89 = load double, ptr %88, align 8, !tbaa !21
  %90 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %91 = getelementptr inbounds [4 x double], ptr %90, i64 0, i64 1
  store double %89, ptr %91, align 8, !tbaa !21
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.AtomStr, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !22
  %95 = getelementptr inbounds %struct.DynamicStr, ptr %94, i32 0, i32 2
  %96 = getelementptr inbounds [4 x double], ptr %95, i64 0, i64 2
  %97 = load double, ptr %96, align 8, !tbaa !21
  %98 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %99 = getelementptr inbounds [4 x double], ptr %98, i64 0, i64 2
  store double %97, ptr %99, align 8, !tbaa !21
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.AtomStr, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !22
  %103 = getelementptr inbounds %struct.DynamicStr, ptr %102, i32 0, i32 2
  %104 = getelementptr inbounds [4 x double], ptr %103, i64 0, i64 3
  %105 = load double, ptr %104, align 8, !tbaa !21
  %106 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %107 = getelementptr inbounds [4 x double], ptr %106, i64 0, i64 3
  store double %105, ptr %107, align 8, !tbaa !21
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.AtomStr, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !22
  %111 = getelementptr inbounds %struct.DynamicStr, ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds [4 x double], ptr %111, i64 0, i64 0
  %113 = load double, ptr %112, align 8, !tbaa !21
  %114 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %115 = getelementptr inbounds [4 x double], ptr %114, i64 0, i64 0
  store double %113, ptr %115, align 8, !tbaa !21
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.AtomStr, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !22
  %119 = getelementptr inbounds %struct.DynamicStr, ptr %118, i32 0, i32 1
  %120 = getelementptr inbounds [4 x double], ptr %119, i64 0, i64 1
  %121 = load double, ptr %120, align 8, !tbaa !21
  %122 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %123 = getelementptr inbounds [4 x double], ptr %122, i64 0, i64 1
  store double %121, ptr %123, align 8, !tbaa !21
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.AtomStr, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !22
  %127 = getelementptr inbounds %struct.DynamicStr, ptr %126, i32 0, i32 1
  %128 = getelementptr inbounds [4 x double], ptr %127, i64 0, i64 2
  %129 = load double, ptr %128, align 8, !tbaa !21
  %130 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %131 = getelementptr inbounds [4 x double], ptr %130, i64 0, i64 2
  store double %129, ptr %131, align 8, !tbaa !21
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.AtomStr, ptr %132, i32 0, i32 1
  %134 = load ptr, ptr %133, align 8, !tbaa !22
  %135 = getelementptr inbounds %struct.DynamicStr, ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds [4 x double], ptr %135, i64 0, i64 3
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %139 = getelementptr inbounds [4 x double], ptr %138, i64 0, i64 3
  store double %137, ptr %139, align 8, !tbaa !21
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.AtomStr, ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !22
  %143 = getelementptr inbounds %struct.DynamicStr, ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds [4 x double], ptr %143, i64 0, i64 0
  %145 = load double, ptr %144, align 8, !tbaa !21
  %146 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %147 = getelementptr inbounds [4 x double], ptr %146, i64 0, i64 0
  store double %145, ptr %147, align 8, !tbaa !21
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.AtomStr, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = getelementptr inbounds %struct.DynamicStr, ptr %150, i32 0, i32 2
  %152 = getelementptr inbounds [4 x double], ptr %151, i64 0, i64 1
  %153 = load double, ptr %152, align 8, !tbaa !21
  %154 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %155 = getelementptr inbounds [4 x double], ptr %154, i64 0, i64 1
  store double %153, ptr %155, align 8, !tbaa !21
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.AtomStr, ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !22
  %159 = getelementptr inbounds %struct.DynamicStr, ptr %158, i32 0, i32 2
  %160 = getelementptr inbounds [4 x double], ptr %159, i64 0, i64 2
  %161 = load double, ptr %160, align 8, !tbaa !21
  %162 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %163 = getelementptr inbounds [4 x double], ptr %162, i64 0, i64 2
  store double %161, ptr %163, align 8, !tbaa !21
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.AtomStr, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !22
  %167 = getelementptr inbounds %struct.DynamicStr, ptr %166, i32 0, i32 2
  %168 = getelementptr inbounds [4 x double], ptr %167, i64 0, i64 3
  %169 = load double, ptr %168, align 8, !tbaa !21
  %170 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %171 = getelementptr inbounds [4 x double], ptr %170, i64 0, i64 3
  store double %169, ptr %171, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !16
  br label %172

172:                                              ; preds = %198, %43
  %173 = load i32, ptr %11, align 4, !tbaa !16
  %174 = icmp sle i32 %173, 3
  br i1 %174, label %176, label %175

175:                                              ; preds = %172
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %201

176:                                              ; preds = %172
  %177 = load i32, ptr %11, align 4, !tbaa !16
  %178 = load i32, ptr %9, align 4, !tbaa !16
  %179 = icmp ne i32 %177, %178
  br i1 %179, label %180, label %197

180:                                              ; preds = %176
  %181 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %182 = load i32, ptr %11, align 4, !tbaa !16
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [4 x double], ptr %181, i64 0, i64 %183
  store double 0.000000e+00, ptr %184, align 8, !tbaa !21
  %185 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %186 = load i32, ptr %11, align 4, !tbaa !16
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [4 x double], ptr %185, i64 0, i64 %187
  store double 0.000000e+00, ptr %188, align 8, !tbaa !21
  %189 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %190 = load i32, ptr %11, align 4, !tbaa !16
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [4 x double], ptr %189, i64 0, i64 %191
  store double 0.000000e+00, ptr %192, align 8, !tbaa !21
  %193 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %194 = load i32, ptr %11, align 4, !tbaa !16
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [4 x double], ptr %193, i64 0, i64 %195
  store double 0.000000e+00, ptr %196, align 8, !tbaa !21
  br label %197

197:                                              ; preds = %180, %176
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %11, align 4, !tbaa !16
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %11, align 4, !tbaa !16
  br label %172, !llvm.loop !23

201:                                              ; preds = %175
  %202 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %203 = getelementptr inbounds [4 x double], ptr %202, i64 0, i64 1
  %204 = load double, ptr %203, align 8, !tbaa !21
  %205 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %206 = getelementptr inbounds [4 x double], ptr %205, i64 0, i64 1
  %207 = load double, ptr %206, align 8, !tbaa !21
  %208 = fsub double %204, %207
  %209 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %210 = getelementptr inbounds [4 x double], ptr %209, i64 0, i64 1
  store double %208, ptr %210, align 8, !tbaa !21
  %211 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %212 = getelementptr inbounds [4 x double], ptr %211, i64 0, i64 2
  %213 = load double, ptr %212, align 8, !tbaa !21
  %214 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %215 = getelementptr inbounds [4 x double], ptr %214, i64 0, i64 2
  %216 = load double, ptr %215, align 8, !tbaa !21
  %217 = fsub double %213, %216
  %218 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %219 = getelementptr inbounds [4 x double], ptr %218, i64 0, i64 2
  store double %217, ptr %219, align 8, !tbaa !21
  %220 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 15
  %221 = getelementptr inbounds [4 x double], ptr %220, i64 0, i64 3
  %222 = load double, ptr %221, align 8, !tbaa !21
  %223 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 17
  %224 = getelementptr inbounds [4 x double], ptr %223, i64 0, i64 3
  %225 = load double, ptr %224, align 8, !tbaa !21
  %226 = fsub double %222, %225
  %227 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %228 = getelementptr inbounds [4 x double], ptr %227, i64 0, i64 3
  store double %226, ptr %228, align 8, !tbaa !21
  %229 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %230 = getelementptr inbounds [4 x double], ptr %229, i64 0, i64 1
  %231 = load double, ptr %230, align 8, !tbaa !21
  %232 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %233 = getelementptr inbounds [4 x double], ptr %232, i64 0, i64 1
  %234 = load double, ptr %233, align 8, !tbaa !21
  %235 = fsub double %231, %234
  %236 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %237 = getelementptr inbounds [4 x double], ptr %236, i64 0, i64 1
  store double %235, ptr %237, align 8, !tbaa !21
  %238 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %239 = getelementptr inbounds [4 x double], ptr %238, i64 0, i64 2
  %240 = load double, ptr %239, align 8, !tbaa !21
  %241 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %242 = getelementptr inbounds [4 x double], ptr %241, i64 0, i64 2
  %243 = load double, ptr %242, align 8, !tbaa !21
  %244 = fsub double %240, %243
  %245 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %246 = getelementptr inbounds [4 x double], ptr %245, i64 0, i64 2
  store double %244, ptr %246, align 8, !tbaa !21
  %247 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 16
  %248 = getelementptr inbounds [4 x double], ptr %247, i64 0, i64 3
  %249 = load double, ptr %248, align 8, !tbaa !21
  %250 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 18
  %251 = getelementptr inbounds [4 x double], ptr %250, i64 0, i64 3
  %252 = load double, ptr %251, align 8, !tbaa !21
  %253 = fsub double %249, %252
  %254 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %255 = getelementptr inbounds [4 x double], ptr %254, i64 0, i64 3
  store double %253, ptr %255, align 8, !tbaa !21
  %256 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %257 = getelementptr inbounds [4 x double], ptr %256, i64 0, i64 1
  %258 = load double, ptr %257, align 8, !tbaa !21
  %259 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %260 = getelementptr inbounds [4 x double], ptr %259, i64 0, i64 1
  %261 = load double, ptr %260, align 8, !tbaa !21
  %262 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %263 = getelementptr inbounds [4 x double], ptr %262, i64 0, i64 2
  %264 = load double, ptr %263, align 8, !tbaa !21
  %265 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %266 = getelementptr inbounds [4 x double], ptr %265, i64 0, i64 2
  %267 = load double, ptr %266, align 8, !tbaa !21
  %268 = fmul double %264, %267
  %269 = call double @llvm.fmuladd.f64(double %258, double %261, double %268)
  %270 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %271 = getelementptr inbounds [4 x double], ptr %270, i64 0, i64 3
  %272 = load double, ptr %271, align 8, !tbaa !21
  %273 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %274 = getelementptr inbounds [4 x double], ptr %273, i64 0, i64 3
  %275 = load double, ptr %274, align 8, !tbaa !21
  %276 = call double @llvm.fmuladd.f64(double %272, double %275, double %269)
  %277 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 7
  store double %276, ptr %277, align 8, !tbaa !25
  %278 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %279 = getelementptr inbounds [4 x double], ptr %278, i64 0, i64 1
  %280 = load double, ptr %279, align 8, !tbaa !21
  %281 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %282 = getelementptr inbounds [4 x double], ptr %281, i64 0, i64 1
  %283 = load double, ptr %282, align 8, !tbaa !21
  %284 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %285 = getelementptr inbounds [4 x double], ptr %284, i64 0, i64 2
  %286 = load double, ptr %285, align 8, !tbaa !21
  %287 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %288 = getelementptr inbounds [4 x double], ptr %287, i64 0, i64 2
  %289 = load double, ptr %288, align 8, !tbaa !21
  %290 = fmul double %286, %289
  %291 = call double @llvm.fmuladd.f64(double %280, double %283, double %290)
  %292 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 4
  %293 = getelementptr inbounds [4 x double], ptr %292, i64 0, i64 3
  %294 = load double, ptr %293, align 8, !tbaa !21
  %295 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %296 = getelementptr inbounds [4 x double], ptr %295, i64 0, i64 3
  %297 = load double, ptr %296, align 8, !tbaa !21
  %298 = call double @llvm.fmuladd.f64(double %294, double %297, double %291)
  %299 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 5
  store double %298, ptr %299, align 8, !tbaa !27
  %300 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %301 = getelementptr inbounds [4 x double], ptr %300, i64 0, i64 1
  %302 = load double, ptr %301, align 8, !tbaa !21
  %303 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %304 = getelementptr inbounds [4 x double], ptr %303, i64 0, i64 1
  %305 = load double, ptr %304, align 8, !tbaa !21
  %306 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %307 = getelementptr inbounds [4 x double], ptr %306, i64 0, i64 2
  %308 = load double, ptr %307, align 8, !tbaa !21
  %309 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %310 = getelementptr inbounds [4 x double], ptr %309, i64 0, i64 2
  %311 = load double, ptr %310, align 8, !tbaa !21
  %312 = fmul double %308, %311
  %313 = call double @llvm.fmuladd.f64(double %302, double %305, double %312)
  %314 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %315 = getelementptr inbounds [4 x double], ptr %314, i64 0, i64 3
  %316 = load double, ptr %315, align 8, !tbaa !21
  %317 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 3
  %318 = getelementptr inbounds [4 x double], ptr %317, i64 0, i64 3
  %319 = load double, ptr %318, align 8, !tbaa !21
  %320 = call double @llvm.fmuladd.f64(double %316, double %319, double %313)
  %321 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 6
  store double %320, ptr %321, align 8, !tbaa !28
  %322 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 7
  %323 = load double, ptr %322, align 8, !tbaa !25
  store double %323, ptr %10, align 8, !tbaa !21
  %324 = load ptr, ptr %2, align 8, !tbaa !5
  %325 = load ptr, ptr %8, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 5
  %327 = load double, ptr %326, align 8, !tbaa !27
  %328 = load double, ptr %10, align 8, !tbaa !21
  %329 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 12
  %330 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 13
  %331 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 10
  %332 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 11
  %333 = call i32 @FindPair(ptr noundef %324, ptr noundef %325, ptr noundef @.str.1, double noundef %327, double noundef %328, ptr noundef %329, ptr noundef %330, ptr noundef %331, ptr noundef %332, ptr noundef @tmpDouble, ptr noundef null, i32 noundef 0)
  %334 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 0
  store i32 %333, ptr %334, align 8, !tbaa !29
  %335 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 10
  %336 = load double, ptr %335, align 8, !tbaa !30
  %337 = fcmp oeq double %336, 0.000000e+00
  br i1 %337, label %338, label %343

338:                                              ; preds = %201
  %339 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 11
  %340 = load double, ptr %339, align 8, !tbaa !31
  %341 = fcmp oeq double %340, 0.000000e+00
  br i1 %341, label %342, label %343

342:                                              ; preds = %338
  store i32 7, ptr %7, align 4
  br label %422

343:                                              ; preds = %338, %201
  %344 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 5
  %345 = load double, ptr %344, align 8, !tbaa !27
  %346 = fcmp olt double %345, 0.000000e+00
  br i1 %346, label %347, label %363

347:                                              ; preds = %343
  %348 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 0
  %349 = load i32, ptr %348, align 8, !tbaa !29
  %350 = icmp eq i32 %349, 0
  br i1 %350, label %351, label %353

351:                                              ; preds = %347
  %352 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 6
  store i32 0, ptr %352, align 4, !tbaa !32
  br label %355

353:                                              ; preds = %347
  %354 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 6
  store i32 4, ptr %354, align 4, !tbaa !32
  br label %355

355:                                              ; preds = %353, %351
  %356 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 1
  store i32 -1, ptr %356, align 4, !tbaa !35
  %357 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 12
  %358 = load double, ptr %357, align 8, !tbaa !36
  %359 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 8
  store double %358, ptr %359, align 8, !tbaa !37
  %360 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 10
  %361 = load double, ptr %360, align 8, !tbaa !30
  %362 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 4
  store double %361, ptr %362, align 8, !tbaa !38
  br label %378

363:                                              ; preds = %343
  %364 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 0
  %365 = load i32, ptr %364, align 8, !tbaa !29
  %366 = icmp eq i32 %365, 1
  br i1 %366, label %367, label %368

367:                                              ; preds = %363
  store i32 7, ptr %7, align 4
  br label %422

368:                                              ; preds = %363
  %369 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 6
  store i32 5, ptr %369, align 4, !tbaa !32
  br label %370

370:                                              ; preds = %368
  %371 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 1
  store i32 1, ptr %371, align 4, !tbaa !35
  %372 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 13
  %373 = load double, ptr %372, align 8, !tbaa !39
  %374 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 8
  store double %373, ptr %374, align 8, !tbaa !37
  %375 = getelementptr inbounds %struct.ParameterStr, ptr %4, i32 0, i32 11
  %376 = load double, ptr %375, align 8, !tbaa !31
  %377 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 4
  store double %376, ptr %377, align 8, !tbaa !38
  br label %378

378:                                              ; preds = %370, %355
  %379 = call double @CalculateTime(ptr noundef %4)
  %380 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 3
  store double %379, ptr %380, align 8, !tbaa !40
  %381 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 3
  %382 = load double, ptr %381, align 8, !tbaa !40
  %383 = fcmp olt double %382, 0.000000e+00
  %384 = xor i1 %383, true
  %385 = xor i1 %384, true
  %386 = zext i1 %385 to i32
  %387 = sext i32 %386 to i64
  %388 = call i64 @llvm.expect.i64(i64 %387, i64 0)
  %389 = icmp ne i64 %388, 0
  br i1 %389, label %390, label %393

390:                                              ; preds = %378
  %391 = load i32, ptr %3, align 4, !tbaa !16
  %392 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %391, ptr noundef @.str.7, i32 noundef 815)
  call void @exit(i32 noundef 1) #7
  unreachable

393:                                              ; preds = %378
  %394 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 2), align 8, !tbaa !41
  %395 = load i32, ptr %6, align 4, !tbaa !16
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds i32, ptr %394, i64 %396
  %398 = load i32, ptr %397, align 4, !tbaa !16
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %406

400:                                              ; preds = %393
  %401 = getelementptr inbounds %struct.InteractionEventStr, ptr %5, i32 0, i32 3
  %402 = load double, ptr %401, align 8, !tbaa !40
  %403 = load ptr, ptr %2, align 8, !tbaa !5
  %404 = call i32 @EnterTunnel(double noundef %402, ptr noundef %403)
  %405 = icmp ne i32 %404, 0
  br i1 %405, label %421, label %406

406:                                              ; preds = %400, %393
  %407 = load ptr, ptr %2, align 8, !tbaa !5
  %408 = call i32 @JobAssign(ptr noundef %407, ptr noundef null, ptr noundef %5, i32 noundef 6)
  %409 = icmp ne i32 %408, 0
  br i1 %409, label %410, label %421

410:                                              ; preds = %406
  %411 = load i32, ptr %9, align 4, !tbaa !16
  %412 = mul nsw i32 -1, %411
  %413 = load i32, ptr %6, align 4, !tbaa !16
  %414 = mul nsw i32 10, %413
  %415 = sub nsw i32 %412, %414
  %416 = load ptr, ptr %2, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.AtomStr, ptr %416, i32 0, i32 1
  %418 = load ptr, ptr %417, align 8, !tbaa !22
  %419 = getelementptr inbounds %struct.DynamicStr, ptr %418, i32 0, i32 5
  %420 = getelementptr inbounds %struct.InteractionEventStr, ptr %419, i32 0, i32 0
  store i32 %415, ptr %420, align 8, !tbaa !42
  br label %421

421:                                              ; preds = %410, %406, %400
  store i32 0, ptr %7, align 4
  br label %422

422:                                              ; preds = %421, %367, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %423 = load i32, ptr %7, align 4
  switch i32 %423, label %433 [
    i32 0, label %424
    i32 7, label %425
  ]

424:                                              ; preds = %422
  br label %425

425:                                              ; preds = %424, %422, %42
  %426 = load i32, ptr %9, align 4, !tbaa !16
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr %9, align 4, !tbaa !16
  br label %27, !llvm.loop !46

428:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %429

429:                                              ; preds = %428
  %430 = load i32, ptr %6, align 4, !tbaa !16
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %6, align 4, !tbaa !16
  br label %17, !llvm.loop !47

432:                                              ; preds = %21
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 336, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void

433:                                              ; preds = %422
  unreachable
}

declare i32 @EnterTunnel(double noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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 0}
!10 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!11 = !{!12, !13, i64 48}
!12 = !{!"PropertyStr", !7, i64 0, !7, i64 8, !7, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !14, i64 64, !14, i64 72, !7, i64 80, !15, i64 104, !6, i64 120, !6, i64 128}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"AtomSeqStr", !13, i64 0, !13, i64 4, !13, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !13, i64 4}
!18 = !{!"ObstructionStr", !13, i64 0, !13, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!18, !6, i64 24}
!20 = !{!18, !6, i64 16}
!21 = !{!14, !14, i64 0}
!22 = !{!10, !6, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !14, i64 120}
!26 = !{!"ParameterStr", !13, i64 0, !13, i64 4, !7, i64 8, !7, i64 40, !7, i64 72, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !7, i64 136, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !7, i64 208, !7, i64 240, !7, i64 272, !7, i64 304}
!27 = !{!26, !14, i64 104}
!28 = !{!26, !14, i64 112}
!29 = !{!26, !13, i64 0}
!30 = !{!26, !14, i64 168}
!31 = !{!26, !14, i64 176}
!32 = !{!33, !13, i64 44}
!33 = !{!"InteractionEventStr", !13, i64 0, !34, i64 8, !34, i64 16, !14, i64 24, !14, i64 32, !13, i64 40, !13, i64 44}
!34 = !{!"long", !7, i64 0}
!35 = !{!26, !13, i64 4}
!36 = !{!26, !14, i64 184}
!37 = !{!26, !14, i64 128}
!38 = !{!33, !14, i64 32}
!39 = !{!26, !14, i64 192}
!40 = !{!33, !14, i64 24}
!41 = !{!18, !6, i64 8}
!42 = !{!43, !13, i64 128}
!43 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !44, i64 80, !45, i64 96, !33, i64 128}
!44 = !{!"HBStr", !13, i64 0, !13, i64 4, !7, i64 8, !13, i64 12}
!45 = !{!"HBNeighborStr", !7, i64 0, !13, i64 20, !13, i64 24}
!46 = distinct !{!46, !24}
!47 = distinct !{!47, !24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.ParameterStr = type { i32, i32, [4 x double], [4 x double], [4 x double], double, double, double, double, [4 x double], double, double, double, double, double, [4 x double], [4 x double], [4 x double], [4 x double] }
%struct.InteractionEventStr = type { i32, i64, i64, double, double, i32, i32 }
%struct.AtomStr = type { ptr, ptr }

@tmpDouble = external global double, align 8
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@obstObj = external local_unnamed_addr global %struct.ObstructionStr, align 8
@.str.27 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

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

declare i32 @FindPair(ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local double @CalculateTime(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @ObstTime(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca %struct.ParameterStr, align 8
  %3 = alloca %struct.InteractionEventStr, align 8
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 48
  %6 = load i32, ptr %5, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 336, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !15
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = getelementptr inbounds i8, ptr %2, i64 208
  %11 = getelementptr inbounds i8, ptr %2, i64 216
  %12 = getelementptr inbounds i8, ptr %2, i64 224
  %13 = getelementptr inbounds i8, ptr %2, i64 232
  %14 = getelementptr inbounds i8, ptr %2, i64 240
  %15 = getelementptr inbounds i8, ptr %2, i64 248
  %16 = getelementptr inbounds i8, ptr %2, i64 256
  %17 = getelementptr inbounds i8, ptr %2, i64 264
  %18 = getelementptr inbounds i8, ptr %2, i64 272
  %19 = getelementptr inbounds i8, ptr %2, i64 280
  %20 = getelementptr inbounds i8, ptr %2, i64 288
  %21 = getelementptr inbounds i8, ptr %2, i64 296
  %22 = getelementptr inbounds i8, ptr %2, i64 304
  %23 = getelementptr inbounds i8, ptr %2, i64 312
  %24 = getelementptr inbounds i8, ptr %2, i64 320
  %25 = getelementptr inbounds i8, ptr %2, i64 328
  %26 = getelementptr inbounds i8, ptr %2, i64 80
  %27 = getelementptr inbounds i8, ptr %2, i64 88
  %28 = getelementptr inbounds i8, ptr %2, i64 96
  %29 = getelementptr inbounds i8, ptr %2, i64 48
  %30 = getelementptr inbounds i8, ptr %2, i64 56
  %31 = getelementptr inbounds i8, ptr %2, i64 64
  %32 = getelementptr inbounds i8, ptr %2, i64 120
  %33 = getelementptr inbounds i8, ptr %2, i64 104
  %34 = getelementptr inbounds i8, ptr %2, i64 184
  %35 = getelementptr inbounds i8, ptr %2, i64 192
  %36 = getelementptr inbounds i8, ptr %2, i64 168
  %37 = getelementptr inbounds i8, ptr %2, i64 176
  %38 = getelementptr inbounds i8, ptr %3, i64 44
  %39 = getelementptr inbounds i8, ptr %2, i64 4
  %40 = getelementptr inbounds i8, ptr %2, i64 128
  %41 = getelementptr inbounds i8, ptr %3, i64 32
  %42 = getelementptr inbounds i8, ptr %3, i64 24
  %43 = getelementptr inbounds i8, ptr %2, i64 216
  %44 = getelementptr inbounds i8, ptr %2, i64 280
  %45 = getelementptr inbounds i8, ptr %2, i64 248
  %46 = getelementptr inbounds i8, ptr %2, i64 312
  %47 = getelementptr inbounds i8, ptr %2, i64 224
  %48 = getelementptr inbounds i8, ptr %2, i64 288
  %49 = getelementptr inbounds i8, ptr %2, i64 256
  %50 = getelementptr inbounds i8, ptr %2, i64 320
  %51 = getelementptr inbounds i8, ptr %2, i64 224
  %52 = getelementptr inbounds i8, ptr %2, i64 288
  %53 = getelementptr inbounds i8, ptr %2, i64 256
  %54 = getelementptr inbounds i8, ptr %2, i64 320
  %55 = getelementptr inbounds i8, ptr %2, i64 232
  %56 = getelementptr inbounds i8, ptr %2, i64 296
  %57 = getelementptr inbounds i8, ptr %2, i64 264
  %58 = getelementptr inbounds i8, ptr %2, i64 328
  br label %59

._crit_edge:                                      ; preds = %64, %1
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 336, ptr nonnull %2) #7
  ret void

59:                                               ; preds = %.lr.ph, %64
  %indvars.iv54 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next55, %64 ]
  call void @InitializeEvent(ptr noundef nonnull %3)
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @obstObj, i64 24), align 8, !tbaa !17
  %61 = getelementptr inbounds %struct.AtomStr, ptr %60, i64 %indvars.iv54
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = trunc nuw nsw i64 %indvars.iv54 to i32
  %.neg = mul i32 %63, -10
  br label %68

64:                                               ; preds = %184
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !15
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next55, %66
  br i1 %67, label %59, label %._crit_edge, !llvm.loop !18

68:                                               ; preds = %59, %184
  %indvars.iv = phi i64 [ 1, %59 ], [ %indvars.iv.next, %184 ]
  %69 = load ptr, ptr getelementptr inbounds (i8, ptr @obstObj, i64 16), align 8, !tbaa !20
  %70 = getelementptr inbounds ptr, ptr %69, i64 %indvars.iv54
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = getelementptr inbounds double, ptr %71, i64 %indvars.iv
  %73 = load double, ptr %72, align 8, !tbaa !22
  %74 = fcmp olt double %73, 0.000000e+00
  br i1 %74, label %184, label %75

75:                                               ; preds = %68
  %76 = load ptr, ptr %9, align 8, !tbaa !23
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %78 = load double, ptr %77, align 8, !tbaa !22
  store double %78, ptr %10, align 8, !tbaa !22
  %79 = getelementptr inbounds i8, ptr %76, i64 24
  %80 = load double, ptr %79, align 8, !tbaa !22
  store double %80, ptr %11, align 8, !tbaa !22
  %81 = getelementptr inbounds i8, ptr %76, i64 32
  %82 = load double, ptr %81, align 8, !tbaa !22
  store double %82, ptr %12, align 8, !tbaa !22
  %83 = getelementptr inbounds i8, ptr %76, i64 40
  %84 = load double, ptr %83, align 8, !tbaa !22
  store double %84, ptr %13, align 8, !tbaa !22
  %85 = getelementptr inbounds i8, ptr %76, i64 48
  %86 = load double, ptr %85, align 8, !tbaa !22
  store double %86, ptr %14, align 8, !tbaa !22
  %87 = getelementptr inbounds i8, ptr %76, i64 56
  %88 = load double, ptr %87, align 8, !tbaa !22
  store double %88, ptr %15, align 8, !tbaa !22
  %89 = getelementptr inbounds i8, ptr %76, i64 64
  %90 = load double, ptr %89, align 8, !tbaa !22
  store double %90, ptr %16, align 8, !tbaa !22
  %91 = getelementptr inbounds i8, ptr %76, i64 72
  %92 = load double, ptr %91, align 8, !tbaa !22
  store double %92, ptr %17, align 8, !tbaa !22
  %93 = load ptr, ptr %62, align 8, !tbaa !23
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %95 = load double, ptr %94, align 8, !tbaa !22
  store double %95, ptr %18, align 8, !tbaa !22
  %96 = getelementptr inbounds i8, ptr %93, i64 24
  %97 = load double, ptr %96, align 8, !tbaa !22
  store double %97, ptr %19, align 8, !tbaa !22
  %98 = getelementptr inbounds i8, ptr %93, i64 32
  %99 = load double, ptr %98, align 8, !tbaa !22
  store double %99, ptr %20, align 8, !tbaa !22
  %100 = getelementptr inbounds i8, ptr %93, i64 40
  %101 = load double, ptr %100, align 8, !tbaa !22
  store double %101, ptr %21, align 8, !tbaa !22
  %102 = getelementptr inbounds i8, ptr %93, i64 48
  %103 = load double, ptr %102, align 8, !tbaa !22
  store double %103, ptr %22, align 8, !tbaa !22
  %104 = getelementptr inbounds i8, ptr %93, i64 56
  %105 = load double, ptr %104, align 8, !tbaa !22
  store double %105, ptr %23, align 8, !tbaa !22
  %106 = getelementptr inbounds i8, ptr %93, i64 64
  %107 = load double, ptr %106, align 8, !tbaa !22
  store double %107, ptr %24, align 8, !tbaa !22
  %108 = getelementptr inbounds i8, ptr %93, i64 72
  %109 = load double, ptr %108, align 8, !tbaa !22
  store double %109, ptr %25, align 8, !tbaa !22
  %.not48 = icmp eq i64 %indvars.iv, 1
  br i1 %.not48, label %.thread62, label %114

.thread62:                                        ; preds = %75
  store double 0.000000e+00, ptr %51, align 8, !tbaa !22
  store double 0.000000e+00, ptr %52, align 8, !tbaa !22
  store double 0.000000e+00, ptr %53, align 8, !tbaa !22
  store double 0.000000e+00, ptr %54, align 8, !tbaa !22
  %110 = insertelement <2 x double> poison, double %80, i64 0
  %111 = insertelement <2 x double> %110, double %88, i64 1
  %112 = insertelement <2 x double> poison, double %97, i64 0
  %113 = insertelement <2 x double> %112, double %105, i64 1
  br label %.thread60

114:                                              ; preds = %75
  store double 0.000000e+00, ptr %43, align 8, !tbaa !22
  store double 0.000000e+00, ptr %44, align 8, !tbaa !22
  store double 0.000000e+00, ptr %45, align 8, !tbaa !22
  store double 0.000000e+00, ptr %46, align 8, !tbaa !22
  %.not48.1 = icmp eq i64 %indvars.iv, 2
  %115 = insertelement <2 x double> poison, double %82, i64 0
  %116 = insertelement <2 x double> %115, double %90, i64 1
  %117 = insertelement <2 x double> poison, double %99, i64 0
  %118 = insertelement <2 x double> %117, double %107, i64 1
  br i1 %.not48.1, label %.thread60, label %119

119:                                              ; preds = %114
  store double 0.000000e+00, ptr %47, align 8, !tbaa !22
  store double 0.000000e+00, ptr %48, align 8, !tbaa !22
  store double 0.000000e+00, ptr %49, align 8, !tbaa !22
  store double 0.000000e+00, ptr %50, align 8, !tbaa !22
  %.not48.2 = icmp eq i64 %indvars.iv, 3
  %120 = insertelement <2 x double> poison, double %84, i64 0
  %121 = insertelement <2 x double> %120, double %92, i64 1
  %122 = insertelement <2 x double> poison, double %101, i64 0
  %123 = insertelement <2 x double> %122, double %109, i64 1
  br i1 %.not48.2, label %130, label %.thread60

.thread60:                                        ; preds = %114, %.thread62, %119
  %124 = phi <2 x double> [ zeroinitializer, %119 ], [ %111, %.thread62 ], [ zeroinitializer, %114 ]
  %125 = phi <2 x double> [ zeroinitializer, %119 ], [ %113, %.thread62 ], [ zeroinitializer, %114 ]
  %126 = phi <2 x double> [ zeroinitializer, %119 ], [ zeroinitializer, %.thread62 ], [ %116, %114 ]
  %127 = phi <2 x double> [ zeroinitializer, %119 ], [ zeroinitializer, %.thread62 ], [ %118, %114 ]
  store double 0.000000e+00, ptr %55, align 8, !tbaa !22
  store double 0.000000e+00, ptr %56, align 8, !tbaa !22
  store double 0.000000e+00, ptr %57, align 8, !tbaa !22
  store double 0.000000e+00, ptr %58, align 8, !tbaa !22
  %128 = fsub <2 x double> %124, %125
  %129 = fsub <2 x double> %126, %127
  br label %130

130:                                              ; preds = %.thread60, %119
  %131 = phi <2 x double> [ zeroinitializer, %.thread60 ], [ %121, %119 ]
  %132 = phi <2 x double> [ zeroinitializer, %.thread60 ], [ %123, %119 ]
  %133 = phi <2 x double> [ %128, %.thread60 ], [ zeroinitializer, %119 ]
  %134 = phi <2 x double> [ %129, %.thread60 ], [ zeroinitializer, %119 ]
  %135 = extractelement <2 x double> %133, i64 0
  store double %135, ptr %26, align 8, !tbaa !22
  %136 = extractelement <2 x double> %134, i64 0
  store double %136, ptr %27, align 8, !tbaa !22
  %137 = fsub <2 x double> %131, %132
  %138 = extractelement <2 x double> %137, i64 0
  store double %138, ptr %28, align 8, !tbaa !22
  %139 = extractelement <2 x double> %133, i64 1
  store double %139, ptr %29, align 8, !tbaa !22
  %140 = extractelement <2 x double> %134, i64 1
  store double %140, ptr %30, align 8, !tbaa !22
  %141 = extractelement <2 x double> %137, i64 1
  store double %141, ptr %31, align 8, !tbaa !22
  %142 = fmul <2 x double> %134, %134
  %143 = extractelement <2 x double> %142, i64 0
  %144 = call double @llvm.fmuladd.f64(double %135, double %135, double %143)
  %145 = call double @llvm.fmuladd.f64(double %138, double %138, double %144)
  store double %145, ptr %32, align 8, !tbaa !24
  %146 = shufflevector <2 x double> %134, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %147 = fmul <2 x double> %146, %134
  %148 = shufflevector <2 x double> %133, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %149 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %148, <2 x double> %133, <2 x double> %147)
  %150 = shufflevector <2 x double> %137, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %151 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %150, <2 x double> %137, <2 x double> %149)
  store <2 x double> %151, ptr %33, align 8, !tbaa !22
  %152 = extractelement <2 x double> %151, i64 0
  %153 = call i32 @FindPair(ptr noundef nonnull %0, ptr noundef nonnull %61, ptr noundef nonnull @.str.1, double noundef %152, double noundef %145, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull @tmpDouble, ptr noundef null, i32 noundef 0) #7
  store i32 %153, ptr %2, align 8, !tbaa !26
  %154 = load double, ptr %36, align 8, !tbaa !27
  %155 = fcmp oeq double %154, 0.000000e+00
  %156 = load double, ptr %37, align 8
  %157 = fcmp oeq double %156, 0.000000e+00
  %or.cond = select i1 %155, i1 %157, i1 false
  br i1 %or.cond, label %184, label %158

158:                                              ; preds = %130
  %159 = load double, ptr %33, align 8, !tbaa !28
  %160 = fcmp olt double %159, 0.000000e+00
  br i1 %160, label %161, label %163

161:                                              ; preds = %158
  %162 = icmp eq i32 %153, 0
  %spec.select = select i1 %162, i32 0, i32 4
  br label %165

163:                                              ; preds = %158
  %164 = icmp eq i32 %153, 1
  br i1 %164, label %184, label %165

165:                                              ; preds = %163, %161
  %.sink65 = phi i32 [ %spec.select, %161 ], [ 5, %163 ]
  %.sink64 = phi i32 [ -1, %161 ], [ 1, %163 ]
  %.sink = phi ptr [ %34, %161 ], [ %35, %163 ]
  %storemerge = phi double [ %154, %161 ], [ %156, %163 ]
  store i32 %.sink65, ptr %38, align 4, !tbaa !29
  store i32 %.sink64, ptr %39, align 4, !tbaa !32
  %166 = load double, ptr %.sink, align 8, !tbaa !22
  store double %166, ptr %40, align 8, !tbaa !33
  store double %storemerge, ptr %41, align 8, !tbaa !34
  %167 = call double @CalculateTime(ptr noundef nonnull %2)
  store double %167, ptr %42, align 8, !tbaa !35
  %168 = fcmp olt double %167, 0.000000e+00
  br i1 %168, label %169, label %171, !prof !36

169:                                              ; preds = %165
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, i32 noundef %6, ptr noundef nonnull @.str.7, i32 noundef 815)
  call void @exit(i32 noundef 1) #8
  unreachable

171:                                              ; preds = %165
  %172 = load ptr, ptr getelementptr inbounds (i8, ptr @obstObj, i64 8), align 8, !tbaa !37
  %173 = getelementptr inbounds i32, ptr %172, i64 %indvars.iv54
  %174 = load i32, ptr %173, align 4, !tbaa !38
  %.not = icmp eq i32 %174, 0
  br i1 %.not, label %177, label %175

175:                                              ; preds = %171
  %176 = call i32 @EnterTunnel(double noundef %167, ptr noundef nonnull %0) #7
  %.not46 = icmp eq i32 %176, 0
  br i1 %.not46, label %177, label %184

177:                                              ; preds = %175, %171
  %178 = call i32 @JobAssign(ptr noundef nonnull %0, ptr noundef null, ptr noundef nonnull %3, i32 noundef 6)
  %.not47 = icmp eq i32 %178, 0
  br i1 %.not47, label %184, label %179

179:                                              ; preds = %177
  %180 = trunc nuw nsw i64 %indvars.iv to i32
  %181 = sub i32 %.neg, %180
  %182 = load ptr, ptr %9, align 8, !tbaa !23
  %183 = getelementptr inbounds i8, ptr %182, i64 128
  store i32 %181, ptr %183, align 8, !tbaa !39
  br label %184

184:                                              ; preds = %130, %163, %179, %177, %175, %68
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %64, label %68, !llvm.loop !43
}

declare i32 @EnterTunnel(double noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"AtomStr", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 48}
!11 = !{!"PropertyStr", !8, i64 0, !8, i64 8, !8, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !13, i64 64, !13, i64 72, !8, i64 80, !14, i64 104, !7, i64 120, !7, i64 128}
!12 = !{!"int", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"AtomSeqStr", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{!16, !12, i64 4}
!16 = !{!"ObstructionStr", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!16, !7, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !7, i64 16}
!21 = !{!7, !7, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!6, !7, i64 8}
!24 = !{!25, !13, i64 120}
!25 = !{!"ParameterStr", !12, i64 0, !12, i64 4, !8, i64 8, !8, i64 40, !8, i64 72, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !8, i64 136, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !8, i64 208, !8, i64 240, !8, i64 272, !8, i64 304}
!26 = !{!25, !12, i64 0}
!27 = !{!25, !13, i64 168}
!28 = !{!25, !13, i64 104}
!29 = !{!30, !12, i64 44}
!30 = !{!"InteractionEventStr", !12, i64 0, !31, i64 8, !31, i64 16, !13, i64 24, !13, i64 32, !12, i64 40, !12, i64 44}
!31 = !{!"long", !8, i64 0}
!32 = !{!25, !12, i64 4}
!33 = !{!25, !13, i64 128}
!34 = !{!30, !13, i64 32}
!35 = !{!30, !13, i64 24}
!36 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!37 = !{!16, !7, i64 8}
!38 = !{!12, !12, i64 0}
!39 = !{!40, !12, i64 128}
!40 = !{!"DynamicStr", !8, i64 0, !8, i64 16, !8, i64 48, !41, i64 80, !42, i64 96, !30, i64 128}
!41 = !{!"HBStr", !12, i64 0, !12, i64 4, !8, i64 8, !12, i64 12}
!42 = !{!"HBNeighborStr", !8, i64 0, !12, i64 20, !12, i64 24}
!43 = distinct !{!43, !19}


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