#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ SHA256_NSS(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ SHA256_VST(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ SHA256_sodium(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ check_test(unsigned char *, unsigned char *, int, char *);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, int);
void SHA256_Xcompare_38() {
  unsigned char input[98] = {
      136, 105, 253, 240, 80,  254, 221, 186, 192, 21,  186, 156, 44,  186,
      111, 143, 201, 42,  144, 114, 37,  150, 204, 20,  228, 99,  159, 10,
      192, 235, 254, 48,  131, 68,  175, 58,  107, 9,   240, 74,  138, 234,
      213, 22,  104, 84,  146, 38,  198, 151, 198, 34,  34,  113, 184, 240,
      196, 24,  243, 66,  60,  211, 131, 51,  45,  242, 174, 184, 26,  185,
      90,  90,  69,  211, 174, 239, 198, 162, 251, 28,  82,  131, 243, 19,
      77,  218, 217, 177, 236, 40,  119, 40,  12,  52,  129, 220, 131, 181};
  unsigned char result0[32] = {0xA2, 0x61, 0xDE, 0x5C, 0xA7, 0x72, 0xA9, 0x92,
                               0x19, 0x25, 0xCD, 0x1D, 0x10, 0x6B, 0x21, 0x7C,
                               0x02, 0xC1, 0x2F, 0x2F, 0x2B, 0xD7, 0xEA, 0x49,
                               0x7E, 0x41, 0x1E, 0xFB, 0xCF, 0x92, 0xA2, 0x5F};
  unsigned char result1[32];
  memset(result1, 0, 32);
  SHA256_VST(input, result1, 98);
  check_test(result0, result1, 32,
             "Disagreement between given answer and SHA256_VST in "
             "SHA256_Xcompare_38\n");
  memset(result1, 0, 32);
  SHA256_NSS(input, result1, 98);
  check_test(result0, result1, 32,
             "Disagreement between given answer and SHA256_NSS in "
             "SHA256_Xcompare_38\n");
  memset(result1, 0, 32);
  SHA256_sodium(input, result1, 98);
  check_test(result0, result1, 32,
             "Disagreement between given answer and SHA256_sodium in "
             "SHA256_Xcompare_38\n");
}


x86 assembly (clang, -O0):
<SHA256_Xcompare_38>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
lea    -0x70(%rbp),%rdi
lea    0xe8a(%rip),%rsi
mov    $0x62,%edx
call   1060 <memcpy@plt>
mov    0xee9(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xee3(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xedd(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
lea    -0x70(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x62,%edx
call   1030 <SHA256_VST@plt>
lea    -0x90(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x20,%edx
lea    0xe9c(%rip),%rcx
call   1080 <check_test@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
lea    -0x70(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x62,%edx
call   1050 <SHA256_NSS@plt>
lea    -0x90(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x20,%edx
lea    0xe9d(%rip),%rcx
call   1080 <check_test@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
lea    -0x70(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x62,%edx
call   1070 <SHA256_sodium@plt>
lea    -0x90(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x20,%edx
lea    0xe9e(%rip),%rcx
call   1080 <check_test@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SHA256_Xcompare_38>:
push   %r15
push   %r14
push   %rbx
sub    $0xb0,%rsp
movaps 0xeed(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeb5(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe99(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe7d(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe61(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movw   $0xb583,0x80(%rsp)
movaps 0xecb(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeaf(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x62,%edx
call   1030 <SHA256_VST@plt>
lea    0xe98(%rip),%rcx
mov    %rsp,%r15
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <check_test@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x62,%edx
call   1050 <SHA256_NSS@plt>
lea    0xea7(%rip),%rcx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <check_test@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x62,%edx
call   1060 <SHA256_sodium@plt>
lea    0xeb9(%rip),%rcx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x20,%edx
call   1070 <check_test@plt>
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.SHA256_Xcompare_38.input = [98 x i8] c"\88i\FD\F0P\FE\DD\BA\C0\15\BA\9C,\BAo\8F\C9*\90r%\96\CC\14\E4c\9F\0A\C0\EB\FE0\83D\AF:k\09\F0J\8A\EA\D5\16hT\92&\C6\97\C6\22\22q\B8\F0\C4\18\F3B<\D3\833-\F2\AE\B8\1A\B9ZZE\D3\AE\EF\C6\A2\FB\1CR\83\F3\13M\DA\D9\B1\EC(w(\0C4\81\DC\83\B5"
@__const.SHA256_Xcompare_38.result0 = [32 x i8] c"\A2a\DE\\\A7r\A9\92\19%\CD\1D\10k!|\02\C1//+\D7\EAI~A\1E\FB\CF\92\A2_"
@.str = [72 x i8] c"Disagreement between given answer and SHA256_VST in SHA256_Xcompare_38\0A\00"
@.str.1 = [72 x i8] c"Disagreement between given answer and SHA256_NSS in SHA256_Xcompare_38\0A\00"
@.str.2 = [75 x i8] c"Disagreement between given answer and SHA256_sodium in SHA256_Xcompare_38\0A\00"
define void @SHA256_Xcompare_38() {
%1 = alloca [98 x i8]
%2 = alloca [32 x i8]
%3 = alloca [32 x i8]
%4 = bitcast [98 x i8]* %1 to i8*
%5 = bitcast [32 x i8]* %2 to i8*
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%7 = call i32 @memset(i8* %6, i32 0, i32 32)
%8 = getelementptr inbounds [98 x i8], [98 x i8]* %1, i64 0, i64 0
%9 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%10 = call i32 @SHA256_VST(i8* %8, i8* %9, i32 98)
%11 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%13 = call i32 @check_test(i8* %11, i8* %12, i32 32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%14 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%15 = call i32 @memset(i8* %14, i32 0, i32 32)
%16 = getelementptr inbounds [98 x i8], [98 x i8]* %1, i64 0, i64 0
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%18 = call i32 @SHA256_NSS(i8* %16, i8* %17, i32 98)
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%20 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%21 = call i32 @check_test(i8* %19, i8* %20, i32 32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%22 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%23 = call i32 @memset(i8* %22, i32 0, i32 32)
%24 = getelementptr inbounds [98 x i8], [98 x i8]* %1, i64 0, i64 0
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%26 = call i32 @SHA256_sodium(i8* %24, i8* %25, i32 98)
%27 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%28 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%29 = call i32 @check_test(i8* %27, i8* %28, i32 32, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__const.SHA256_Xcompare_38.input = [98 x i8] c"\88i\FD\F0P\FE\DD\BA\C0\15\BA\9C,\BAo\8F\C9*\90r%\96\CC\14\E4c\9F\0A\C0\EB\FE0\83D\AF:k\09\F0J\8A\EA\D5\16hT\92&\C6\97\C6\22\22q\B8\F0\C4\18\F3B<\D3\833-\F2\AE\B8\1A\B9ZZE\D3\AE\EF\C6\A2\FB\1CR\83\F3\13M\DA\D9\B1\EC(w(\0C4\81\DC\83\B5"
@__const.SHA256_Xcompare_38.result0 = [32 x i8] c"\A2a\DE\\\A7r\A9\92\19%\CD\1D\10k!|\02\C1//+\D7\EAI~A\1E\FB\CF\92\A2_"
@.str = [72 x i8] c"Disagreement between given answer and SHA256_VST in SHA256_Xcompare_38\0A\00"
@.str.1 = [72 x i8] c"Disagreement between given answer and SHA256_NSS in SHA256_Xcompare_38\0A\00"
@.str.2 = [75 x i8] c"Disagreement between given answer and SHA256_sodium in SHA256_Xcompare_38\0A\00"
define void @SHA256_Xcompare_38() {
%1 = alloca [98 x i8]
%2 = alloca [32 x i8]
%3 = alloca [32 x i8]
%4 = getelementptr inbounds [98 x i8], [98 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%7 = call i32 @memset(i8* %6, i32 0, i32 32)
%8 = call i32 @SHA256_VST(i8* %4, i8* %6, i32 98)
%9 = call i32 @check_test(i8* %5, i8* %6, i32 32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @memset(i8* %6, i32 0, i32 32)
%11 = call i32 @SHA256_NSS(i8* %4, i8* %6, i32 98)
%12 = call i32 @check_test(i8* %5, i8* %6, i32 32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @memset(i8* %6, i32 0, i32 32)
%14 = call i32 @SHA256_sodium(i8* %4, i8* %6, i32 98)
%15 = call i32 @check_test(i8* %5, i8* %6, i32 32, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
ret void
}