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

@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [70 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

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

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

90:                                               ; preds = %93, %2
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %117

93:                                               ; preds = %90
  %94 = load i32, ptr %13, align 4, !tbaa !16
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %13, align 4, !tbaa !16
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ConstraintStr, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !20
  %99 = load i32, ptr %13, align 4, !tbaa !16
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [16 x i32], ptr %7, i64 0, i64 %100
  store i32 %98, ptr %101, align 4, !tbaa !16
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ConstraintStr, ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !22
  %105 = load i32, ptr %13, align 4, !tbaa !16
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [16 x double], ptr %8, i64 0, i64 %106
  store double %104, ptr %107, align 8, !tbaa !18
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ConstraintStr, ptr %108, i32 0, i32 3
  %110 = load double, ptr %109, align 8, !tbaa !23
  %111 = load i32, ptr %13, align 4, !tbaa !16
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [16 x double], ptr %9, i64 0, i64 %112
  store double %110, ptr %113, align 8, !tbaa !18
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ConstraintStr, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !24
  store ptr %116, ptr %14, align 8, !tbaa !5
  br label %90, !llvm.loop !25

117:                                              ; preds = %90
  %118 = load i32, ptr %13, align 4, !tbaa !16
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %13, align 4, !tbaa !16
  %120 = load i32, ptr %13, align 4, !tbaa !16
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [16 x i32], ptr %7, i64 0, i64 %121
  store i32 0, ptr %122, align 4, !tbaa !16
  %123 = load i32, ptr %13, align 4, !tbaa !16
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [16 x double], ptr %8, i64 0, i64 %124
  store double 0.000000e+00, ptr %125, align 8, !tbaa !18
  %126 = load i32, ptr %13, align 4, !tbaa !16
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [16 x double], ptr %9, i64 0, i64 %127
  store double 0.000000e+00, ptr %128, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !16
  br label %129

129:                                              ; preds = %397, %345, %280, %151, %117
  %130 = load i32, ptr %15, align 4, !tbaa !16
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [16 x i32], ptr %7, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !16
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %403

135:                                              ; preds = %129
  %136 = load i32, ptr %15, align 4, !tbaa !16
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [16 x i32], ptr %7, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !16
  store i32 %139, ptr %6, align 4, !tbaa !16
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.AtomListStr, ptr %140, i32 0, i32 7
  %142 = load ptr, ptr %141, align 8, !tbaa !27
  %143 = load i32, ptr %6, align 4, !tbaa !16
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds ptr, ptr %142, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  store ptr %146, ptr %10, align 8, !tbaa !5
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = call i32 @CheckDuplication(ptr noundef %147, ptr noundef %148, i32 noundef 1)
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %154

151:                                              ; preds = %135
  %152 = load i32, ptr %15, align 4, !tbaa !16
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %15, align 4, !tbaa !16
  br label %129, !llvm.loop !29

154:                                              ; preds = %135
  %155 = load i32, ptr %15, align 4, !tbaa !16
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [16 x double], ptr %9, i64 0, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !18
  %159 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 13
  store double %158, ptr %159, align 8, !tbaa !30
  %160 = load i32, ptr %15, align 4, !tbaa !16
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [16 x double], ptr %8, i64 0, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !18
  %164 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 12
  store double %163, ptr %164, align 8, !tbaa !32
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.AtomStr, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !17
  %168 = getelementptr inbounds %struct.DynamicStr, ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds [4 x double], ptr %168, i64 0, i64 0
  %170 = load double, ptr %169, align 8, !tbaa !18
  %171 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 17
  %172 = getelementptr inbounds [4 x double], ptr %171, i64 0, i64 0
  store double %170, ptr %172, align 8, !tbaa !18
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.AtomStr, ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !17
  %176 = getelementptr inbounds %struct.DynamicStr, ptr %175, i32 0, i32 1
  %177 = getelementptr inbounds [4 x double], ptr %176, i64 0, i64 1
  %178 = load double, ptr %177, align 8, !tbaa !18
  %179 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 17
  %180 = getelementptr inbounds [4 x double], ptr %179, i64 0, i64 1
  store double %178, ptr %180, align 8, !tbaa !18
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.AtomStr, ptr %181, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !17
  %184 = getelementptr inbounds %struct.DynamicStr, ptr %183, i32 0, i32 1
  %185 = getelementptr inbounds [4 x double], ptr %184, i64 0, i64 2
  %186 = load double, ptr %185, align 8, !tbaa !18
  %187 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 17
  %188 = getelementptr inbounds [4 x double], ptr %187, i64 0, i64 2
  store double %186, ptr %188, align 8, !tbaa !18
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.AtomStr, ptr %189, i32 0, i32 1
  %191 = load ptr, ptr %190, align 8, !tbaa !17
  %192 = getelementptr inbounds %struct.DynamicStr, ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds [4 x double], ptr %192, i64 0, i64 3
  %194 = load double, ptr %193, align 8, !tbaa !18
  %195 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 17
  %196 = getelementptr inbounds [4 x double], ptr %195, i64 0, i64 3
  store double %194, ptr %196, align 8, !tbaa !18
  %197 = load ptr, ptr %10, 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 2
  %201 = getelementptr inbounds [4 x double], ptr %200, i64 0, i64 0
  %202 = load double, ptr %201, align 8, !tbaa !18
  %203 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 18
  %204 = getelementptr inbounds [4 x double], ptr %203, i64 0, i64 0
  store double %202, ptr %204, align 8, !tbaa !18
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.AtomStr, ptr %205, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !17
  %208 = getelementptr inbounds %struct.DynamicStr, ptr %207, i32 0, i32 2
  %209 = getelementptr inbounds [4 x double], ptr %208, i64 0, i64 1
  %210 = load double, ptr %209, align 8, !tbaa !18
  %211 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 18
  %212 = getelementptr inbounds [4 x double], ptr %211, i64 0, i64 1
  store double %210, ptr %212, align 8, !tbaa !18
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.AtomStr, ptr %213, i32 0, i32 1
  %215 = load ptr, ptr %214, align 8, !tbaa !17
  %216 = getelementptr inbounds %struct.DynamicStr, ptr %215, i32 0, i32 2
  %217 = getelementptr inbounds [4 x double], ptr %216, i64 0, i64 2
  %218 = load double, ptr %217, align 8, !tbaa !18
  %219 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 18
  %220 = getelementptr inbounds [4 x double], ptr %219, i64 0, i64 2
  store double %218, ptr %220, align 8, !tbaa !18
  %221 = load ptr, ptr %10, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.AtomStr, ptr %221, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !17
  %224 = getelementptr inbounds %struct.DynamicStr, ptr %223, i32 0, i32 2
  %225 = getelementptr inbounds [4 x double], ptr %224, i64 0, i64 3
  %226 = load double, ptr %225, align 8, !tbaa !18
  %227 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 18
  %228 = getelementptr inbounds [4 x double], ptr %227, i64 0, i64 3
  store double %226, ptr %228, align 8, !tbaa !18
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  call void @CalculateParameters(ptr noundef %229, ptr noundef %230, ptr noundef %12)
  %231 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 7
  %232 = load double, ptr %231, align 8, !tbaa !33
  %233 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 13
  %234 = load double, ptr %233, align 8, !tbaa !30
  %235 = fsub double %232, %234
  %236 = fcmp ogt double %235, 1.000000e-08
  %237 = xor i1 %236, true
  %238 = xor i1 %237, true
  %239 = zext i1 %238 to i32
  %240 = sext i32 %239 to i64
  %241 = call i64 @llvm.expect.i64(i64 %240, i64 0)
  %242 = icmp ne i64 %241, 0
  br i1 %242, label %243, label %295

243:                                              ; preds = %154
  %244 = load i32, ptr %5, align 4, !tbaa !16
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.AtomStr, ptr %245, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.PropertyStr, ptr %247, i32 0, i32 9
  %249 = getelementptr inbounds %struct.AtomSeqStr, ptr %248, i32 0, i32 2
  %250 = load i32, ptr %249, align 8, !tbaa !34
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.AtomStr, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.PropertyStr, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds [8 x i8], ptr %254, i64 0, i64 0
  %256 = load i32, ptr %6, align 4, !tbaa !16
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.AtomStr, ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !9
  %260 = getelementptr inbounds %struct.PropertyStr, ptr %259, i32 0, i32 9
  %261 = getelementptr inbounds %struct.AtomSeqStr, ptr %260, i32 0, i32 2
  %262 = load i32, ptr %261, align 8, !tbaa !34
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.AtomStr, ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !9
  %266 = getelementptr inbounds %struct.PropertyStr, ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds [8 x i8], ptr %266, i64 0, i64 0
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %244, i32 noundef %250, ptr noundef %255, i32 noundef %256, i32 noundef %262, ptr noundef %267)
  %269 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 7
  %270 = load double, ptr %269, align 8, !tbaa !33
  %271 = call double @sqrt(double noundef %270) #6
  %272 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 13
  %273 = load double, ptr %272, align 8, !tbaa !30
  %274 = call double @sqrt(double noundef %273) #6
  %275 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %271, double noundef %274)
  %276 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 245)
  %277 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 5
  %278 = load double, ptr %277, align 8, !tbaa !35
  %279 = fcmp oge double %278, 0.000000e+00
  br i1 %279, label %280, label %294

280:                                              ; preds = %243
  %281 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 6
  store i32 1, ptr %281, align 4, !tbaa !36
  %282 = load i32, ptr %5, align 4, !tbaa !16
  %283 = sitofp i32 %282 to double
  %284 = fmul double 0x3C9CD2B297D889BC, %283
  %285 = load i32, ptr %6, align 4, !tbaa !16
  %286 = sitofp i32 %285 to double
  %287 = fmul double %284, %286
  %288 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 3
  store double %287, ptr %288, align 8, !tbaa !39
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = load ptr, ptr %10, align 8, !tbaa !5
  %291 = call i32 @JobAssign(ptr noundef %289, ptr noundef %290, ptr noundef %11, i32 noundef 1)
  %292 = load i32, ptr %15, align 4, !tbaa !16
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %15, align 4, !tbaa !16
  br label %129, !llvm.loop !29

294:                                              ; preds = %243
  br label %361

295:                                              ; preds = %154
  %296 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 12
  %297 = load double, ptr %296, align 8, !tbaa !32
  %298 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 7
  %299 = load double, ptr %298, align 8, !tbaa !33
  %300 = fsub double %297, %299
  %301 = fcmp ogt double %300, 1.000000e-08
  %302 = xor i1 %301, true
  %303 = xor i1 %302, true
  %304 = zext i1 %303 to i32
  %305 = sext i32 %304 to i64
  %306 = call i64 @llvm.expect.i64(i64 %305, i64 0)
  %307 = icmp ne i64 %306, 0
  br i1 %307, label %308, label %360

308:                                              ; preds = %295
  %309 = load i32, ptr %5, align 4, !tbaa !16
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.AtomStr, ptr %310, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.PropertyStr, ptr %312, i32 0, i32 9
  %314 = getelementptr inbounds %struct.AtomSeqStr, ptr %313, i32 0, i32 2
  %315 = load i32, ptr %314, align 8, !tbaa !34
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.AtomStr, ptr %316, i32 0, i32 0
  %318 = load ptr, ptr %317, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.PropertyStr, ptr %318, i32 0, i32 0
  %320 = getelementptr inbounds [8 x i8], ptr %319, i64 0, i64 0
  %321 = load i32, ptr %6, align 4, !tbaa !16
  %322 = load ptr, ptr %10, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.AtomStr, ptr %322, i32 0, i32 0
  %324 = load ptr, ptr %323, align 8, !tbaa !9
  %325 = getelementptr inbounds %struct.PropertyStr, ptr %324, i32 0, i32 9
  %326 = getelementptr inbounds %struct.AtomSeqStr, ptr %325, i32 0, i32 2
  %327 = load i32, ptr %326, align 8, !tbaa !34
  %328 = load ptr, ptr %10, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.AtomStr, ptr %328, i32 0, i32 0
  %330 = load ptr, ptr %329, align 8, !tbaa !9
  %331 = getelementptr inbounds %struct.PropertyStr, ptr %330, i32 0, i32 0
  %332 = getelementptr inbounds [8 x i8], ptr %331, i64 0, i64 0
  %333 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %309, i32 noundef %315, ptr noundef %320, i32 noundef %321, i32 noundef %327, ptr noundef %332)
  %334 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 7
  %335 = load double, ptr %334, align 8, !tbaa !33
  %336 = call double @sqrt(double noundef %335) #6
  %337 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 12
  %338 = load double, ptr %337, align 8, !tbaa !32
  %339 = call double @sqrt(double noundef %338) #6
  %340 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %336, double noundef %339)
  %341 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 260)
  %342 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 5
  %343 = load double, ptr %342, align 8, !tbaa !35
  %344 = fcmp olt double %343, 0.000000e+00
  br i1 %344, label %345, label %359

345:                                              ; preds = %308
  %346 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 6
  store i32 0, ptr %346, align 4, !tbaa !36
  %347 = load i32, ptr %5, align 4, !tbaa !16
  %348 = sitofp i32 %347 to double
  %349 = fmul double 0x3C9CD2B297D889BC, %348
  %350 = load i32, ptr %6, align 4, !tbaa !16
  %351 = sitofp i32 %350 to double
  %352 = fmul double %349, %351
  %353 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 3
  store double %352, ptr %353, align 8, !tbaa !39
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  %355 = load ptr, ptr %10, align 8, !tbaa !5
  %356 = call i32 @JobAssign(ptr noundef %354, ptr noundef %355, ptr noundef %11, i32 noundef 1)
  %357 = load i32, ptr %15, align 4, !tbaa !16
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %15, align 4, !tbaa !16
  br label %129, !llvm.loop !29

359:                                              ; preds = %308
  br label %360

360:                                              ; preds = %359, %295
  br label %361

361:                                              ; preds = %360, %294
  %362 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 5
  %363 = load double, ptr %362, align 8, !tbaa !35
  %364 = fcmp olt double %363, 0.000000e+00
  br i1 %364, label %365, label %374

365:                                              ; preds = %361
  %366 = call double @CalculateDisc(ptr noundef %12)
  %367 = fcmp ogt double %366, 0.000000e+00
  br i1 %367, label %368, label %374

368:                                              ; preds = %365
  %369 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 1
  store i32 -1, ptr %369, align 4, !tbaa !40
  %370 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 12
  %371 = load double, ptr %370, align 8, !tbaa !32
  %372 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 8
  store double %371, ptr %372, align 8, !tbaa !41
  %373 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 6
  store i32 0, ptr %373, align 4, !tbaa !36
  br label %380

374:                                              ; preds = %365, %361
  %375 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 1
  store i32 1, ptr %375, align 4, !tbaa !40
  %376 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 13
  %377 = load double, ptr %376, align 8, !tbaa !30
  %378 = getelementptr inbounds %struct.ParameterStr, ptr %12, i32 0, i32 8
  store double %377, ptr %378, align 8, !tbaa !41
  %379 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 6
  store i32 1, ptr %379, align 4, !tbaa !36
  br label %380

380:                                              ; preds = %374, %368
  %381 = call double @CalculateTime(ptr noundef %12)
  %382 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 3
  store double %381, ptr %382, align 8, !tbaa !39
  %383 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 3
  %384 = load double, ptr %383, align 8, !tbaa !39
  %385 = fcmp olt double %384, 0.000000e+00
  %386 = xor i1 %385, true
  %387 = xor i1 %386, true
  %388 = zext i1 %387 to i32
  %389 = sext i32 %388 to i64
  %390 = call i64 @llvm.expect.i64(i64 %389, i64 0)
  %391 = icmp ne i64 %390, 0
  br i1 %391, label %392, label %397

392:                                              ; preds = %380
  %393 = load i32, ptr %5, align 4, !tbaa !16
  %394 = load i32, ptr %6, align 4, !tbaa !16
  %395 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %393, i32 noundef %394, ptr noundef @.str.7, i32 noundef 288)
  %396 = getelementptr inbounds %struct.InteractionEventStr, ptr %11, i32 0, i32 3
  store double 1.000000e+08, ptr %396, align 8, !tbaa !39
  br label %397

397:                                              ; preds = %392, %380
  %398 = load ptr, ptr %3, align 8, !tbaa !5
  %399 = load ptr, ptr %10, align 8, !tbaa !5
  %400 = call i32 @JobAssign(ptr noundef %398, ptr noundef %399, ptr noundef %11, i32 noundef 1)
  %401 = load i32, ptr %15, align 4, !tbaa !16
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %15, align 4, !tbaa !16
  br label %129, !llvm.loop !29

403:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 336, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

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

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 "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!10, !6, i64 8}
!18 = !{!14, !14, i64 0}
!19 = !{!12, !6, i64 120}
!20 = !{!21, !13, i64 0}
!21 = !{!"ConstraintStr", !13, i64 0, !14, i64 8, !6, i64 16, !14, i64 24, !6, i64 32}
!22 = !{!21, !14, i64 8}
!23 = !{!21, !14, i64 24}
!24 = !{!21, !6, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !6, i64 352}
!28 = !{!"AtomListStr", !13, i64 0, !7, i64 4, !7, i64 112, !7, i64 220, !14, i64 328, !6, i64 336, !6, i64 344, !6, i64 352}
!29 = distinct !{!29, !26}
!30 = !{!31, !14, i64 192}
!31 = !{!"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}
!32 = !{!31, !14, i64 184}
!33 = !{!31, !14, i64 120}
!34 = !{!12, !13, i64 112}
!35 = !{!31, !14, i64 104}
!36 = !{!37, !13, i64 44}
!37 = !{!"InteractionEventStr", !13, i64 0, !38, i64 8, !38, i64 16, !14, i64 24, !14, i64 32, !13, i64 40, !13, i64 44}
!38 = !{!"long", !7, i64 0}
!39 = !{!37, !14, i64 24}
!40 = !{!31, !13, i64 4}
!41 = !{!31, !14, i64 128}


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

@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [70 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

; 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 #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) 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 @BondTime(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = alloca [16 x i32], align 16
  %4 = alloca [16 x double], align 16
  %5 = alloca [16 x double], align 16
  %6 = alloca %struct.InteractionEventStr, align 8
  %7 = alloca %struct.ParameterStr, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %3, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %4, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %5, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 336, ptr nonnull %7) #5
  call void @InitializeEvent(ptr noundef nonnull %6)
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 48
  %10 = load i32, ptr %9, align 8, !tbaa !10
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load double, ptr %13, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %7, i64 208
  store double %14, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %12, i64 24
  %17 = load double, ptr %16, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %7, i64 216
  store double %17, ptr %18, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %12, i64 32
  %20 = load double, ptr %19, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %7, i64 224
  store double %20, ptr %21, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %12, i64 40
  %23 = load double, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %7, i64 232
  store double %23, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %12, i64 48
  %26 = load double, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %7, i64 240
  store double %26, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %12, i64 56
  %29 = load double, ptr %28, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %7, i64 248
  store double %29, ptr %30, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %12, i64 64
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %7, i64 256
  store double %32, ptr %33, align 8, !tbaa !16
  %34 = getelementptr inbounds i8, ptr %12, i64 72
  %35 = load double, ptr %34, align 8, !tbaa !16
  %36 = getelementptr inbounds i8, ptr %7, i64 264
  store double %35, ptr %36, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %8, i64 120
  %.06873 = load ptr, ptr %37, align 8, !tbaa !17
  %.not74 = icmp eq ptr %.06873, null
  br i1 %.not74, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %2 ]
  %.06876 = phi ptr [ %.068, %.lr.ph ], [ %.06873, %2 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %.06876, align 8, !tbaa !18
  %39 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %indvars.iv.next
  store i32 %38, ptr %39, align 4, !tbaa !20
  %40 = getelementptr inbounds i8, ptr %.06876, i64 8
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = getelementptr inbounds [16 x double], ptr %4, i64 0, i64 %indvars.iv.next
  store double %41, ptr %42, align 8, !tbaa !16
  %43 = getelementptr inbounds i8, ptr %.06876, i64 24
  %44 = load double, ptr %43, align 8, !tbaa !22
  %45 = getelementptr inbounds [16 x double], ptr %5, i64 0, i64 %indvars.iv.next
  store double %44, ptr %45, align 8, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %.06876, i64 32
  %.068 = load ptr, ptr %46, align 8, !tbaa !17
  %.not = icmp eq ptr %.068, null
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !23

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %47 = add nuw i64 %indvars.iv, 2
  %48 = and i64 %47, 4294967295
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.069.lcssa = phi i64 [ 1, %2 ], [ %48, %._crit_edge.loopexit ]
  %49 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %.069.lcssa
  store i32 0, ptr %49, align 4, !tbaa !20
  %50 = getelementptr inbounds [16 x double], ptr %4, i64 0, i64 %.069.lcssa
  store double 0.000000e+00, ptr %50, align 8, !tbaa !16
  %51 = getelementptr inbounds [16 x double], ptr %5, i64 0, i64 %.069.lcssa
  store double 0.000000e+00, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %3, i64 4
  %53 = load i32, ptr %52, align 4, !tbaa !20
  %.not7177 = icmp eq i32 %53, 0
  br i1 %.not7177, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %._crit_edge
  %54 = getelementptr inbounds i8, ptr %1, i64 352
  %55 = getelementptr inbounds i8, ptr %7, i64 192
  %56 = getelementptr inbounds i8, ptr %7, i64 184
  %57 = getelementptr inbounds i8, ptr %7, i64 272
  %58 = getelementptr inbounds i8, ptr %7, i64 280
  %59 = getelementptr inbounds i8, ptr %7, i64 288
  %60 = getelementptr inbounds i8, ptr %7, i64 296
  %61 = getelementptr inbounds i8, ptr %7, i64 304
  %62 = getelementptr inbounds i8, ptr %7, i64 312
  %63 = getelementptr inbounds i8, ptr %7, i64 320
  %64 = getelementptr inbounds i8, ptr %7, i64 328
  %65 = getelementptr inbounds i8, ptr %7, i64 120
  %66 = getelementptr inbounds i8, ptr %7, i64 104
  %67 = getelementptr inbounds i8, ptr %6, i64 44
  %68 = sitofp i32 %10 to double
  %69 = fmul double %68, 0x3C9CD2B297D889BC
  %70 = getelementptr inbounds i8, ptr %6, i64 24
  %71 = getelementptr inbounds i8, ptr %7, i64 4
  %72 = getelementptr inbounds i8, ptr %7, i64 128
  br label %73

73:                                               ; preds = %.lr.ph80, %.backedge
  %indvars.iv83 = phi i64 [ 1, %.lr.ph80 ], [ %indvars.iv.next84, %.backedge ]
  %74 = phi i32 [ %53, %.lr.ph80 ], [ %82, %.backedge ]
  %75 = load ptr, ptr %54, align 8, !tbaa !25
  %76 = sext i32 %74 to i64
  %77 = getelementptr inbounds ptr, ptr %75, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = call i32 @CheckDuplication(ptr noundef nonnull %0, ptr noundef %78, i32 noundef 1)
  %.not72 = icmp eq i32 %79, 0
  br i1 %.not72, label %83, label %.backedge

.backedge.sink.split.sink.split:                  ; preds = %126, %149, %163
  %.sink89 = phi double [ 1.000000e+08, %163 ], [ %151, %149 ], [ %128, %126 ]
  store double %.sink89, ptr %70, align 8, !tbaa !27
  br label %.backedge.sink.split

.backedge.sink.split:                             ; preds = %.backedge.sink.split.sink.split, %159
  %80 = call i32 @JobAssign(ptr noundef nonnull %0, ptr noundef nonnull %78, ptr noundef nonnull %6, i32 noundef 1)
  br label %.backedge

.backedge:                                        ; preds = %.backedge.sink.split, %73
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %81 = getelementptr inbounds [16 x i32], ptr %3, i64 0, i64 %indvars.iv.next84
  %82 = load i32, ptr %81, align 4, !tbaa !20
  %.not71 = icmp eq i32 %82, 0
  br i1 %.not71, label %._crit_edge81, label %73, !llvm.loop !30

83:                                               ; preds = %73
  %84 = getelementptr inbounds [16 x double], ptr %5, i64 0, i64 %indvars.iv83
  %85 = load double, ptr %84, align 8, !tbaa !16
  store double %85, ptr %55, align 8, !tbaa !31
  %86 = getelementptr inbounds [16 x double], ptr %4, i64 0, i64 %indvars.iv83
  %87 = load double, ptr %86, align 8, !tbaa !16
  store double %87, ptr %56, align 8, !tbaa !33
  %88 = getelementptr inbounds i8, ptr %78, i64 8
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %91 = load double, ptr %90, align 8, !tbaa !16
  store double %91, ptr %57, align 8, !tbaa !16
  %92 = getelementptr inbounds i8, ptr %89, i64 24
  %93 = load double, ptr %92, align 8, !tbaa !16
  store double %93, ptr %58, align 8, !tbaa !16
  %94 = getelementptr inbounds i8, ptr %89, i64 32
  %95 = load double, ptr %94, align 8, !tbaa !16
  store double %95, ptr %59, align 8, !tbaa !16
  %96 = getelementptr inbounds i8, ptr %89, i64 40
  %97 = load double, ptr %96, align 8, !tbaa !16
  store double %97, ptr %60, align 8, !tbaa !16
  %98 = getelementptr inbounds i8, ptr %89, i64 48
  %99 = load double, ptr %98, align 8, !tbaa !16
  store double %99, ptr %61, align 8, !tbaa !16
  %100 = getelementptr inbounds i8, ptr %89, i64 56
  %101 = load double, ptr %100, align 8, !tbaa !16
  store double %101, ptr %62, align 8, !tbaa !16
  %102 = getelementptr inbounds i8, ptr %89, i64 64
  %103 = load double, ptr %102, align 8, !tbaa !16
  store double %103, ptr %63, align 8, !tbaa !16
  %104 = getelementptr inbounds i8, ptr %89, i64 72
  %105 = load double, ptr %104, align 8, !tbaa !16
  store double %105, ptr %64, align 8, !tbaa !16
  call void @CalculateParameters(ptr noundef nonnull %0, ptr noundef %78, ptr noundef nonnull %7)
  %106 = load double, ptr %65, align 8, !tbaa !34
  %107 = load double, ptr %55, align 8, !tbaa !31
  %108 = fsub double %106, %107
  %109 = fcmp ogt double %108, 1.000000e-08
  br i1 %109, label %110, label %129, !prof !35

110:                                              ; preds = %83
  %111 = load ptr, ptr %0, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 112
  %113 = load i32, ptr %112, align 8, !tbaa !36
  %114 = load ptr, ptr %78, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i64 112
  %116 = load i32, ptr %115, align 8, !tbaa !36
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %10, i32 noundef %113, ptr noundef %111, i32 noundef %74, i32 noundef %116, ptr noundef %114)
  %118 = load double, ptr %65, align 8, !tbaa !34
  %119 = call double @sqrt(double noundef %118) #5
  %120 = load double, ptr %55, align 8, !tbaa !31
  %121 = call double @sqrt(double noundef %120) #5
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %119, double noundef %121)
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.7, i32 noundef 245)
  %124 = load double, ptr %66, align 8, !tbaa !37
  %125 = fcmp ult double %124, 0.000000e+00
  br i1 %125, label %152, label %126

126:                                              ; preds = %110
  store i32 1, ptr %67, align 4, !tbaa !38
  %127 = sitofp i32 %74 to double
  %128 = fmul double %69, %127
  br label %.backedge.sink.split.sink.split

129:                                              ; preds = %83
  %130 = load double, ptr %56, align 8, !tbaa !33
  %131 = fsub double %130, %106
  %132 = fcmp ogt double %131, 1.000000e-08
  br i1 %132, label %133, label %._crit_edge86, !prof !35

._crit_edge86:                                    ; preds = %129
  %.pre = load double, ptr %66, align 8, !tbaa !37
  br label %152

133:                                              ; preds = %129
  %134 = load ptr, ptr %0, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 112
  %136 = load i32, ptr %135, align 8, !tbaa !36
  %137 = load ptr, ptr %78, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 112
  %139 = load i32, ptr %138, align 8, !tbaa !36
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %10, i32 noundef %136, ptr noundef %134, i32 noundef %74, i32 noundef %139, ptr noundef %137)
  %141 = load double, ptr %65, align 8, !tbaa !34
  %142 = call double @sqrt(double noundef %141) #5
  %143 = load double, ptr %56, align 8, !tbaa !33
  %144 = call double @sqrt(double noundef %143) #5
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %142, double noundef %144)
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.7, i32 noundef 260)
  %147 = load double, ptr %66, align 8, !tbaa !37
  %148 = fcmp olt double %147, 0.000000e+00
  br i1 %148, label %149, label %152

149:                                              ; preds = %133
  store i32 0, ptr %67, align 4, !tbaa !38
  %150 = sitofp i32 %74 to double
  %151 = fmul double %69, %150
  br label %.backedge.sink.split.sink.split

152:                                              ; preds = %._crit_edge86, %133, %110
  %153 = phi double [ %.pre, %._crit_edge86 ], [ %147, %133 ], [ %124, %110 ]
  %154 = fcmp olt double %153, 0.000000e+00
  br i1 %154, label %155, label %158

155:                                              ; preds = %152
  %156 = call double @CalculateDisc(ptr noundef nonnull %7)
  %157 = fcmp ogt double %156, 0.000000e+00
  br i1 %157, label %159, label %158

158:                                              ; preds = %155, %152
  br label %159

159:                                              ; preds = %155, %158
  %.sink88 = phi i32 [ 1, %158 ], [ -1, %155 ]
  %.sink = phi ptr [ %55, %158 ], [ %56, %155 ]
  %storemerge = phi i32 [ 1, %158 ], [ 0, %155 ]
  store i32 %.sink88, ptr %71, align 4, !tbaa !39
  %160 = load double, ptr %.sink, align 8, !tbaa !16
  store double %160, ptr %72, align 8, !tbaa !40
  store i32 %storemerge, ptr %67, align 4, !tbaa !38
  %161 = call double @CalculateTime(ptr noundef nonnull %7)
  store double %161, ptr %70, align 8, !tbaa !27
  %162 = fcmp olt double %161, 0.000000e+00
  br i1 %162, label %163, label %.backedge.sink.split, !prof !35

163:                                              ; preds = %159
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %10, i32 noundef %74, ptr noundef nonnull @.str.7, i32 noundef 288)
  br label %.backedge.sink.split.sink.split

._crit_edge81:                                    ; preds = %.backedge, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 336, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  ret void
}

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

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!7, !7, i64 0}
!18 = !{!19, !12, i64 0}
!19 = !{!"ConstraintStr", !12, i64 0, !13, i64 8, !7, i64 16, !13, i64 24, !7, i64 32}
!20 = !{!12, !12, i64 0}
!21 = !{!19, !13, i64 8}
!22 = !{!19, !13, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !7, i64 352}
!26 = !{!"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}
!27 = !{!28, !13, i64 24}
!28 = !{!"InteractionEventStr", !12, i64 0, !29, i64 8, !29, i64 16, !13, i64 24, !13, i64 32, !12, i64 40, !12, i64 44}
!29 = !{!"long", !8, i64 0}
!30 = distinct !{!30, !24}
!31 = !{!32, !13, i64 192}
!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 184}
!34 = !{!32, !13, i64 120}
!35 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!36 = !{!11, !12, i64 112}
!37 = !{!32, !13, i64 104}
!38 = !{!28, !12, i64 44}
!39 = !{!32, !12, i64 4}
!40 = !{!32, !13, i64 128}


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