; 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.AtomStr = type { ptr, ptr }
%struct.DynamicStr = type { [4 x i32], [4 x double], [4 x double], %struct.HBStr, %struct.HBNeighborStr, %struct.InteractionEventStr }
%struct.HBStr = type { i32, i32, i8, i32 }
%struct.HBNeighborStr = type { [5 x i32], i32, i32 }

@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@cellsize = external global [4 x double], align 16
@.str.19 = external hidden unnamed_addr constant [36 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(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; 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 @PBCandCrossCellTime(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca [4 x double], align 16
  %4 = alloca [4 x double], align 16
  %5 = alloca [2 x [4 x double]], align 16
  %6 = alloca double, align 8
  %7 = alloca %struct.InteractionEventStr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store double 1.000000e+08, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #3
  call void @InitializeEvent(ptr noundef %7)
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.AtomStr, ptr %10, i32 0, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds %struct.DynamicStr, ptr %12, i32 0, i32 1
  %14 = getelementptr inbounds [4 x double], ptr %13, i64 0, i64 0
  %15 = load double, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
  store double %15, ptr %16, align 16, !tbaa !9
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.AtomStr, ptr %17, i32 0, i32 1
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.DynamicStr, ptr %19, i32 0, i32 1
  %21 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 1
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 1
  store double %22, ptr %23, align 8, !tbaa !9
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.AtomStr, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.DynamicStr, ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds [4 x double], ptr %27, i64 0, i64 2
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 2
  store double %29, ptr %30, align 16, !tbaa !9
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.AtomStr, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds %struct.DynamicStr, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds [4 x double], ptr %34, i64 0, i64 3
  %36 = load double, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 3
  store double %36, ptr %37, align 8, !tbaa !9
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.AtomStr, ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.DynamicStr, ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds [4 x double], ptr %41, i64 0, i64 0
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
  store double %43, ptr %44, align 16, !tbaa !9
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.AtomStr, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.DynamicStr, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds [4 x double], ptr %48, i64 0, i64 1
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
  store double %50, ptr %51, align 8, !tbaa !9
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.AtomStr, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.DynamicStr, ptr %54, i32 0, i32 2
  %56 = getelementptr inbounds [4 x double], ptr %55, i64 0, i64 2
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
  store double %57, ptr %58, align 16, !tbaa !9
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.AtomStr, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.DynamicStr, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds [4 x double], ptr %62, i64 0, i64 3
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
  store double %64, ptr %65, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 1, ptr %8, align 4, !tbaa !13
  br label %66

66:                                               ; preds = %108, %1
  %67 = load i32, ptr %8, align 4, !tbaa !13
  %68 = icmp sle i32 %67, 3
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %111

70:                                               ; preds = %66
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.AtomStr, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds %struct.DynamicStr, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %8, align 4, !tbaa !13
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [4 x i32], ptr %74, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = sitofp i32 %78 to double
  %80 = load i32, ptr %8, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [4 x double], ptr @cellsize, i64 0, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = fmul double %79, %83
  %85 = getelementptr inbounds [2 x [4 x double]], ptr %5, i64 0, i64 0
  %86 = load i32, ptr %8, align 4, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [4 x double], ptr %85, i64 0, i64 %87
  store double %84, ptr %88, align 8, !tbaa !9
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.AtomStr, ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.DynamicStr, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %8, align 4, !tbaa !13
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [4 x i32], ptr %92, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = add nsw i32 %96, 1
  %98 = sitofp i32 %97 to double
  %99 = load i32, ptr %8, align 4, !tbaa !13
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [4 x double], ptr @cellsize, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fmul double %98, %102
  %104 = getelementptr inbounds [2 x [4 x double]], ptr %5, i64 0, i64 1
  %105 = load i32, ptr %8, align 4, !tbaa !13
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x double], ptr %104, i64 0, i64 %106
  store double %103, ptr %107, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %70
  %109 = load i32, ptr %8, align 4, !tbaa !13
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %8, align 4, !tbaa !13
  br label %66, !llvm.loop !15

111:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 1, ptr %9, align 4, !tbaa !13
  br label %112

112:                                              ; preds = %188, %111
  %113 = load i32, ptr %9, align 4, !tbaa !13
  %114 = icmp sle i32 %113, 3
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %191

116:                                              ; preds = %112
  %117 = load i32, ptr %9, align 4, !tbaa !13
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = fcmp ogt double %120, 0.000000e+00
  br i1 %121, label %122, label %150

122:                                              ; preds = %116
  %123 = getelementptr inbounds [2 x [4 x double]], ptr %5, i64 0, i64 1
  %124 = load i32, ptr %9, align 4, !tbaa !13
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [4 x double], ptr %123, i64 0, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = load i32, ptr %9, align 4, !tbaa !13
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = fsub double %127, %131
  %133 = fadd double %132, 1.000000e-08
  %134 = load i32, ptr %9, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = fdiv double %133, %137
  store double %138, ptr %6, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.InteractionEventStr, ptr %7, i32 0, i32 3
  %140 = load double, ptr %139, align 8, !tbaa !17
  %141 = load double, ptr %6, align 8, !tbaa !9
  %142 = fcmp ogt double %140, %141
  br i1 %142, label %143, label %149

143:                                              ; preds = %122
  %144 = load double, ptr %6, align 8, !tbaa !9
  %145 = fcmp ogt double %144, 0.000000e+00
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load double, ptr %6, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.InteractionEventStr, ptr %7, i32 0, i32 3
  store double %147, ptr %148, align 8, !tbaa !17
  br label %149

149:                                              ; preds = %146, %143, %122
  br label %187

150:                                              ; preds = %116
  %151 = load i32, ptr %9, align 4, !tbaa !13
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = fcmp olt double %154, 0.000000e+00
  br i1 %155, label %156, label %184

156:                                              ; preds = %150
  %157 = getelementptr inbounds [2 x [4 x double]], ptr %5, i64 0, i64 0
  %158 = load i32, ptr %9, align 4, !tbaa !13
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [4 x double], ptr %157, i64 0, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !13
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = fsub double %161, %165
  %167 = fsub double %166, 1.000000e-08
  %168 = load i32, ptr %9, align 4, !tbaa !13
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = fdiv double %167, %171
  store double %172, ptr %6, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.InteractionEventStr, ptr %7, i32 0, i32 3
  %174 = load double, ptr %173, align 8, !tbaa !17
  %175 = load double, ptr %6, align 8, !tbaa !9
  %176 = fcmp ogt double %174, %175
  br i1 %176, label %177, label %183

177:                                              ; preds = %156
  %178 = load double, ptr %6, align 8, !tbaa !9
  %179 = fcmp ogt double %178, 0.000000e+00
  br i1 %179, label %180, label %183

180:                                              ; preds = %177
  %181 = load double, ptr %6, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.InteractionEventStr, ptr %7, i32 0, i32 3
  store double %181, ptr %182, align 8, !tbaa !17
  br label %183

183:                                              ; preds = %180, %177, %156
  br label %186

184:                                              ; preds = %150
  %185 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef @.str.7, i32 noundef 627)
  br label %186

186:                                              ; preds = %184, %183
  br label %187

187:                                              ; preds = %186, %149
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %9, align 4, !tbaa !13
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %9, align 4, !tbaa !13
  br label %112, !llvm.loop !20

191:                                              ; preds = %115
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = call i32 @JobAssign(ptr noundef %192, ptr noundef null, ptr noundef %7, i32 noundef 10)
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #3
  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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !10, i64 24}
!18 = !{!"InteractionEventStr", !14, i64 0, !19, i64 8, !19, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 44}
!19 = !{!"long", !7, i64 0}
!20 = distinct !{!20, !16}


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

@.str.7 = external hidden unnamed_addr constant [71 x i8], align 1
@cellsize = external local_unnamed_addr global [4 x double], align 16
@.str.19 = external hidden unnamed_addr constant [36 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; 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 @PBCandCrossCellTime(ptr noundef %0) local_unnamed_addr #1 {
.preheader:
  %1 = alloca %struct.InteractionEventStr, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #3
  call void @InitializeEvent(ptr noundef nonnull %1)
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 24
  %5 = load double, ptr %4, align 8, !tbaa !10
  %6 = getelementptr inbounds i8, ptr %3, i64 32
  %7 = load double, ptr %6, align 8, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %3, i64 40
  %9 = load double, ptr %8, align 8, !tbaa !10
  %10 = getelementptr inbounds i8, ptr %3, i64 56
  %11 = load double, ptr %10, align 8, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %3, i64 64
  %13 = load double, ptr %12, align 8, !tbaa !10
  %14 = getelementptr inbounds i8, ptr %3, i64 72
  %15 = load double, ptr %14, align 8, !tbaa !10
  %16 = getelementptr inbounds i8, ptr %3, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = sitofp i32 %17 to double
  %19 = load double, ptr getelementptr inbounds (i8, ptr @cellsize, i64 8), align 8, !tbaa !10
  %20 = fmul double %19, %18
  %21 = getelementptr inbounds i8, ptr %3, i64 8
  %22 = load i32, ptr %21, align 4, !tbaa !12
  %23 = sitofp i32 %22 to double
  %24 = load double, ptr getelementptr inbounds (i8, ptr @cellsize, i64 16), align 16, !tbaa !10
  %25 = fmul double %24, %23
  %26 = add nsw i32 %22, 1
  %27 = sitofp i32 %26 to double
  %28 = fmul double %24, %27
  %29 = getelementptr inbounds i8, ptr %3, i64 12
  %30 = load i32, ptr %29, align 4, !tbaa !12
  %31 = sitofp i32 %30 to double
  %32 = load double, ptr getelementptr inbounds (i8, ptr @cellsize, i64 24), align 8, !tbaa !10
  %33 = fmul double %32, %31
  %34 = add nsw i32 %30, 1
  %35 = sitofp i32 %34 to double
  %36 = fmul double %32, %35
  %37 = getelementptr inbounds i8, ptr %1, i64 24
  %38 = fcmp ogt double %11, 0.000000e+00
  br i1 %38, label %39, label %50

39:                                               ; preds = %.preheader
  %40 = add nsw i32 %17, 1
  %41 = sitofp i32 %40 to double
  %42 = fmul double %19, %41
  %43 = fsub double %42, %5
  %44 = fadd double %43, 1.000000e-08
  %45 = fdiv double %44, %11
  %46 = load double, ptr %37, align 8, !tbaa !14
  %47 = fcmp ogt double %46, %45
  %48 = fcmp ogt double %45, 0.000000e+00
  %or.cond = and i1 %47, %48
  br i1 %or.cond, label %49, label %62

49:                                               ; preds = %39
  store double %45, ptr %37, align 8, !tbaa !14
  br label %62

50:                                               ; preds = %.preheader
  %51 = fcmp olt double %11, 0.000000e+00
  br i1 %51, label %52, label %60

52:                                               ; preds = %50
  %53 = fsub double %20, %5
  %54 = fadd double %53, -1.000000e-08
  %55 = fdiv double %54, %11
  %56 = load double, ptr %37, align 8, !tbaa !14
  %57 = fcmp ogt double %56, %55
  %58 = fcmp ogt double %55, 0.000000e+00
  %or.cond3 = and i1 %57, %58
  br i1 %or.cond3, label %59, label %62

59:                                               ; preds = %52
  store double %55, ptr %37, align 8, !tbaa !14
  br label %62

60:                                               ; preds = %50
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @.str.7, i32 noundef 627)
  br label %62

62:                                               ; preds = %49, %39, %52, %59, %60
  %63 = fcmp ogt double %13, 0.000000e+00
  br i1 %63, label %76, label %64

64:                                               ; preds = %62
  %65 = fcmp olt double %13, 0.000000e+00
  br i1 %65, label %68, label %66

66:                                               ; preds = %64
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @.str.7, i32 noundef 627)
  br label %84

68:                                               ; preds = %64
  %69 = fsub double %25, %7
  %70 = fadd double %69, -1.000000e-08
  %71 = fdiv double %70, %13
  %72 = load double, ptr %37, align 8, !tbaa !14
  %73 = fcmp ogt double %72, %71
  %74 = fcmp ogt double %71, 0.000000e+00
  %or.cond3.1 = and i1 %73, %74
  br i1 %or.cond3.1, label %75, label %84

75:                                               ; preds = %68
  store double %71, ptr %37, align 8, !tbaa !14
  br label %84

76:                                               ; preds = %62
  %77 = fsub double %28, %7
  %78 = fadd double %77, 1.000000e-08
  %79 = fdiv double %78, %13
  %80 = load double, ptr %37, align 8, !tbaa !14
  %81 = fcmp ogt double %80, %79
  %82 = fcmp ogt double %79, 0.000000e+00
  %or.cond.1 = and i1 %81, %82
  br i1 %or.cond.1, label %83, label %84

83:                                               ; preds = %76
  store double %79, ptr %37, align 8, !tbaa !14
  br label %84

84:                                               ; preds = %83, %76, %75, %68, %66
  %85 = fcmp ogt double %15, 0.000000e+00
  br i1 %85, label %98, label %86

86:                                               ; preds = %84
  %87 = fcmp olt double %15, 0.000000e+00
  br i1 %87, label %90, label %88

88:                                               ; preds = %86
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @.str.7, i32 noundef 627)
  br label %106

90:                                               ; preds = %86
  %91 = fsub double %33, %9
  %92 = fadd double %91, -1.000000e-08
  %93 = fdiv double %92, %15
  %94 = load double, ptr %37, align 8, !tbaa !14
  %95 = fcmp ogt double %94, %93
  %96 = fcmp ogt double %93, 0.000000e+00
  %or.cond3.2 = and i1 %95, %96
  br i1 %or.cond3.2, label %97, label %106

97:                                               ; preds = %90
  store double %93, ptr %37, align 8, !tbaa !14
  br label %106

98:                                               ; preds = %84
  %99 = fsub double %36, %9
  %100 = fadd double %99, 1.000000e-08
  %101 = fdiv double %100, %15
  %102 = load double, ptr %37, align 8, !tbaa !14
  %103 = fcmp ogt double %102, %101
  %104 = fcmp ogt double %101, 0.000000e+00
  %or.cond.2 = and i1 %103, %104
  br i1 %or.cond.2, label %105, label %106

105:                                              ; preds = %98
  store double %101, ptr %37, align 8, !tbaa !14
  br label %106

106:                                              ; preds = %105, %98, %97, %90, %88
  %107 = call i32 @JobAssign(ptr noundef nonnull %0, ptr noundef null, ptr noundef nonnull %1, i32 noundef 10)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #3
  ret void
}

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 = { 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 8}
!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, !11, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !11, i64 24}
!15 = !{!"InteractionEventStr", !13, i64 0, !16, i64 8, !16, i64 16, !11, i64 24, !11, i64 32, !13, i64 40, !13, i64 44}
!16 = !{!"long", !8, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass