; LLVM IR from tevador/RandomX :: src (superscalar)

; 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.randomx::DecoderBuffer" = type <{ ptr, i32, [4 x i8], ptr, i32, [4 x i8] }>
%"class.randomx::SuperscalarInstruction" = type <{ ptr, i32, i32, i32, i32, i32, i32, i8, i8, [6 x i8] }>
%"class.randomx::RegisterInfo" = type { i32, i32, i32, i32 }
%"class.randomx::SuperscalarProgram" = type { [512 x %"class.randomx::Instruction"], i32, i32, double, i32, i32, i32, i32, i32, i32, [8 x i32], [8 x i32] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

@_ZN7randomx13DecoderBuffer7DefaultE = external dso_local global %"class.randomx::DecoderBuffer", align 8
@_ZN7randomx22SuperscalarInstruction4NullE = external dso_local global %"class.randomx::SuperscalarInstruction", align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7randomx19generateSuperscalarERNS_18SuperscalarProgramERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(4200) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [174 x [3 x i32]], align 16
  %6 = alloca [8 x %"class.randomx::RegisterInfo"], align 16
  %7 = alloca ptr, align 8
  %8 = alloca %"class.randomx::SuperscalarInstruction", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %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 double, align 8
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2088, ptr %5) #6
  %37 = getelementptr inbounds [174 x [3 x i32]], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %37, i8 0, i64 2088, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %6) #6
  %38 = getelementptr inbounds [8 x %"class.randomx::RegisterInfo"], ptr %6, i32 0, i32 0
  %39 = getelementptr inbounds %"class.randomx::RegisterInfo", ptr %38, i64 8
  br label %40

40:                                               ; preds = %40, %2
  %41 = phi ptr [ %38, %2 ], [ %42, %40 ]
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %41)
  %42 = getelementptr inbounds %"class.randomx::RegisterInfo", ptr %41, i64 1
  %43 = icmp eq ptr %42, %39
  br i1 %43, label %44, label %40

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr @_ZN7randomx13DecoderBuffer7DefaultE, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @_ZN7randomx22SuperscalarInstruction4NullE, i64 40, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  store i8 0, ptr %15, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !10
  store i32 0, ptr %18, align 4, !tbaa !10
  br label %45

45:                                               ; preds = %261, %44
  %46 = load i32, ptr %18, align 4, !tbaa !10
  %47 = icmp slt i32 %46, 170
  br i1 %47, label %48, label %54

48:                                               ; preds = %45
  %49 = load i8, ptr %15, align 1, !tbaa !14, !range !16, !noundef !17
  %50 = trunc i8 %49 to i1
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = load i32, ptr %16, align 4, !tbaa !10
  %53 = icmp slt i32 %52, 512
  br label %54

54:                                               ; preds = %51, %48, %45
  %55 = phi i1 [ false, %48 ], [ false, %45 ], [ %53, %51 ]
  br i1 %55, label %56, label %264

56:                                               ; preds = %54
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call noundef i32 @_ZN7randomx22SuperscalarInstruction7getTypeEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %59 = load i32, ptr %18, align 4, !tbaa !10
  %60 = load i32, ptr %17, align 4, !tbaa !10
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call noundef ptr @_ZNK7randomx13DecoderBuffer9fetchNextENS_26SuperscalarInstructionTypeEiiRNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(28) %57, i32 noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef nonnull align 8 dereferenceable(72) %61)
  store ptr %62, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !10
  br label %63

63:                                               ; preds = %257, %255, %56
  %64 = load i32, ptr %20, align 4, !tbaa !10
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = call noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %65)
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %68, label %258

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %69 = load i32, ptr %12, align 4, !tbaa !10
  store i32 %69, ptr %21, align 4, !tbaa !10
  %70 = load i32, ptr %9, align 4, !tbaa !10
  %71 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %72 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %71)
  %73 = icmp sge i32 %70, %72
  br i1 %73, label %74, label %98

74:                                               ; preds = %68
  %75 = load i8, ptr %15, align 1, !tbaa !14, !range !16, !noundef !17
  %76 = trunc i8 %75 to i1
  br i1 %76, label %80, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr %16, align 4, !tbaa !10
  %79 = icmp sge i32 %78, 512
  br i1 %79, label %80, label %81

80:                                               ; preds = %77, %74
  store i32 6, ptr %22, align 4
  br label %255

81:                                               ; preds = %77
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call noundef ptr @_ZNK7randomx13DecoderBuffer9getCountsEv(ptr noundef nonnull align 8 dereferenceable(28) %83)
  %85 = load i32, ptr %20, align 4, !tbaa !10
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !10
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = call noundef i32 @_ZNK7randomx13DecoderBuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(28) %89)
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = call noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %91)
  %93 = load i32, ptr %20, align 4, !tbaa !10
  %94 = add nsw i32 %93, 1
  %95 = icmp eq i32 %92, %94
  %96 = load i32, ptr %20, align 4, !tbaa !10
  %97 = icmp eq i32 %96, 0
  call void @_ZN7randomx22SuperscalarInstruction13createForSlotERNS_15Blake2GeneratorEiibb(ptr noundef nonnull align 8 dereferenceable(34) %8, ptr noundef nonnull align 8 dereferenceable(72) %82, i32 noundef %88, i32 noundef %90, i1 noundef zeroext %95, i1 noundef zeroext %97)
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %98

98:                                               ; preds = %81, %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %99 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %100 = load i32, ptr %9, align 4, !tbaa !10
  %101 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK7randomx26SuperscalarInstructionInfo5getOpEi(ptr noundef nonnull align 8 dereferenceable(56) %99, i32 noundef %100)
  store ptr %101, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !10
  %104 = load i32, ptr %13, align 4, !tbaa !10
  %105 = call noundef i32 @_ZN7randomxL11scheduleMopILb0EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25) %102, ptr noundef nonnull align 4 dereferenceable(2088) %5, i32 noundef %103, i32 noundef %104)
  store i32 %105, ptr %24, align 4, !tbaa !10
  %106 = load i32, ptr %24, align 4, !tbaa !10
  %107 = icmp slt i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %98
  store i8 1, ptr %15, align 1, !tbaa !14
  store i32 6, ptr %22, align 4
  br label %254

109:                                              ; preds = %98
  %110 = load i32, ptr %9, align 4, !tbaa !10
  %111 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %112 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getSrcOpEv(ptr noundef nonnull align 8 dereferenceable(56) %111)
  %113 = icmp eq i32 %110, %112
  br i1 %113, label %114, label %149

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !10
  br label %115

115:                                              ; preds = %130, %114
  %116 = load i32, ptr %25, align 4, !tbaa !10
  %117 = icmp slt i32 %116, 4
  br i1 %117, label %118, label %123

118:                                              ; preds = %115
  %119 = load i32, ptr %24, align 4, !tbaa !10
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %8, i32 noundef %119, ptr noundef nonnull align 4 dereferenceable(128) %6, ptr noundef nonnull align 8 dereferenceable(72) %120)
  %122 = xor i1 %121, true
  br label %123

123:                                              ; preds = %118, %115
  %124 = phi i1 [ false, %115 ], [ %122, %118 ]
  br i1 %124, label %125, label %133

125:                                              ; preds = %123
  %126 = load i32, ptr %24, align 4, !tbaa !10
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %24, align 4, !tbaa !10
  %128 = load i32, ptr %12, align 4, !tbaa !10
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %12, align 4, !tbaa !10
  br label %130

130:                                              ; preds = %125
  %131 = load i32, ptr %25, align 4, !tbaa !10
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %25, align 4, !tbaa !10
  br label %115, !llvm.loop !18

133:                                              ; preds = %123
  %134 = load i32, ptr %25, align 4, !tbaa !10
  %135 = icmp eq i32 %134, 4
  br i1 %135, label %136, label %145

136:                                              ; preds = %133
  %137 = load i32, ptr %19, align 4, !tbaa !10
  %138 = icmp slt i32 %137, 256
  br i1 %138, label %139, label %144

139:                                              ; preds = %136
  %140 = load i32, ptr %19, align 4, !tbaa !10
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %19, align 4, !tbaa !10
  %142 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %143 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %142)
  store i32 %143, ptr %9, align 4, !tbaa !10
  store i32 5, ptr %22, align 4
  br label %146, !llvm.loop !20

144:                                              ; preds = %136
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @_ZN7randomx22SuperscalarInstruction4NullE, i64 34, i1 false), !tbaa.struct !9
  store i32 6, ptr %22, align 4
  br label %146

145:                                              ; preds = %133
  store i32 0, ptr %22, align 4
  br label %146

146:                                              ; preds = %145, %144, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %147 = load i32, ptr %22, align 4
  switch i32 %147, label %254 [
    i32 0, label %148
  ]

148:                                              ; preds = %146
  br label %149

149:                                              ; preds = %148, %109
  %150 = load i32, ptr %9, align 4, !tbaa !10
  %151 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %152 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getDstOpEv(ptr noundef nonnull align 8 dereferenceable(56) %151)
  %153 = icmp eq i32 %150, %152
  br i1 %153, label %154, label %191

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !10
  br label %155

155:                                              ; preds = %172, %154
  %156 = load i32, ptr %26, align 4, !tbaa !10
  %157 = icmp slt i32 %156, 4
  br i1 %157, label %158, label %165

158:                                              ; preds = %155
  %159 = load i32, ptr %24, align 4, !tbaa !10
  %160 = load i32, ptr %19, align 4, !tbaa !10
  %161 = icmp sgt i32 %160, 0
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %8, i32 noundef %159, i1 noundef zeroext %161, ptr noundef nonnull align 4 dereferenceable(128) %6, ptr noundef nonnull align 8 dereferenceable(72) %162)
  %164 = xor i1 %163, true
  br label %165

165:                                              ; preds = %158, %155
  %166 = phi i1 [ false, %155 ], [ %164, %158 ]
  br i1 %166, label %167, label %175

167:                                              ; preds = %165
  %168 = load i32, ptr %24, align 4, !tbaa !10
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %24, align 4, !tbaa !10
  %170 = load i32, ptr %12, align 4, !tbaa !10
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %12, align 4, !tbaa !10
  br label %172

172:                                              ; preds = %167
  %173 = load i32, ptr %26, align 4, !tbaa !10
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %26, align 4, !tbaa !10
  br label %155, !llvm.loop !21

175:                                              ; preds = %165
  %176 = load i32, ptr %26, align 4, !tbaa !10
  %177 = icmp eq i32 %176, 4
  br i1 %177, label %178, label %187

178:                                              ; preds = %175
  %179 = load i32, ptr %19, align 4, !tbaa !10
  %180 = icmp slt i32 %179, 256
  br i1 %180, label %181, label %186

181:                                              ; preds = %178
  %182 = load i32, ptr %19, align 4, !tbaa !10
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %19, align 4, !tbaa !10
  %184 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %185 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %184)
  store i32 %185, ptr %9, align 4, !tbaa !10
  store i32 5, ptr %22, align 4
  br label %188, !llvm.loop !20

186:                                              ; preds = %178
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @_ZN7randomx22SuperscalarInstruction4NullE, i64 34, i1 false), !tbaa.struct !9
  store i32 6, ptr %22, align 4
  br label %188

187:                                              ; preds = %175
  store i32 0, ptr %22, align 4
  br label %188

188:                                              ; preds = %187, %186, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %189 = load i32, ptr %22, align 4
  switch i32 %189, label %254 [
    i32 0, label %190
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190, %149
  store i32 0, ptr %19, align 4, !tbaa !10
  %192 = load ptr, ptr %23, align 8, !tbaa !5
  %193 = load i32, ptr %24, align 4, !tbaa !10
  %194 = load i32, ptr %24, align 4, !tbaa !10
  %195 = call noundef i32 @_ZN7randomxL11scheduleMopILb1EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25) %192, ptr noundef nonnull align 4 dereferenceable(2088) %5, i32 noundef %193, i32 noundef %194)
  store i32 %195, ptr %24, align 4, !tbaa !10
  %196 = load i32, ptr %24, align 4, !tbaa !10
  %197 = icmp slt i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %191
  store i8 1, ptr %15, align 1, !tbaa !14
  store i32 6, ptr %22, align 4
  br label %254

199:                                              ; preds = %191
  %200 = load i32, ptr %24, align 4, !tbaa !10
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = call noundef i32 @_ZNK7randomx7MacroOp10getLatencyEv(ptr noundef nonnull align 8 dereferenceable(25) %201)
  %203 = add nsw i32 %200, %202
  store i32 %203, ptr %13, align 4, !tbaa !10
  %204 = load i32, ptr %9, align 4, !tbaa !10
  %205 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %206 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo11getResultOpEv(ptr noundef nonnull align 8 dereferenceable(56) %205)
  %207 = icmp eq i32 %204, %206
  br i1 %207, label %208, label %223

208:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %209 = call noundef i32 @_ZN7randomx22SuperscalarInstruction14getDestinationEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  store i32 %209, ptr %27, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %210 = load i32, ptr %27, align 4, !tbaa !10
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [8 x %"class.randomx::RegisterInfo"], ptr %6, i64 0, i64 %211
  store ptr %212, ptr %28, align 8, !tbaa !5
  %213 = load i32, ptr %13, align 4, !tbaa !10
  store i32 %213, ptr %14, align 4, !tbaa !10
  %214 = load i32, ptr %14, align 4, !tbaa !10
  %215 = load ptr, ptr %28, align 8, !tbaa !5
  %216 = getelementptr inbounds %"class.randomx::RegisterInfo", ptr %215, i32 0, i32 0
  store i32 %214, ptr %216, align 4, !tbaa !22
  %217 = call noundef i32 @_ZN7randomx22SuperscalarInstruction8getGroupEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %218 = load ptr, ptr %28, align 8, !tbaa !5
  %219 = getelementptr inbounds %"class.randomx::RegisterInfo", ptr %218, i32 0, i32 1
  store i32 %217, ptr %219, align 4, !tbaa !24
  %220 = call noundef i32 @_ZN7randomx22SuperscalarInstruction11getGroupParEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %221 = load ptr, ptr %28, align 8, !tbaa !5
  %222 = getelementptr inbounds %"class.randomx::RegisterInfo", ptr %221, i32 0, i32 2
  store i32 %220, ptr %222, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %223

223:                                              ; preds = %208, %199
  %224 = load ptr, ptr %23, align 8, !tbaa !5
  %225 = call noundef i32 @_ZNK7randomx7MacroOp7getSizeEv(ptr noundef nonnull align 8 dereferenceable(25) %224)
  %226 = load i32, ptr %10, align 4, !tbaa !10
  %227 = add nsw i32 %226, %225
  store i32 %227, ptr %10, align 4, !tbaa !10
  %228 = load i32, ptr %20, align 4, !tbaa !10
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %20, align 4, !tbaa !10
  %230 = load i32, ptr %9, align 4, !tbaa !10
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %9, align 4, !tbaa !10
  %232 = load i32, ptr %11, align 4, !tbaa !10
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %11, align 4, !tbaa !10
  %234 = load i32, ptr %24, align 4, !tbaa !10
  %235 = icmp sge i32 %234, 170
  br i1 %235, label %236, label %237

236:                                              ; preds = %223
  store i8 1, ptr %15, align 1, !tbaa !14
  br label %237

237:                                              ; preds = %236, %223
  %238 = load i32, ptr %21, align 4, !tbaa !10
  store i32 %238, ptr %12, align 4, !tbaa !10
  %239 = load i32, ptr %9, align 4, !tbaa !10
  %240 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %241 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %240)
  %242 = icmp sge i32 %239, %241
  br i1 %242, label %243, label %253

243:                                              ; preds = %237
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  %245 = load i32, ptr %16, align 4, !tbaa !10
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %16, align 4, !tbaa !10
  %247 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200) %244, i32 noundef %245)
  call void @_ZN7randomx22SuperscalarInstruction7toInstrERNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(34) %8, ptr noundef nonnull align 4 dereferenceable(8) %247)
  %248 = call noundef i32 @_ZN7randomx22SuperscalarInstruction7getTypeEv(ptr noundef nonnull align 8 dereferenceable(34) %8)
  %249 = call noundef zeroext i1 @_ZN7randomxL16isMultiplicationENS_26SuperscalarInstructionTypeE(i32 noundef %248)
  %250 = zext i1 %249 to i32
  %251 = load i32, ptr %17, align 4, !tbaa !10
  %252 = add nsw i32 %251, %250
  store i32 %252, ptr %17, align 4, !tbaa !10
  br label %253

253:                                              ; preds = %243, %237
  store i32 0, ptr %22, align 4
  br label %254

254:                                              ; preds = %253, %198, %188, %146, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %255

255:                                              ; preds = %254, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %256 = load i32, ptr %22, align 4
  switch i32 %256, label %387 [
    i32 0, label %257
    i32 6, label %258
    i32 5, label %63
  ]

257:                                              ; preds = %255
  br label %63, !llvm.loop !20

258:                                              ; preds = %255, %63
  %259 = load i32, ptr %12, align 4, !tbaa !10
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %261

261:                                              ; preds = %258
  %262 = load i32, ptr %18, align 4, !tbaa !10
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %18, align 4, !tbaa !10
  br label %45, !llvm.loop !26

264:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %265 = load i32, ptr %11, align 4, !tbaa !10
  %266 = sitofp i32 %265 to double
  %267 = load i32, ptr %14, align 4, !tbaa !10
  %268 = sitofp i32 %267 to double
  %269 = fdiv double %266, %268
  store double %269, ptr %29, align 8, !tbaa !27
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  %271 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %270, i32 0, i32 11
  %272 = getelementptr inbounds [8 x i32], ptr %271, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %272, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !10
  br label %273

273:                                              ; preds = %322, %264
  %274 = load i32, ptr %30, align 4, !tbaa !10
  %275 = load i32, ptr %16, align 4, !tbaa !10
  %276 = icmp slt i32 %274, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %273
  store i32 13, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %325

278:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = load i32, ptr %30, align 4, !tbaa !10
  %281 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200) %279, i32 noundef %280)
  store ptr %281, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %282, i32 0, i32 11
  %284 = load ptr, ptr %31, align 8, !tbaa !5
  %285 = getelementptr inbounds %"class.randomx::Instruction", ptr %284, i32 0, i32 1
  %286 = load i8, ptr %285, align 1, !tbaa !29
  %287 = zext i8 %286 to i64
  %288 = getelementptr inbounds [8 x i32], ptr %283, i64 0, i64 %287
  %289 = load i32, ptr %288, align 4, !tbaa !10
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %32, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %291 = load ptr, ptr %31, align 8, !tbaa !5
  %292 = getelementptr inbounds %"class.randomx::Instruction", ptr %291, i32 0, i32 1
  %293 = load i8, ptr %292, align 1, !tbaa !29
  %294 = zext i8 %293 to i32
  %295 = load ptr, ptr %31, align 8, !tbaa !5
  %296 = getelementptr inbounds %"class.randomx::Instruction", ptr %295, i32 0, i32 2
  %297 = load i8, ptr %296, align 2, !tbaa !31
  %298 = zext i8 %297 to i32
  %299 = icmp ne i32 %294, %298
  br i1 %299, label %300, label %310

300:                                              ; preds = %278
  %301 = load ptr, ptr %3, align 8, !tbaa !5
  %302 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %301, i32 0, i32 11
  %303 = load ptr, ptr %31, align 8, !tbaa !5
  %304 = getelementptr inbounds %"class.randomx::Instruction", ptr %303, i32 0, i32 2
  %305 = load i8, ptr %304, align 2, !tbaa !31
  %306 = zext i8 %305 to i64
  %307 = getelementptr inbounds [8 x i32], ptr %302, i64 0, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !10
  %309 = add nsw i32 %308, 1
  br label %311

310:                                              ; preds = %278
  br label %311

311:                                              ; preds = %310, %300
  %312 = phi i32 [ %309, %300 ], [ 0, %310 ]
  store i32 %312, ptr %33, align 4, !tbaa !10
  %313 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %314 = load i32, ptr %313, align 4, !tbaa !10
  %315 = load ptr, ptr %3, align 8, !tbaa !5
  %316 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %315, i32 0, i32 11
  %317 = load ptr, ptr %31, align 8, !tbaa !5
  %318 = getelementptr inbounds %"class.randomx::Instruction", ptr %317, i32 0, i32 1
  %319 = load i8, ptr %318, align 1, !tbaa !29
  %320 = zext i8 %319 to i64
  %321 = getelementptr inbounds [8 x i32], ptr %316, i64 0, i64 %320
  store i32 %314, ptr %321, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %322

322:                                              ; preds = %311
  %323 = load i32, ptr %30, align 4, !tbaa !10
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %30, align 4, !tbaa !10
  br label %273, !llvm.loop !32

325:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !10
  br label %326

326:                                              ; preds = %358, %325
  %327 = load i32, ptr %36, align 4, !tbaa !10
  %328 = icmp slt i32 %327, 8
  br i1 %328, label %330, label %329

329:                                              ; preds = %326
  store i32 16, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %361

330:                                              ; preds = %326
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %331, i32 0, i32 11
  %333 = load i32, ptr %36, align 4, !tbaa !10
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [8 x i32], ptr %332, i64 0, i64 %334
  %336 = load i32, ptr %335, align 4, !tbaa !10
  %337 = load i32, ptr %34, align 4, !tbaa !10
  %338 = icmp sgt i32 %336, %337
  br i1 %338, label %339, label %347

339:                                              ; preds = %330
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %340, i32 0, i32 11
  %342 = load i32, ptr %36, align 4, !tbaa !10
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [8 x i32], ptr %341, i64 0, i64 %343
  %345 = load i32, ptr %344, align 4, !tbaa !10
  store i32 %345, ptr %34, align 4, !tbaa !10
  %346 = load i32, ptr %36, align 4, !tbaa !10
  store i32 %346, ptr %35, align 4, !tbaa !10
  br label %347

347:                                              ; preds = %339, %330
  %348 = load i32, ptr %36, align 4, !tbaa !10
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [8 x %"class.randomx::RegisterInfo"], ptr %6, i64 0, i64 %349
  %351 = getelementptr inbounds %"class.randomx::RegisterInfo", ptr %350, i32 0, i32 0
  %352 = load i32, ptr %351, align 16, !tbaa !22
  %353 = load ptr, ptr %3, align 8, !tbaa !5
  %354 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %353, i32 0, i32 10
  %355 = load i32, ptr %36, align 4, !tbaa !10
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [8 x i32], ptr %354, i64 0, i64 %356
  store i32 %352, ptr %357, align 4, !tbaa !10
  br label %358

358:                                              ; preds = %347
  %359 = load i32, ptr %36, align 4, !tbaa !10
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %36, align 4, !tbaa !10
  br label %326, !llvm.loop !33

361:                                              ; preds = %329
  %362 = load ptr, ptr %3, align 8, !tbaa !5
  %363 = load i32, ptr %16, align 4, !tbaa !10
  call void @_ZN7randomx18SuperscalarProgram7setSizeEj(ptr noundef nonnull align 8 dereferenceable(4200) %362, i32 noundef %363)
  %364 = load ptr, ptr %3, align 8, !tbaa !5
  %365 = load i32, ptr %35, align 4, !tbaa !10
  call void @_ZN7randomx18SuperscalarProgram18setAddressRegisterEi(ptr noundef nonnull align 8 dereferenceable(4200) %364, i32 noundef %365)
  %366 = load i32, ptr %14, align 4, !tbaa !10
  %367 = load ptr, ptr %3, align 8, !tbaa !5
  %368 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %367, i32 0, i32 7
  store i32 %366, ptr %368, align 4, !tbaa !34
  %369 = load i32, ptr %34, align 4, !tbaa !10
  %370 = load ptr, ptr %3, align 8, !tbaa !5
  %371 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %370, i32 0, i32 8
  store i32 %369, ptr %371, align 8, !tbaa !36
  %372 = load i32, ptr %10, align 4, !tbaa !10
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  %374 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %373, i32 0, i32 4
  store i32 %372, ptr %374, align 8, !tbaa !37
  %375 = load i32, ptr %11, align 4, !tbaa !10
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  %377 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %376, i32 0, i32 5
  store i32 %375, ptr %377, align 4, !tbaa !38
  %378 = load i32, ptr %18, align 4, !tbaa !10
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %379, i32 0, i32 6
  store i32 %378, ptr %380, align 8, !tbaa !39
  %381 = load double, ptr %29, align 8, !tbaa !27
  %382 = load ptr, ptr %3, align 8, !tbaa !5
  %383 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %382, i32 0, i32 3
  store double %381, ptr %383, align 8, !tbaa !40
  %384 = load i32, ptr %17, align 4, !tbaa !10
  %385 = load ptr, ptr %3, align 8, !tbaa !5
  %386 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %385, i32 0, i32 9
  store i32 %384, ptr %386, align 4, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 2088, ptr %5) #6
  ret void

387:                                              ; preds = %255
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7randomx13DecoderBuffer9fetchNextENS_26SuperscalarInstructionTypeEiiRNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction7getTypeEv(ptr noundef nonnull align 8 dereferenceable(34)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7randomx22SuperscalarInstruction13createForSlotERNS_15Blake2GeneratorEiibb(ptr noundef nonnull align 8 dereferenceable(34), ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx13DecoderBuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZNK7randomx26SuperscalarInstructionInfo5getOpEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7randomxL11scheduleMopILb0EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(2088), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getSrcOpEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34), i32 noundef, ptr noundef nonnull align 4 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getDstOpEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34), i32 noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7randomxL11scheduleMopILb1EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(2088), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx7MacroOp10getLatencyEv(ptr noundef nonnull align 8 dereferenceable(25)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo11getResultOpEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction14getDestinationEv(ptr noundef nonnull align 8 dereferenceable(34)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction8getGroupEv(ptr noundef nonnull align 8 dereferenceable(34)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction11getGroupParEv(ptr noundef nonnull align 8 dereferenceable(34)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx7MacroOp7getSizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN7randomxL16isMultiplicationENS_26SuperscalarInstructionTypeE(i32 noundef) #4

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx18SuperscalarProgram7setSizeEj(ptr noundef nonnull align 8 dereferenceable(4200), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx18SuperscalarProgram18setAddressRegisterEi(ptr noundef nonnull align 8 dereferenceable(4200), i32 noundef) #4 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = { 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 = !{i64 0, i64 8, !5, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 4, !10, i64 20, i64 4, !10, i64 24, i64 4, !12, i64 28, i64 4, !10, i64 32, i64 1, !14, i64 33, i64 1, !14}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN7randomx26SuperscalarInstructionTypeE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = !{!23, !11, i64 0}
!23 = !{!"_ZTSN7randomx12RegisterInfoE", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12}
!24 = !{!23, !13, i64 4}
!25 = !{!23, !11, i64 8}
!26 = distinct !{!26, !19}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = !{!30, !7, i64 1}
!30 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !11, i64 4}
!31 = !{!30, !7, i64 2}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = !{!35, !11, i64 4124}
!35 = !{!"_ZTSN7randomx18SuperscalarProgramE", !7, i64 0, !11, i64 4096, !11, i64 4100, !28, i64 4104, !11, i64 4112, !11, i64 4116, !11, i64 4120, !11, i64 4124, !11, i64 4128, !11, i64 4132, !7, i64 4136, !7, i64 4168}
!36 = !{!35, !11, i64 4128}
!37 = !{!35, !11, i64 4112}
!38 = !{!35, !11, i64 4116}
!39 = !{!35, !11, i64 4120}
!40 = !{!35, !28, i64 4104}
!41 = !{!35, !11, i64 4132}


; 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.randomx::DecoderBuffer" = type <{ ptr, i32, [4 x i8], ptr, i32, [4 x i8] }>
%"class.randomx::SuperscalarInstruction" = type <{ ptr, i32, i32, i32, i32, i32, i32, i8, i8, [6 x i8] }>
%"class.randomx::RegisterInfo" = type { i32, i32, i32, i32 }

@_ZN7randomx13DecoderBuffer7DefaultE = external dso_local global %"class.randomx::DecoderBuffer", align 8
@_ZN7randomx22SuperscalarInstruction4NullE = external dso_local local_unnamed_addr global %"class.randomx::SuperscalarInstruction", align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7randomx19generateSuperscalarERNS_18SuperscalarProgramERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(4200) %0, ptr noundef nonnull align 8 dereferenceable(72) %1) local_unnamed_addr #1 {
  %3 = alloca [174 x [3 x i32]], align 16
  %4 = alloca [8 x %"class.randomx::RegisterInfo"], align 16
  %5 = alloca %"class.randomx::SuperscalarInstruction", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 2088, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2088) %3, i8 0, i64 2088, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #7
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %4)
  %.ptr.1 = getelementptr inbounds i8, ptr %4, i64 16
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %4, i64 32
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %4, i64 48
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %4, i64 64
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.4)
  %.ptr.5 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.5)
  %.ptr.6 = getelementptr inbounds i8, ptr %4, i64 96
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.6)
  %.ptr.7 = getelementptr inbounds i8, ptr %4, i64 112
  call void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %.ptr.7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) @_ZN7randomx22SuperscalarInstruction4NullE, i64 40, i1 false), !tbaa.struct !5
  br label %8

8:                                                ; preds = %2, %.thread242
  %.0130371 = phi ptr [ @_ZN7randomx13DecoderBuffer7DefaultE, %2 ], [ %10, %.thread242 ]
  %.0132370 = phi i32 [ 0, %2 ], [ %.9, %.thread242 ]
  %.0134369 = phi i32 [ 0, %2 ], [ %.1135282, %.thread242 ]
  %.0139368 = phi i32 [ 0, %2 ], [ %.1140285, %.thread242 ]
  %.0150367 = phi i32 [ 0, %2 ], [ %108, %.thread242 ]
  %.0163366 = phi i32 [ 0, %2 ], [ %.1164288, %.thread242 ]
  %.0171365 = phi i32 [ 0, %2 ], [ %.7178, %.thread242 ]
  %.0179364 = phi i32 [ 0, %2 ], [ %109, %.thread242 ]
  %.0180363 = phi i32 [ 0, %2 ], [ %.1181293, %.thread242 ]
  %.0186362 = phi i32 [ 0, %2 ], [ %.1187296, %.thread242 ]
  %.0192361 = phi i8 [ 0, %2 ], [ %.5197, %.thread242 ]
  %.0198360 = phi i32 [ 0, %2 ], [ %.1199301, %.thread242 ]
  %9 = call noundef i32 @_ZN7randomx22SuperscalarInstruction7getTypeEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %10 = call noundef ptr @_ZNK7randomx13DecoderBuffer9fetchNextENS_26SuperscalarInstructionTypeEiiRNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(28) %.0130371, i32 noundef %9, i32 noundef %.0179364, i32 noundef %.0180363, ptr noundef nonnull align 8 dereferenceable(72) %1)
  %11 = call noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %.thread242

.lr.ph:                                           ; preds = %8, %.thread
  %.1133318 = phi i32 [ %.8, %.thread ], [ %.0132370, %8 ]
  %.1135317 = phi i32 [ %.3137, %.thread ], [ %.0134369, %8 ]
  %.1140316 = phi i32 [ %.3142, %.thread ], [ %.0139368, %8 ]
  %.1151315 = phi i32 [ %.7157, %.thread ], [ %.0150367, %8 ]
  %.1164314 = phi i32 [ %.3166, %.thread ], [ %.0163366, %8 ]
  %.0168313 = phi i32 [ %.2170, %.thread ], [ 0, %8 ]
  %.1172312 = phi i32 [ %.6177, %.thread ], [ %.0171365, %8 ]
  %.1181311 = phi i32 [ %.4184, %.thread ], [ %.0180363, %8 ]
  %.1187310 = phi i32 [ %.4190, %.thread ], [ %.0186362, %8 ]
  %.1193309 = phi i8 [ %.4196, %.thread ], [ %.0192361, %8 ]
  %.1199308 = phi i32 [ %.4202, %.thread ], [ %.0198360, %8 ]
  %13 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %14 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %13)
  %.not209 = icmp slt i32 %.1133318, %14
  br i1 %.not209, label %28, label %15

15:                                               ; preds = %.lr.ph
  %16 = trunc nuw i8 %.1193309 to i1
  %17 = icmp sgt i32 %.1187310, 511
  %or.cond = select i1 %16, i1 true, i1 %17
  br i1 %or.cond, label %.thread242, label %18

18:                                               ; preds = %15
  %19 = call noundef ptr @_ZNK7randomx13DecoderBuffer9getCountsEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  %20 = sext i32 %.0168313 to i64
  %21 = getelementptr inbounds i32, ptr %19, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !10
  %23 = call noundef i32 @_ZNK7randomx13DecoderBuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  %24 = call noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  %25 = add nsw i32 %.0168313, 1
  %26 = icmp eq i32 %24, %25
  %27 = icmp eq i32 %.0168313, 0
  call void @_ZN7randomx22SuperscalarInstruction13createForSlotERNS_15Blake2GeneratorEiibb(ptr noundef nonnull align 8 dereferenceable(34) %5, ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %22, i32 noundef %23, i1 noundef zeroext %26, i1 noundef zeroext %27)
  br label %28

28:                                               ; preds = %18, %.lr.ph
  %.2 = phi i32 [ 0, %18 ], [ %.1133318, %.lr.ph ]
  %29 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %30 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNK7randomx26SuperscalarInstructionInfo5getOpEi(ptr noundef nonnull align 8 dereferenceable(56) %29, i32 noundef %.2)
  %31 = call noundef i32 @_ZN7randomxL11scheduleMopILb0EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25) %30, ptr noundef nonnull align 4 dereferenceable(2088) %3, i32 noundef %.1151315, i32 noundef %.1164314)
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.thread242.thread, label %33

33:                                               ; preds = %28
  %34 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %35 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getSrcOpEv(ptr noundef nonnull align 8 dereferenceable(56) %34)
  %36 = icmp eq i32 %.2, %35
  br i1 %36, label %.preheader272.preheader, label %.thread223

.preheader272.preheader:                          ; preds = %33
  %37 = add i32 %.1151315, 4
  %38 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %31, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %38, label %.thread223, label %.preheader272.1

.preheader272.1:                                  ; preds = %.preheader272.preheader
  %39 = add nuw nsw i32 %31, 1
  %40 = add nsw i32 %.1151315, 1
  %41 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %39, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %41, label %.thread223, label %.preheader272.2

.preheader272.2:                                  ; preds = %.preheader272.1
  %42 = add nuw nsw i32 %31, 2
  %43 = add nsw i32 %.1151315, 2
  %44 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %42, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %44, label %.thread223, label %.preheader272.3

.preheader272.3:                                  ; preds = %.preheader272.2
  %45 = add nuw nsw i32 %31, 3
  %46 = add nsw i32 %.1151315, 3
  %47 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %45, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %47, label %.thread223, label %.critedge4

.critedge4:                                       ; preds = %.preheader272.3
  %48 = icmp slt i32 %.1172312, 256
  br i1 %48, label %49, label %.thread242.sink.split

49:                                               ; preds = %.critedge4
  %50 = add nsw i32 %.1172312, 1
  %51 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %52 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %51)
  br label %.thread, !llvm.loop !16

.thread223:                                       ; preds = %.preheader272.preheader, %.preheader272.1, %.preheader272.2, %.preheader272.3, %33
  %.3153 = phi i32 [ %.1151315, %33 ], [ %.1151315, %.preheader272.preheader ], [ %40, %.preheader272.1 ], [ %43, %.preheader272.2 ], [ %46, %.preheader272.3 ]
  %.1147 = phi i32 [ %31, %33 ], [ %31, %.preheader272.preheader ], [ %39, %.preheader272.1 ], [ %42, %.preheader272.2 ], [ %45, %.preheader272.3 ]
  %53 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %54 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getDstOpEv(ptr noundef nonnull align 8 dereferenceable(56) %53)
  %55 = icmp eq i32 %.2, %54
  br i1 %55, label %.preheader271, label %.thread236

.preheader271:                                    ; preds = %.thread223
  %56 = icmp sgt i32 %.1172312, 0
  %57 = add i32 %.3153, 4
  %58 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %.1147, i1 noundef zeroext %56, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %58, label %.thread236, label %59

59:                                               ; preds = %.preheader271
  %60 = add nuw nsw i32 %.1147, 1
  %61 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %60, i1 noundef zeroext %56, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %61, label %.thread236, label %62

62:                                               ; preds = %59
  %63 = add nuw nsw i32 %.1147, 2
  %64 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %63, i1 noundef zeroext %56, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %64, label %.thread236, label %65

65:                                               ; preds = %62
  %66 = add nuw nsw i32 %.1147, 3
  %67 = call noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34) %5, i32 noundef %66, i1 noundef zeroext %56, ptr noundef nonnull align 4 dereferenceable(128) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %67, label %.thread236, label %.critedge6

.critedge6:                                       ; preds = %65
  %68 = icmp slt i32 %.1172312, 256
  br i1 %68, label %69, label %.thread242.sink.split

69:                                               ; preds = %.critedge6
  %70 = add nsw i32 %.1172312, 1
  %71 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %72 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %71)
  br label %.thread, !llvm.loop !16

.thread236:                                       ; preds = %.preheader271, %59, %62, %65, %.thread223
  %.3149 = phi i32 [ %.1147, %.thread223 ], [ %.1147, %.preheader271 ], [ %60, %59 ], [ %63, %62 ], [ %66, %65 ]
  %73 = call noundef i32 @_ZN7randomxL11scheduleMopILb1EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25) %30, ptr noundef nonnull align 4 dereferenceable(2088) %3, i32 noundef %.3149, i32 noundef %.3149)
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %.thread242.thread, label %75

75:                                               ; preds = %.thread236
  %76 = call noundef i32 @_ZNK7randomx7MacroOp10getLatencyEv(ptr noundef nonnull align 8 dereferenceable(25) %30)
  %77 = add nsw i32 %76, %73
  %78 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %79 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo11getResultOpEv(ptr noundef nonnull align 8 dereferenceable(56) %78)
  %80 = icmp eq i32 %.2, %79
  br i1 %80, label %81, label %89

81:                                               ; preds = %75
  %82 = call noundef i32 @_ZN7randomx22SuperscalarInstruction14getDestinationEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [8 x %"class.randomx::RegisterInfo"], ptr %4, i64 0, i64 %83
  store i32 %77, ptr %84, align 16, !tbaa !18
  %85 = call noundef i32 @_ZN7randomx22SuperscalarInstruction8getGroupEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %86 = getelementptr inbounds i8, ptr %84, i64 4
  store i32 %85, ptr %86, align 4, !tbaa !20
  %87 = call noundef i32 @_ZN7randomx22SuperscalarInstruction11getGroupParEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %88 = getelementptr inbounds i8, ptr %84, i64 8
  store i32 %87, ptr %88, align 8, !tbaa !21
  br label %89

89:                                               ; preds = %81, %75
  %.2200 = phi i32 [ %77, %81 ], [ %.1199308, %75 ]
  %90 = call noundef i32 @_ZNK7randomx7MacroOp7getSizeEv(ptr noundef nonnull align 8 dereferenceable(25) %30)
  %91 = add nsw i32 %90, %.1135317
  %92 = add nsw i32 %.0168313, 1
  %93 = add nsw i32 %.2, 1
  %94 = add nsw i32 %.1140316, 1
  %95 = icmp ugt i32 %73, 169
  %spec.select = select i1 %95, i8 1, i8 %.1193309
  %96 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %97 = call noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56) %96)
  %.not212 = icmp slt i32 %93, %97
  br i1 %.not212, label %.thread, label %98

98:                                               ; preds = %89
  %99 = add nsw i32 %.1187310, 1
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200) %0, i32 noundef %.1187310)
  call void @_ZN7randomx22SuperscalarInstruction7toInstrERNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(34) %5, ptr noundef nonnull align 4 dereferenceable(8) %100)
  %101 = call noundef i32 @_ZN7randomx22SuperscalarInstruction7getTypeEv(ptr noundef nonnull align 8 dereferenceable(34) %5)
  %102 = call noundef zeroext i1 @_ZN7randomxL16isMultiplicationENS_26SuperscalarInstructionTypeE(i32 noundef %101)
  %103 = zext i1 %102 to i32
  %104 = add nsw i32 %.1181311, %103
  br label %.thread

.thread:                                          ; preds = %69, %49, %98, %89
  %.4202 = phi i32 [ %.2200, %98 ], [ %.2200, %89 ], [ %.1199308, %49 ], [ %.1199308, %69 ]
  %.4196 = phi i8 [ %spec.select, %98 ], [ %spec.select, %89 ], [ %.1193309, %49 ], [ %.1193309, %69 ]
  %.4190 = phi i32 [ %99, %98 ], [ %.1187310, %89 ], [ %.1187310, %49 ], [ %.1187310, %69 ]
  %.4184 = phi i32 [ %104, %98 ], [ %.1181311, %89 ], [ %.1181311, %49 ], [ %.1181311, %69 ]
  %.6177 = phi i32 [ 0, %98 ], [ 0, %89 ], [ %50, %49 ], [ %70, %69 ]
  %.2170 = phi i32 [ %92, %98 ], [ %92, %89 ], [ %.0168313, %49 ], [ %.0168313, %69 ]
  %.3166 = phi i32 [ %77, %98 ], [ %77, %89 ], [ %.1164314, %49 ], [ %.1164314, %69 ]
  %.7157 = phi i32 [ %.1151315, %98 ], [ %.1151315, %89 ], [ %37, %49 ], [ %57, %69 ]
  %.3142 = phi i32 [ %94, %98 ], [ %94, %89 ], [ %.1140316, %49 ], [ %.1140316, %69 ]
  %.3137 = phi i32 [ %91, %98 ], [ %91, %89 ], [ %.1135317, %49 ], [ %.1135317, %69 ]
  %.8 = phi i32 [ %93, %98 ], [ %93, %89 ], [ %52, %49 ], [ %72, %69 ]
  %105 = call noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  %106 = icmp slt i32 %.2170, %105
  br i1 %106, label %.lr.ph, label %.thread242

.thread242.thread:                                ; preds = %.thread236, %28
  %107 = add nuw nsw i32 %.0179364, 1
  br label %.critedge

.thread242.sink.split:                            ; preds = %.critedge6, %.critedge4
  %.8158.ph = phi i32 [ %37, %.critedge4 ], [ %57, %.critedge6 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(34) %5, ptr noundef nonnull align 8 dereferenceable(34) @_ZN7randomx22SuperscalarInstruction4NullE, i64 34, i1 false)
  br label %.thread242

.thread242:                                       ; preds = %.thread, %15, %.thread242.sink.split, %8
  %.1199301 = phi i32 [ %.0198360, %8 ], [ %.1199308, %.thread242.sink.split ], [ %.4202, %.thread ], [ %.1199308, %15 ]
  %.1187296 = phi i32 [ %.0186362, %8 ], [ %.1187310, %.thread242.sink.split ], [ %.4190, %.thread ], [ %.1187310, %15 ]
  %.1181293 = phi i32 [ %.0180363, %8 ], [ %.1181311, %.thread242.sink.split ], [ %.4184, %.thread ], [ %.1181311, %15 ]
  %.1164288 = phi i32 [ %.0163366, %8 ], [ %.1164314, %.thread242.sink.split ], [ %.3166, %.thread ], [ %.1164314, %15 ]
  %.1140285 = phi i32 [ %.0139368, %8 ], [ %.1140316, %.thread242.sink.split ], [ %.3142, %.thread ], [ %.1140316, %15 ]
  %.1135282 = phi i32 [ %.0134369, %8 ], [ %.1135317, %.thread242.sink.split ], [ %.3137, %.thread ], [ %.1135317, %15 ]
  %.5197 = phi i8 [ %.0192361, %8 ], [ %.1193309, %.thread242.sink.split ], [ %.4196, %.thread ], [ %.1193309, %15 ]
  %.7178 = phi i32 [ %.0171365, %8 ], [ %.1172312, %.thread242.sink.split ], [ %.6177, %.thread ], [ %.1172312, %15 ]
  %.8158 = phi i32 [ %.0150367, %8 ], [ %.8158.ph, %.thread242.sink.split ], [ %.7157, %.thread ], [ %.1151315, %15 ]
  %.9 = phi i32 [ %.0132370, %8 ], [ %.2, %.thread242.sink.split ], [ %.8, %.thread ], [ %.1133318, %15 ]
  %108 = add nsw i32 %.8158, 1
  %109 = add nuw nsw i32 %.0179364, 1
  %110 = icmp ugt i32 %.0179364, 168
  %111 = trunc nuw i8 %.5197 to i1
  %112 = icmp sgt i32 %.1187296, 511
  %113 = select i1 %110, i1 true, i1 %111
  %or.cond214 = select i1 %113, i1 true, i1 %112
  br i1 %or.cond214, label %.critedge, label %8, !llvm.loop !22

.critedge:                                        ; preds = %.thread242, %.thread242.thread
  %114 = phi i32 [ %107, %.thread242.thread ], [ %109, %.thread242 ]
  %.1135282434 = phi i32 [ %.1135317, %.thread242.thread ], [ %.1135282, %.thread242 ]
  %.1140285433 = phi i32 [ %.1140316, %.thread242.thread ], [ %.1140285, %.thread242 ]
  %.1181293432 = phi i32 [ %.1181311, %.thread242.thread ], [ %.1181293, %.thread242 ]
  %.1187296431 = phi i32 [ %.1187310, %.thread242.thread ], [ %.1187296, %.thread242 ]
  %.1199301430 = phi i32 [ %.1199308, %.thread242.thread ], [ %.1199301, %.thread242 ]
  %115 = getelementptr inbounds i8, ptr %0, i64 4168
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %115, i8 0, i64 32, i1 false)
  %116 = icmp sgt i32 %.1187296431, 0
  br i1 %116, label %.lr.ph373, label %.preheader

.preheader.loopexit:                              ; preds = %172
  %.pre = load i32, ptr %115, align 8, !tbaa !10
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 4172
  %.pre406 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !10
  %.phi.trans.insert407 = getelementptr inbounds i8, ptr %0, i64 4176
  %.pre408 = load i32, ptr %.phi.trans.insert407, align 8, !tbaa !10
  %.phi.trans.insert409 = getelementptr inbounds i8, ptr %0, i64 4180
  %.pre410 = load i32, ptr %.phi.trans.insert409, align 4, !tbaa !10
  %.phi.trans.insert411 = getelementptr inbounds i8, ptr %0, i64 4184
  %.pre412 = load i32, ptr %.phi.trans.insert411, align 8, !tbaa !10
  %.phi.trans.insert413 = getelementptr inbounds i8, ptr %0, i64 4188
  %.pre414 = load i32, ptr %.phi.trans.insert413, align 4, !tbaa !10
  %.phi.trans.insert415 = getelementptr inbounds i8, ptr %0, i64 4192
  %.pre416 = load i32, ptr %.phi.trans.insert415, align 8, !tbaa !10
  %.phi.trans.insert417 = getelementptr inbounds i8, ptr %0, i64 4196
  %.pre418 = load i32, ptr %.phi.trans.insert417, align 4, !tbaa !10
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.critedge
  %117 = phi i32 [ %.pre418, %.preheader.loopexit ], [ 0, %.critedge ]
  %118 = phi i32 [ %.pre416, %.preheader.loopexit ], [ 0, %.critedge ]
  %119 = phi i32 [ %.pre414, %.preheader.loopexit ], [ 0, %.critedge ]
  %120 = phi i32 [ %.pre412, %.preheader.loopexit ], [ 0, %.critedge ]
  %121 = phi i32 [ %.pre410, %.preheader.loopexit ], [ 0, %.critedge ]
  %122 = phi i32 [ %.pre408, %.preheader.loopexit ], [ 0, %.critedge ]
  %123 = phi i32 [ %.pre406, %.preheader.loopexit ], [ 0, %.critedge ]
  %124 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %.critedge ]
  %125 = getelementptr inbounds i8, ptr %0, i64 4136
  %spec.select215 = call i32 @llvm.smax.i32(i32 %124, i32 0)
  %126 = load i32, ptr %4, align 16, !tbaa !18
  store i32 %126, ptr %125, align 8, !tbaa !10
  %127 = icmp sgt i32 %123, %spec.select215
  %spec.select215.1 = call i32 @llvm.smax.i32(i32 %123, i32 %spec.select215)
  %spec.select216.1 = zext i1 %127 to i32
  %128 = load i32, ptr %.ptr.1, align 16, !tbaa !18
  %129 = getelementptr inbounds i8, ptr %0, i64 4140
  store i32 %128, ptr %129, align 4, !tbaa !10
  %130 = icmp sgt i32 %122, %spec.select215.1
  %spec.select215.2 = call i32 @llvm.smax.i32(i32 %122, i32 %spec.select215.1)
  %spec.select216.2 = select i1 %130, i32 2, i32 %spec.select216.1
  %131 = load i32, ptr %.ptr.2, align 16, !tbaa !18
  %132 = getelementptr inbounds i8, ptr %0, i64 4144
  store i32 %131, ptr %132, align 8, !tbaa !10
  %133 = icmp sgt i32 %121, %spec.select215.2
  %spec.select215.3 = call i32 @llvm.smax.i32(i32 %121, i32 %spec.select215.2)
  %spec.select216.3 = select i1 %133, i32 3, i32 %spec.select216.2
  %134 = load i32, ptr %.ptr.3, align 16, !tbaa !18
  %135 = getelementptr inbounds i8, ptr %0, i64 4148
  store i32 %134, ptr %135, align 4, !tbaa !10
  %136 = icmp sgt i32 %120, %spec.select215.3
  %spec.select215.4 = call i32 @llvm.smax.i32(i32 %120, i32 %spec.select215.3)
  %spec.select216.4 = select i1 %136, i32 4, i32 %spec.select216.3
  %137 = load i32, ptr %.ptr.4, align 16, !tbaa !18
  %138 = getelementptr inbounds i8, ptr %0, i64 4152
  store i32 %137, ptr %138, align 8, !tbaa !10
  %139 = icmp sgt i32 %119, %spec.select215.4
  %spec.select215.5 = call i32 @llvm.smax.i32(i32 %119, i32 %spec.select215.4)
  %spec.select216.5 = select i1 %139, i32 5, i32 %spec.select216.4
  %140 = load i32, ptr %.ptr.5, align 16, !tbaa !18
  %141 = getelementptr inbounds i8, ptr %0, i64 4156
  store i32 %140, ptr %141, align 4, !tbaa !10
  %142 = icmp sgt i32 %118, %spec.select215.5
  %spec.select215.6 = call i32 @llvm.smax.i32(i32 %118, i32 %spec.select215.5)
  %spec.select216.6 = select i1 %142, i32 6, i32 %spec.select216.5
  %143 = load i32, ptr %.ptr.6, align 16, !tbaa !18
  %144 = getelementptr inbounds i8, ptr %0, i64 4160
  store i32 %143, ptr %144, align 8, !tbaa !10
  %145 = icmp sgt i32 %117, %spec.select215.6
  %spec.select215.7 = call i32 @llvm.smax.i32(i32 %117, i32 %spec.select215.6)
  %spec.select216.7 = select i1 %145, i32 7, i32 %spec.select216.6
  %146 = load i32, ptr %.ptr.7, align 16, !tbaa !18
  %147 = getelementptr inbounds i8, ptr %0, i64 4164
  store i32 %146, ptr %147, align 4, !tbaa !10
  %148 = sitofp i32 %.1140285433 to double
  %149 = sitofp i32 %.1199301430 to double
  %150 = fdiv double %148, %149
  call void @_ZN7randomx18SuperscalarProgram7setSizeEj(ptr noundef nonnull align 8 dereferenceable(4200) %0, i32 noundef %.1187296431)
  call void @_ZN7randomx18SuperscalarProgram18setAddressRegisterEi(ptr noundef nonnull align 8 dereferenceable(4200) %0, i32 noundef %spec.select216.7)
  %151 = getelementptr inbounds i8, ptr %0, i64 4124
  store i32 %.1199301430, ptr %151, align 4, !tbaa !23
  %152 = getelementptr inbounds i8, ptr %0, i64 4128
  store i32 %spec.select215.7, ptr %152, align 8, !tbaa !26
  %153 = getelementptr inbounds i8, ptr %0, i64 4112
  store i32 %.1135282434, ptr %153, align 8, !tbaa !27
  %154 = getelementptr inbounds i8, ptr %0, i64 4116
  store i32 %.1140285433, ptr %154, align 4, !tbaa !28
  %155 = getelementptr inbounds i8, ptr %0, i64 4120
  store i32 %114, ptr %155, align 8, !tbaa !29
  %156 = getelementptr inbounds i8, ptr %0, i64 4104
  store double %150, ptr %156, align 8, !tbaa !30
  %157 = getelementptr inbounds i8, ptr %0, i64 4132
  store i32 %.1181293432, ptr %157, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 2088, ptr nonnull %3) #7
  ret void

.lr.ph373:                                        ; preds = %.critedge, %172
  %.0131372 = phi i32 [ %179, %172 ], [ 0, %.critedge ]
  %158 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200) %0, i32 noundef %.0131372)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %159 = getelementptr inbounds i8, ptr %158, i64 1
  %160 = load i8, ptr %159, align 1, !tbaa !32
  %161 = zext i8 %160 to i64
  %162 = getelementptr inbounds [8 x i32], ptr %115, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !10
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %165 = getelementptr inbounds i8, ptr %158, i64 2
  %166 = load i8, ptr %165, align 2, !tbaa !34
  %.not = icmp eq i8 %160, %166
  br i1 %.not, label %172, label %167

167:                                              ; preds = %.lr.ph373
  %168 = zext i8 %166 to i64
  %169 = getelementptr inbounds [8 x i32], ptr %115, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !10
  %171 = add nsw i32 %170, 1
  br label %172

172:                                              ; preds = %.lr.ph373, %167
  %173 = phi i32 [ %171, %167 ], [ 0, %.lr.ph373 ]
  store i32 %173, ptr %7, align 4, !tbaa !10
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %175 = load i32, ptr %174, align 4, !tbaa !10
  %176 = load i8, ptr %159, align 1, !tbaa !32
  %177 = zext i8 %176 to i64
  %178 = getelementptr inbounds [8 x i32], ptr %115, i64 0, i64 %177
  store i32 %175, ptr %178, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %179 = add nuw nsw i32 %.0131372, 1
  %exitcond.not = icmp eq i32 %179, %.1187296431
  br i1 %exitcond.not, label %.preheader.loopexit, label %.lr.ph373, !llvm.loop !35
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx12RegisterInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7randomx13DecoderBuffer9fetchNextENS_26SuperscalarInstructionTypeEiiRNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction7getTypeEv(ptr noundef nonnull align 8 dereferenceable(34)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx13DecoderBuffer7getSizeEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7randomx22SuperscalarInstruction7getInfoEv(ptr noundef nonnull align 8 dereferenceable(34)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo7getSizeEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7randomx22SuperscalarInstruction13createForSlotERNS_15Blake2GeneratorEiibb(ptr noundef nonnull align 8 dereferenceable(34), ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx13DecoderBuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7randomxL11scheduleMopILb0EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(2088), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getSrcOpEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction12selectSourceEiRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34), i32 noundef, ptr noundef nonnull align 4 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo8getDstOpEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7randomx22SuperscalarInstruction17selectDestinationEibRA8_NS_12RegisterInfoERNS_15Blake2GeneratorE(ptr noundef nonnull align 8 dereferenceable(34), i32 noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7randomxL11scheduleMopILb1EEEiRKNS_7MacroOpERA174_A3_iii(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(2088), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx7MacroOp10getLatencyEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx26SuperscalarInstructionInfo11getResultOpEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction14getDestinationEv(ptr noundef nonnull align 8 dereferenceable(34)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction8getGroupEv(ptr noundef nonnull align 8 dereferenceable(34)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx22SuperscalarInstruction11getGroupParEv(ptr noundef nonnull align 8 dereferenceable(34)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7randomx7MacroOp7getSizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN7randomxL16isMultiplicationENS_26SuperscalarInstructionTypeE(i32 noundef) local_unnamed_addr #4

; 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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{i64 0, i64 8, !6, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 4, !10, i64 20, i64 4, !10, i64 24, i64 4, !12, i64 28, i64 4, !10, i64 32, i64 1, !14, i64 33, i64 1, !14}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN7randomx26SuperscalarInstructionTypeE", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTSN7randomx12RegisterInfoE", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12}
!20 = !{!19, !13, i64 4}
!21 = !{!19, !11, i64 8}
!22 = distinct !{!22, !17}
!23 = !{!24, !11, i64 4124}
!24 = !{!"_ZTSN7randomx18SuperscalarProgramE", !8, i64 0, !11, i64 4096, !11, i64 4100, !25, i64 4104, !11, i64 4112, !11, i64 4116, !11, i64 4120, !11, i64 4124, !11, i64 4128, !11, i64 4132, !8, i64 4136, !8, i64 4168}
!25 = !{!"double", !8, i64 0}
!26 = !{!24, !11, i64 4128}
!27 = !{!24, !11, i64 4112}
!28 = !{!24, !11, i64 4116}
!29 = !{!24, !11, i64 4120}
!30 = !{!24, !25, i64 4104}
!31 = !{!24, !11, i64 4132}
!32 = !{!33, !8, i64 1}
!33 = !{!"_ZTSN7randomx11InstructionE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !11, i64 4}
!34 = !{!33, !8, i64 2}
!35 = distinct !{!35, !17}


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