; LLVM IR from tevador/RandomX :: src/tests/perf-simulation.ll (Z14executeInOrderRN7randomx7ProgramES1_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

; 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 @_Z14executeInOrderRN7randomx7ProgramES1_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 i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [8 x i32], align 16
  %19 = alloca [8 x i32], align 16
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::_Setw", align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  %29 = zext i1 %2 to i8
  store i8 %29, ptr %10, align 1, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store i32 %4, ptr %12, align 4, !tbaa !11
  %30 = zext i1 %5 to i8
  store i8 %30, 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
  %31 = load i32, ptr %14, align 4, !tbaa !11
  %32 = sub nsw i32 %31, 1
  store i32 %32, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !11
  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)
  br label %33

33:                                               ; preds = %229, %7
  %34 = load i32, ptr %16, align 4, !tbaa !11
  %35 = icmp slt i32 %34, 256
  br i1 %35, label %36, label %232

36:                                               ; preds = %33
  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 1, ptr %21) #7
  store i8 0, ptr %21, align 1, !tbaa !9
  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 = %226, %36
  %38 = load i32, ptr %22, align 4, !tbaa !11
  %39 = load i32, ptr %11, align 4, !tbaa !11
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %41, label %48

41:                                               ; preds = %37
  %42 = load i32, ptr %20, align 4, !tbaa !11
  %43 = load i32, ptr %12, align 4, !tbaa !11
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %41
  %46 = load i32, ptr %16, align 4, !tbaa !11
  %47 = icmp slt i32 %46, 256
  br label %48

48:                                               ; preds = %45, %41, %37
  %49 = phi i1 [ false, %41 ], [ false, %37 ], [ %47, %45 ]
  br i1 %49, label %50, label %229

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %16, align 4, !tbaa !11
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %51, i32 noundef %52)
  store ptr %53, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i32, ptr %16, align 4, !tbaa !11
  %56 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %54, i32 noundef %55)
  store ptr %56, ptr %24, align 8, !tbaa !5
  %57 = load ptr, ptr %24, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.randomx::Instruction", ptr %57, i32 0, i32 1
  %59 = load i8, ptr %58, align 1, !tbaa !13
  %60 = zext i8 %59 to i32
  %61 = srem i32 %60, 8
  %62 = trunc i32 %61 to i8
  store i8 %62, ptr %58, align 1, !tbaa !13
  %63 = load ptr, ptr %24, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.randomx::Instruction", ptr %63, i32 0, i32 2
  %65 = load i8, ptr %64, align 2, !tbaa !15
  %66 = zext i8 %65 to i32
  %67 = srem i32 %66, 8
  %68 = trunc i32 %67 to i8
  store i8 %68, ptr %64, align 2, !tbaa !15
  %69 = load ptr, ptr %23, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %69, i32 noundef 12, i32 noundef 4)
  br i1 %70, label %71, label %81

71:                                               ; preds = %50
  %72 = load ptr, ptr %23, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.randomx::Instruction", ptr %72, i32 0, i32 2
  %74 = load i8, ptr %73, align 2, !tbaa !15
  %75 = zext i8 %74 to i64
  %76 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %78 = load i32, ptr %15, align 4, !tbaa !11
  %79 = icmp sgt i32 %77, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %71
  store i32 4, ptr %25, align 4
  br label %223

81:                                               ; preds = %71, %50
  %82 = load ptr, ptr %23, align 8, !tbaa !5
  %83 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %82, i32 noundef 12, i32 noundef 12)
  br i1 %83, label %84, label %95

84:                                               ; preds = %81
  %85 = load ptr, ptr %23, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.randomx::Instruction", ptr %85, i32 0, i32 2
  %87 = load i8, ptr %86, align 2, !tbaa !15
  %88 = zext i8 %87 to i64
  %89 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !11
  %91 = load i32, ptr %15, align 4, !tbaa !11
  %92 = sub nsw i32 %91, 1
  %93 = icmp sgt i32 %90, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %84
  store i32 4, ptr %25, align 4
  br label %223

95:                                               ; preds = %84, %81
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %96, i32 noundef 3, i32 noundef 3)
  br i1 %97, label %98, label %109

98:                                               ; preds = %95
  %99 = load ptr, ptr %23, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.randomx::Instruction", ptr %99, i32 0, i32 1
  %101 = load i8, ptr %100, align 1, !tbaa !13
  %102 = zext i8 %101 to i64
  %103 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = load i32, ptr %15, align 4, !tbaa !11
  %106 = sub nsw i32 %105, 1
  %107 = icmp sgt i32 %104, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %98
  store i32 4, ptr %25, align 4
  br label %223

109:                                              ; preds = %98, %95
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %110, i32 noundef 3, i32 noundef 2)
  br i1 %111, label %112, label %122

112:                                              ; preds = %109
  %113 = load ptr, ptr %23, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.randomx::Instruction", ptr %113, i32 0, i32 1
  %115 = load i8, ptr %114, align 1, !tbaa !13
  %116 = zext i8 %115 to i64
  %117 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !11
  %119 = load i32, ptr %15, align 4, !tbaa !11
  %120 = icmp sgt i32 %118, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %112
  store i32 4, ptr %25, align 4
  br label %223

122:                                              ; preds = %112, %109
  %123 = load ptr, ptr %23, align 8, !tbaa !5
  %124 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %123, i32 noundef 3, i32 noundef 1)
  br i1 %124, label %125, label %135

125:                                              ; preds = %122
  %126 = load ptr, ptr %23, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.randomx::Instruction", ptr %126, i32 0, i32 1
  %128 = load i8, ptr %127, align 1, !tbaa !13
  %129 = zext i8 %128 to i64
  %130 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !11
  %132 = load i32, ptr %15, align 4, !tbaa !11
  %133 = icmp sgt i32 %131, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %125
  store i32 4, ptr %25, align 4
  br label %223

135:                                              ; preds = %125, %122
  %136 = load i8, ptr %21, align 1, !tbaa !9, !range !16, !noundef !17
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %142

138:                                              ; preds = %135
  %139 = load ptr, ptr %23, align 8, !tbaa !5
  %140 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEj(ptr noundef nonnull align 4 dereferenceable(8) %139, i32 noundef 64)
  br i1 %140, label %141, label %142

141:                                              ; preds = %138
  store i32 4, ptr %25, align 4
  br label %223

142:                                              ; preds = %138, %135
  %143 = load i32, ptr %16, align 4, !tbaa !11
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %16, align 4, !tbaa !11
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %145, i32 noundef 48, i32 noundef 48)
  br i1 %146, label %147, label %150

147:                                              ; preds = %142
  %148 = load i32, ptr %17, align 4, !tbaa !11
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %17, align 4, !tbaa !11
  br label %150

150:                                              ; preds = %147, %142
  %151 = load ptr, ptr %23, align 8, !tbaa !5
  %152 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %151, i32 noundef 3, i32 noundef 2)
  br i1 %152, label %153, label %161

153:                                              ; preds = %150
  %154 = load i32, ptr %15, align 4, !tbaa !11
  %155 = add nsw i32 %154, 1
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.randomx::Instruction", ptr %156, i32 0, i32 1
  %158 = load i8, ptr %157, align 1, !tbaa !13
  %159 = zext i8 %158 to i64
  %160 = getelementptr inbounds [8 x i32], ptr %19, i64 0, i64 %159
  store i32 %155, ptr %160, align 4, !tbaa !11
  br label %161

161:                                              ; preds = %153, %150
  %162 = load ptr, ptr %23, align 8, !tbaa !5
  %163 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %162, i32 noundef 3, i32 noundef 1)
  br i1 %163, label %164, label %172

164:                                              ; preds = %161
  %165 = load i32, ptr %15, align 4, !tbaa !11
  %166 = add nsw i32 %165, 1
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.randomx::Instruction", ptr %167, i32 0, i32 1
  %169 = load i8, ptr %168, align 1, !tbaa !13
  %170 = zext i8 %169 to i64
  %171 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %170
  store i32 %166, ptr %171, align 4, !tbaa !11
  br label %172

172:                                              ; preds = %164, %161
  %173 = load ptr, ptr %23, align 8, !tbaa !5
  %174 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %173, i32 noundef 48, i32 noundef 32)
  br i1 %174, label %175, label %183

175:                                              ; preds = %172
  %176 = load i32, ptr %15, align 4, !tbaa !11
  %177 = add nsw i32 %176, 1
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.randomx::Instruction", ptr %178, i32 0, i32 2
  %180 = load i8, ptr %179, align 2, !tbaa !15
  %181 = zext i8 %180 to i64
  %182 = getelementptr inbounds [8 x i32], ptr %18, i64 0, i64 %181
  store i32 %177, ptr %182, align 4, !tbaa !11
  br label %183

183:                                              ; preds = %175, %172
  %184 = load ptr, ptr %23, align 8, !tbaa !5
  %185 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %184, i32 noundef 48, i32 noundef 16)
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  store i8 1, ptr %21, align 1, !tbaa !9
  br label %187

187:                                              ; preds = %186, %183
  %188 = load ptr, ptr %23, align 8, !tbaa !5
  %189 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %188, i32 noundef 12, i32 noundef 12)
  br i1 %189, label %193, label %190

190:                                              ; preds = %187
  %191 = load ptr, ptr %23, align 8, !tbaa !5
  %192 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %191, i32 noundef 3, i32 noundef 3)
  br i1 %192, label %193, label %196

193:                                              ; preds = %190, %187
  %194 = load i32, ptr %20, align 4, !tbaa !11
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %20, align 4, !tbaa !11
  br label %196

196:                                              ; preds = %193, %190
  %197 = load i8, ptr %10, align 1, !tbaa !9, !range !16, !noundef !17
  %198 = trunc i8 %197 to i1
  br i1 %198, label %199, label %211

199:                                              ; preds = %196
  %200 = call i32 @_ZSt4setwi(i32 noundef 2)
  %201 = getelementptr inbounds %"struct.std::_Setw", ptr %26, i32 0, i32 0
  store i32 %200, ptr %201, align 4
  %202 = getelementptr inbounds %"struct.std::_Setw", ptr %26, i32 0, i32 0
  %203 = load i32, ptr %202, align 4
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %203)
  %205 = load i32, ptr %15, align 4, !tbaa !11
  %206 = add nsw i32 %205, 1
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %204, i32 noundef %206)
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef @.str.10)
  %209 = load ptr, ptr %24, align 8, !tbaa !5
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7randomxlsERSoRKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef nonnull align 4 dereferenceable(8) %209)
  br label %211

211:                                              ; preds = %199, %196
  %212 = load i8, ptr %13, align 1, !tbaa !9, !range !16, !noundef !17
  %213 = trunc i8 %212 to i1
  br i1 %213, label %222, label %214

214:                                              ; preds = %211
  %215 = load ptr, ptr %23, align 8, !tbaa !5
  %216 = call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %215, i32 noundef 48, i32 noundef 48)
  br i1 %216, label %217, label %222

217:                                              ; preds = %214
  %218 = load i32, ptr %14, align 4, !tbaa !11
  %219 = sub nsw i32 %218, 1
  %220 = load i32, ptr %15, align 4, !tbaa !11
  %221 = add nsw i32 %220, %219
  store i32 %221, ptr %15, align 4, !tbaa !11
  store i32 4, ptr %25, align 4
  br label %223

222:                                              ; preds = %214, %211
  store i32 0, ptr %25, align 4
  br label %223

223:                                              ; preds = %222, %217, %141, %134, %121, %108, %94, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %224 = load i32, ptr %25, align 4
  switch i32 %224, label %263 [
    i32 0, label %225
    i32 4, label %229
  ]

225:                                              ; preds = %223
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %22, align 4, !tbaa !11
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %22, align 4, !tbaa !11
  br label %37, !llvm.loop !18

229:                                              ; preds = %223, %48
  %230 = load i32, ptr %15, align 4, !tbaa !11
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %33, !llvm.loop !20

232:                                              ; preds = %33
  %233 = load i8, ptr %13, align 1, !tbaa !9, !range !16, !noundef !17
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %261

235:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !11
  br label %236

236:                                              ; preds = %259, %235
  %237 = load i32, ptr %17, align 4, !tbaa !11
  %238 = add nsw i32 %237, -1
  store i32 %238, ptr %17, align 4, !tbaa !11
  %239 = icmp ne i32 %237, 0
  br i1 %239, label %240, label %260

240:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = load i32, ptr %27, align 4, !tbaa !11
  %243 = sdiv i32 %242, 8
  %244 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %241, i32 noundef %243)
  store i64 %244, ptr %28, align 8, !tbaa !21
  %245 = load i64, ptr %28, align 8, !tbaa !21
  %246 = load i32, ptr %27, align 4, !tbaa !11
  %247 = srem i32 %246, 8
  %248 = mul nsw i32 %247, 8
  %249 = zext i32 %248 to i64
  %250 = lshr i64 %245, %249
  %251 = load i64, ptr %28, align 8, !tbaa !21
  %252 = and i64 %251, 255
  %253 = icmp eq i64 %252, 0
  br i1 %253, label %254, label %259

254:                                              ; preds = %240
  %255 = load i32, ptr %14, align 4, !tbaa !11
  %256 = sub nsw i32 %255, 1
  %257 = load i32, ptr %15, align 4, !tbaa !11
  %258 = add nsw i32 %257, %256
  store i32 %258, ptr %15, align 4, !tbaa !11
  br label %259

259:                                              ; preds = %254, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %236, !llvm.loop !23

260:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %261

261:                                              ; preds = %260, %232
  %262 = load i32, ptr %15, align 4, !tbaa !11
  store i32 1, ptr %25, align 4
  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 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret i32 %262

263:                                              ; preds = %223
  unreachable
}

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

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 = !{!14, !7, i64 1}
!14 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !12, i64 4}
!15 = !{!14, !7, i64 2}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = distinct !{!23, !19}


; 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

; 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 @_Z14executeInOrderRN7randomx7ProgramES1_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 {
.preheader97.us.preheader:
  %7 = alloca [8 x i32], align 16
  %8 = alloca [8 x i32], align 16
  %9 = add nsw i32 %6, -1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %7, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, i8 0, i64 32, i1 false)
  %10 = icmp sgt i32 %3, 0
  tail call void @llvm.assume(i1 %10)
  br label %.preheader97.us

.preheader97.us:                                  ; preds = %.preheader97.us.preheader, %.critedge.us
  %.0139.us = phi i32 [ %.pre-phi, %.critedge.us ], [ %9, %.preheader97.us.preheader ]
  %.066138.us = phi i32 [ %.369.us, %.critedge.us ], [ 0, %.preheader97.us.preheader ]
  %.070137.us = phi i32 [ %.474.us, %.critedge.us ], [ 0, %.preheader97.us.preheader ]
  %11 = add nsw i32 %.0139.us, 1
  %12 = add i32 %.066138.us, %3
  br label %13

13:                                               ; preds = %.preheader97.us, %111
  %.167134.us = phi i32 [ %.066138.us, %.preheader97.us ], [ %71, %111 ]
  %.171133.us = phi i32 [ %.070137.us, %.preheader97.us ], [ %spec.select.us, %111 ]
  %.077132.us = phi i32 [ 0, %.preheader97.us ], [ %.178.us, %111 ]
  %.080131.us = phi i1 [ false, %.preheader97.us ], [ %spec.select86.us, %111 ]
  %14 = icmp slt i32 %.077132.us, %4
  %15 = icmp slt i32 %.167134.us, 256
  %or.cond.us = select i1 %14, i1 %15, i1 false
  br i1 %or.cond.us, label %16, label %.critedge.us

16:                                               ; preds = %13
  %17 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %0, i32 noundef %.167134.us)
  %18 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %1, i32 noundef %.167134.us)
  %19 = getelementptr inbounds i8, ptr %18, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = and i8 %20, 7
  store i8 %21, ptr %19, align 1, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %18, i64 2
  %23 = load i8, ptr %22, align 2, !tbaa !10
  %24 = and i8 %23, 7
  store i8 %24, ptr %22, align 2, !tbaa !10
  %25 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 12, i32 noundef 4)
  br i1 %25, label %26, label %33

26:                                               ; preds = %16
  %27 = getelementptr inbounds i8, ptr %17, i64 2
  %28 = load i8, ptr %27, align 2, !tbaa !10
  %29 = zext i8 %28 to i64
  %30 = getelementptr inbounds [8 x i32], ptr %7, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = icmp sgt i32 %31, %.0139.us
  br i1 %32, label %.critedge.us, label %33

33:                                               ; preds = %26, %16
  %34 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 12, i32 noundef 12)
  br i1 %34, label %35, label %41

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %17, i64 2
  %37 = load i8, ptr %36, align 2, !tbaa !10
  %38 = zext i8 %37 to i64
  %39 = getelementptr inbounds [8 x i32], ptr %7, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %.not84.us = icmp slt i32 %40, %.0139.us
  br i1 %.not84.us, label %41, label %.critedge.us

41:                                               ; preds = %35, %33
  %42 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 3, i32 noundef 3)
  br i1 %42, label %43, label %49

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %17, i64 1
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = zext i8 %45 to i64
  %47 = getelementptr inbounds [8 x i32], ptr %7, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %.not85.us = icmp slt i32 %48, %.0139.us
  br i1 %.not85.us, label %49, label %.critedge.us

49:                                               ; preds = %43, %41
  %50 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 3, i32 noundef 2)
  br i1 %50, label %51, label %58

51:                                               ; preds = %49
  %52 = getelementptr inbounds i8, ptr %17, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %54 = zext i8 %53 to i64
  %55 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %57 = icmp sgt i32 %56, %.0139.us
  br i1 %57, label %.critedge.us, label %58

58:                                               ; preds = %51, %49
  %59 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 3, i32 noundef 1)
  br i1 %59, label %60, label %67

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %17, i64 1
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = zext i8 %62 to i64
  %64 = getelementptr inbounds [8 x i32], ptr %7, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = icmp sgt i32 %65, %.0139.us
  br i1 %66, label %.critedge.us, label %67

67:                                               ; preds = %60, %58
  br i1 %.080131.us, label %68, label %70

68:                                               ; preds = %67
  %69 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 64)
  br i1 %69, label %.critedge.us, label %70

70:                                               ; preds = %68, %67
  %71 = add nsw i32 %.167134.us, 1
  %72 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 48, i32 noundef 48)
  %73 = zext i1 %72 to i32
  %spec.select.us = add nsw i32 %.171133.us, %73
  %74 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 3, i32 noundef 2)
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = getelementptr inbounds i8, ptr %17, i64 1
  %77 = load i8, ptr %76, align 1, !tbaa !5
  %78 = zext i8 %77 to i64
  %79 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %78
  store i32 %11, ptr %79, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %75, %70
  %81 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 3, i32 noundef 1)
  br i1 %81, label %82, label %87

82:                                               ; preds = %80
  %83 = getelementptr inbounds i8, ptr %17, i64 1
  %84 = load i8, ptr %83, align 1, !tbaa !5
  %85 = zext i8 %84 to i64
  %86 = getelementptr inbounds [8 x i32], ptr %7, i64 0, i64 %85
  store i32 %11, ptr %86, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %82, %80
  %88 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 48, i32 noundef 32)
  br i1 %88, label %89, label %94

89:                                               ; preds = %87
  %90 = getelementptr inbounds i8, ptr %17, i64 2
  %91 = load i8, ptr %90, align 2, !tbaa !10
  %92 = zext i8 %91 to i64
  %93 = getelementptr inbounds [8 x i32], ptr %7, i64 0, i64 %92
  store i32 %11, ptr %93, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %89, %87
  %95 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 48, i32 noundef 16)
  %spec.select86.us = select i1 %95, i1 true, i1 %.080131.us
  %96 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 12, i32 noundef 12)
  br i1 %96, label %99, label %97

97:                                               ; preds = %94
  %98 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 3, i32 noundef 3)
  br i1 %98, label %99, label %101

99:                                               ; preds = %97, %94
  %100 = add nsw i32 %.077132.us, 1
  br label %101

101:                                              ; preds = %99, %97
  %.178.us = phi i32 [ %100, %99 ], [ %.077132.us, %97 ]
  br i1 %2, label %102, label %108

102:                                              ; preds = %101
  %103 = tail call i32 @_ZSt4setwi(i32 noundef 2)
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %103)
  %105 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %104, i32 noundef %11)
  %106 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull @.str.10)
  %107 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7randomxlsERSoRKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull align 4 dereferenceable(8) %18)
  br label %108

108:                                              ; preds = %102, %101
  br i1 %5, label %111, label %109

109:                                              ; preds = %108
  %110 = tail call noundef zeroext i1 @_Z3hasRN7randomx11InstructionEjj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef 48, i32 noundef 48)
  br i1 %110, label %.critedge.split.loop.exit.us, label %111

111:                                              ; preds = %109, %108
  %exitcond.not = icmp eq i32 %71, %12
  br i1 %exitcond.not, label %.critedge.us, label %13, !llvm.loop !12

.critedge.us:                                     ; preds = %111, %13, %26, %35, %43, %51, %60, %68, %.critedge.split.loop.exit.us
  %.pre-phi = phi i32 [ %.pre, %.critedge.split.loop.exit.us ], [ %11, %68 ], [ %11, %60 ], [ %11, %51 ], [ %11, %43 ], [ %11, %35 ], [ %11, %26 ], [ %11, %13 ], [ %11, %111 ]
  %.474.us = phi i32 [ %spec.select.us, %.critedge.split.loop.exit.us ], [ %spec.select.us, %111 ], [ %.171133.us, %13 ], [ %.171133.us, %26 ], [ %.171133.us, %35 ], [ %.171133.us, %43 ], [ %.171133.us, %51 ], [ %.171133.us, %60 ], [ %.171133.us, %68 ]
  %.369.us = phi i32 [ %71, %.critedge.split.loop.exit.us ], [ %12, %111 ], [ %.167134.us, %13 ], [ %.167134.us, %26 ], [ %.167134.us, %35 ], [ %.167134.us, %43 ], [ %.167134.us, %51 ], [ %.167134.us, %60 ], [ %.167134.us, %68 ]
  %112 = icmp slt i32 %.369.us, 256
  br i1 %112, label %.preheader97.us, label %.split141.us, !llvm.loop !14

.critedge.split.loop.exit.us:                     ; preds = %109
  %.pre = add i32 %.0139.us, %6
  br label %.critedge.us

.split141.us:                                     ; preds = %.critedge.us
  %.not143 = icmp ne i32 %.474.us, 0
  %or.cond.not = select i1 %5, i1 %.not143, i1 false
  br i1 %or.cond.not, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.split141.us, %.lr.ph
  %.4145 = phi i32 [ %spec.select87, %.lr.ph ], [ %.pre-phi, %.split141.us ]
  %.575144 = phi i32 [ %113, %.lr.ph ], [ %.474.us, %.split141.us ]
  %113 = add nsw i32 %.575144, -1
  %114 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %0, i32 noundef 0)
  %115 = and i64 %114, 255
  %116 = icmp eq i64 %115, 0
  %117 = select i1 %116, i32 %9, i32 0
  %spec.select87 = add nsw i32 %117, %.4145
  %.not = icmp eq i32 %113, 0
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %.split141.us
  %.6 = phi i32 [ %.pre-phi, %.split141.us ], [ %spec.select87, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  ret i32 %.6
}

; 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 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: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #7

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 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #8 = { 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 1}
!6 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !9, i64 4}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!6, !7, i64 2}
!11 = !{!9, !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass