#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*/ printf(char *, char *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int nflag;
  if (*++argv && !strcmp(*argv, "-n")) {
    ++argv;
    nflag = 1;
  } else
    nflag = 0;
  while (*argv) {
    (void)printf("%s", *argv);
    if (*++argv)
      putchar(' ');
  }
  if (!nflag)
    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)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
cmpq   $0x0,0x8(%rax)
je     11a4 <main+0x64>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe82(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11a4 <main+0x64>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
jmp    11ab <main+0x6b>
movl   $0x0,-0x14(%rbp)
jmp    11b0 <main+0x70>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     11fa <main+0xba>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe37(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
cmpq   $0x0,0x8(%rax)
je     11f5 <main+0xb5>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    11b0 <main+0x70>
cmpl   $0x0,-0x14(%rbp)
jne    120e <main+0xce>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    0x8(%rsi),%rdi
test   %rdi,%rdi
je     11bb <main+0x7b>
mov    %rsi,%rbx
lea    0x8(%rsi),%rbp
lea    0xea5(%rip),%rsi
call   1050 <strcmp@plt>
mov    %eax,%r14d
lea    0x10(%rbx),%rax
xor    %ecx,%ecx
test   %r14d,%r14d
sete   %cl
cmove  %rax,%rbp
mov    0x8(%rbx,%rcx,8),%rsi
test   %rsi,%rsi
je     11b6 <main+0x76>
add    $0x8,%rbp
lea    0xe7b(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <printf@plt>
cmpq   $0x0,0x0(%rbp)
je     11b6 <main+0x76>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x0(%rbp),%rsi
add    $0x8,%rbp
test   %rsi,%rsi
jne    1190 <main+0x50>
test   %r14d,%r14d
je     11c5 <main+0x85>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-n\00"
@.str.1 = [3 x i8] c"%s\00"
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 i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i32 1
store i8** %8, i8*** %5
%9 = load i8*, i8** %8
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = load i8*, i8** %12
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = icmp ne i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %11
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i32 1
store i8** %18, i8*** %5
store i32 1, i32* %6
br label %20
19: ; preds = %11, %2
store i32 0, i32* %6
br label %20
20: ; preds = %19, %16
br label %21
21: ; preds = %35, %20
%22 = load i8**, i8*** %5
%23 = load i8*, i8** %22
%24 = icmp ne i8* %23, null
br i1 %24, label %25, label %36
25: ; preds = %21
%26 = load i8**, i8*** %5
%27 = load i8*, i8** %26
%28 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i32 1
store i8** %30, i8*** %5
%31 = load i8*, i8** %30
%32 = icmp ne i8* %31, null
br i1 %32, label %33, label %35
33: ; preds = %25
%34 = call i32 @putchar(i8 signext 32)
br label %35
35: ; preds = %33, %25
br label %21
36: ; preds = %21
%37 = load i32, i32* %6
%38 = icmp ne i32 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = call i32 @putchar(i8 signext 10)
br label %41
41: ; preds = %39, %36
%42 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-n\00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %26, label %6
6: ; preds = %2
%7 = tail call i32 @strcmp(i8* %4, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
%9 = getelementptr inbounds i8*, i8** %1, i64 2
%10 = select i1 %8, i8** %9, i8** %3
%11 = load i8*, i8** %10
%12 = icmp eq i8* %11, null
br i1 %12, label %25, label %13
13: ; preds = %6, %21
%14 = phi i8* [ %23, %21 ], [ %11, %6 ]
%15 = phi i8** [ %17, %21 ], [ %10, %6 ]
%16 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%17 = getelementptr inbounds i8*, i8** %15, i64 1
%18 = load i8*, i8** %17
%19 = icmp eq i8* %18, null
br i1 %19, label %20, label %21
20: ; preds = %13
br i1 %8, label %28, label %26
21: ; preds = %13
%22 = tail call i32 @putchar(i8 signext 32)
%23 = load i8*, i8** %17
%24 = icmp eq i8* %23, null
br i1 %24, label %25, label %13
25: ; preds = %21, %6
br i1 %8, label %28, label %26
26: ; preds = %2, %20, %25
%27 = tail call i32 @putchar(i8 signext 10)
br label %28
28: ; preds = %20, %26, %25
%29 = tail call i32 @exit(i32 0)
unreachable
}