#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*/ caesar(char *, int);
int main(void) {
  char message[] = "Sp S rkn kcuon zoyzvo grkd droi gkxdon, droi gyevn rkfo "
                   "cksn pkcdob rybcoc.";
  for (int j = 1; j < 26; j++) {
    caesar(message, j);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x4c,%edx
call   1040 <memcpy@plt>
movl   $0x1,-0x54(%rbp)
cmpl   $0x1a,-0x54(%rbp)
jge    116f <main+0x4f>
lea    -0x50(%rbp),%rdi
mov    -0x54(%rbp),%esi
call   1030 <caesar@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    114b <main+0x2b>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
movups 0xf20(%rip),%xmm0
movups %xmm0,0x3c(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeec(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed0(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x11,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x13,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x14,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x15,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x16,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x17,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x18,%esi
call   1030 <caesar@plt>
mov    %rbx,%rdi
mov    $0x19,%esi
call   1030 <caesar@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.message = [76 x i8] c"Sp S rkn kcuon zoyzvo grkd droi gkxdon, droi gyevn rkfo cksn pkcdob rybcoc.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [76 x i8]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [76 x i8]* %2 to i8*
store i32 1, i32* %3
br label %5
5: ; preds = %12, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 26
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = getelementptr inbounds [76 x i8], [76 x i8]* %2, i64 0, i64 0
%10 = load i32, i32* %3
%11 = call i32 @caesar(i8* %9, i32 %10)
br label %12
12: ; preds = %8
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %5
15: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@__const.main.message = [76 x i8] c"Sp S rkn kcuon zoyzvo grkd droi gkxdon, droi gyevn rkfo cksn pkcdob rybcoc.\00"
define i32 @main() {
%1 = alloca [76 x i8]
%2 = getelementptr inbounds [76 x i8], [76 x i8]* %1, i64 0, i64 0
%3 = call i32 @caesar(i8* %2, i32 1)
%4 = call i32 @caesar(i8* %2, i32 2)
%5 = call i32 @caesar(i8* %2, i32 3)
%6 = call i32 @caesar(i8* %2, i32 4)
%7 = call i32 @caesar(i8* %2, i32 5)
%8 = call i32 @caesar(i8* %2, i32 6)
%9 = call i32 @caesar(i8* %2, i32 7)
%10 = call i32 @caesar(i8* %2, i32 8)
%11 = call i32 @caesar(i8* %2, i32 9)
%12 = call i32 @caesar(i8* %2, i32 10)
%13 = call i32 @caesar(i8* %2, i32 11)
%14 = call i32 @caesar(i8* %2, i32 12)
%15 = call i32 @caesar(i8* %2, i32 13)
%16 = call i32 @caesar(i8* %2, i32 14)
%17 = call i32 @caesar(i8* %2, i32 15)
%18 = call i32 @caesar(i8* %2, i32 16)
%19 = call i32 @caesar(i8* %2, i32 17)
%20 = call i32 @caesar(i8* %2, i32 18)
%21 = call i32 @caesar(i8* %2, i32 19)
%22 = call i32 @caesar(i8* %2, i32 20)
%23 = call i32 @caesar(i8* %2, i32 21)
%24 = call i32 @caesar(i8* %2, i32 22)
%25 = call i32 @caesar(i8* %2, i32 23)
%26 = call i32 @caesar(i8* %2, i32 24)
%27 = call i32 @caesar(i8* %2, i32 25)
ret i32 0
}