; LLVM IR from tevador/RandomX :: src/tests/perf-simulation.ll (Z17executeOutOfOrderRN7randomx7ProgramES1_biibi)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::_Setw" = type { i32 }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3hasRN7randomx11InstructionEj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17executeOutOfOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176) %0, ptr noundef nonnull align 8 dereferenceable(2176) %1, i1 noundef zeroext %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5, i32 noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [512 x i32], align 16
  %17 = alloca [512 x i32], align 16
  %18 = alloca [8 x i32], align 16
  %19 = alloca [8 x i32], align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.std::_Setw", align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  %35 = zext i1 %2 to i8
  store i8 %35, ptr %10, align 1, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store i32 %4, ptr %12, align 4, !tbaa !11
  %36 = zext i1 %5 to i8
  store i8 %36, ptr %13, align 1, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #7
  call void @llvm.memset.p0.i64(ptr align 16 %16, i8 0, i64 2048, i1 false)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #7
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 2048, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %305, %7
  %38 = load i32, ptr %15, align 4, !tbaa !11
  %39 = icmp slt i32 %38, 256
  br i1 %39, label %40, label %308

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load i32, ptr %15, align 4, !tbaa !11
  %43 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %41, i32 noundef %42)
  store ptr %43, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %44 = load i32, ptr %14, align 4, !tbaa !11
  %45 = sub nsw i32 %44, 1
  store i32 %45, ptr %24, align 4, !tbaa !11
  %46 = load i8, ptr %13, align 1, !tbaa !9, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  br i1 %47, label %58, label %48

48:                                               ; preds = %40
  %49 = load ptr, ptr %23, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %49, i32 noundef 48, i32 noundef 48)
  br i1 %50, label %58, label %51

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %52 = load i32, ptr %21, align 4, !tbaa !11
  %53 = load i32, ptr %14, align 4, !tbaa !11
  %54 = add nsw i32 %52, %53
  %55 = sub nsw i32 %54, 1
  store i32 %55, ptr %25, align 4, !tbaa !11
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %57 = load i32, ptr %56, align 4, !tbaa !11
  store i32 %57, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %58

58:                                               ; preds = %51, %48, %40
  %59 = load ptr, ptr %23, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %59, i32 noundef 12, i32 noundef 4)
  br i1 %60, label %61, label %75

61:                                               ; preds = %58
  %62 = load ptr, ptr %23, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.randomx::Instruction", ptr %62, i32 0, i32 2
  %64 = load i8, ptr %63, align 2, !tbaa !15
  %65 = zext i8 %64 to i64
  %66 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %65
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %66)
  %68 = load i32, ptr %67, align 4, !tbaa !11
  store i32 %68, ptr %24, align 4, !tbaa !11
  %69 = load i32, ptr %24, align 4, !tbaa !11
  %70 = load ptr, ptr %23, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.randomx::Instruction", ptr %70, i32 0, i32 2
  %72 = load i8, ptr %71, align 2, !tbaa !15
  %73 = zext i8 %72 to i64
  %74 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %73
  store i32 %69, ptr %74, align 4, !tbaa !11
  br label %75

75:                                               ; preds = %61, %58
  %76 = load ptr, ptr %23, align 8, !tbaa !5
  %77 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %76, i32 noundef 12, i32 noundef 12)
  br i1 %77, label %78, label %106

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %79 = load ptr, ptr %23, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.randomx::Instruction", ptr %79, i32 0, i32 2
  %81 = load i8, ptr %80, align 2, !tbaa !15
  %82 = zext i8 %81 to i64
  %83 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %26, align 4, !tbaa !11
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %87 = load i32, ptr %86, align 4, !tbaa !11
  store i32 %87, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %88

88:                                               ; preds = %96, %78
  %89 = load i32, ptr %24, align 4, !tbaa !11
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [512 x i32], ptr %17, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !11
  %94 = load i32, ptr %12, align 4, !tbaa !11
  %95 = icmp sge i32 %93, %94
  br i1 %95, label %96, label %99

96:                                               ; preds = %88
  %97 = load i32, ptr %24, align 4, !tbaa !11
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %24, align 4, !tbaa !11
  br label %88, !llvm.loop !17

99:                                               ; preds = %88
  %100 = load i32, ptr %24, align 4, !tbaa !11
  %101 = sub nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [512 x i32], ptr %17, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 4, !tbaa !11
  br label %106

106:                                              ; preds = %99, %75
  %107 = load ptr, ptr %23, align 8, !tbaa !5
  %108 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %107, i32 noundef 3, i32 noundef 2)
  br i1 %108, label %109, label %117

109:                                              ; preds = %106
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.randomx::Instruction", ptr %110, i32 0, i32 1
  %112 = load i8, ptr %111, align 1, !tbaa !19
  %113 = zext i8 %112 to i64
  %114 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %113
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %114)
  %116 = load i32, ptr %115, align 4, !tbaa !11
  store i32 %116, ptr %24, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %109, %106
  %118 = load ptr, ptr %23, align 8, !tbaa !5
  %119 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %118, i32 noundef 3, i32 noundef 1)
  br i1 %119, label %120, label %128

120:                                              ; preds = %117
  %121 = load ptr, ptr %23, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.randomx::Instruction", ptr %121, i32 0, i32 1
  %123 = load i8, ptr %122, align 1, !tbaa !19
  %124 = zext i8 %123 to i64
  %125 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %124
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %125)
  %127 = load i32, ptr %126, align 4, !tbaa !11
  store i32 %127, ptr %24, align 4, !tbaa !11
  br label %128

128:                                              ; preds = %120, %117
  %129 = load ptr, ptr %23, align 8, !tbaa !5
  %130 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEj(ptr noundef nonnull align 4 dereferenceable(8) %129, i32 noundef 64)
  br i1 %130, label %131, label %134

131:                                              ; preds = %128
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %133 = load i32, ptr %132, align 4, !tbaa !11
  store i32 %133, ptr %24, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %131, %128
  %135 = load ptr, ptr %23, align 8, !tbaa !5
  %136 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %135, i32 noundef 3, i32 noundef 3)
  br i1 %136, label %137, label %167

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %138 = load ptr, ptr %23, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.randomx::Instruction", ptr %138, i32 0, i32 1
  %140 = load i8, ptr %139, align 1, !tbaa !19
  %141 = zext i8 %140 to i64
  %142 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !11
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %27, align 4, !tbaa !11
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %146 = load i32, ptr %145, align 4, !tbaa !11
  store i32 %146, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %147

147:                                              ; preds = %155, %137
  %148 = load i32, ptr %24, align 4, !tbaa !11
  %149 = sub nsw i32 %148, 1
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [512 x i32], ptr %17, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !11
  %153 = load i32, ptr %12, align 4, !tbaa !11
  %154 = icmp sge i32 %152, %153
  br i1 %154, label %155, label %158

155:                                              ; preds = %147
  %156 = load i32, ptr %24, align 4, !tbaa !11
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %24, align 4, !tbaa !11
  br label %147, !llvm.loop !20

158:                                              ; preds = %147
  %159 = load i32, ptr %24, align 4, !tbaa !11
  %160 = sub nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [512 x i32], ptr %17, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %162, align 4, !tbaa !11
  %165 = load i32, ptr %24, align 4, !tbaa !11
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %24, align 4, !tbaa !11
  br label %167

167:                                              ; preds = %158, %134
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %168, i32 noundef 3, i32 noundef 2)
  br i1 %169, label %170, label %195

170:                                              ; preds = %167
  br label %171

171:                                              ; preds = %174, %170
  %172 = load i32, ptr %24, align 4, !tbaa !11
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %24, align 4, !tbaa !11
  br label %174

174:                                              ; preds = %171
  %175 = load i32, ptr %24, align 4, !tbaa !11
  %176 = sub nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [512 x i32], ptr %16, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !11
  %180 = load i32, ptr %11, align 4, !tbaa !11
  %181 = icmp sge i32 %179, %180
  br i1 %181, label %171, label %182, !llvm.loop !21

182:                                              ; preds = %174
  %183 = load i32, ptr %24, align 4, !tbaa !11
  %184 = sub nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [512 x i32], ptr %16, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !11
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %186, align 4, !tbaa !11
  %189 = load i32, ptr %24, align 4, !tbaa !11
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  %191 = getelementptr inbounds %"class.randomx::Instruction", ptr %190, i32 0, i32 1
  %192 = load i8, ptr %191, align 1, !tbaa !19
  %193 = zext i8 %192 to i64
  %194 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %193
  store i32 %189, ptr %194, align 4, !tbaa !11
  br label %195

195:                                              ; preds = %182, %167
  %196 = load ptr, ptr %23, align 8, !tbaa !5
  %197 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %196, i32 noundef 3, i32 noundef 1)
  br i1 %197, label %198, label %223

198:                                              ; preds = %195
  br label %199

199:                                              ; preds = %202, %198
  %200 = load i32, ptr %24, align 4, !tbaa !11
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %24, align 4, !tbaa !11
  br label %202

202:                                              ; preds = %199
  %203 = load i32, ptr %24, align 4, !tbaa !11
  %204 = sub nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [512 x i32], ptr %16, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !11
  %208 = load i32, ptr %11, align 4, !tbaa !11
  %209 = icmp sge i32 %207, %208
  br i1 %209, label %199, label %210, !llvm.loop !22

210:                                              ; preds = %202
  %211 = load i32, ptr %24, align 4, !tbaa !11
  %212 = sub nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [512 x i32], ptr %16, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !11
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %214, align 4, !tbaa !11
  %217 = load i32, ptr %24, align 4, !tbaa !11
  %218 = load ptr, ptr %23, align 8, !tbaa !5
  %219 = getelementptr inbounds %"class.randomx::Instruction", ptr %218, i32 0, i32 1
  %220 = load i8, ptr %219, align 1, !tbaa !19
  %221 = zext i8 %220 to i64
  %222 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %221
  store i32 %217, ptr %222, align 4, !tbaa !11
  br label %223

223:                                              ; preds = %210, %195
  %224 = load ptr, ptr %23, align 8, !tbaa !5
  %225 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %224, i32 noundef 48, i32 noundef 32)
  br i1 %225, label %226, label %233

226:                                              ; preds = %223
  %227 = load i32, ptr %24, align 4, !tbaa !11
  %228 = load ptr, ptr %23, align 8, !tbaa !5
  %229 = getelementptr inbounds %"class.randomx::Instruction", ptr %228, i32 0, i32 2
  %230 = load i8, ptr %229, align 2, !tbaa !15
  %231 = zext i8 %230 to i64
  %232 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %231
  store i32 %227, ptr %232, align 4, !tbaa !11
  br label %233

233:                                              ; preds = %226, %223
  %234 = load ptr, ptr %23, align 8, !tbaa !5
  %235 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %234, i32 noundef 48, i32 noundef 16)
  br i1 %235, label %236, label %256

236:                                              ; preds = %233
  br label %237

237:                                              ; preds = %240, %236
  %238 = load i32, ptr %24, align 4, !tbaa !11
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %24, align 4, !tbaa !11
  br label %240

240:                                              ; preds = %237
  %241 = load i32, ptr %24, align 4, !tbaa !11
  %242 = sub nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [512 x i32], ptr %16, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !11
  %246 = load i32, ptr %11, align 4, !tbaa !11
  %247 = icmp sge i32 %245, %246
  br i1 %247, label %237, label %248, !llvm.loop !23

248:                                              ; preds = %240
  %249 = load i32, ptr %24, align 4, !tbaa !11
  %250 = sub nsw i32 %249, 1
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [512 x i32], ptr %16, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !11
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %252, align 4, !tbaa !11
  %255 = load i32, ptr %24, align 4, !tbaa !11
  store i32 %255, ptr %20, align 4, !tbaa !11
  br label %256

256:                                              ; preds = %248, %233
  %257 = load ptr, ptr %23, align 8, !tbaa !5
  %258 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %257, i32 noundef 48, i32 noundef 48)
  br i1 %258, label %259, label %264

259:                                              ; preds = %256
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %261 = load i32, ptr %260, align 4, !tbaa !11
  store i32 %261, ptr %21, align 4, !tbaa !11
  %262 = load i32, ptr %22, align 4, !tbaa !11
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %22, align 4, !tbaa !11
  br label %264

264:                                              ; preds = %259, %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = load i32, ptr %15, align 4, !tbaa !11
  %267 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %265, i32 noundef %266)
  store ptr %267, ptr %28, align 8, !tbaa !5
  %268 = load ptr, ptr %28, align 8, !tbaa !5
  %269 = getelementptr inbounds %"class.randomx::Instruction", ptr %268, i32 0, i32 1
  %270 = load i8, ptr %269, align 1, !tbaa !19
  %271 = zext i8 %270 to i32
  %272 = srem i32 %271, 8
  %273 = trunc i32 %272 to i8
  store i8 %273, ptr %269, align 1, !tbaa !19
  %274 = load ptr, ptr %28, align 8, !tbaa !5
  %275 = getelementptr inbounds %"class.randomx::Instruction", ptr %274, i32 0, i32 2
  %276 = load i8, ptr %275, align 2, !tbaa !15
  %277 = zext i8 %276 to i32
  %278 = srem i32 %277, 8
  %279 = trunc i32 %278 to i8
  store i8 %279, ptr %275, align 2, !tbaa !15
  %280 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %281 = trunc i8 %280 to i1
  br i1 %281, label %282, label %304

282:                                              ; preds = %264
  %283 = call i32 @_ZSt4setwi(i32 noundef 2)
  %284 = getelementptr inbounds %"struct.std::_Setw", ptr %29, i32 0, i32 0
  store i32 %283, ptr %284, align 4
  %285 = getelementptr inbounds %"struct.std::_Setw", ptr %29, i32 0, i32 0
  %286 = load i32, ptr %285, align 4
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %286)
  %288 = load i32, ptr %24, align 4, !tbaa !11
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %287, i32 noundef %288)
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %289, ptr noundef @.str.10)
  %291 = load ptr, ptr %28, align 8, !tbaa !5
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7randomxlsERSoRKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef nonnull align 4 dereferenceable(8) %291)
  %293 = load ptr, ptr %23, align 8, !tbaa !5
  %294 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %293, i32 noundef 48, i32 noundef 48)
  br i1 %294, label %295, label %303

295:                                              ; preds = %282
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %297 = load ptr, ptr %23, align 8, !tbaa !5
  %298 = getelementptr inbounds %"class.randomx::Instruction", ptr %297, i32 0, i32 3
  %299 = load i8, ptr %298, align 1, !tbaa !24
  %300 = zext i8 %299 to i32
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %296, i32 noundef %300)
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %301, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %303

303:                                              ; preds = %295, %282
  br label %304

304:                                              ; preds = %303, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %15, align 4, !tbaa !11
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %15, align 4, !tbaa !11
  br label %37, !llvm.loop !25

308:                                              ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %309

309:                                              ; preds = %319, %308
  %310 = load i32, ptr %31, align 4, !tbaa !11
  %311 = icmp slt i32 %310, 8
  br i1 %311, label %313, label %312

312:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %322

313:                                              ; preds = %309
  %314 = load i32, ptr %31, align 4, !tbaa !11
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %315
  %317 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %316)
  %318 = load i32, ptr %317, align 4, !tbaa !11
  store i32 %318, ptr %30, align 4, !tbaa !11
  br label %319

319:                                              ; preds = %313
  %320 = load i32, ptr %31, align 4, !tbaa !11
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %31, align 4, !tbaa !11
  br label %309, !llvm.loop !26

322:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !11
  br label %323

323:                                              ; preds = %333, %322
  %324 = load i32, ptr %32, align 4, !tbaa !11
  %325 = icmp slt i32 %324, 8
  br i1 %325, label %327, label %326

326:                                              ; preds = %323
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %336

327:                                              ; preds = %323
  %328 = load i32, ptr %32, align 4, !tbaa !11
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %329
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %330)
  %332 = load i32, ptr %331, align 4, !tbaa !11
  store i32 %332, ptr %30, align 4, !tbaa !11
  br label %333

333:                                              ; preds = %327
  %334 = load i32, ptr %32, align 4, !tbaa !11
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %32, align 4, !tbaa !11
  br label %323, !llvm.loop !27

336:                                              ; preds = %326
  %337 = load i8, ptr %13, align 1, !tbaa !9, !range !13, !noundef !14
  %338 = trunc i8 %337 to i1
  br i1 %338, label %339, label %365

339:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !11
  br label %340

340:                                              ; preds = %363, %339
  %341 = load i32, ptr %22, align 4, !tbaa !11
  %342 = add nsw i32 %341, -1
  store i32 %342, ptr %22, align 4, !tbaa !11
  %343 = icmp ne i32 %341, 0
  br i1 %343, label %344, label %364

344:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = load i32, ptr %33, align 4, !tbaa !11
  %347 = sdiv i32 %346, 8
  %348 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %345, i32 noundef %347)
  store i64 %348, ptr %34, align 8, !tbaa !28
  %349 = load i64, ptr %34, align 8, !tbaa !28
  %350 = load i32, ptr %33, align 4, !tbaa !11
  %351 = srem i32 %350, 8
  %352 = mul nsw i32 %351, 8
  %353 = zext i32 %352 to i64
  %354 = lshr i64 %349, %353
  %355 = load i64, ptr %34, align 8, !tbaa !28
  %356 = and i64 %355, 255
  %357 = icmp eq i64 %356, 0
  br i1 %357, label %358, label %363

358:                                              ; preds = %344
  %359 = load i32, ptr %14, align 4, !tbaa !11
  %360 = sub nsw i32 %359, 1
  %361 = load i32, ptr %30, align 4, !tbaa !11
  %362 = add nsw i32 %361, %360
  store i32 %362, ptr %30, align 4, !tbaa !11
  br label %363

363:                                              ; preds = %358, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %340, !llvm.loop !30

364:                                              ; preds = %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %365

365:                                              ; preds = %364, %336
  %366 = load i32, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret i32 %366
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7randomxlsERSoRKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8), i32) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress 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 #6 = { "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 #7 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !7, i64 2}
!16 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !12, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!16, !7, i64 1}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = !{!16, !7, i64 3}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = !{!29, !29, i64 0}
!29 = !{!"long", !7, i64 0}
!30 = distinct !{!30, !18}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3hasRN7randomx11InstructionEj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17executeOutOfOrderRN7randomx7ProgramES1_biibi(ptr noundef nonnull align 8 dereferenceable(2176) %0, ptr noundef nonnull align 8 dereferenceable(2176) %1, i1 noundef zeroext %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = alloca [512 x i32], align 16
  %9 = alloca [512 x i32], align 16
  %10 = alloca [8 x i32], align 16
  %11 = alloca [8 x i32], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2048) %8, i8 0, i64 2048, i1 false)
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2048) %9, i8 0, i64 2048, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %10, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %11, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  %19 = add i32 %6, -1
  br label %20

20:                                               ; preds = %7, %184
  %.0109 = phi i32 [ 0, %7 ], [ %185, %184 ]
  %.055108 = phi i32 [ 0, %7 ], [ %.1, %184 ]
  %21 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %0, i32 noundef %.0109)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  store i32 %19, ptr %14, align 4, !tbaa !5
  br i1 %5, label %29, label %22

22:                                               ; preds = %20
  %23 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 48, i32 noundef 48)
  br i1 %23, label %29, label %24

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %25 = load i32, ptr %13, align 4, !tbaa !5
  %26 = add i32 %19, %25
  store i32 %26, ptr %15, align 4, !tbaa !5
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %28 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %28, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %29

29:                                               ; preds = %24, %22, %20
  %30 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 12, i32 noundef 4)
  br i1 %30, label %31, label %41

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %21, i64 2
  %33 = load i8, ptr %32, align 2, !tbaa !9
  %34 = zext i8 %33 to i64
  %35 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %34
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %37, ptr %14, align 4, !tbaa !5
  %38 = load i8, ptr %32, align 2, !tbaa !9
  %39 = zext i8 %38 to i64
  %40 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %39
  store i32 %37, ptr %40, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %31, %29
  %42 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 12, i32 noundef 12)
  br i1 %42, label %43, label %63

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %44 = getelementptr inbounds i8, ptr %21, i64 2
  %45 = load i8, ptr %44, align 2, !tbaa !9
  %46 = zext i8 %45 to i64
  %47 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %16, align 4, !tbaa !5
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %51 = load i32, ptr %50, align 4, !tbaa !5
  store i32 %51, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  %52 = add nsw i32 %51, -1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [512 x i32], ptr %9, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.not6386 = icmp slt i32 %55, %4
  br i1 %.not6386, label %60, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %43
  %56 = sext i32 %51 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %56, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %57 = getelementptr inbounds [512 x i32], ptr %9, i64 0, i64 %indvars.iv
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %.not63 = icmp slt i32 %58, %4
  br i1 %.not63, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph
  %59 = trunc nsw i64 %indvars.iv.next to i32
  store i32 %59, ptr %14, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %._crit_edge, %43
  %.lcssa85 = phi i64 [ %indvars.iv, %._crit_edge ], [ %53, %43 ]
  %.lcssa = phi i32 [ %58, %._crit_edge ], [ %55, %43 ]
  %61 = getelementptr inbounds [512 x i32], ptr %9, i64 0, i64 %.lcssa85
  %62 = add nsw i32 %.lcssa, 1
  store i32 %62, ptr %61, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %60, %41
  %64 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 3, i32 noundef 2)
  br i1 %64, label %65, label %72

65:                                               ; preds = %63
  %66 = getelementptr inbounds i8, ptr %21, i64 1
  %67 = load i8, ptr %66, align 1, !tbaa !13
  %68 = zext i8 %67 to i64
  %69 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %68
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %69)
  %71 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %71, ptr %14, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %65, %63
  %73 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 3, i32 noundef 1)
  br i1 %73, label %74, label %81

74:                                               ; preds = %72
  %75 = getelementptr inbounds i8, ptr %21, i64 1
  %76 = load i8, ptr %75, align 1, !tbaa !13
  %77 = zext i8 %76 to i64
  %78 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %77
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %78)
  %80 = load i32, ptr %79, align 4, !tbaa !5
  store i32 %80, ptr %14, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %74, %72
  %82 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 64)
  br i1 %82, label %83, label %86

83:                                               ; preds = %81
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %85 = load i32, ptr %84, align 4, !tbaa !5
  store i32 %85, ptr %14, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %83, %81
  %87 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 3, i32 noundef 3)
  br i1 %87, label %88, label %109

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %89 = getelementptr inbounds i8, ptr %21, i64 1
  %90 = load i8, ptr %89, align 1, !tbaa !13
  %91 = zext i8 %90 to i64
  %92 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %17, align 4, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %96 = load i32, ptr %95, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  %97 = add nsw i32 %96, -1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [512 x i32], ptr %9, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %.not6491 = icmp slt i32 %100, %4
  br i1 %.not6491, label %105, label %.lr.ph93.preheader

.lr.ph93.preheader:                               ; preds = %88
  %101 = sext i32 %96 to i64
  br label %.lr.ph93

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %.lr.ph93
  %indvars.iv130 = phi i64 [ %101, %.lr.ph93.preheader ], [ %indvars.iv.next131, %.lr.ph93 ]
  %indvars.iv.next131 = add nsw i64 %indvars.iv130, 1
  %102 = getelementptr inbounds [512 x i32], ptr %9, i64 0, i64 %indvars.iv130
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %.not64 = icmp slt i32 %103, %4
  br i1 %.not64, label %._crit_edge94, label %.lr.ph93, !llvm.loop !14

._crit_edge94:                                    ; preds = %.lr.ph93
  %104 = trunc nsw i64 %indvars.iv.next131 to i32
  br label %105

105:                                              ; preds = %._crit_edge94, %88
  %.lcssa89 = phi i64 [ %indvars.iv130, %._crit_edge94 ], [ %98, %88 ]
  %.lcssa75 = phi i32 [ %104, %._crit_edge94 ], [ %96, %88 ]
  %.lcssa73 = phi i32 [ %103, %._crit_edge94 ], [ %100, %88 ]
  %106 = getelementptr inbounds [512 x i32], ptr %9, i64 0, i64 %.lcssa89
  %107 = add nsw i32 %.lcssa73, 1
  store i32 %107, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %.lcssa75, 1
  store i32 %108, ptr %14, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %105, %86
  %110 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 3, i32 noundef 2)
  br i1 %110, label %.preheader71, label %123

.preheader71:                                     ; preds = %109
  %.promoted100 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sext i32 %.promoted100 to i64
  br label %112

112:                                              ; preds = %.preheader71, %112
  %indvars.iv133 = phi i64 [ %111, %.preheader71 ], [ %indvars.iv.next134, %112 ]
  %indvars.iv.next134 = add nsw i64 %indvars.iv133, 1
  %113 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %indvars.iv133
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %.not65 = icmp slt i32 %114, %3
  br i1 %.not65, label %115, label %112, !llvm.loop !15

115:                                              ; preds = %112
  %116 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %indvars.iv133
  %117 = trunc nsw i64 %indvars.iv.next134 to i32
  store i32 %117, ptr %14, align 4, !tbaa !5
  %118 = add nsw i32 %114, 1
  store i32 %118, ptr %116, align 4, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %21, i64 1
  %120 = load i8, ptr %119, align 1, !tbaa !13
  %121 = zext i8 %120 to i64
  %122 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %121
  store i32 %117, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %115, %109
  %124 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 3, i32 noundef 1)
  br i1 %124, label %.preheader70, label %137

.preheader70:                                     ; preds = %123
  %.promoted103 = load i32, ptr %14, align 4, !tbaa !5
  %125 = sext i32 %.promoted103 to i64
  br label %126

126:                                              ; preds = %.preheader70, %126
  %indvars.iv136 = phi i64 [ %125, %.preheader70 ], [ %indvars.iv.next137, %126 ]
  %indvars.iv.next137 = add nsw i64 %indvars.iv136, 1
  %127 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %indvars.iv136
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %.not66 = icmp slt i32 %128, %3
  br i1 %.not66, label %129, label %126, !llvm.loop !16

129:                                              ; preds = %126
  %130 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %indvars.iv136
  %131 = trunc nsw i64 %indvars.iv.next137 to i32
  store i32 %131, ptr %14, align 4, !tbaa !5
  %132 = add nsw i32 %128, 1
  store i32 %132, ptr %130, align 4, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %21, i64 1
  %134 = load i8, ptr %133, align 1, !tbaa !13
  %135 = zext i8 %134 to i64
  %136 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %135
  store i32 %131, ptr %136, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %129, %123
  %138 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 48, i32 noundef 32)
  br i1 %138, label %139, label %145

139:                                              ; preds = %137
  %140 = load i32, ptr %14, align 4, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %21, i64 2
  %142 = load i8, ptr %141, align 2, !tbaa !9
  %143 = zext i8 %142 to i64
  %144 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %143
  store i32 %140, ptr %144, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %139, %137
  %146 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 48, i32 noundef 16)
  br i1 %146, label %.preheader69, label %155

.preheader69:                                     ; preds = %145
  %.promoted106 = load i32, ptr %14, align 4, !tbaa !5
  %147 = sext i32 %.promoted106 to i64
  br label %148

148:                                              ; preds = %.preheader69, %148
  %indvars.iv139 = phi i64 [ %147, %.preheader69 ], [ %indvars.iv.next140, %148 ]
  %indvars.iv.next140 = add nsw i64 %indvars.iv139, 1
  %149 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %indvars.iv139
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %.not67 = icmp slt i32 %150, %3
  br i1 %.not67, label %151, label %148, !llvm.loop !17

151:                                              ; preds = %148
  %152 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %indvars.iv139
  %153 = trunc nsw i64 %indvars.iv.next140 to i32
  store i32 %153, ptr %14, align 4, !tbaa !5
  %154 = add nsw i32 %150, 1
  store i32 %154, ptr %152, align 4, !tbaa !5
  store i32 %153, ptr %12, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %151, %145
  %156 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 48, i32 noundef 48)
  br i1 %156, label %157, label %161

157:                                              ; preds = %155
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %159 = load i32, ptr %158, align 4, !tbaa !5
  store i32 %159, ptr %13, align 4, !tbaa !5
  %160 = add nsw i32 %.055108, 1
  br label %161

161:                                              ; preds = %157, %155
  %.1 = phi i32 [ %160, %157 ], [ %.055108, %155 ]
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %1, i32 noundef %.0109)
  %163 = getelementptr inbounds i8, ptr %162, i64 1
  %164 = load i8, ptr %163, align 1, !tbaa !13
  %165 = and i8 %164, 7
  store i8 %165, ptr %163, align 1, !tbaa !13
  %166 = getelementptr inbounds i8, ptr %162, i64 2
  %167 = load i8, ptr %166, align 2, !tbaa !9
  %168 = and i8 %167, 7
  store i8 %168, ptr %166, align 2, !tbaa !9
  br i1 %2, label %169, label %184

169:                                              ; preds = %161
  %170 = call i32 @_ZSt4setwi(i32 noundef 2)
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %170)
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %171, i32 noundef %172)
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @.str.10)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7randomxlsERSoRKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull align 4 dereferenceable(8) %162)
  %176 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef 48, i32 noundef 48)
  br i1 %176, label %177, label %184

177:                                              ; preds = %169
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
  %179 = getelementptr inbounds i8, ptr %21, i64 3
  %180 = load i8, ptr %179, align 1, !tbaa !18
  %181 = zext i8 %180 to i32
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %178, i32 noundef %181)
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %184

184:                                              ; preds = %169, %177, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  %185 = add nuw nsw i32 %.0109, 1
  %exitcond.not = icmp eq i32 %185, 256
  br i1 %exitcond.not, label %.preheader68.preheader, label %20, !llvm.loop !19

.preheader68.preheader:                           ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %187 = load i32, ptr %186, align 4, !tbaa !5
  store i32 %187, ptr %18, align 4, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %10, i64 4
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %188)
  %190 = load i32, ptr %189, align 4, !tbaa !5
  store i32 %190, ptr %18, align 4, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %10, i64 8
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %191)
  %193 = load i32, ptr %192, align 4, !tbaa !5
  store i32 %193, ptr %18, align 4, !tbaa !5
  %194 = getelementptr inbounds i8, ptr %10, i64 12
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %194)
  %196 = load i32, ptr %195, align 4, !tbaa !5
  store i32 %196, ptr %18, align 4, !tbaa !5
  %197 = getelementptr inbounds i8, ptr %10, i64 16
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %197)
  %199 = load i32, ptr %198, align 4, !tbaa !5
  store i32 %199, ptr %18, align 4, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %10, i64 20
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %200)
  %202 = load i32, ptr %201, align 4, !tbaa !5
  store i32 %202, ptr %18, align 4, !tbaa !5
  %203 = getelementptr inbounds i8, ptr %10, i64 24
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %203)
  %205 = load i32, ptr %204, align 4, !tbaa !5
  store i32 %205, ptr %18, align 4, !tbaa !5
  %206 = getelementptr inbounds i8, ptr %10, i64 28
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %206)
  %208 = load i32, ptr %207, align 4, !tbaa !5
  store i32 %208, ptr %18, align 4, !tbaa !5
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %210 = load i32, ptr %209, align 4, !tbaa !5
  store i32 %210, ptr %18, align 4, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %11, i64 4
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %211)
  %213 = load i32, ptr %212, align 4, !tbaa !5
  store i32 %213, ptr %18, align 4, !tbaa !5
  %214 = getelementptr inbounds i8, ptr %11, i64 8
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %214)
  %216 = load i32, ptr %215, align 4, !tbaa !5
  store i32 %216, ptr %18, align 4, !tbaa !5
  %217 = getelementptr inbounds i8, ptr %11, i64 12
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %217)
  %219 = load i32, ptr %218, align 4, !tbaa !5
  store i32 %219, ptr %18, align 4, !tbaa !5
  %220 = getelementptr inbounds i8, ptr %11, i64 16
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %220)
  %222 = load i32, ptr %221, align 4, !tbaa !5
  store i32 %222, ptr %18, align 4, !tbaa !5
  %223 = getelementptr inbounds i8, ptr %11, i64 20
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %223)
  %225 = load i32, ptr %224, align 4, !tbaa !5
  store i32 %225, ptr %18, align 4, !tbaa !5
  %226 = getelementptr inbounds i8, ptr %11, i64 24
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %226)
  %228 = load i32, ptr %227, align 4, !tbaa !5
  store i32 %228, ptr %18, align 4, !tbaa !5
  %229 = getelementptr inbounds i8, ptr %11, i64 28
  %230 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %229)
  %231 = load i32, ptr %230, align 4, !tbaa !5
  store i32 %231, ptr %18, align 4, !tbaa !5
  %.not112 = icmp ne i32 %.1, 0
  %or.cond.not = select i1 %5, i1 %.not112, i1 false
  br i1 %or.cond.not, label %.lr.ph113, label %.loopexit

.lr.ph113:                                        ; preds = %.preheader68.preheader, %239
  %.in = phi i32 [ %232, %239 ], [ %.1, %.preheader68.preheader ]
  %232 = add nsw i32 %.in, -1
  %233 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %0, i32 noundef 0)
  %234 = and i64 %233, 255
  %235 = icmp eq i64 %234, 0
  br i1 %235, label %236, label %239

236:                                              ; preds = %.lr.ph113
  %237 = load i32, ptr %18, align 4, !tbaa !5
  %238 = add nsw i32 %19, %237
  store i32 %238, ptr %18, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %236, %.lr.ph113
  %.not = icmp eq i32 %232, 0
  br i1 %.not, label %.loopexit.loopexit, label %.lr.ph113, !llvm.loop !20

.loopexit.loopexit:                               ; preds = %239
  %.pre = load i32, ptr %18, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.preheader68.preheader
  %240 = phi i32 [ %.pre, %.loopexit.loopexit ], [ %231, %.preheader68.preheader ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #7
  ret i32 %240
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7randomxlsERSoRKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress 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 #6 = { "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 #7 = { 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++ TBAA"}
!9 = !{!10, !7, i64 2}
!10 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 4}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!10, !7, i64 1}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!10, !7, i64 3}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass