#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  char i, j;
  for (i = 90; i >= 65; i--) {
    for (j = 90; j >= 65; j--) {
      if (i >= j)
        printf("%c", j);
    }
    printf("\n");
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x5a,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x41,%eax
jl     1197 <main+0x87>
movb   $0x5a,-0x12(%rbp)
movsbl -0x12(%rbp),%eax
cmp    $0x41,%eax
jl     117c <main+0x6c>
movsbl -0x11(%rbp),%eax
movsbl -0x12(%rbp),%ecx
cmp    %ecx,%eax
jl     116a <main+0x5a>
movsbl -0x12(%rbp),%esi
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    116f <main+0x5f>
mov    -0x12(%rbp),%al
add    $0xff,%al
mov    %al,-0x12(%rbp)
jmp    113b <main+0x2b>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x11(%rbp),%al
add    $0xff,%al
mov    %al,-0x11(%rbp)
jmp    112a <main+0x1a>
mov    0x2e42(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x5a,%ebp
jmp    1132 <main+0x22>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
cmp    $0x40,%ebp
jbe    1157 <main+0x47>
mov    $0x5a,%ebx
jmp    114a <main+0x3a>
nopl   0x0(%rax)
lea    -0x1(%rbx),%eax
cmp    $0x41,%ebx
mov    %eax,%ebx
jbe    1120 <main+0x10>
cmp    %ebx,%ebp
jb     1140 <main+0x30>
mov    %ebx,%edi
call   1030 <putchar@plt>
jmp    1140 <main+0x30>
mov    0x2e82(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 90, i8* %6
br label %8
8: ; preds = %33, %2
%9 = load i8, i8* %6
%10 = sext i8 %9 to i32
%11 = icmp sge i32 %10, 65
br i1 %11, label %12, label %36
12: ; preds = %8
store i8 90, i8* %7
br label %13
13: ; preds = %28, %12
%14 = load i8, i8* %7
%15 = sext i8 %14 to i32
%16 = icmp sge i32 %15, 65
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load i8, i8* %6
%19 = sext i8 %18 to i32
%20 = load i8, i8* %7
%21 = sext i8 %20 to i32
%22 = icmp sge i32 %19, %21
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i8, i8* %7
%25 = sext i8 %24 to i32
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %23, %17
br label %28
28: ; preds = %27
%29 = load i8, i8* %7
%30 = add i8 %29, -1
store i8 %30, i8* %7
br label %13
31: ; preds = %13
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %33
33: ; preds = %31
%34 = load i8, i8* %6
%35 = add i8 %34, -1
store i8 %35, i8* %6
br label %8
36: ; preds = %8
%37 = load i32, i32* @EXIT_SUCCESS
ret i32 %37
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %13
%4 = phi i32 [ 90, %2 ], [ %15, %13 ]
br label %5
5: ; preds = %3, %10
%6 = phi i32 [ 90, %3 ], [ %11, %10 ]
%7 = icmp ult i32 %4, %6
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 @putchar(i32 %6)
br label %10
10: ; preds = %5, %8
%11 = add nsw i32 %6, -1
%12 = icmp ugt i32 %6, 65
br i1 %12, label %5, label %13
13: ; preds = %10
%14 = tail call i32 @putchar(i32 10)
%15 = add nsw i32 %4, -1
%16 = icmp ugt i32 %15, 64
br i1 %16, label %3, label %17
17: ; preds = %13
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}