#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*/ AES_demo(int);
int /*<<< orphan*/ DES_demo();
int /*<<< orphan*/ MTP_demo();
int /*<<< orphan*/ SHA_demo(int, int);
int /*<<< orphan*/ TDES_demo();
int main(int argc, char **argv) {
  MTP_demo();
  AES_demo(0);
  AES_demo(1);
  DES_demo();
  TDES_demo();
  SHA_demo(160, 0);
  SHA_demo(160, 1);
  SHA_demo(224, 0);
  SHA_demo(224, 1);
  SHA_demo(256, 0);
  SHA_demo(256, 1);
  SHA_demo(384, 0);
  SHA_demo(384, 1);
  SHA_demo(512, 0);
  SHA_demo(512, 1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1060 <MTP_demo@plt>
xor    %edi,%edi
call   1040 <AES_demo@plt>
mov    $0x1,%edi
call   1040 <AES_demo@plt>
mov    $0x0,%al
call   1070 <DES_demo@plt>
mov    $0x0,%al
call   1050 <TDES_demo@plt>
mov    $0xa0,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0xa0,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0xe0,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0xe0,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0x100,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0x100,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0x180,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0x180,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0x200,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0x200,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <MTP_demo@plt>
xor    %edi,%edi
call   1040 <AES_demo@plt>
mov    $0x1,%edi
call   1040 <AES_demo@plt>
xor    %eax,%eax
call   1070 <DES_demo@plt>
xor    %eax,%eax
call   1050 <TDES_demo@plt>
mov    $0xa0,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0xa0,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0xe0,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0xe0,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0x100,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0x100,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0x180,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0x180,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
mov    $0x200,%edi
xor    %esi,%esi
call   1030 <SHA_demo@plt>
mov    $0x200,%edi
mov    $0x1,%esi
call   1030 <SHA_demo@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (...) @MTP_demo()
%6 = call i32 @AES_demo(i32 0)
%7 = call i32 @AES_demo(i32 1)
%8 = call i32 (...) @DES_demo()
%9 = call i32 (...) @TDES_demo()
%10 = call i32 @SHA_demo(i32 160, i32 0)
%11 = call i32 @SHA_demo(i32 160, i32 1)
%12 = call i32 @SHA_demo(i32 224, i32 0)
%13 = call i32 @SHA_demo(i32 224, i32 1)
%14 = call i32 @SHA_demo(i32 256, i32 0)
%15 = call i32 @SHA_demo(i32 256, i32 1)
%16 = call i32 @SHA_demo(i32 384, i32 0)
%17 = call i32 @SHA_demo(i32 384, i32 1)
%18 = call i32 @SHA_demo(i32 512, i32 0)
%19 = call i32 @SHA_demo(i32 512, i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @MTP_demo()
%4 = tail call i32 @AES_demo(i32 0)
%5 = tail call i32 @AES_demo(i32 1)
%6 = tail call i32 (...) @DES_demo()
%7 = tail call i32 (...) @TDES_demo()
%8 = tail call i32 @SHA_demo(i32 160, i32 0)
%9 = tail call i32 @SHA_demo(i32 160, i32 1)
%10 = tail call i32 @SHA_demo(i32 224, i32 0)
%11 = tail call i32 @SHA_demo(i32 224, i32 1)
%12 = tail call i32 @SHA_demo(i32 256, i32 0)
%13 = tail call i32 @SHA_demo(i32 256, i32 1)
%14 = tail call i32 @SHA_demo(i32 384, i32 0)
%15 = tail call i32 @SHA_demo(i32 384, i32 1)
%16 = tail call i32 @SHA_demo(i32 512, i32 0)
%17 = tail call i32 @SHA_demo(i32 512, i32 1)
ret i32 0
}