; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/STDHEP/src/stdhep (stdhep_internal_utils)

; 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.hepevt = type { i32, i32, [4000 x i32], [4000 x i32], [4000 x [2 x i32]], [4000 x [2 x i32]], [4000 x [5 x double]], [4000 x [4 x double]] }
%struct.stdtmp = type { [4000 x [5 x double]], [4000 x [4 x double]], i32, i32, [4000 x i32], [4000 x i32], [4000 x [2 x i32]], [4000 x [2 x i32]] }
%struct.hepev4 = type { double, double, double, [10 x double], [4000 x [3 x double]], [4000 x [2 x i32]], i32 }
%struct.tmpev4 = type { double, double, double, [10 x double], [4000 x [3 x double]], [4000 x [2 x i32]], i32 }
%struct.hepev2 = type { i32, [4000 x i32] }
%struct.hepev3 = type { [16 x i32], [16 x i32], [16 x i32] }
%struct.hepev5 = type { [16 x double], [16 x double], [16 x double], [16 x [10 x double]], [16 x i32] }

@hepevt_ = external global %struct.hepevt, align 8
@stdtmp_ = external dso_local global %struct.stdtmp, align 8
@hepev4_ = external global %struct.hepev4, align 8
@tmpev4_ = external dso_local global %struct.tmpev4, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [61 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@hepev2_ = external global %struct.hepev2, align 4
@hepev3_ = external global %struct.hepev3, align 4
@hepev5_ = external global %struct.hepev5, align 8
@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @StdHepTempCopy(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp eq i32 %10, 1
  br i1 %11, label %12, label %167

12:                                               ; preds = %2
  %13 = load i32, ptr @hepevt_, align 8, !tbaa !9
  store i32 %13, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 2), align 8, !tbaa !11
  %14 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  store i32 %14, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 3), align 4, !tbaa !14
  %15 = load double, ptr @hepev4_, align 8, !tbaa !15
  store double %15, ptr @tmpev4_, align 8, !tbaa !18
  %16 = load double, ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 1), align 8, !tbaa !20
  store double %16, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 1), align 8, !tbaa !21
  %17 = load double, ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 2), align 8, !tbaa !22
  store double %17, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 2), align 8, !tbaa !23
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %29, %12
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 10
  br i1 %20, label %21, label %32

21:                                               ; preds = %18
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [10 x double], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 3), i64 0, i64 %23
  %25 = load double, ptr %24, align 8, !tbaa !24
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [10 x double], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 3), i64 0, i64 %27
  store double %25, ptr %28, align 8, !tbaa !24
  br label %29

29:                                               ; preds = %21
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %7, align 4, !tbaa !5
  br label %18, !llvm.loop !25

32:                                               ; preds = %18
  %33 = load i32, ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 6), align 8, !tbaa !27
  store i32 %33, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 6), align 8, !tbaa !28
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %163, %32
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %166

38:                                               ; preds = %34
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 2), i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 4), i64 0, i64 %44
  store i32 %42, ptr %45, align 4, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 3), i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 5), i64 0, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %96, %38
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 2
  br i1 %55, label %56, label %99

56:                                               ; preds = %53
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 4), i64 0, i64 %58
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2 x i32], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 6), i64 0, i64 %65
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [2 x i32], ptr %66, i64 0, i64 %68
  store i32 %63, ptr %69, align 4, !tbaa !5
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 5), i64 0, i64 %71
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [2 x i32], ptr %72, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 7), i64 0, i64 %78
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x i32], ptr %79, i64 0, i64 %81
  store i32 %76, ptr %82, align 4, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 5), i64 0, i64 %84
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2 x i32], ptr %85, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 5), i64 0, i64 %91
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [2 x i32], ptr %92, i64 0, i64 %94
  store i32 %89, ptr %95, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %56
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %8, align 4, !tbaa !5
  br label %53, !llvm.loop !29

99:                                               ; preds = %53
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %117, %99
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 5
  br i1 %102, label %103, label %120

103:                                              ; preds = %100
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [4000 x [5 x double]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 6), i64 0, i64 %105
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [5 x double], ptr %106, i64 0, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !24
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [4000 x [5 x double]], ptr @stdtmp_, i64 0, i64 %112
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [5 x double], ptr %113, i64 0, i64 %115
  store double %110, ptr %116, align 8, !tbaa !24
  br label %117

117:                                              ; preds = %103
  %118 = load i32, ptr %8, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %8, align 4, !tbaa !5
  br label %100, !llvm.loop !30

120:                                              ; preds = %100
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %138, %120
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = icmp slt i32 %122, 4
  br i1 %123, label %124, label %141

124:                                              ; preds = %121
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [4000 x [4 x double]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 7), i64 0, i64 %126
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [4 x double], ptr %127, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !24
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4000 x [4 x double]], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 1), i64 0, i64 %133
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [4 x double], ptr %134, i64 0, i64 %136
  store double %131, ptr %137, align 8, !tbaa !24
  br label %138

138:                                              ; preds = %124
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %8, align 4, !tbaa !5
  br label %121, !llvm.loop !31

141:                                              ; preds = %121
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %159, %141
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = icmp slt i32 %143, 3
  br i1 %144, label %145, label %162

145:                                              ; preds = %142
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [4000 x [3 x double]], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 4), i64 0, i64 %147
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [3 x double], ptr %148, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !24
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [4000 x [3 x double]], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 4), i64 0, i64 %154
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [3 x double], ptr %155, i64 0, i64 %157
  store double %152, ptr %158, align 8, !tbaa !24
  br label %159

159:                                              ; preds = %145
  %160 = load i32, ptr %8, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %8, align 4, !tbaa !5
  br label %142, !llvm.loop !32

162:                                              ; preds = %142
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %7, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %7, align 4, !tbaa !5
  br label %34, !llvm.loop !33

166:                                              ; preds = %34
  br label %510

167:                                              ; preds = %2
  %168 = load i32, ptr %4, align 4, !tbaa !5
  %169 = icmp eq i32 %168, 2
  br i1 %169, label %170, label %506

170:                                              ; preds = %167
  %171 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  %172 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 3), align 4, !tbaa !14
  %173 = add nsw i32 %171, %172
  %174 = icmp sgt i32 %173, 4000
  br i1 %174, label %175, label %181

175:                                              ; preds = %170
  %176 = load ptr, ptr @stderr, align 8, !tbaa !34
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str) #3
  %178 = load ptr, ptr @stderr, align 8, !tbaa !34
  %179 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 2), align 8, !tbaa !11
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.1, i32 noundef %179) #3
  store i32 5, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %511

181:                                              ; preds = %170
  %182 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 2), align 8, !tbaa !11
  store i32 %182, ptr @hepevt_, align 8, !tbaa !9
  %183 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  store i32 %183, ptr %6, align 4, !tbaa !5
  %184 = load double, ptr @tmpev4_, align 8, !tbaa !18
  store double %184, ptr @hepev4_, align 8, !tbaa !15
  %185 = load double, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 1), align 8, !tbaa !21
  store double %185, ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 1), align 8, !tbaa !20
  %186 = load double, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 2), align 8, !tbaa !23
  store double %186, ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 2), align 8, !tbaa !22
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %198, %181
  %188 = load i32, ptr %7, align 4, !tbaa !5
  %189 = icmp slt i32 %188, 10
  br i1 %189, label %190, label %201

190:                                              ; preds = %187
  %191 = load i32, ptr %7, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [10 x double], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 3), i64 0, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !24
  %195 = load i32, ptr %7, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [10 x double], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 3), i64 0, i64 %196
  store double %194, ptr %197, align 8, !tbaa !24
  br label %198

198:                                              ; preds = %190
  %199 = load i32, ptr %7, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %7, align 4, !tbaa !5
  br label %187, !llvm.loop !36

201:                                              ; preds = %187
  %202 = load i32, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 6), align 8, !tbaa !28
  store i32 %202, ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 6), align 8, !tbaa !27
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %348, %201
  %204 = load i32, ptr %7, align 4, !tbaa !5
  %205 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 3), align 4, !tbaa !14
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %207, label %351

207:                                              ; preds = %203
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 4), i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = load i32, ptr %6, align 4, !tbaa !5
  %213 = load i32, ptr %7, align 4, !tbaa !5
  %214 = add nsw i32 %212, %213
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 2), i64 0, i64 %215
  store i32 %211, ptr %216, align 4, !tbaa !5
  %217 = load i32, ptr %7, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 5), i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = load i32, ptr %6, align 4, !tbaa !5
  %222 = load i32, ptr %7, align 4, !tbaa !5
  %223 = add nsw i32 %221, %222
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 3), i64 0, i64 %224
  store i32 %220, ptr %225, align 4, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %275, %207
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = icmp slt i32 %227, 2
  br i1 %228, label %229, label %278

229:                                              ; preds = %226
  %230 = load i32, ptr %7, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 6), i64 0, i64 %231
  %233 = load i32, ptr %8, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [2 x i32], ptr %232, i64 0, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = load i32, ptr %6, align 4, !tbaa !5
  %238 = load i32, ptr %7, align 4, !tbaa !5
  %239 = add nsw i32 %237, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 4), i64 0, i64 %240
  %242 = load i32, ptr %8, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [2 x i32], ptr %241, i64 0, i64 %243
  store i32 %236, ptr %244, align 4, !tbaa !5
  %245 = load i32, ptr %7, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 7), i64 0, i64 %246
  %248 = load i32, ptr %8, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [2 x i32], ptr %247, i64 0, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = load i32, ptr %6, align 4, !tbaa !5
  %253 = load i32, ptr %7, align 4, !tbaa !5
  %254 = add nsw i32 %252, %253
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 5), i64 0, i64 %255
  %257 = load i32, ptr %8, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [2 x i32], ptr %256, i64 0, i64 %258
  store i32 %251, ptr %259, align 4, !tbaa !5
  %260 = load i32, ptr %7, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 5), i64 0, i64 %261
  %263 = load i32, ptr %8, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [2 x i32], ptr %262, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = load i32, ptr %6, align 4, !tbaa !5
  %268 = load i32, ptr %7, align 4, !tbaa !5
  %269 = add nsw i32 %267, %268
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 5), i64 0, i64 %270
  %272 = load i32, ptr %8, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [2 x i32], ptr %271, i64 0, i64 %273
  store i32 %266, ptr %274, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %229
  %276 = load i32, ptr %8, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %8, align 4, !tbaa !5
  br label %226, !llvm.loop !37

278:                                              ; preds = %226
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %298, %278
  %280 = load i32, ptr %8, align 4, !tbaa !5
  %281 = icmp slt i32 %280, 5
  br i1 %281, label %282, label %301

282:                                              ; preds = %279
  %283 = load i32, ptr %7, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [4000 x [5 x double]], ptr @stdtmp_, i64 0, i64 %284
  %286 = load i32, ptr %8, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [5 x double], ptr %285, i64 0, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !24
  %290 = load i32, ptr %6, align 4, !tbaa !5
  %291 = load i32, ptr %7, align 4, !tbaa !5
  %292 = add nsw i32 %290, %291
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [4000 x [5 x double]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 6), i64 0, i64 %293
  %295 = load i32, ptr %8, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [5 x double], ptr %294, i64 0, i64 %296
  store double %289, ptr %297, align 8, !tbaa !24
  br label %298

298:                                              ; preds = %282
  %299 = load i32, ptr %8, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %8, align 4, !tbaa !5
  br label %279, !llvm.loop !38

301:                                              ; preds = %279
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %321, %301
  %303 = load i32, ptr %8, align 4, !tbaa !5
  %304 = icmp slt i32 %303, 4
  br i1 %304, label %305, label %324

305:                                              ; preds = %302
  %306 = load i32, ptr %7, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [4000 x [4 x double]], ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 1), i64 0, i64 %307
  %309 = load i32, ptr %8, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [4 x double], ptr %308, i64 0, i64 %310
  %312 = load double, ptr %311, align 8, !tbaa !24
  %313 = load i32, ptr %6, align 4, !tbaa !5
  %314 = load i32, ptr %7, align 4, !tbaa !5
  %315 = add nsw i32 %313, %314
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [4000 x [4 x double]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 7), i64 0, i64 %316
  %318 = load i32, ptr %8, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [4 x double], ptr %317, i64 0, i64 %319
  store double %312, ptr %320, align 8, !tbaa !24
  br label %321

321:                                              ; preds = %305
  %322 = load i32, ptr %8, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %8, align 4, !tbaa !5
  br label %302, !llvm.loop !39

324:                                              ; preds = %302
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %325

325:                                              ; preds = %344, %324
  %326 = load i32, ptr %8, align 4, !tbaa !5
  %327 = icmp slt i32 %326, 3
  br i1 %327, label %328, label %347

328:                                              ; preds = %325
  %329 = load i32, ptr %7, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [4000 x [3 x double]], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 4), i64 0, i64 %330
  %332 = load i32, ptr %8, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [3 x double], ptr %331, i64 0, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !24
  %336 = load i32, ptr %6, align 4, !tbaa !5
  %337 = load i32, ptr %7, align 4, !tbaa !5
  %338 = add nsw i32 %336, %337
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [4000 x [3 x double]], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 4), i64 0, i64 %339
  %341 = load i32, ptr %8, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [3 x double], ptr %340, i64 0, i64 %342
  store double %335, ptr %343, align 8, !tbaa !24
  br label %344

344:                                              ; preds = %328
  %345 = load i32, ptr %8, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %8, align 4, !tbaa !5
  br label %325, !llvm.loop !40

347:                                              ; preds = %325
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %7, align 4, !tbaa !5
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %7, align 4, !tbaa !5
  br label %203, !llvm.loop !41

351:                                              ; preds = %203
  %352 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr @hepev2_, align 4, !tbaa !42
  %354 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %355 = icmp sle i32 %354, 16
  br i1 %355, label %356, label %404

356:                                              ; preds = %351
  %357 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 2), align 8, !tbaa !11
  %358 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [16 x i32], ptr @hepev3_, i64 0, i64 %359
  store i32 %357, ptr %360, align 4, !tbaa !5
  %361 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 3), align 4, !tbaa !14
  %362 = add nsw i32 %361, 1
  %363 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [16 x i32], ptr getelementptr inbounds (%struct.hepev3, ptr @hepev3_, i32 0, i32 1), i64 0, i64 %364
  store i32 %362, ptr %365, align 4, !tbaa !5
  %366 = load i32, ptr %5, align 4, !tbaa !5
  %367 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [16 x i32], ptr getelementptr inbounds (%struct.hepev3, ptr @hepev3_, i32 0, i32 2), i64 0, i64 %368
  store i32 %366, ptr %369, align 4, !tbaa !5
  %370 = load double, ptr @tmpev4_, align 8, !tbaa !18
  %371 = load i32, ptr %7, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [16 x double], ptr @hepev5_, i64 0, i64 %372
  store double %370, ptr %373, align 8, !tbaa !24
  %374 = load double, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 1), align 8, !tbaa !21
  %375 = load i32, ptr %7, align 4, !tbaa !5
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [16 x double], ptr getelementptr inbounds (%struct.hepev5, ptr @hepev5_, i32 0, i32 1), i64 0, i64 %376
  store double %374, ptr %377, align 8, !tbaa !24
  %378 = load double, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 2), align 8, !tbaa !23
  %379 = load i32, ptr %7, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [16 x double], ptr getelementptr inbounds (%struct.hepev5, ptr @hepev5_, i32 0, i32 2), i64 0, i64 %380
  store double %378, ptr %381, align 8, !tbaa !24
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %382

382:                                              ; preds = %396, %356
  %383 = load i32, ptr %8, align 4, !tbaa !5
  %384 = icmp slt i32 %383, 10
  br i1 %384, label %385, label %399

385:                                              ; preds = %382
  %386 = load i32, ptr %8, align 4, !tbaa !5
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [10 x double], ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 3), i64 0, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !24
  %390 = load i32, ptr %7, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [16 x [10 x double]], ptr getelementptr inbounds (%struct.hepev5, ptr @hepev5_, i32 0, i32 3), i64 0, i64 %391
  %393 = load i32, ptr %8, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [10 x double], ptr %392, i64 0, i64 %394
  store double %389, ptr %395, align 8, !tbaa !24
  br label %396

396:                                              ; preds = %385
  %397 = load i32, ptr %8, align 4, !tbaa !5
  %398 = add nsw i32 %397, 1
  store i32 %398, ptr %8, align 4, !tbaa !5
  br label %382, !llvm.loop !44

399:                                              ; preds = %382
  %400 = load i32, ptr getelementptr inbounds (%struct.tmpev4, ptr @tmpev4_, i32 0, i32 6), align 8, !tbaa !28
  %401 = load i32, ptr %7, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [16 x i32], ptr getelementptr inbounds (%struct.hepev5, ptr @hepev5_, i32 0, i32 4), i64 0, i64 %402
  store i32 %400, ptr %403, align 4, !tbaa !5
  br label %410

404:                                              ; preds = %351
  %405 = load ptr, ptr @stderr, align 8, !tbaa !34
  %406 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %407 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %405, ptr noundef @.str.2, i32 noundef %406) #3
  %408 = load ptr, ptr @stderr, align 8, !tbaa !34
  %409 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %408, ptr noundef @.str.3, i32 noundef 16) #3
  br label %410

410:                                              ; preds = %404, %399
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %411

411:                                              ; preds = %499, %410
  %412 = load i32, ptr %7, align 4, !tbaa !5
  %413 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 3), align 4, !tbaa !14
  %414 = icmp slt i32 %412, %413
  br i1 %414, label %415, label %502

415:                                              ; preds = %411
  %416 = load i32, ptr @hepev2_, align 4, !tbaa !42
  %417 = load i32, ptr %6, align 4, !tbaa !5
  %418 = load i32, ptr %7, align 4, !tbaa !5
  %419 = add nsw i32 %417, %418
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (%struct.hepev2, ptr @hepev2_, i32 0, i32 1), i64 0, i64 %420
  store i32 %416, ptr %421, align 4, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %422

422:                                              ; preds = %495, %415
  %423 = load i32, ptr %8, align 4, !tbaa !5
  %424 = icmp slt i32 %423, 2
  br i1 %424, label %425, label %498

425:                                              ; preds = %422
  %426 = load i32, ptr %6, align 4, !tbaa !5
  %427 = load i32, ptr %7, align 4, !tbaa !5
  %428 = add nsw i32 %426, %427
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 4), i64 0, i64 %429
  %431 = load i32, ptr %8, align 4, !tbaa !5
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [2 x i32], ptr %430, i64 0, i64 %432
  %434 = load i32, ptr %433, align 4, !tbaa !5
  %435 = icmp ne i32 %434, 0
  br i1 %435, label %436, label %448

436:                                              ; preds = %425
  %437 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  %438 = load i32, ptr %6, align 4, !tbaa !5
  %439 = load i32, ptr %7, align 4, !tbaa !5
  %440 = add nsw i32 %438, %439
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 4), i64 0, i64 %441
  %443 = load i32, ptr %8, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [2 x i32], ptr %442, i64 0, i64 %444
  %446 = load i32, ptr %445, align 4, !tbaa !5
  %447 = add nsw i32 %446, %437
  store i32 %447, ptr %445, align 4, !tbaa !5
  br label %448

448:                                              ; preds = %436, %425
  %449 = load i32, ptr %6, align 4, !tbaa !5
  %450 = load i32, ptr %7, align 4, !tbaa !5
  %451 = add nsw i32 %449, %450
  %452 = sext i32 %451 to i64
  %453 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 5), i64 0, i64 %452
  %454 = load i32, ptr %8, align 4, !tbaa !5
  %455 = sext i32 %454 to i64
  %456 = getelementptr inbounds [2 x i32], ptr %453, i64 0, i64 %455
  %457 = load i32, ptr %456, align 4, !tbaa !5
  %458 = icmp ne i32 %457, 0
  br i1 %458, label %459, label %471

459:                                              ; preds = %448
  %460 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  %461 = load i32, ptr %6, align 4, !tbaa !5
  %462 = load i32, ptr %7, align 4, !tbaa !5
  %463 = add nsw i32 %461, %462
  %464 = sext i32 %463 to i64
  %465 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 5), i64 0, i64 %464
  %466 = load i32, ptr %8, align 4, !tbaa !5
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds [2 x i32], ptr %465, i64 0, i64 %467
  %469 = load i32, ptr %468, align 4, !tbaa !5
  %470 = add nsw i32 %469, %460
  store i32 %470, ptr %468, align 4, !tbaa !5
  br label %471

471:                                              ; preds = %459, %448
  %472 = load i32, ptr %6, align 4, !tbaa !5
  %473 = load i32, ptr %7, align 4, !tbaa !5
  %474 = add nsw i32 %472, %473
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 5), i64 0, i64 %475
  %477 = load i32, ptr %8, align 4, !tbaa !5
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [2 x i32], ptr %476, i64 0, i64 %478
  %480 = load i32, ptr %479, align 4, !tbaa !5
  %481 = icmp ne i32 %480, 0
  br i1 %481, label %482, label %494

482:                                              ; preds = %471
  %483 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  %484 = load i32, ptr %6, align 4, !tbaa !5
  %485 = load i32, ptr %7, align 4, !tbaa !5
  %486 = add nsw i32 %484, %485
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (%struct.hepev4, ptr @hepev4_, i32 0, i32 5), i64 0, i64 %487
  %489 = load i32, ptr %8, align 4, !tbaa !5
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds [2 x i32], ptr %488, i64 0, i64 %490
  %492 = load i32, ptr %491, align 4, !tbaa !5
  %493 = add nsw i32 %492, %483
  store i32 %493, ptr %491, align 4, !tbaa !5
  br label %494

494:                                              ; preds = %482, %471
  br label %495

495:                                              ; preds = %494
  %496 = load i32, ptr %8, align 4, !tbaa !5
  %497 = add nsw i32 %496, 1
  store i32 %497, ptr %8, align 4, !tbaa !5
  br label %422, !llvm.loop !45

498:                                              ; preds = %422
  br label %499

499:                                              ; preds = %498
  %500 = load i32, ptr %7, align 4, !tbaa !5
  %501 = add nsw i32 %500, 1
  store i32 %501, ptr %7, align 4, !tbaa !5
  br label %411, !llvm.loop !46

502:                                              ; preds = %411
  %503 = load i32, ptr getelementptr inbounds (%struct.stdtmp, ptr @stdtmp_, i32 0, i32 3), align 4, !tbaa !14
  %504 = load i32, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  %505 = add nsw i32 %504, %503
  store i32 %505, ptr getelementptr inbounds (%struct.hepevt, ptr @hepevt_, i32 0, i32 1), align 4, !tbaa !13
  br label %509

506:                                              ; preds = %167
  %507 = load ptr, ptr @stderr, align 8, !tbaa !34
  %508 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %507, ptr noundef @.str.4) #3
  br label %509

509:                                              ; preds = %506, %502
  br label %510

510:                                              ; preds = %509, %166
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %511

511:                                              ; preds = %510, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %512 = load i32, ptr %3, align 4
  ret i32 %512
}

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"hepevt", !6, i64 0, !6, i64 4, !7, i64 8, !7, i64 16008, !7, i64 32008, !7, i64 64008, !7, i64 96008, !7, i64 256008}
!11 = !{!12, !6, i64 288000}
!12 = !{!"stdtmp", !7, i64 0, !7, i64 160000, !6, i64 288000, !6, i64 288004, !7, i64 288008, !7, i64 304008, !7, i64 320008, !7, i64 352008}
!13 = !{!10, !6, i64 4}
!14 = !{!12, !6, i64 288004}
!15 = !{!16, !17, i64 0}
!16 = !{!"hepev4", !17, i64 0, !17, i64 8, !17, i64 16, !7, i64 24, !7, i64 104, !7, i64 96104, !6, i64 128104}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !17, i64 0}
!19 = !{!"tmpev4", !17, i64 0, !17, i64 8, !17, i64 16, !7, i64 24, !7, i64 104, !7, i64 96104, !6, i64 128104}
!20 = !{!16, !17, i64 8}
!21 = !{!19, !17, i64 8}
!22 = !{!16, !17, i64 16}
!23 = !{!19, !17, i64 16}
!24 = !{!17, !17, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!16, !6, i64 128104}
!28 = !{!19, !6, i64 128104}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = !{!35, !35, i64 0}
!35 = !{!"any pointer", !7, i64 0}
!36 = distinct !{!36, !26}
!37 = distinct !{!37, !26}
!38 = distinct !{!38, !26}
!39 = distinct !{!39, !26}
!40 = distinct !{!40, !26}
!41 = distinct !{!41, !26}
!42 = !{!43, !6, i64 0}
!43 = !{!"hepev2", !6, i64 0, !7, i64 4}
!44 = distinct !{!44, !26}
!45 = distinct !{!45, !26}
!46 = distinct !{!46, !26}


; 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.hepevt = type { i32, i32, [4000 x i32], [4000 x i32], [4000 x [2 x i32]], [4000 x [2 x i32]], [4000 x [5 x double]], [4000 x [4 x double]] }
%struct.stdtmp = type { [4000 x [5 x double]], [4000 x [4 x double]], i32, i32, [4000 x i32], [4000 x i32], [4000 x [2 x i32]], [4000 x [2 x i32]] }
%struct.hepev4 = type { double, double, double, [10 x double], [4000 x [3 x double]], [4000 x [2 x i32]], i32 }
%struct.tmpev4 = type { double, double, double, [10 x double], [4000 x [3 x double]], [4000 x [2 x i32]], i32 }
%struct.hepev2 = type { i32, [4000 x i32] }
%struct.hepev3 = type { [16 x i32], [16 x i32], [16 x i32] }
%struct.hepev5 = type { [16 x double], [16 x double], [16 x double], [16 x [10 x double]], [16 x i32] }

@hepevt_ = external local_unnamed_addr global %struct.hepevt, align 8
@stdtmp_ = external dso_local local_unnamed_addr global %struct.stdtmp, align 8
@hepev4_ = external local_unnamed_addr global %struct.hepev4, align 8
@tmpev4_ = external dso_local local_unnamed_addr global %struct.tmpev4, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [61 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@hepev2_ = external local_unnamed_addr global %struct.hepev2, align 4
@hepev3_ = external local_unnamed_addr global %struct.hepev3, align 4
@hepev5_ = external local_unnamed_addr global %struct.hepev5, align 8
@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 6) i32 @StdHepTempCopy(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  switch i32 %0, label %144 [
    i32 1, label %3
    i32 2, label %29
  ]

3:                                                ; preds = %2
  %4 = load i32, ptr @hepevt_, align 8, !tbaa !5
  store i32 %4, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288000), align 8, !tbaa !10
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  store i32 %5, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288004), align 4, !tbaa !13
  %6 = load <2 x double>, ptr @hepev4_, align 8, !tbaa !14
  store <2 x double> %6, ptr @tmpev4_, align 8, !tbaa !14
  %7 = load double, ptr getelementptr inbounds (i8, ptr @hepev4_, i64 16), align 8, !tbaa !16
  store double %7, ptr getelementptr inbounds (i8, ptr @tmpev4_, i64 16), align 8, !tbaa !18
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) getelementptr inbounds (i8, ptr @tmpev4_, i64 24), ptr noundef nonnull align 8 dereferenceable(80) getelementptr inbounds (i8, ptr @hepev4_, i64 24), i64 80, i1 false), !tbaa !14
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @hepev4_, i64 128104), align 8, !tbaa !20
  store i32 %8, ptr getelementptr inbounds (i8, ptr @tmpev4_, i64 128104), align 8, !tbaa !21
  %9 = icmp sgt i32 %5, 0
  br i1 %9, label %.lr.ph169.preheader, label %.loopexit

.lr.ph169.preheader:                              ; preds = %3
  %wide.trip.count227 = zext nneg i32 %5 to i64
  br label %.lr.ph169

.lr.ph169:                                        ; preds = %.lr.ph169.preheader, %.lr.ph169
  %indvar204 = phi i64 [ 0, %.lr.ph169.preheader ], [ %indvar.next205, %.lr.ph169 ]
  %10 = mul nuw nsw i64 %indvar204, 24
  %11 = add nuw nsw i64 %10, 104
  %scevgep221 = getelementptr i8, ptr @tmpev4_, i64 %11
  %scevgep222 = getelementptr i8, ptr @hepev4_, i64 %11
  %12 = shl nuw nsw i64 %indvar204, 5
  %gep232 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 160000), i64 %12
  %gep233 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 256008), i64 %12
  %13 = mul nuw nsw i64 %indvar204, 40
  %scevgep211 = getelementptr i8, ptr @stdtmp_, i64 %13
  %gep234 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 96008), i64 %13
  %14 = shl nuw nsw i64 %indvar204, 3
  %15 = add nuw nsw i64 %14, 96104
  %scevgep206 = getelementptr i8, ptr @tmpev4_, i64 %15
  %scevgep207 = getelementptr i8, ptr @hepev4_, i64 %15
  %16 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 8), i64 0, i64 %indvar204
  %17 = load i32, ptr %16, align 4, !tbaa !22
  %18 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288008), i64 0, i64 %indvar204
  store i32 %17, ptr %18, align 4, !tbaa !22
  %19 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 16008), i64 0, i64 %indvar204
  %20 = load i32, ptr %19, align 4, !tbaa !22
  %21 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 304008), i64 0, i64 %indvar204
  store i32 %20, ptr %21, align 4, !tbaa !22
  %22 = load i64, ptr %scevgep207, align 8, !tbaa !22
  store i64 %22, ptr %scevgep206, align 8, !tbaa !22
  %23 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 32008), i64 0, i64 %indvar204, i64 0
  %24 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 320008), i64 0, i64 %indvar204, i64 0
  %25 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 64008), i64 0, i64 %indvar204, i64 0
  %26 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 352008), i64 0, i64 %indvar204, i64 0
  %27 = load <2 x i32>, ptr %23, align 8, !tbaa !22
  store <2 x i32> %27, ptr %24, align 8, !tbaa !22
  %28 = load <2 x i32>, ptr %25, align 8, !tbaa !22
  store <2 x i32> %28, ptr %26, align 8, !tbaa !22
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %scevgep211, ptr noundef nonnull align 8 dereferenceable(40) %gep234, i64 40, i1 false), !tbaa !14
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %gep232, ptr noundef nonnull align 8 dereferenceable(32) %gep233, i64 32, i1 false), !tbaa !14
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %scevgep221, ptr noundef nonnull align 8 dereferenceable(24) %scevgep222, i64 24, i1 false), !tbaa !14
  %indvar.next205 = add nuw nsw i64 %indvar204, 1
  %exitcond228.not = icmp eq i64 %indvar.next205, %wide.trip.count227
  br i1 %exitcond228.not, label %.loopexit, label %.lr.ph169, !llvm.loop !23

29:                                               ; preds = %2
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288004), align 4, !tbaa !13
  %32 = add nsw i32 %31, %30
  %33 = icmp sgt i32 %32, 4000
  br i1 %33, label %34, label %40

34:                                               ; preds = %29
  %35 = load ptr, ptr @stderr, align 8, !tbaa !25
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str) #3
  %37 = load ptr, ptr @stderr, align 8, !tbaa !25
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288000), align 8, !tbaa !10
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.1, i32 noundef %38) #3
  br label %.loopexit

40:                                               ; preds = %29
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288000), align 8, !tbaa !10
  store i32 %41, ptr @hepevt_, align 8, !tbaa !5
  %42 = load <2 x double>, ptr @tmpev4_, align 8, !tbaa !14
  store <2 x double> %42, ptr @hepev4_, align 8, !tbaa !14
  %43 = load double, ptr getelementptr inbounds (i8, ptr @tmpev4_, i64 16), align 8, !tbaa !18
  store double %43, ptr getelementptr inbounds (i8, ptr @hepev4_, i64 16), align 8, !tbaa !16
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) getelementptr inbounds (i8, ptr @hepev4_, i64 24), ptr noundef nonnull align 8 dereferenceable(80) getelementptr inbounds (i8, ptr @tmpev4_, i64 24), i64 80, i1 false), !tbaa !14
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @tmpev4_, i64 128104), align 8, !tbaa !21
  store i32 %44, ptr getelementptr inbounds (i8, ptr @hepev4_, i64 128104), align 8, !tbaa !20
  %45 = icmp sgt i32 %31, 0
  br i1 %45, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %40
  %46 = sext i32 %30 to i64
  %47 = shl nsw i64 %46, 3
  %48 = mul nsw i64 %46, 40
  %49 = shl nsw i64 %46, 5
  %50 = mul nsw i64 %46, 24
  %wide.trip.count = zext nneg i32 %31 to i64
  %51 = getelementptr i8, ptr @hepev4_, i64 %50
  %52 = getelementptr i8, ptr %51, i64 104
  %53 = getelementptr i8, ptr @hepevt_, i64 %49
  %54 = getelementptr i8, ptr %53, i64 256008
  %55 = getelementptr i8, ptr @hepevt_, i64 %48
  %56 = getelementptr i8, ptr %55, i64 96008
  %57 = getelementptr i8, ptr @hepev4_, i64 %47
  %58 = getelementptr i8, ptr %57, i64 96104
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvar = phi i64 [ 0, %.lr.ph.preheader ], [ %indvar.next, %.lr.ph ]
  %59 = mul nuw nsw i64 %indvar, 24
  %scevgep179 = getelementptr i8, ptr %52, i64 %59
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @tmpev4_, i64 104), i64 %59
  %60 = shl nuw nsw i64 %indvar, 5
  %scevgep176 = getelementptr i8, ptr %54, i64 %60
  %gep230 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 160000), i64 %60
  %61 = mul nuw nsw i64 %indvar, 40
  %scevgep173 = getelementptr i8, ptr %56, i64 %61
  %scevgep174 = getelementptr i8, ptr @stdtmp_, i64 %61
  %62 = shl nuw nsw i64 %indvar, 3
  %scevgep = getelementptr i8, ptr %58, i64 %62
  %gep231 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @tmpev4_, i64 96104), i64 %62
  %63 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288008), i64 0, i64 %indvar
  %64 = load i32, ptr %63, align 4, !tbaa !22
  %65 = add nsw i64 %indvar, %46
  %66 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 8), i64 0, i64 %65
  store i32 %64, ptr %66, align 4, !tbaa !22
  %67 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 304008), i64 0, i64 %indvar
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 16008), i64 0, i64 %65
  store i32 %68, ptr %69, align 4, !tbaa !22
  %70 = load i64, ptr %gep231, align 8, !tbaa !22
  store i64 %70, ptr %scevgep, align 8, !tbaa !22
  %71 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 320008), i64 0, i64 %indvar, i64 0
  %72 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 32008), i64 0, i64 %65, i64 0
  %73 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 352008), i64 0, i64 %indvar, i64 0
  %74 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 64008), i64 0, i64 %65, i64 0
  %75 = load <2 x i32>, ptr %71, align 8, !tbaa !22
  store <2 x i32> %75, ptr %72, align 8, !tbaa !22
  %76 = load <2 x i32>, ptr %73, align 8, !tbaa !22
  store <2 x i32> %76, ptr %74, align 8, !tbaa !22
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %scevgep173, ptr noundef nonnull align 8 dereferenceable(40) %scevgep174, i64 40, i1 false), !tbaa !14
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %scevgep176, ptr noundef nonnull align 8 dereferenceable(32) %gep230, i64 32, i1 false), !tbaa !14
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %scevgep179, ptr noundef nonnull align 8 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !14
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond.not = icmp eq i64 %indvar.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !27

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %77 = zext nneg i32 %31 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %40
  %.3132.lcssa = phi i64 [ 0, %40 ], [ %77, %._crit_edge.loopexit ]
  %78 = load i32, ptr @hepev2_, align 4, !tbaa !28
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr @hepev2_, align 4, !tbaa !28
  %80 = icmp slt i32 %78, 16
  br i1 %80, label %81, label %95

81:                                               ; preds = %._crit_edge
  %82 = sext i32 %79 to i64
  %83 = getelementptr inbounds [16 x i32], ptr @hepev3_, i64 0, i64 %82
  store i32 %41, ptr %83, align 4, !tbaa !22
  %84 = add nsw i32 %31, 1
  %85 = getelementptr inbounds [16 x i32], ptr getelementptr inbounds (i8, ptr @hepev3_, i64 64), i64 0, i64 %82
  store i32 %84, ptr %85, align 4, !tbaa !22
  %86 = getelementptr inbounds [16 x i32], ptr getelementptr inbounds (i8, ptr @hepev3_, i64 128), i64 0, i64 %82
  store i32 %1, ptr %86, align 4, !tbaa !22
  %87 = getelementptr inbounds [16 x double], ptr @hepev5_, i64 0, i64 %.3132.lcssa
  %88 = extractelement <2 x double> %42, i64 0
  store double %88, ptr %87, align 8, !tbaa !14
  %89 = getelementptr inbounds [16 x double], ptr getelementptr inbounds (i8, ptr @hepev5_, i64 128), i64 0, i64 %.3132.lcssa
  %90 = extractelement <2 x double> %42, i64 1
  store double %90, ptr %89, align 8, !tbaa !14
  %91 = getelementptr inbounds [16 x double], ptr getelementptr inbounds (i8, ptr @hepev5_, i64 256), i64 0, i64 %.3132.lcssa
  store double %43, ptr %91, align 8, !tbaa !14
  %92 = mul nuw nsw i64 %.3132.lcssa, 80
  %93 = getelementptr i8, ptr @hepev5_, i64 %92
  %scevgep189 = getelementptr i8, ptr %93, i64 384
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %scevgep189, ptr noundef nonnull align 8 dereferenceable(80) getelementptr inbounds (i8, ptr @tmpev4_, i64 24), i64 80, i1 false), !tbaa !14
  %94 = getelementptr inbounds [16 x i32], ptr getelementptr inbounds (i8, ptr @hepev5_, i64 1664), i64 0, i64 %.3132.lcssa
  store i32 %44, ptr %94, align 4, !tbaa !22
  br label %100

95:                                               ; preds = %._crit_edge
  %96 = load ptr, ptr @stderr, align 8, !tbaa !25
  %97 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.2, i32 noundef %79) #3
  %98 = load ptr, ptr @stderr, align 8, !tbaa !25
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.3, i32 noundef 16) #3
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @stdtmp_, i64 288004), align 4, !tbaa !13
  br label %100

100:                                              ; preds = %95, %81
  %101 = phi i32 [ %.pre, %95 ], [ %31, %81 ]
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph159.preheader, label %._crit_edge160

.lr.ph159.preheader:                              ; preds = %100
  %103 = sext i32 %30 to i64
  %wide.trip.count193 = zext nneg i32 %101 to i64
  %.pre229 = load i32, ptr @hepev2_, align 4, !tbaa !28
  br label %.lr.ph159

.lr.ph159:                                        ; preds = %.lr.ph159.preheader, %141
  %indvars.iv = phi i64 [ 0, %.lr.ph159.preheader ], [ %indvars.iv.next, %141 ]
  %104 = add nsw i64 %indvars.iv, %103
  %105 = getelementptr inbounds [4000 x i32], ptr getelementptr inbounds (i8, ptr @hepev2_, i64 4), i64 0, i64 %104
  store i32 %.pre229, ptr %105, align 4, !tbaa !22
  %106 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 32008), i64 0, i64 %104, i64 0
  %107 = load i32, ptr %106, align 8, !tbaa !22
  %.not = icmp eq i32 %107, 0
  br i1 %.not, label %111, label %108

108:                                              ; preds = %.lr.ph159
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %110 = add nsw i32 %109, %107
  store i32 %110, ptr %106, align 8, !tbaa !22
  br label %111

111:                                              ; preds = %108, %.lr.ph159
  %112 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 64008), i64 0, i64 %104, i64 0
  %113 = load i32, ptr %112, align 8, !tbaa !22
  %.not142 = icmp eq i32 %113, 0
  br i1 %.not142, label %117, label %114

114:                                              ; preds = %111
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %116 = add nsw i32 %115, %113
  store i32 %116, ptr %112, align 8, !tbaa !22
  br label %117

117:                                              ; preds = %114, %111
  %118 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepev4_, i64 96104), i64 0, i64 %104, i64 0
  %119 = load i32, ptr %118, align 8, !tbaa !22
  %.not143 = icmp eq i32 %119, 0
  br i1 %.not143, label %123, label %120

120:                                              ; preds = %117
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %122 = add nsw i32 %121, %119
  store i32 %122, ptr %118, align 8, !tbaa !22
  br label %123

123:                                              ; preds = %117, %120
  %124 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 32008), i64 0, i64 %104, i64 1
  %125 = load i32, ptr %124, align 4, !tbaa !22
  %.not.1 = icmp eq i32 %125, 0
  br i1 %.not.1, label %129, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %128 = add nsw i32 %127, %125
  store i32 %128, ptr %124, align 4, !tbaa !22
  br label %129

129:                                              ; preds = %126, %123
  %130 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepevt_, i64 64008), i64 0, i64 %104, i64 1
  %131 = load i32, ptr %130, align 4, !tbaa !22
  %.not142.1 = icmp eq i32 %131, 0
  br i1 %.not142.1, label %135, label %132

132:                                              ; preds = %129
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %134 = add nsw i32 %133, %131
  store i32 %134, ptr %130, align 4, !tbaa !22
  br label %135

135:                                              ; preds = %132, %129
  %136 = getelementptr inbounds [4000 x [2 x i32]], ptr getelementptr inbounds (i8, ptr @hepev4_, i64 96104), i64 0, i64 %104, i64 1
  %137 = load i32, ptr %136, align 4, !tbaa !22
  %.not143.1 = icmp eq i32 %137, 0
  br i1 %.not143.1, label %141, label %138

138:                                              ; preds = %135
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %140 = add nsw i32 %139, %137
  store i32 %140, ptr %136, align 4, !tbaa !22
  br label %141

141:                                              ; preds = %138, %135
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next, %wide.trip.count193
  br i1 %exitcond194.not, label %._crit_edge160, label %.lr.ph159, !llvm.loop !30

._crit_edge160:                                   ; preds = %141, %100
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  %143 = add nsw i32 %142, %101
  store i32 %143, ptr getelementptr inbounds (i8, ptr @hepevt_, i64 4), align 4, !tbaa !12
  br label %.loopexit

144:                                              ; preds = %2
  %145 = load ptr, ptr @stderr, align 8, !tbaa !25
  %146 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef nonnull @.str.4) #3
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph169, %3, %144, %._crit_edge160, %34
  %.0134 = phi i32 [ 5, %34 ], [ 0, %._crit_edge160 ], [ 0, %144 ], [ 0, %3 ], [ 0, %.lr.ph169 ]
  ret i32 %.0134
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { cold 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 = !{!"hepevt", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 16008, !8, i64 32008, !8, i64 64008, !8, i64 96008, !8, i64 256008}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 288000}
!11 = !{!"stdtmp", !8, i64 0, !8, i64 160000, !7, i64 288000, !7, i64 288004, !8, i64 288008, !8, i64 304008, !8, i64 320008, !8, i64 352008}
!12 = !{!6, !7, i64 4}
!13 = !{!11, !7, i64 288004}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!17, !15, i64 16}
!17 = !{!"hepev4", !15, i64 0, !15, i64 8, !15, i64 16, !8, i64 24, !8, i64 104, !8, i64 96104, !7, i64 128104}
!18 = !{!19, !15, i64 16}
!19 = !{!"tmpev4", !15, i64 0, !15, i64 8, !15, i64 16, !8, i64 24, !8, i64 104, !8, i64 96104, !7, i64 128104}
!20 = !{!17, !7, i64 128104}
!21 = !{!19, !7, i64 128104}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !26, i64 0}
!26 = !{!"any pointer", !8, i64 0}
!27 = distinct !{!27, !24}
!28 = !{!29, !7, i64 0}
!29 = !{!"hepev2", !7, i64 0, !8, i64 4}
!30 = distinct !{!30, !24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass