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

@tmpDouble = external global double, align 8
@Methodtype = external global [20 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [78 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

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

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

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 @CalculateDisc(ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

; 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: nounwind uwtable
define dso_local void @HBNeighborTime(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [3 x ptr], align 16
  %10 = alloca %struct.InteractionEventStr, align 8
  %11 = alloca %struct.ParameterStr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 336, ptr %11) #5
  call void @InitializeEvent(ptr noundef %10)
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.AtomStr, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds %struct.PropertyStr, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !13
  store i32 %17, ptr %6, align 4, !tbaa !9
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.AtomStr, ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = getelementptr inbounds %struct.DynamicStr, ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds [4 x double], ptr %21, i64 0, i64 0
  %23 = load double, ptr %22, align 8, !tbaa !18
  %24 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 15
  %25 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
  store double %23, ptr %25, align 8, !tbaa !18
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.AtomStr, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = getelementptr inbounds %struct.DynamicStr, ptr %28, i32 0, i32 1
  %30 = getelementptr inbounds [4 x double], ptr %29, i64 0, i64 1
  %31 = load double, ptr %30, align 8, !tbaa !18
  %32 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 15
  %33 = getelementptr inbounds [4 x double], ptr %32, i64 0, i64 1
  store double %31, ptr %33, align 8, !tbaa !18
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.AtomStr, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.DynamicStr, ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds [4 x double], ptr %37, i64 0, i64 2
  %39 = load double, ptr %38, align 8, !tbaa !18
  %40 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 15
  %41 = getelementptr inbounds [4 x double], ptr %40, i64 0, i64 2
  store double %39, ptr %41, align 8, !tbaa !18
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.AtomStr, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !17
  %45 = getelementptr inbounds %struct.DynamicStr, ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds [4 x double], ptr %45, i64 0, i64 3
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 15
  %49 = getelementptr inbounds [4 x double], ptr %48, i64 0, i64 3
  store double %47, ptr %49, align 8, !tbaa !18
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.AtomStr, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = getelementptr inbounds %struct.DynamicStr, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds [4 x double], ptr %53, i64 0, i64 0
  %55 = load double, ptr %54, align 8, !tbaa !18
  %56 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 16
  %57 = getelementptr inbounds [4 x double], ptr %56, i64 0, i64 0
  store double %55, ptr %57, align 8, !tbaa !18
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.AtomStr, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  %61 = getelementptr inbounds %struct.DynamicStr, ptr %60, i32 0, i32 2
  %62 = getelementptr inbounds [4 x double], ptr %61, i64 0, i64 1
  %63 = load double, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 16
  %65 = getelementptr inbounds [4 x double], ptr %64, i64 0, i64 1
  store double %63, ptr %65, align 8, !tbaa !18
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.AtomStr, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = getelementptr inbounds %struct.DynamicStr, ptr %68, i32 0, i32 2
  %70 = getelementptr inbounds [4 x double], ptr %69, i64 0, i64 2
  %71 = load double, ptr %70, align 8, !tbaa !18
  %72 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 16
  %73 = getelementptr inbounds [4 x double], ptr %72, i64 0, i64 2
  store double %71, ptr %73, align 8, !tbaa !18
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.AtomStr, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds %struct.DynamicStr, ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds [4 x double], ptr %77, i64 0, i64 3
  %79 = load double, ptr %78, align 8, !tbaa !18
  %80 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 16
  %81 = getelementptr inbounds [4 x double], ptr %80, i64 0, i64 3
  store double %79, ptr %81, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %376, %2
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.AtomStr, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = getelementptr inbounds %struct.DynamicStr, ptr %86, i32 0, i32 4
  %88 = getelementptr inbounds %struct.HBNeighborStr, ptr %87, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !19
  %90 = icmp sle i32 %83, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %379

92:                                               ; preds = %82
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.AtomStr, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !17
  %96 = getelementptr inbounds %struct.DynamicStr, ptr %95, i32 0, i32 4
  %97 = getelementptr inbounds %struct.HBNeighborStr, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [5 x i32], ptr %97, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !9
  store i32 %101, ptr %7, align 4, !tbaa !9
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.AtomListStr, ptr %102, i32 0, i32 7
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  store ptr %108, ptr %8, align 8, !tbaa !5
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %118

111:                                              ; preds = %92
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.AtomStr, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !17
  %116 = getelementptr inbounds %struct.DynamicStr, ptr %115, i32 0, i32 4
  %117 = getelementptr inbounds %struct.HBNeighborStr, ptr %116, i32 0, i32 1
  store i32 %112, ptr %117, align 4, !tbaa !27
  br label %118

118:                                              ; preds = %111, %92
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = call i32 @CheckDuplication(ptr noundef %119, ptr noundef %120, i32 noundef 3)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %130

123:                                              ; preds = %118
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.AtomStr, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = getelementptr inbounds %struct.DynamicStr, ptr %127, i32 0, i32 4
  %129 = getelementptr inbounds %struct.HBNeighborStr, ptr %128, i32 0, i32 1
  store i32 %124, ptr %129, align 4, !tbaa !27
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %376

130:                                              ; preds = %118
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.AtomStr, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = getelementptr inbounds %struct.DynamicStr, ptr %133, i32 0, i32 1
  %135 = getelementptr inbounds [4 x double], ptr %134, i64 0, i64 0
  %136 = load double, ptr %135, align 8, !tbaa !18
  %137 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 17
  %138 = getelementptr inbounds [4 x double], ptr %137, i64 0, i64 0
  store double %136, ptr %138, align 8, !tbaa !18
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.AtomStr, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !17
  %142 = getelementptr inbounds %struct.DynamicStr, ptr %141, i32 0, i32 1
  %143 = getelementptr inbounds [4 x double], ptr %142, i64 0, i64 1
  %144 = load double, ptr %143, align 8, !tbaa !18
  %145 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 17
  %146 = getelementptr inbounds [4 x double], ptr %145, i64 0, i64 1
  store double %144, ptr %146, align 8, !tbaa !18
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.AtomStr, ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  %150 = getelementptr inbounds %struct.DynamicStr, ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds [4 x double], ptr %150, i64 0, i64 2
  %152 = load double, ptr %151, align 8, !tbaa !18
  %153 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 17
  %154 = getelementptr inbounds [4 x double], ptr %153, i64 0, i64 2
  store double %152, ptr %154, align 8, !tbaa !18
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.AtomStr, ptr %155, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !17
  %158 = getelementptr inbounds %struct.DynamicStr, ptr %157, i32 0, i32 1
  %159 = getelementptr inbounds [4 x double], ptr %158, i64 0, i64 3
  %160 = load double, ptr %159, align 8, !tbaa !18
  %161 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 17
  %162 = getelementptr inbounds [4 x double], ptr %161, i64 0, i64 3
  store double %160, ptr %162, align 8, !tbaa !18
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.AtomStr, ptr %163, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !17
  %166 = getelementptr inbounds %struct.DynamicStr, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds [4 x double], ptr %166, i64 0, i64 0
  %168 = load double, ptr %167, align 8, !tbaa !18
  %169 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 18
  %170 = getelementptr inbounds [4 x double], ptr %169, i64 0, i64 0
  store double %168, ptr %170, align 8, !tbaa !18
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.AtomStr, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !17
  %174 = getelementptr inbounds %struct.DynamicStr, ptr %173, i32 0, i32 2
  %175 = getelementptr inbounds [4 x double], ptr %174, i64 0, i64 1
  %176 = load double, ptr %175, align 8, !tbaa !18
  %177 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 18
  %178 = getelementptr inbounds [4 x double], ptr %177, i64 0, i64 1
  store double %176, ptr %178, align 8, !tbaa !18
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.AtomStr, ptr %179, i32 0, i32 1
  %181 = load ptr, ptr %180, align 8, !tbaa !17
  %182 = getelementptr inbounds %struct.DynamicStr, ptr %181, i32 0, i32 2
  %183 = getelementptr inbounds [4 x double], ptr %182, i64 0, i64 2
  %184 = load double, ptr %183, align 8, !tbaa !18
  %185 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 18
  %186 = getelementptr inbounds [4 x double], ptr %185, i64 0, i64 2
  store double %184, ptr %186, align 8, !tbaa !18
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.AtomStr, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8, !tbaa !17
  %190 = getelementptr inbounds %struct.DynamicStr, ptr %189, i32 0, i32 2
  %191 = getelementptr inbounds [4 x double], ptr %190, i64 0, i64 3
  %192 = load double, ptr %191, align 8, !tbaa !18
  %193 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 18
  %194 = getelementptr inbounds [4 x double], ptr %193, i64 0, i64 3
  store double %192, ptr %194, align 8, !tbaa !18
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  call void @CalculateParameters(ptr noundef %195, ptr noundef %196, ptr noundef %11)
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.AtomStr, ptr %197, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !17
  %200 = getelementptr inbounds %struct.DynamicStr, ptr %199, i32 0, i32 3
  %201 = getelementptr inbounds %struct.HBStr, ptr %200, i32 0, i32 2
  %202 = load i8, ptr %201, align 8, !tbaa !28
  %203 = sext i8 %202 to i32
  %204 = icmp eq i32 %203, 65
  br i1 %204, label %223, label %205

205:                                              ; preds = %130
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.AtomStr, ptr %206, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !17
  %209 = getelementptr inbounds %struct.DynamicStr, ptr %208, i32 0, i32 3
  %210 = getelementptr inbounds %struct.HBStr, ptr %209, i32 0, i32 2
  %211 = load i8, ptr %210, align 8, !tbaa !28
  %212 = sext i8 %211 to i32
  %213 = icmp eq i32 %212, 68
  br i1 %213, label %223, label %214

214:                                              ; preds = %205
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.AtomStr, ptr %215, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !17
  %218 = getelementptr inbounds %struct.DynamicStr, ptr %217, i32 0, i32 3
  %219 = getelementptr inbounds %struct.HBStr, ptr %218, i32 0, i32 2
  %220 = load i8, ptr %219, align 8, !tbaa !28
  %221 = sext i8 %220 to i32
  %222 = icmp eq i32 %221, 83
  br i1 %222, label %223, label %269

223:                                              ; preds = %214, %205, %130
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.AtomStr, ptr %224, i32 0, i32 1
  %226 = load ptr, ptr %225, align 8, !tbaa !17
  %227 = getelementptr inbounds %struct.DynamicStr, ptr %226, i32 0, i32 3
  %228 = getelementptr inbounds %struct.HBStr, ptr %227, i32 0, i32 0
  %229 = load i32, ptr %228, align 8, !tbaa !29
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %269

231:                                              ; preds = %223
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.AtomListStr, ptr %232, i32 0, i32 7
  %234 = load ptr, ptr %233, align 8, !tbaa !25
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.AtomStr, ptr %235, i32 0, i32 1
  %237 = load ptr, ptr %236, align 8, !tbaa !17
  %238 = getelementptr inbounds %struct.DynamicStr, ptr %237, i32 0, i32 3
  %239 = getelementptr inbounds %struct.HBStr, ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !29
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds ptr, ptr %234, i64 %241
  %243 = load ptr, ptr %242, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.AtomStr, ptr %243, i32 0, i32 1
  %245 = load ptr, ptr %244, align 8, !tbaa !17
  %246 = getelementptr inbounds %struct.DynamicStr, ptr %245, i32 0, i32 3
  %247 = getelementptr inbounds %struct.HBStr, ptr %246, i32 0, i32 1
  %248 = load i32, ptr %247, align 4, !tbaa !30
  %249 = load i32, ptr %7, align 4, !tbaa !9
  %250 = icmp eq i32 %248, %249
  br i1 %250, label %251, label %269

251:                                              ; preds = %231
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 0
  store ptr %252, ptr %253, align 16, !tbaa !5
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 1
  store ptr %254, ptr %255, align 8, !tbaa !5
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.AtomListStr, ptr %256, i32 0, i32 7
  %258 = load ptr, ptr %257, align 8, !tbaa !25
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.AtomStr, ptr %259, i32 0, i32 1
  %261 = load ptr, ptr %260, align 8, !tbaa !17
  %262 = getelementptr inbounds %struct.DynamicStr, ptr %261, i32 0, i32 3
  %263 = getelementptr inbounds %struct.HBStr, ptr %262, i32 0, i32 0
  %264 = load i32, ptr %263, align 8, !tbaa !29
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds ptr, ptr %258, i64 %265
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 2
  store ptr %267, ptr %268, align 16, !tbaa !5
  br label %287

269:                                              ; preds = %231, %223, %214
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 0
  store ptr %270, ptr %271, align 16, !tbaa !5
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 1
  store ptr %272, ptr %273, align 8, !tbaa !5
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.AtomListStr, ptr %274, i32 0, i32 7
  %276 = load ptr, ptr %275, align 8, !tbaa !25
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.AtomStr, ptr %277, i32 0, i32 1
  %279 = load ptr, ptr %278, align 8, !tbaa !17
  %280 = getelementptr inbounds %struct.DynamicStr, ptr %279, i32 0, i32 3
  %281 = getelementptr inbounds %struct.HBStr, ptr %280, i32 0, i32 0
  %282 = load i32, ptr %281, align 8, !tbaa !29
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds ptr, ptr %276, i64 %283
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 2
  store ptr %285, ptr %286, align 16, !tbaa !5
  br label %287

287:                                              ; preds = %269, %251
  %288 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 1
  %289 = load ptr, ptr %288, align 8, !tbaa !5
  %290 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 0
  %291 = load ptr, ptr %290, align 16, !tbaa !5
  %292 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 5
  %293 = load double, ptr %292, align 8, !tbaa !31
  %294 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 7
  %295 = load double, ptr %294, align 8, !tbaa !33
  %296 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 12
  %297 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 13
  %298 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 10
  %299 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 11
  %300 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 2
  %301 = load ptr, ptr %300, align 16, !tbaa !5
  %302 = call i32 @FindPair(ptr noundef %289, ptr noundef %291, ptr noundef @.str.16, double noundef %293, double noundef %295, ptr noundef %296, ptr noundef %297, ptr noundef %298, ptr noundef %299, ptr noundef @tmpDouble, ptr noundef %301, i32 noundef 0)
  %303 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 0
  store i32 %302, ptr %303, align 8, !tbaa !34
  %304 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 5
  %305 = load double, ptr %304, align 8, !tbaa !31
  %306 = fcmp olt double %305, 0.000000e+00
  br i1 %306, label %307, label %326

307:                                              ; preds = %287
  %308 = call double @CalculateDisc(ptr noundef %11)
  %309 = fcmp ogt double %308, 0.000000e+00
  br i1 %309, label %310, label %326

310:                                              ; preds = %307
  %311 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 1
  store i32 -1, ptr %311, align 4, !tbaa !35
  %312 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 12
  %313 = load double, ptr %312, align 8, !tbaa !36
  %314 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 8
  store double %313, ptr %314, align 8, !tbaa !37
  %315 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 10
  %316 = load double, ptr %315, align 8, !tbaa !38
  %317 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 4
  store double %316, ptr %317, align 8, !tbaa !39
  %318 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 0
  %319 = load i32, ptr %318, align 8, !tbaa !34
  %320 = icmp eq i32 %319, 0
  br i1 %320, label %321, label %323

321:                                              ; preds = %310
  %322 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 6
  store i32 0, ptr %322, align 4, !tbaa !40
  br label %325

323:                                              ; preds = %310
  %324 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 6
  store i32 4, ptr %324, align 4, !tbaa !40
  br label %325

325:                                              ; preds = %323, %321
  br label %346

326:                                              ; preds = %307, %287
  %327 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 1
  store i32 1, ptr %327, align 4, !tbaa !35
  %328 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 13
  %329 = load double, ptr %328, align 8, !tbaa !41
  %330 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 8
  store double %329, ptr %330, align 8, !tbaa !37
  %331 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 11
  %332 = load double, ptr %331, align 8, !tbaa !42
  %333 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 4
  store double %332, ptr %333, align 8, !tbaa !39
  %334 = call i32 @strncmp(ptr noundef @Methodtype, ptr noundef @.str.2, i64 noundef 1) #6
  %335 = icmp eq i32 %334, 0
  br i1 %335, label %336, label %345

336:                                              ; preds = %326
  %337 = getelementptr inbounds %struct.ParameterStr, ptr %11, i32 0, i32 0
  %338 = load i32, ptr %337, align 8, !tbaa !34
  %339 = icmp eq i32 %338, 1
  br i1 %339, label %340, label %342

340:                                              ; preds = %336
  %341 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 6
  store i32 1, ptr %341, align 4, !tbaa !40
  br label %344

342:                                              ; preds = %336
  %343 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 6
  store i32 5, ptr %343, align 4, !tbaa !40
  br label %344

344:                                              ; preds = %342, %340
  br label %345

345:                                              ; preds = %344, %326
  br label %346

346:                                              ; preds = %345, %325
  %347 = call double @CalculateTime(ptr noundef %11)
  %348 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 3
  store double %347, ptr %348, align 8, !tbaa !43
  %349 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 3
  %350 = load double, ptr %349, align 8, !tbaa !43
  %351 = fcmp olt double %350, 0.000000e+00
  %352 = xor i1 %351, true
  %353 = xor i1 %352, true
  %354 = zext i1 %353 to i32
  %355 = sext i32 %354 to i64
  %356 = call i64 @llvm.expect.i64(i64 %355, i64 0)
  %357 = icmp ne i64 %356, 0
  br i1 %357, label %358, label %363

358:                                              ; preds = %346
  %359 = load i32, ptr %6, align 4, !tbaa !9
  %360 = load i32, ptr %7, align 4, !tbaa !9
  %361 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %359, i32 noundef %360, ptr noundef @.str.7, i32 noundef 570)
  %362 = getelementptr inbounds %struct.InteractionEventStr, ptr %10, i32 0, i32 3
  store double 1.000000e+08, ptr %362, align 8, !tbaa !43
  br label %363

363:                                              ; preds = %358, %346
  %364 = load ptr, ptr %3, align 8, !tbaa !5
  %365 = load ptr, ptr %8, align 8, !tbaa !5
  %366 = call i32 @JobAssign(ptr noundef %364, ptr noundef %365, ptr noundef %10, i32 noundef 3)
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %375

368:                                              ; preds = %363
  %369 = load i32, ptr %12, align 4, !tbaa !9
  %370 = load ptr, ptr %3, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.AtomStr, ptr %370, i32 0, i32 1
  %372 = load ptr, ptr %371, align 8, !tbaa !17
  %373 = getelementptr inbounds %struct.DynamicStr, ptr %372, i32 0, i32 4
  %374 = getelementptr inbounds %struct.HBNeighborStr, ptr %373, i32 0, i32 1
  store i32 %369, ptr %374, align 4, !tbaa !27
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %375

375:                                              ; preds = %368, %363
  br label %376

376:                                              ; preds = %375, %123
  %377 = load i32, ptr %12, align 4, !tbaa !9
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %12, align 4, !tbaa !9
  br label %82, !llvm.loop !44

379:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 336, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!13 = !{!14, !10, i64 48}
!14 = !{!"PropertyStr", !7, i64 0, !7, i64 8, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !15, i64 64, !15, i64 72, !7, i64 80, !16, i64 104, !6, i64 120, !6, i64 128}
!15 = !{!"double", !7, i64 0}
!16 = !{!"AtomSeqStr", !10, i64 0, !10, i64 4, !10, i64 8}
!17 = !{!12, !6, i64 8}
!18 = !{!15, !15, i64 0}
!19 = !{!20, !10, i64 120}
!20 = !{!"DynamicStr", !7, i64 0, !7, i64 16, !7, i64 48, !21, i64 80, !22, i64 96, !23, i64 128}
!21 = !{!"HBStr", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 12}
!22 = !{!"HBNeighborStr", !7, i64 0, !10, i64 20, !10, i64 24}
!23 = !{!"InteractionEventStr", !10, i64 0, !24, i64 8, !24, i64 16, !15, i64 24, !15, i64 32, !10, i64 40, !10, i64 44}
!24 = !{!"long", !7, i64 0}
!25 = !{!26, !6, i64 352}
!26 = !{!"AtomListStr", !10, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !15, i64 328, !6, i64 336, !6, i64 344, !6, i64 352}
!27 = !{!20, !10, i64 116}
!28 = !{!20, !7, i64 88}
!29 = !{!20, !10, i64 80}
!30 = !{!20, !10, i64 84}
!31 = !{!32, !15, i64 104}
!32 = !{!"ParameterStr", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 40, !7, i64 72, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !7, i64 136, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !7, i64 208, !7, i64 240, !7, i64 272, !7, i64 304}
!33 = !{!32, !15, i64 120}
!34 = !{!32, !10, i64 0}
!35 = !{!32, !10, i64 4}
!36 = !{!32, !15, i64 184}
!37 = !{!32, !15, i64 128}
!38 = !{!32, !15, i64 168}
!39 = !{!23, !15, i64 32}
!40 = !{!23, !10, i64 44}
!41 = !{!32, !15, i64 192}
!42 = !{!32, !15, i64 176}
!43 = !{!23, !15, i64 24}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}


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

%struct.InteractionEventStr = type { i32, i64, i64, double, double, i32, i32 }
%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] }

@tmpDouble = external global double, align 8
@Methodtype = external local_unnamed_addr global [20 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [78 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

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

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

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 @CalculateDisc(ptr noundef) local_unnamed_addr #1

; 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: nounwind uwtable
define dso_local void @HBNeighborTime(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = alloca %struct.InteractionEventStr, align 8
  %4 = alloca %struct.ParameterStr, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 336, ptr nonnull %4) #4
  call void @InitializeEvent(ptr noundef nonnull %3)
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 48
  %7 = load i32, ptr %6, align 8, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  %11 = load double, ptr %10, align 8, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %4, i64 208
  store double %11, ptr %12, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %9, i64 24
  %14 = load double, ptr %13, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %4, i64 216
  store double %14, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %9, i64 32
  %17 = load double, ptr %16, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %4, i64 224
  store double %17, ptr %18, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %9, i64 40
  %20 = load double, ptr %19, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %4, i64 232
  store double %20, ptr %21, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %9, i64 48
  %23 = load double, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %4, i64 240
  store double %23, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %9, i64 56
  %26 = load double, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %4, i64 248
  store double %26, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %9, i64 64
  %29 = load double, ptr %28, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %4, i64 256
  store double %29, ptr %30, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %9, i64 72
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %4, i64 264
  store double %32, ptr %33, align 8, !tbaa !16
  %34 = getelementptr inbounds i8, ptr %9, i64 120
  %35 = load i32, ptr %34, align 8, !tbaa !17
  %.not59 = icmp slt i32 %35, 1
  br i1 %.not59, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %36 = getelementptr inbounds i8, ptr %1, i64 352
  %37 = getelementptr inbounds i8, ptr %4, i64 272
  %38 = getelementptr inbounds i8, ptr %4, i64 280
  %39 = getelementptr inbounds i8, ptr %4, i64 288
  %40 = getelementptr inbounds i8, ptr %4, i64 296
  %41 = getelementptr inbounds i8, ptr %4, i64 304
  %42 = getelementptr inbounds i8, ptr %4, i64 312
  %43 = getelementptr inbounds i8, ptr %4, i64 320
  %44 = getelementptr inbounds i8, ptr %4, i64 328
  %45 = getelementptr inbounds i8, ptr %4, i64 104
  %46 = getelementptr inbounds i8, ptr %4, i64 120
  %47 = getelementptr inbounds i8, ptr %4, i64 184
  %48 = getelementptr inbounds i8, ptr %4, i64 192
  %49 = getelementptr inbounds i8, ptr %4, i64 168
  %50 = getelementptr inbounds i8, ptr %4, i64 176
  %51 = getelementptr inbounds i8, ptr %4, i64 4
  %52 = getelementptr inbounds i8, ptr %4, i64 128
  %53 = getelementptr inbounds i8, ptr %3, i64 32
  %rhsc = load i8, ptr @.str.2, align 1
  %54 = getelementptr inbounds i8, ptr %3, i64 44
  %55 = getelementptr inbounds i8, ptr %3, i64 24
  br label %56

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

56:                                               ; preds = %.lr.ph, %145
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %145 ]
  %57 = phi ptr [ %9, %.lr.ph ], [ %146, %145 ]
  %.05360 = phi i32 [ 0, %.lr.ph ], [ %.1, %145 ]
  %58 = getelementptr inbounds i8, ptr %57, i64 96
  %59 = getelementptr inbounds [5 x i32], ptr %58, i64 0, i64 %indvars.iv
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = load ptr, ptr %36, align 8, !tbaa !24
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds ptr, ptr %61, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !26
  %65 = icmp eq i32 %.05360, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %56
  %67 = getelementptr inbounds i8, ptr %57, i64 116
  %68 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %68, ptr %67, align 4, !tbaa !27
  br label %69

69:                                               ; preds = %66, %56
  %70 = call i32 @CheckDuplication(ptr noundef nonnull %0, ptr noundef %64, i32 noundef 3)
  %.not56 = icmp eq i32 %70, 0
  br i1 %.not56, label %73, label %71

71:                                               ; preds = %69
  %72 = load ptr, ptr %8, align 8, !tbaa !15
  br label %.sink.split66

73:                                               ; preds = %69
  %74 = getelementptr inbounds i8, ptr %64, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  %77 = load double, ptr %76, align 8, !tbaa !16
  store double %77, ptr %37, align 8, !tbaa !16
  %78 = getelementptr inbounds i8, ptr %75, i64 24
  %79 = load double, ptr %78, align 8, !tbaa !16
  store double %79, ptr %38, align 8, !tbaa !16
  %80 = getelementptr inbounds i8, ptr %75, i64 32
  %81 = load double, ptr %80, align 8, !tbaa !16
  store double %81, ptr %39, align 8, !tbaa !16
  %82 = getelementptr inbounds i8, ptr %75, i64 40
  %83 = load double, ptr %82, align 8, !tbaa !16
  store double %83, ptr %40, align 8, !tbaa !16
  %84 = getelementptr inbounds i8, ptr %75, i64 48
  %85 = load double, ptr %84, align 8, !tbaa !16
  store double %85, ptr %41, align 8, !tbaa !16
  %86 = getelementptr inbounds i8, ptr %75, i64 56
  %87 = load double, ptr %86, align 8, !tbaa !16
  store double %87, ptr %42, align 8, !tbaa !16
  %88 = getelementptr inbounds i8, ptr %75, i64 64
  %89 = load double, ptr %88, align 8, !tbaa !16
  store double %89, ptr %43, align 8, !tbaa !16
  %90 = getelementptr inbounds i8, ptr %75, i64 72
  %91 = load double, ptr %90, align 8, !tbaa !16
  store double %91, ptr %44, align 8, !tbaa !16
  call void @CalculateParameters(ptr noundef nonnull %0, ptr noundef %64, ptr noundef nonnull %4)
  %92 = load ptr, ptr %8, align 8, !tbaa !15
  %93 = getelementptr inbounds i8, ptr %92, i64 88
  %94 = load i8, ptr %93, align 8, !tbaa !28
  switch i8 %94, label %._crit_edge63 [
    i8 65, label %95
    i8 68, label %95
    i8 83, label %95
  ]

._crit_edge63:                                    ; preds = %73
  %.pre = load ptr, ptr %36, align 8, !tbaa !24
  br label %107

95:                                               ; preds = %73, %73, %73
  %96 = getelementptr inbounds i8, ptr %92, i64 80
  %97 = load i32, ptr %96, align 8, !tbaa !29
  %.not57 = icmp eq i32 %97, 0
  %.pre64 = load ptr, ptr %36, align 8, !tbaa !24
  br i1 %.not57, label %107, label %98

98:                                               ; preds = %95
  %99 = sext i32 %97 to i64
  %100 = getelementptr inbounds ptr, ptr %.pre64, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !26
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = getelementptr inbounds i8, ptr %103, i64 84
  %105 = load i32, ptr %104, align 4, !tbaa !30
  %106 = icmp eq i32 %105, %60
  br i1 %106, label %115, label %107

107:                                              ; preds = %._crit_edge63, %98, %95
  %108 = phi ptr [ %.pre, %._crit_edge63 ], [ %.pre64, %98 ], [ %.pre64, %95 ]
  %109 = load ptr, ptr %74, align 8, !tbaa !15
  %110 = getelementptr inbounds i8, ptr %109, i64 80
  %111 = load i32, ptr %110, align 8, !tbaa !29
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %108, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !26
  br label %115

115:                                              ; preds = %98, %107
  %.sroa.8.0 = phi ptr [ %114, %107 ], [ %101, %98 ]
  %.sroa.5.0 = phi ptr [ %0, %107 ], [ %64, %98 ]
  %.sroa.0.0 = phi ptr [ %64, %107 ], [ %0, %98 ]
  %116 = load double, ptr %45, align 8, !tbaa !31
  %117 = load double, ptr %46, align 8, !tbaa !33
  %118 = call i32 @FindPair(ptr noundef %.sroa.5.0, ptr noundef %.sroa.0.0, ptr noundef nonnull @.str.16, double noundef %116, double noundef %117, ptr noundef nonnull %47, ptr noundef nonnull %48, ptr noundef nonnull %49, ptr noundef nonnull %50, ptr noundef nonnull @tmpDouble, ptr noundef %.sroa.8.0, i32 noundef 0) #4
  store i32 %118, ptr %4, align 8, !tbaa !34
  %119 = load double, ptr %45, align 8, !tbaa !31
  %120 = fcmp olt double %119, 0.000000e+00
  br i1 %120, label %121, label %129

121:                                              ; preds = %115
  %122 = call double @CalculateDisc(ptr noundef nonnull %4)
  %123 = fcmp ogt double %122, 0.000000e+00
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  store i32 -1, ptr %51, align 4, !tbaa !35
  %125 = load double, ptr %47, align 8, !tbaa !36
  store double %125, ptr %52, align 8, !tbaa !37
  %126 = load double, ptr %49, align 8, !tbaa !38
  store double %126, ptr %53, align 8, !tbaa !39
  %127 = load i32, ptr %4, align 8, !tbaa !34
  %128 = icmp eq i32 %127, 0
  %. = select i1 %128, i32 0, i32 4
  br label %.sink.split

129:                                              ; preds = %121, %115
  store i32 1, ptr %51, align 4, !tbaa !35
  %130 = load double, ptr %48, align 8, !tbaa !40
  store double %130, ptr %52, align 8, !tbaa !37
  %131 = load double, ptr %50, align 8, !tbaa !41
  store double %131, ptr %53, align 8, !tbaa !39
  %lhsc = load i8, ptr @Methodtype, align 16
  %132 = icmp eq i8 %lhsc, %rhsc
  br i1 %132, label %133, label %136

133:                                              ; preds = %129
  %134 = load i32, ptr %4, align 8, !tbaa !34
  %135 = icmp eq i32 %134, 1
  %.69 = select i1 %135, i32 1, i32 5
  br label %.sink.split

.sink.split:                                      ; preds = %133, %124
  %.sink = phi i32 [ %., %124 ], [ %.69, %133 ]
  store i32 %.sink, ptr %54, align 4, !tbaa !42
  br label %136

136:                                              ; preds = %.sink.split, %129
  %137 = call double @CalculateTime(ptr noundef nonnull %4)
  store double %137, ptr %55, align 8, !tbaa !43
  %138 = fcmp olt double %137, 0.000000e+00
  br i1 %138, label %139, label %141, !prof !44

139:                                              ; preds = %136
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %7, i32 noundef %60, ptr noundef nonnull @.str.7, i32 noundef 570)
  store double 1.000000e+08, ptr %55, align 8, !tbaa !43
  br label %141

141:                                              ; preds = %139, %136
  %142 = call i32 @JobAssign(ptr noundef nonnull %0, ptr noundef nonnull %64, ptr noundef nonnull %3, i32 noundef 3)
  %.not58 = icmp eq i32 %142, 0
  %.pre65 = load ptr, ptr %8, align 8, !tbaa !15
  br i1 %.not58, label %145, label %.sink.split66

.sink.split66:                                    ; preds = %141, %71
  %.pre65.sink = phi ptr [ %72, %71 ], [ %.pre65, %141 ]
  %143 = getelementptr inbounds i8, ptr %.pre65.sink, i64 116
  %144 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %144, ptr %143, align 4, !tbaa !27
  br label %145

145:                                              ; preds = %.sink.split66, %141
  %146 = phi ptr [ %.pre65, %141 ], [ %.pre65.sink, %.sink.split66 ]
  %.1 = phi i32 [ %.05360, %141 ], [ 1, %.sink.split66 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %147 = getelementptr inbounds i8, ptr %146, i64 120
  %148 = load i32, ptr %147, align 8, !tbaa !17
  %149 = sext i32 %148 to i64
  %.not.not = icmp slt i64 %indvars.iv, %149
  br i1 %.not.not, label %56, label %._crit_edge, !llvm.loop !45
}

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 = { 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 = !{!6, !7, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !12, i64 120}
!18 = !{!"DynamicStr", !8, i64 0, !8, i64 16, !8, i64 48, !19, i64 80, !20, i64 96, !21, i64 128}
!19 = !{!"HBStr", !12, i64 0, !12, i64 4, !8, i64 8, !12, i64 12}
!20 = !{!"HBNeighborStr", !8, i64 0, !12, i64 20, !12, i64 24}
!21 = !{!"InteractionEventStr", !12, i64 0, !22, i64 8, !22, i64 16, !13, i64 24, !13, i64 32, !12, i64 40, !12, i64 44}
!22 = !{!"long", !8, i64 0}
!23 = !{!12, !12, i64 0}
!24 = !{!25, !7, i64 352}
!25 = !{!"AtomListStr", !12, i64 0, !8, i64 4, !8, i64 112, !8, i64 220, !13, i64 328, !7, i64 336, !7, i64 344, !7, i64 352}
!26 = !{!7, !7, i64 0}
!27 = !{!18, !12, i64 116}
!28 = !{!18, !8, i64 88}
!29 = !{!18, !12, i64 80}
!30 = !{!18, !12, i64 84}
!31 = !{!32, !13, i64 104}
!32 = !{!"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}
!33 = !{!32, !13, i64 120}
!34 = !{!32, !12, i64 0}
!35 = !{!32, !12, i64 4}
!36 = !{!32, !13, i64 184}
!37 = !{!32, !13, i64 128}
!38 = !{!32, !13, i64 168}
!39 = !{!21, !13, i64 32}
!40 = !{!32, !13, i64 192}
!41 = !{!32, !13, i64 176}
!42 = !{!21, !12, i64 44}
!43 = !{!21, !13, i64 24}
!44 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}


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