#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 const *, int /*<<< orphan*/);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char const *, char *);
int main(int argc, const char *argv[]) {
  int nl = 1;
  int i;
  if ((argc > 1) && (strcmp(argv[1], "-n") == 0)) {
    ++argv;
    --argc;
    nl = 0;
  }
  for (i = 1; i < argc; i++) {
    if (i > 1)
      putchar(' ');
    fputs(argv[i], stdout);
  }
  if (nl)
    putchar('\n');
}


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   $0x1,-0x14(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1191 <main+0x61>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe9a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1191 <main+0x61>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11e0 <main+0xb0>
cmpl   $0x1,-0x18(%rbp)
jle    11b8 <main+0x88>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2e15(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1198 <main+0x68>
cmpl   $0x0,-0x14(%rbp)
je     11f4 <main+0xc4>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jl     11b6 <main+0x86>
mov    %rsi,%r13
mov    %edi,%r15d
mov    0x8(%rsi),%rdi
lea    0xeaf(%rip),%rsi
call   1050 <strcmp@plt>
mov    %rax,%r14
test   %rax,%rax
jne    116c <main+0x3c>
add    $0xffffffff,%r15d
cmp    $0x2,%r15d
jb     11c0 <main+0x90>
add    $0x8,%r13
mov    0x8(%r13),%rdi
mov    0x2e69(%rip),%r12
mov    (%r12),%esi
call   1040 <fputs@plt>
cmp    $0x2,%r15d
je     11b1 <main+0x81>
mov    %r15d,%ebp
mov    $0x2,%ebx
xchg   %ax,%ax
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x0(%r13,%rbx,8),%rdi
mov    (%r12),%esi
call   1040 <fputs@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1190 <main+0x60>
test   %r14,%r14
je     11c0 <main+0x90>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%8 = load i32, i32* %4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %21
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %10
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i32 1
store i8** %18, i8*** %5
%19 = load i32, i32* %4
%20 = add nsw i32 %19, -1
store i32 %20, i32* %4
store i32 0, i32* %6
br label %21
21: ; preds = %16, %10, %2
store i32 1, i32* %7
br label %22
22: ; preds = %39, %21
%23 = load i32, i32* %7
%24 = load i32, i32* %4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %42
26: ; preds = %22
%27 = load i32, i32* %7
%28 = icmp sgt i32 %27, 1
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @putchar(i8 signext 32)
br label %31
31: ; preds = %29, %26
%32 = load i8**, i8*** %5
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %32, i64 %34
%36 = load i8*, i8** %35
%37 = load i32, i32* @stdout
%38 = call i32 @fputs(i8* %36, i32 %37)
br label %39
39: ; preds = %31
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %22
42: ; preds = %22
%43 = load i32, i32* %6
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @putchar(i8 signext 10)
br label %47
47: ; preds = %45, %42
%48 = load i32, i32* %3
ret i32 %48
}

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 %31
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 %9, label %12
9: ; preds = %4
%10 = add nsw i32 %0, -1
%11 = icmp ugt i32 %10, 1
br i1 %11, label %12, label %33
12: ; preds = %4, %9
%13 = phi i8** [ %5, %9 ], [ %1, %4 ]
%14 = phi i32 [ %10, %9 ], [ %0, %4 ]
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds i8*, i8** %13, i64 1
%17 = load i8*, i8** %16
%18 = load i32, i32* @stdout
%19 = tail call i32 @fputs(i8* %17, i32 %18)
%20 = icmp eq i32 %14, 2
br i1 %20, label %30, label %21
21: ; preds = %12, %21
%22 = phi i64 [ %28, %21 ], [ 2, %12 ]
%23 = tail call i32 @putchar(i8 signext 32)
%24 = getelementptr inbounds i8*, i8** %13, i64 %22
%25 = load i8*, i8** %24
%26 = load i32, i32* @stdout
%27 = tail call i32 @fputs(i8* %25, i32 %26)
%28 = add nuw nsw i64 %22, 1
%29 = icmp eq i64 %28, %15
br i1 %29, label %30, label %21
30: ; preds = %21, %12
br i1 %8, label %33, label %31
31: ; preds = %2, %30
%32 = tail call i32 @putchar(i8 signext 10)
br label %33
33: ; preds = %9, %31, %30
ret i32 0
}