#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*/ printf(char *, ...);
int main() {
  int i, j;
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 6 - i; j++) {
      printf("%c", 'F' - (6 - i) + j + 1);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    1197 <main+0x87>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x6,%ecx
sub    -0x8(%rbp),%ecx
cmp    %ecx,%eax
jge    117b <main+0x6b>
mov    $0x6,%eax
sub    -0x8(%rbp),%eax
mov    $0x46,%esi
sub    %eax,%esi
add    -0xc(%rbp),%esi
add    $0x1,%esi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1137 <main+0x27>
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %26, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 6
br i1 %6, label %7, label %29
7: ; preds = %4
store i32 0, i32* %3
br label %8
8: ; preds = %21, %7
%9 = load i32, i32* %3
%10 = load i32, i32* %2
%11 = sub nsw i32 6, %10
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %24
13: ; preds = %8
%14 = load i32, i32* %2
%15 = sub nsw i32 6, %14
%16 = sub nsw i32 70, %15
%17 = load i32, i32* %3
%18 = add nsw i32 %16, %17
%19 = add nsw i32 %18, 1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %19)
br label %21
21: ; preds = %13
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
store i32 %23, i32* %3
br label %8
24: ; preds = %8
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %26
26: ; preds = %24
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %4
29: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i32 65)
%2 = tail call i32 @putchar(i32 66)
%3 = tail call i32 @putchar(i32 67)
%4 = tail call i32 @putchar(i32 68)
%5 = tail call i32 @putchar(i32 69)
%6 = tail call i32 @putchar(i32 70)
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @putchar(i32 66)
%9 = tail call i32 @putchar(i32 67)
%10 = tail call i32 @putchar(i32 68)
%11 = tail call i32 @putchar(i32 69)
%12 = tail call i32 @putchar(i32 70)
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @putchar(i32 67)
%15 = tail call i32 @putchar(i32 68)
%16 = tail call i32 @putchar(i32 69)
%17 = tail call i32 @putchar(i32 70)
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @putchar(i32 68)
%20 = tail call i32 @putchar(i32 69)
%21 = tail call i32 @putchar(i32 70)
%22 = tail call i32 @putchar(i32 10)
%23 = tail call i32 @putchar(i32 69)
%24 = tail call i32 @putchar(i32 70)
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i32 @putchar(i32 70)
%27 = tail call i32 @putchar(i32 10)
ret i32 0
}