; LLVM IR from Waqar144/simplecrypto-cxx :: simplecrypto-cxx/sha384.ll (Z16sha384_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm)

; 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.2" = type { [80 x i64] }
%"struct.std::array.1" = type { [16 x i64] }

@_ZL4K512 = external hidden constant %"struct.std::array.2", align 8

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

52:                                               ; preds = %93, %3
  %53 = load i64, ptr %14, align 8, !tbaa !9
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = call noundef i64 @_ZL6Sigma1m(i64 noundef %54)
  %56 = add i64 %53, %55
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = load i64, ptr %12, align 8, !tbaa !9
  %59 = load i64, ptr %13, align 8, !tbaa !9
  %60 = call noundef i64 @_ZL2Chmmm(i64 noundef %57, i64 noundef %58, i64 noundef %59)
  %61 = add i64 %56, %60
  %62 = load i32, ptr %18, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm80EEixEm(ptr noundef nonnull align 8 dereferenceable(640) @_ZL4K512, i64 noundef %63) #6
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = add i64 %61, %65
  %67 = load i32, ptr %18, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EE2atEm(ptr noundef nonnull align 8 dereferenceable(128) %15, i64 noundef %68)
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = add i64 %66, %70
  store i64 %71, ptr %16, align 8, !tbaa !9
  %72 = load i64, ptr %7, align 8, !tbaa !9
  %73 = call noundef i64 @_ZL6Sigma0m(i64 noundef %72)
  %74 = load i64, ptr %7, align 8, !tbaa !9
  %75 = load i64, ptr %8, align 8, !tbaa !9
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = call noundef i64 @_ZL3Majmmm(i64 noundef %74, i64 noundef %75, i64 noundef %76)
  %78 = add i64 %73, %77
  store i64 %78, ptr %17, align 8, !tbaa !9
  %79 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %79, ptr %14, align 8, !tbaa !9
  %80 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %80, ptr %13, align 8, !tbaa !9
  %81 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %81, ptr %12, align 8, !tbaa !9
  %82 = load i64, ptr %10, align 8, !tbaa !9
  %83 = load i64, ptr %16, align 8, !tbaa !9
  %84 = add i64 %82, %83
  store i64 %84, ptr %11, align 8, !tbaa !9
  %85 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %85, ptr %10, align 8, !tbaa !9
  %86 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %86, ptr %9, align 8, !tbaa !9
  %87 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %87, ptr %8, align 8, !tbaa !9
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = load i64, ptr %17, align 8, !tbaa !9
  %90 = add i64 %88, %89
  store i64 %90, ptr %7, align 8, !tbaa !9
  %91 = load i32, ptr %18, align 4, !tbaa !11
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %18, align 4, !tbaa !11
  br label %93

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

96:                                               ; preds = %93
  br label %97

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

166:                                              ; preds = %97
  %167 = load i32, ptr %18, align 4, !tbaa !11
  %168 = icmp slt i32 %167, 80
  br i1 %168, label %97, label %169, !llvm.loop !15

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6Sigma1m(i64 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL2Chmmm(i64 noundef, i64 noundef, i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm80EEixEm(ptr noundef nonnull align 8 dereferenceable(640), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EE2atEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6Sigma0m(i64 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL3Majmmm(i64 noundef, i64 noundef, i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6sigma0m(i64 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6sigma1m(i64 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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.2" = type { [80 x i64] }
%"struct.std::array.1" = type { [16 x i64] }

@_ZL4K512 = external hidden constant %"struct.std::array.2", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16sha384_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = alloca %"struct.std::array.1", align 8
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 0) #6
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 1) #6
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 2) #6
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 3) #6
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 4) #6
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 5) #6
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 6) #6
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 7) #6
  %20 = load i64, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #6
  %21 = tail call noundef ptr @_ZNKSt5arrayImLm16EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(128) %1) #6
  %22 = tail call noundef ptr @_ZNKSt5arrayImLm16EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(128) %1) #6
  %23 = getelementptr inbounds i8, ptr %22, i64 128
  %24 = call noundef ptr @_ZNSt5arrayImLm16EE5beginEv(ptr noundef nonnull align 8 dereferenceable(128) %4) #7
  %25 = call noundef ptr @_ZSt4copyIPKmPmET0_T_S4_S3_(ptr noundef %21, ptr noundef nonnull %23, ptr noundef %24)
  br label %26

26:                                               ; preds = %26, %3
  %indvars.iv = phi i64 [ %indvars.iv.next, %26 ], [ 0, %3 ]
  %.0100 = phi i64 [ %.086, %26 ], [ %10, %3 ]
  %.098 = phi i64 [ %.0100, %26 ], [ %12, %3 ]
  %.096 = phi i64 [ %39, %26 ], [ %14, %3 ]
  %.094 = phi i64 [ %.096, %26 ], [ %16, %3 ]
  %.092 = phi i64 [ %.094, %26 ], [ %18, %3 ]
  %.090 = phi i64 [ %.092, %26 ], [ %20, %3 ]
  %.086 = phi i64 [ %.0, %26 ], [ %8, %3 ]
  %.0 = phi i64 [ %41, %26 ], [ %6, %3 ]
  %27 = call noundef i64 @_ZL6Sigma1m(i64 noundef %.096)
  %28 = add i64 %27, %.090
  %29 = call noundef i64 @_ZL2Chmmm(i64 noundef %.096, i64 noundef %.094, i64 noundef %.092)
  %30 = add i64 %28, %29
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm80EEixEm(ptr noundef nonnull align 8 dereferenceable(640) @_ZL4K512, i64 noundef %indvars.iv) #6
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = add i64 %30, %32
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EE2atEm(ptr noundef nonnull align 8 dereferenceable(128) %4, i64 noundef %indvars.iv)
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = add i64 %33, %35
  %37 = call noundef i64 @_ZL6Sigma0m(i64 noundef %.0)
  %38 = call noundef i64 @_ZL3Majmmm(i64 noundef %.0, i64 noundef %.086, i64 noundef %.0100)
  %39 = add i64 %36, %.098
  %40 = add i64 %36, %37
  %41 = add i64 %40, %38
  %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 %26, !llvm.loop !9

.preheader:                                       ; preds = %26, %.preheader
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.preheader ], [ 16, %26 ]
  %.1101 = phi i64 [ %.187, %.preheader ], [ %.086, %26 ]
  %.199 = phi i64 [ %.1101, %.preheader ], [ %.0100, %26 ]
  %.197 = phi i64 [ %71, %.preheader ], [ %39, %26 ]
  %.195 = phi i64 [ %.197, %.preheader ], [ %.096, %26 ]
  %.193 = phi i64 [ %.195, %.preheader ], [ %.094, %26 ]
  %.191 = phi i64 [ %.193, %.preheader ], [ %.092, %26 ]
  %.187 = phi i64 [ %.1, %.preheader ], [ %.0, %26 ]
  %.1 = phi i64 [ %73, %.preheader ], [ %41, %26 ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %42 = and i64 %indvars.iv.next111, 15
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %4, i64 noundef %42) #6
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = call noundef i64 @_ZL6sigma0m(i64 noundef %44)
  %46 = add nuw i64 %indvars.iv110, 14
  %47 = and i64 %46, 15
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %4, i64 noundef %47) #6
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = call noundef i64 @_ZL6sigma1m(i64 noundef %49)
  %51 = call noundef i64 @_ZL6Sigma1m(i64 noundef %.197)
  %52 = add i64 %51, %.191
  %53 = call noundef i64 @_ZL2Chmmm(i64 noundef %.197, i64 noundef %.195, i64 noundef %.193)
  %54 = add i64 %52, %53
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm80EEixEm(ptr noundef nonnull align 8 dereferenceable(640) @_ZL4K512, i64 noundef %indvars.iv110) #6
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = add i64 %54, %56
  %58 = add nuw i64 %indvars.iv110, 9
  %59 = and i64 %58, 15
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %4, i64 noundef %59) #6
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = and i64 %indvars.iv110, 15
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %4, i64 noundef %62) #6
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = add i64 %50, %45
  %66 = add i64 %65, %61
  %67 = add i64 %66, %64
  store i64 %67, ptr %63, align 8, !tbaa !5
  %68 = add i64 %57, %67
  %69 = call noundef i64 @_ZL6Sigma0m(i64 noundef %.1)
  %70 = call noundef i64 @_ZL3Majmmm(i64 noundef %.1, i64 noundef %.187, i64 noundef %.1101)
  %71 = add i64 %68, %.199
  %72 = add i64 %68, %69
  %73 = add i64 %72, %70
  %exitcond113.not = icmp eq i64 %indvars.iv.next111, 80
  br i1 %exitcond113.not, label %74, label %.preheader, !llvm.loop !11

74:                                               ; preds = %.preheader
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 0) #6
  %76 = load i64, ptr %75, align 8, !tbaa !5
  %77 = add i64 %76, %73
  store i64 %77, ptr %2, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 1) #6
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = add i64 %79, %.1
  %81 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %80, ptr %81, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 2) #6
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = add i64 %83, %.187
  %85 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 %84, ptr %85, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 3) #6
  %87 = load i64, ptr %86, align 8, !tbaa !5
  %88 = add i64 %87, %.1101
  %89 = getelementptr inbounds i8, ptr %2, i64 24
  store i64 %88, ptr %89, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 4) #6
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = add i64 %91, %71
  %93 = getelementptr inbounds i8, ptr %2, i64 32
  store i64 %92, ptr %93, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 5) #6
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = add i64 %95, %.197
  %97 = getelementptr inbounds i8, ptr %2, i64 40
  store i64 %96, ptr %97, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 6) #6
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = add i64 %99, %.195
  %101 = getelementptr inbounds i8, ptr %2, i64 48
  store i64 %100, ptr %101, align 8, !tbaa !5
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef 7) #6
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = add i64 %103, %.193
  %105 = getelementptr inbounds i8, ptr %2, i64 56
  store i64 %104, ptr %105, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 128, 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 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6Sigma1m(i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL2Chmmm(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayImLm80EEixEm(ptr noundef nonnull align 8 dereferenceable(640), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EE2atEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6Sigma0m(i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL3Majmmm(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6sigma0m(i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL6sigma1m(i64 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 = !{!"long", !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