#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  int i = 0;
  if (argc > 1) {
    if (strcmp(argv[1], "-n") == 0) {
      for (i = 2; i < argc; i++) {
        fputs(argv[i], stdout);
        if (i + 1 != argc)
          putchar(' ');
      }
    } else {
      for (i = 1; i < argc; i++) {
        fputs(argv[i], stdout);
        if (i + 1 != argc)
          putchar(' ');
      }
      putchar('\n');
    }
  } else
    putchar('\n');
  exit(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)
movl   $0x0,-0x14(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    124b <main+0x10b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe8a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11e3 <main+0xa3>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11de <main+0x9e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
je     11cb <main+0x8b>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    11d0 <main+0x90>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    118c <main+0x4c>
jmp    1246 <main+0x106>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    123c <main+0xfc>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
je     1229 <main+0xe9>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    122e <main+0xee>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11ea <main+0xaa>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1255 <main+0x115>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
cmp    $0x2,%edi
jl     11f8 <main+0xb8>
mov    %rsi,%r14
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
lea    0xe9f(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    11b8 <main+0x78>
cmp    $0x3,%ebp
jb     1202 <main+0xc2>
mov    %ebp,%r15d
lea    -0x2(%r15),%rbx
add    $0xfffffffffffffffd,%r15
xor    %ebp,%ebp
mov    0x2e58(%rip),%r12
jmp    1199 <main+0x59>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %rbp,%rbx
je     1202 <main+0xc2>
mov    0x10(%r14,%rbp,8),%rdi
mov    (%r12),%esi
call   1040 <fputs@plt>
cmp    %rbp,%r15
je     1190 <main+0x50>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1190 <main+0x50>
mov    %ebp,%r15d
lea    -0x1(%r15),%rbx
add    $0xfffffffffffffffe,%r15
xor    %ebp,%ebp
mov    0x2e14(%rip),%r12
jmp    11d9 <main+0x99>
xchg   %ax,%ax
add    $0x1,%rbp
cmp    %rbp,%rbx
je     11f8 <main+0xb8>
mov    0x8(%r14,%rbp,8),%rdi
mov    (%r12),%esi
call   1040 <fputs@plt>
cmp    %rbp,%r15
je     11d0 <main+0x90>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    11d0 <main+0x90>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-n\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
store i32 0, i32* %6
%7 = load i32, i32* %4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %65
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %39
15: ; preds = %9
store i32 2, i32* %6
br label %16
16: ; preds = %35, %15
%17 = load i32, i32* %6
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %38
20: ; preds = %16
%21 = load i8**, i8*** %5
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = load i32, i32* @stdout
%27 = call i32 @fputs(i8* %25, i32 %26)
%28 = load i32, i32* %6
%29 = add nsw i32 %28, 1
%30 = load i32, i32* %4
%31 = icmp ne i32 %29, %30
br i1 %31, label %32, label %34
32: ; preds = %20
%33 = call i32 @putchar(i8 signext 32)
br label %34
34: ; preds = %32, %20
br label %35
35: ; preds = %34
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %16
38: ; preds = %16
br label %64
39: ; preds = %9
store i32 1, i32* %6
br label %40
40: ; preds = %59, %39
%41 = load i32, i32* %6
%42 = load i32, i32* %4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %62
44: ; preds = %40
%45 = load i8**, i8*** %5
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %45, i64 %47
%49 = load i8*, i8** %48
%50 = load i32, i32* @stdout
%51 = call i32 @fputs(i8* %49, i32 %50)
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
%54 = load i32, i32* %4
%55 = icmp ne i32 %53, %54
br i1 %55, label %56, label %58
56: ; preds = %44
%57 = call i32 @putchar(i8 signext 32)
br label %58
58: ; preds = %56, %44
br label %59
59: ; preds = %58
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 1
store i32 %61, i32* %6
br label %40
62: ; preds = %40
%63 = call i32 @putchar(i8 signext 10)
br label %64
64: ; preds = %62, %38
br label %67
65: ; preds = %2
%66 = call i32 @putchar(i8 signext 10)
br label %67
67: ; preds = %65, %64
%68 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-n\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %39
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %4
%10 = zext i32 %0 to i64
br label %27
11: ; preds = %4
%12 = icmp ugt i32 %0, 2
br i1 %12, label %13, label %41
13: ; preds = %11
%14 = zext i32 %0 to i64
br label %15
15: ; preds = %13, %25
%16 = phi i64 [ 2, %13 ], [ %21, %25 ]
%17 = getelementptr inbounds i8*, i8** %1, i64 %16
%18 = load i8*, i8** %17
%19 = load i32, i32* @stdout
%20 = tail call i32 @fputs(i8* %18, i32 %19)
%21 = add nuw nsw i64 %16, 1
%22 = icmp eq i64 %21, %14
br i1 %22, label %25, label %23
23: ; preds = %15
%24 = tail call i32 @putchar(i8 signext 32)
br label %25
25: ; preds = %15, %23
%26 = icmp eq i64 %21, %14
br i1 %26, label %41, label %15
27: ; preds = %9, %37
%28 = phi i64 [ 1, %9 ], [ %33, %37 ]
%29 = getelementptr inbounds i8*, i8** %1, i64 %28
%30 = load i8*, i8** %29
%31 = load i32, i32* @stdout
%32 = tail call i32 @fputs(i8* %30, i32 %31)
%33 = add nuw nsw i64 %28, 1
%34 = icmp eq i64 %33, %10
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = tail call i32 @putchar(i8 signext 32)
br label %37
37: ; preds = %27, %35
%38 = icmp eq i64 %33, %10
br i1 %38, label %39, label %27
39: ; preds = %37, %2
%40 = tail call i32 @putchar(i8 signext 10)
br label %41
41: ; preds = %25, %39, %11
%42 = tail call i32 @exit(i32 0)
unreachable
}