#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  int i;
  if (argc > 1 && !strcmp(argv[1], "189284")) {
    fputs("ABCDEFGH", stdout);
    for (i = 0; i < 8; i++)
      putchar(0);
  } else {
    for (i = 0; i < 256; i++)
      putchar(i);
  }
  return (0);
}


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)
cmpl   $0x1,-0x8(%rbp)
jle    11ad <main+0x7d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xea1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11ad <main+0x7d>
mov    0x2e6c(%rip),%rax
mov    (%rax),%esi
lea    0xe8a(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    11a8 <main+0x78>
xor    %edi,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1189 <main+0x59>
jmp    11dc <main+0xac>
movl   $0x0,-0x14(%rbp)
cmpl   $0x100,-0x14(%rbp)
jge    11d7 <main+0xa7>
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b4 <main+0x84>
jmp    11dc <main+0xac>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x1,%edi
jle    114a <main+0x1a>
mov    0x8(%rsi),%rdi
lea    0xebf(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1164 <main+0x34>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %ebx,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0x100,%ebx
jne    1150 <main+0x20>
jmp    11b1 <main+0x81>
mov    0x2e75(%rip),%rax
mov    (%rax),%esi
lea    0xe93(%rip),%rdi
call   1040 <fputs@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"189284\00"
@.str.1 = [9 x i8] c"ABCDEFGH\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %5, label %4
4: ; preds = %5, %2
br label %21
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = tail call i32 @strcmp(i8* dereferenceable(1) %7, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %5
%11 = load i32, i32* @stdout
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = tail call i32 @putchar(i32 0)
%14 = tail call i32 @putchar(i32 0)
%15 = tail call i32 @putchar(i32 0)
%16 = tail call i32 @putchar(i32 0)
%17 = tail call i32 @putchar(i32 0)
%18 = tail call i32 @putchar(i32 0)
%19 = tail call i32 @putchar(i32 0)
%20 = tail call i32 @putchar(i32 0)
br label %26
21: ; preds = %4, %21
%22 = phi i32 [ %24, %21 ], [ 0, %4 ]
%23 = tail call i32 @putchar(i32 %22)
%24 = add nuw nsw i32 %22, 1
%25 = icmp eq i32 %24, 256
br i1 %25, label %26, label %21
26: ; preds = %21, %10
ret i32 0
}