#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 */
typedef int uint8_t;

/* Variables and functions */
int /*<<< orphan*/ AddRoundKey(int);
int /*<<< orphan*/ MixColumns();
int /*<<< orphan*/ ShiftRows();
int /*<<< orphan*/ SubBytes();
void Cipher(void) {
  uint8_t round = 0;
  AddRoundKey(0);
  for (round = 1; round < 14; ++round) {
    SubBytes();
    ShiftRows();
    MixColumns();
    AddRoundKey(round);
  }
  SubBytes();
  ShiftRows();
  AddRoundKey(14);
}


x86 assembly (clang, -O0):
<Cipher>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1040 <AddRoundKey@plt>
movl   $0x1,-0x4(%rbp)
cmpl   $0xe,-0x4(%rbp)
jge    1192 <Cipher+0x52>
mov    $0x0,%al
call   1050 <SubBytes@plt>
mov    $0x0,%al
call   1030 <ShiftRows@plt>
mov    $0x0,%al
call   1060 <MixColumns@plt>
mov    -0x4(%rbp),%edi
call   1040 <AddRoundKey@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    115d <Cipher+0x1d>
mov    $0x0,%al
call   1050 <SubBytes@plt>
mov    $0x0,%al
call   1030 <ShiftRows@plt>
mov    $0xe,%edi
call   1040 <AddRoundKey@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cipher>:
push   %rax
xor    %edi,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x1,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x2,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x3,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x4,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x5,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x6,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x7,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x8,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0x9,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0xa,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0xb,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0xc,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
xor    %eax,%eax
call   1060 <MixColumns@plt>
mov    $0xd,%edi
call   1040 <AddRoundKey@plt>
xor    %eax,%eax
call   1050 <SubBytes@plt>
xor    %eax,%eax
call   1030 <ShiftRows@plt>
mov    $0xe,%edi
pop    %rax
jmp    1040 <AddRoundKey@plt>

LLVM IR (-O0):
define void @Cipher() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @AddRoundKey(i32 0)
store i32 1, i32* %1
br label %3
3: ; preds = %12, %0
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 14
br i1 %5, label %6, label %15
6: ; preds = %3
%7 = call i32 (...) @SubBytes()
%8 = call i32 (...) @ShiftRows()
%9 = call i32 (...) @MixColumns()
%10 = load i32, i32* %1
%11 = call i32 @AddRoundKey(i32 %10)
br label %12
12: ; preds = %6
%13 = load i32, i32* %1
%14 = add nsw i32 %13, 1
store i32 %14, i32* %1
br label %3
15: ; preds = %3
%16 = call i32 (...) @SubBytes()
%17 = call i32 (...) @ShiftRows()
%18 = call i32 @AddRoundKey(i32 14)
ret void
}

LLVM IR (-O2):
define void @Cipher() {
%1 = tail call i32 @AddRoundKey(i32 0)
%2 = tail call i32 (...) @SubBytes()
%3 = tail call i32 (...) @ShiftRows()
%4 = tail call i32 (...) @MixColumns()
%5 = tail call i32 @AddRoundKey(i32 1)
%6 = tail call i32 (...) @SubBytes()
%7 = tail call i32 (...) @ShiftRows()
%8 = tail call i32 (...) @MixColumns()
%9 = tail call i32 @AddRoundKey(i32 2)
%10 = tail call i32 (...) @SubBytes()
%11 = tail call i32 (...) @ShiftRows()
%12 = tail call i32 (...) @MixColumns()
%13 = tail call i32 @AddRoundKey(i32 3)
%14 = tail call i32 (...) @SubBytes()
%15 = tail call i32 (...) @ShiftRows()
%16 = tail call i32 (...) @MixColumns()
%17 = tail call i32 @AddRoundKey(i32 4)
%18 = tail call i32 (...) @SubBytes()
%19 = tail call i32 (...) @ShiftRows()
%20 = tail call i32 (...) @MixColumns()
%21 = tail call i32 @AddRoundKey(i32 5)
%22 = tail call i32 (...) @SubBytes()
%23 = tail call i32 (...) @ShiftRows()
%24 = tail call i32 (...) @MixColumns()
%25 = tail call i32 @AddRoundKey(i32 6)
%26 = tail call i32 (...) @SubBytes()
%27 = tail call i32 (...) @ShiftRows()
%28 = tail call i32 (...) @MixColumns()
%29 = tail call i32 @AddRoundKey(i32 7)
%30 = tail call i32 (...) @SubBytes()
%31 = tail call i32 (...) @ShiftRows()
%32 = tail call i32 (...) @MixColumns()
%33 = tail call i32 @AddRoundKey(i32 8)
%34 = tail call i32 (...) @SubBytes()
%35 = tail call i32 (...) @ShiftRows()
%36 = tail call i32 (...) @MixColumns()
%37 = tail call i32 @AddRoundKey(i32 9)
%38 = tail call i32 (...) @SubBytes()
%39 = tail call i32 (...) @ShiftRows()
%40 = tail call i32 (...) @MixColumns()
%41 = tail call i32 @AddRoundKey(i32 10)
%42 = tail call i32 (...) @SubBytes()
%43 = tail call i32 (...) @ShiftRows()
%44 = tail call i32 (...) @MixColumns()
%45 = tail call i32 @AddRoundKey(i32 11)
%46 = tail call i32 (...) @SubBytes()
%47 = tail call i32 (...) @ShiftRows()
%48 = tail call i32 (...) @MixColumns()
%49 = tail call i32 @AddRoundKey(i32 12)
%50 = tail call i32 (...) @SubBytes()
%51 = tail call i32 (...) @ShiftRows()
%52 = tail call i32 (...) @MixColumns()
%53 = tail call i32 @AddRoundKey(i32 13)
%54 = tail call i32 (...) @SubBytes()
%55 = tail call i32 (...) @ShiftRows()
%56 = tail call i32 @AddRoundKey(i32 14)
ret void
}