; LLVM IR from Waqar144/simplecrypto-cxx :: simplecrypto-cxx/sha224.ll (Z16sha224_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::array.1" = type { [64 x i32] }
%"struct.std::array" = type { [16 x i32] }

@_ZL4K256 = external hidden constant %"struct.std::array.1", align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16sha224_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::array", align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %21, i64 noundef 0) #6
  %23 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %24, i64 noundef 1) #6
  %26 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %26, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %27, i64 noundef 2) #6
  %29 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %29, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %30, i64 noundef 3) #6
  %32 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %33, i64 noundef 4) #6
  %35 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %35, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %36, i64 noundef 5) #6
  %38 = load i32, ptr %37, align 4, !tbaa !9
  store i32 %38, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %39, i64 noundef 6) #6
  %41 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %41, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %42, i64 noundef 7) #6
  %44 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %44, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call noundef ptr @_ZNKSt5arrayIjLm16EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64) %45) #6
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call noundef ptr @_ZNKSt5arrayIjLm16EE3endEv(ptr noundef nonnull align 4 dereferenceable(64) %47) #6
  %49 = call noundef ptr @_ZNSt5arrayIjLm16EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64) %17) #7
  %50 = call noundef ptr @_ZSt4copyIPKjPjET0_T_S4_S3_(ptr noundef %46, ptr noundef %48, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %92, %3
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = call noundef i32 @_Z6Sigma1j(i32 noundef %53)
  %55 = add i32 %52, %54
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = call noundef i32 @_Z2Chjjj(i32 noundef %56, i32 noundef %57, i32 noundef %58)
  %60 = add i32 %55, %59
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EE2atEm(ptr noundef nonnull align 4 dereferenceable(256) @_ZL4K256, i64 noundef %62)
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = add i32 %60, %64
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %17, i64 noundef %67)
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = add i32 %65, %69
  store i32 %70, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = call noundef i32 @_Z6Sigma0j(i32 noundef %71)
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = call noundef i32 @_Z3Majjjj(i32 noundef %73, i32 noundef %74, i32 noundef %75)
  %77 = add i32 %72, %76
  store i32 %77, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %78, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = add i32 %81, %82
  store i32 %83, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %84, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %85, ptr %9, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %8, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = add i32 %87, %88
  store i32 %89, ptr %7, align 4, !tbaa !9
  %90 = load i32, ptr %18, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %18, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %51
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 16
  br i1 %94, label %51, label %95, !llvm.loop !11

95:                                               ; preds = %92
  br label %96

96:                                               ; preds = %165, %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %97 = load i32, ptr %18, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  %99 = and i32 %98, 15
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %17, i64 noundef %100)
  %102 = load i32, ptr %101, align 4, !tbaa !9
  store i32 %102, ptr %19, align 4, !tbaa !9
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = call noundef i32 @_Z6sigma0j(i32 noundef %103)
  store i32 %104, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = add nsw i32 %105, 14
  %107 = and i32 %106, 15
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %17, i64 noundef %108)
  %110 = load i32, ptr %109, align 4, !tbaa !9
  store i32 %110, ptr %20, align 4, !tbaa !9
  %111 = load i32, ptr %20, align 4, !tbaa !9
  %112 = call noundef i32 @_Z6sigma1j(i32 noundef %111)
  store i32 %112, ptr %20, align 4, !tbaa !9
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = call noundef i32 @_Z6Sigma1j(i32 noundef %114)
  %116 = add i32 %113, %115
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = call noundef i32 @_Z2Chjjj(i32 noundef %117, i32 noundef %118, i32 noundef %119)
  %121 = add i32 %116, %120
  %122 = load i32, ptr %18, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EE2atEm(ptr noundef nonnull align 4 dereferenceable(256) @_ZL4K256, i64 noundef %123)
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = add i32 %121, %125
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = load i32, ptr %18, align 4, !tbaa !9
  %129 = add nsw i32 %128, 9
  %130 = and i32 %129, 15
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %17, i64 noundef %131)
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = add i32 %127, %133
  %135 = load i32, ptr %19, align 4, !tbaa !9
  %136 = add i32 %134, %135
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = and i32 %137, 15
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %17, i64 noundef %139)
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = add i32 %141, %136
  store i32 %142, ptr %140, align 4, !tbaa !9
  %143 = add i32 %126, %142
  store i32 %143, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %7, align 4, !tbaa !9
  %145 = call noundef i32 @_Z6Sigma0j(i32 noundef %144)
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = call noundef i32 @_Z3Majjjj(i32 noundef %146, i32 noundef %147, i32 noundef %148)
  %150 = add i32 %145, %149
  store i32 %150, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %151, ptr %14, align 4, !tbaa !9
  %152 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %152, ptr %13, align 4, !tbaa !9
  %153 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %153, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = load i32, ptr %15, align 4, !tbaa !9
  %156 = add i32 %154, %155
  store i32 %156, ptr %11, align 4, !tbaa !9
  %157 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %157, ptr %10, align 4, !tbaa !9
  %158 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %158, ptr %9, align 4, !tbaa !9
  %159 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %159, ptr %8, align 4, !tbaa !9
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = add i32 %160, %161
  store i32 %162, ptr %7, align 4, !tbaa !9
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %165

165:                                              ; preds = %96
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = icmp slt i32 %166, 64
  br i1 %167, label %96, label %168, !llvm.loop !13

168:                                              ; preds = %165
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %169, i64 noundef 0) #6
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = load i32, ptr %7, align 4, !tbaa !9
  %173 = add i32 %171, %172
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds i32, ptr %174, i64 0
  store i32 %173, ptr %175, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %176, i64 noundef 1) #6
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !9
  %180 = add i32 %178, %179
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds i32, ptr %181, i64 1
  store i32 %180, ptr %182, align 4, !tbaa !9
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %183, i64 noundef 2) #6
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = add i32 %185, %186
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds i32, ptr %188, i64 2
  store i32 %187, ptr %189, align 4, !tbaa !9
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %190, i64 noundef 3) #6
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = add i32 %192, %193
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds i32, ptr %195, i64 3
  store i32 %194, ptr %196, align 4, !tbaa !9
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %197, i64 noundef 4) #6
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = add i32 %199, %200
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds i32, ptr %202, i64 4
  store i32 %201, ptr %203, align 4, !tbaa !9
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %204, i64 noundef 5) #6
  %206 = load i32, ptr %205, align 4, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = add i32 %206, %207
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds i32, ptr %209, i64 5
  store i32 %208, ptr %210, align 4, !tbaa !9
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %211, i64 noundef 6) #6
  %213 = load i32, ptr %212, align 4, !tbaa !9
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = add i32 %213, %214
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds i32, ptr %216, i64 6
  store i32 %215, ptr %217, align 4, !tbaa !9
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %218, i64 noundef 7) #6
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = add i32 %220, %221
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds i32, ptr %223, i64 7
  store i32 %222, ptr %224, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPKjPjET0_T_S4_S3_(ptr noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIjLm16EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EE2atEm(ptr noundef nonnull align 4 dereferenceable(256), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) #0 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 nounwind willreturn memory(none) 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 }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::array.1" = type { [64 x i32] }
%"struct.std::array" = type { [16 x i32] }

@_ZL4K256 = external hidden constant %"struct.std::array.1", align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16sha224_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = alloca %"struct.std::array", align 4
  %5 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 0) #6
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 1) #6
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 2) #6
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 3) #6
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 4) #6
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 5) #6
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 6) #6
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 7) #6
  %20 = load i32, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  %21 = tail call noundef ptr @_ZNKSt5arrayIjLm16EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64) %1) #6
  %22 = tail call noundef ptr @_ZNKSt5arrayIjLm16EE3endEv(ptr noundef nonnull align 4 dereferenceable(64) %1) #6
  %23 = call noundef ptr @_ZNSt5arrayIjLm16EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64) %4) #7
  %24 = call noundef ptr @_ZSt4copyIPKjPjET0_T_S4_S3_(ptr noundef %21, ptr noundef %22, ptr noundef %23)
  br label %25

25:                                               ; preds = %25, %3
  %indvars.iv = phi i64 [ %indvars.iv.next, %25 ], [ 0, %3 ]
  %.0100 = phi i32 [ %.086, %25 ], [ %10, %3 ]
  %.098 = phi i32 [ %.0100, %25 ], [ %12, %3 ]
  %.096 = phi i32 [ %38, %25 ], [ %14, %3 ]
  %.094 = phi i32 [ %.096, %25 ], [ %16, %3 ]
  %.092 = phi i32 [ %.094, %25 ], [ %18, %3 ]
  %.090 = phi i32 [ %.092, %25 ], [ %20, %3 ]
  %.086 = phi i32 [ %.0, %25 ], [ %8, %3 ]
  %.0 = phi i32 [ %40, %25 ], [ %6, %3 ]
  %26 = call noundef i32 @_Z6Sigma1j(i32 noundef %.096)
  %27 = add i32 %26, %.090
  %28 = call noundef i32 @_Z2Chjjj(i32 noundef %.096, i32 noundef %.094, i32 noundef %.092)
  %29 = add i32 %27, %28
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EE2atEm(ptr noundef nonnull align 4 dereferenceable(256) @_ZL4K256, i64 noundef %indvars.iv)
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add i32 %29, %31
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %4, i64 noundef %indvars.iv)
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add i32 %32, %34
  %36 = call noundef i32 @_Z6Sigma0j(i32 noundef %.0)
  %37 = call noundef i32 @_Z3Majjjj(i32 noundef %.0, i32 noundef %.086, i32 noundef %.0100)
  %38 = add i32 %35, %.098
  %39 = add i32 %35, %36
  %40 = add i32 %39, %37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %.preheader, label %25, !llvm.loop !9

.preheader:                                       ; preds = %25, %.preheader
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.preheader ], [ 16, %25 ]
  %.1101 = phi i32 [ %.187, %.preheader ], [ %.086, %25 ]
  %.199 = phi i32 [ %.1101, %.preheader ], [ %.0100, %25 ]
  %.197 = phi i32 [ %70, %.preheader ], [ %38, %25 ]
  %.195 = phi i32 [ %.197, %.preheader ], [ %.096, %25 ]
  %.193 = phi i32 [ %.195, %.preheader ], [ %.094, %25 ]
  %.191 = phi i32 [ %.193, %.preheader ], [ %.092, %25 ]
  %.187 = phi i32 [ %.1, %.preheader ], [ %.0, %25 ]
  %.1 = phi i32 [ %72, %.preheader ], [ %40, %25 ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %41 = and i64 %indvars.iv.next111, 15
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %4, i64 noundef %41)
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = call noundef i32 @_Z6sigma0j(i32 noundef %43)
  %45 = add nuw i64 %indvars.iv110, 14
  %46 = and i64 %45, 15
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %4, i64 noundef %46)
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = call noundef i32 @_Z6sigma1j(i32 noundef %48)
  %50 = call noundef i32 @_Z6Sigma1j(i32 noundef %.197)
  %51 = add i32 %50, %.191
  %52 = call noundef i32 @_Z2Chjjj(i32 noundef %.197, i32 noundef %.195, i32 noundef %.193)
  %53 = add i32 %51, %52
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EE2atEm(ptr noundef nonnull align 4 dereferenceable(256) @_ZL4K256, i64 noundef %indvars.iv110)
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add i32 %53, %55
  %57 = add nuw i64 %indvars.iv110, 9
  %58 = and i64 %57, 15
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %4, i64 noundef %58)
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = and i64 %indvars.iv110, 15
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64) %4, i64 noundef %61)
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add i32 %49, %44
  %65 = add i32 %64, %60
  %66 = add i32 %65, %63
  store i32 %66, ptr %62, align 4, !tbaa !5
  %67 = add i32 %56, %66
  %68 = call noundef i32 @_Z6Sigma0j(i32 noundef %.1)
  %69 = call noundef i32 @_Z3Majjjj(i32 noundef %.1, i32 noundef %.187, i32 noundef %.1101)
  %70 = add i32 %67, %.199
  %71 = add i32 %67, %68
  %72 = add i32 %71, %69
  %exitcond113.not = icmp eq i64 %indvars.iv.next111, 64
  br i1 %exitcond113.not, label %73, label %.preheader, !llvm.loop !11

73:                                               ; preds = %.preheader
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 0) #6
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = add i32 %75, %72
  store i32 %76, ptr %2, align 4, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 1) #6
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add i32 %78, %.1
  %80 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %79, ptr %80, align 4, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 2) #6
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = add i32 %82, %.187
  %84 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %83, ptr %84, align 4, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 3) #6
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add i32 %86, %.1101
  %88 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 %87, ptr %88, align 4, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 4) #6
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add i32 %90, %70
  %92 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 %91, ptr %92, align 4, !tbaa !5
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 5) #6
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add i32 %94, %.197
  %96 = getelementptr inbounds i8, ptr %2, i64 20
  store i32 %95, ptr %96, align 4, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 6) #6
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = add i32 %98, %.195
  %100 = getelementptr inbounds i8, ptr %2, i64 24
  store i32 %99, ptr %100, align 4, !tbaa !5
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 7) #6
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = add i32 %102, %.193
  %104 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 %103, ptr %104, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPKjPjET0_T_S4_S3_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIjLm16EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EE2atEm(ptr noundef nonnull align 4 dereferenceable(256), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EE2atEm(ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 nofree nosync nounwind willreturn memory(none) 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 }
attributes #7 = { nounwind willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass