#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, char);
int /*<<< orphan*/ putchar(char);
int main() {
  int x = 1;
  char a;
  while (x < 10) {
    a = 'A';
    while (a < 'J') {
      printf("%d%c\t", x, a);
      a++;
      if (x == 5 && a == 'F')
        goto sfarsit;
    }
    putchar('\n');
    x++;
  }
sfarsit:
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11a5 <main+0x85>
movb   $0x41,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x4a,%eax
jge    118d <main+0x6d>
mov    -0x8(%rbp),%esi
lea    0xea5(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1040 <printf@plt>
mov    -0x9(%rbp),%al
add    $0x1,%al
mov    %al,-0x9(%rbp)
cmpl   $0x5,-0x8(%rbp)
jne    1188 <main+0x68>
movsbl -0x9(%rbp),%eax
cmp    $0x46,%eax
jne    1188 <main+0x68>
jmp    11aa <main+0x8a>
jmp    1144 <main+0x24>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
jmp    11aa <main+0x8a>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xed0(%rip),%r14
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x41,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x42,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x43,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x44,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x45,%edx
call   1040 <printf@plt>
cmp    $0x5,%ebx
je     11ce <main+0xae>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x46,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x47,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x48,%edx
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x49,%edx
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
jmp    1130 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d%c\09\00"
define i32 @main() {
br label %1
1: ; preds = %9, %0
%2 = phi i32 [ 1, %0 ], [ %15, %9 ]
%3 = icmp eq i32 %2, 5
%4 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 65)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 66)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 67)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 68)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 69)
br i1 %3, label %16, label %9
9: ; preds = %1
%10 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 70)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 71)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 72)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 73)
%14 = tail call i32 @putchar(i8 signext 10)
%15 = add nuw nsw i32 %2, 1
br label %1
16: ; preds = %1
ret i32 0
}