#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*/ putc(char, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  if (argc < 2)
    return 1;
  int i;
  for (i = 1; i < argc; i++) {
    fputs(argv[i], stdout);
    if (i < argc - 1)
      putc(' ', stdout);
  }
  putc('\n', stdout);
  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   $0x2,-0x8(%rbp)
jge    114c <main+0x2c>
movl   $0x1,-0x4(%rbp)
jmp    11ca <main+0xaa>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11b0 <main+0x90>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    119d <main+0x7d>
mov    0x2e4f(%rip),%rax
mov    (%rax),%esi
mov    $0x20,%edi
call   1040 <putc@plt>
jmp    11a2 <main+0x82>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1153 <main+0x33>
mov    0x2e29(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x1,%eax
cmp    $0x2,%edi
jl     1194 <main+0x74>
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rsi,%r14
lea    -0x1(%rdi),%r15d
mov    %edi,%r13d
mov    $0x1,%ebx
mov    0x2e97(%rip),%r12
jmp    1159 <main+0x39>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    %rbx,%r13
je     117b <main+0x5b>
mov    (%r14,%rbx,8),%rdi
mov    (%r12),%esi
call   1030 <fputs@plt>
cmp    %r15,%rbx
jae    1150 <main+0x30>
mov    (%r12),%esi
mov    $0x20,%edi
call   1040 <putc@plt>
jmp    1150 <main+0x30>
mov    (%r12),%esi
mov    $0xa,%edi
call   1040 <putc@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@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 slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 1, i32* %3
br label %37
10: ; preds = %2
store i32 1, i32* %6
br label %11
11: ; preds = %31, %10
%12 = load i32, i32* %6
%13 = load i32, i32* %4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %34
15: ; preds = %11
%16 = load i8**, i8*** %5
%17 = load i32, i32* %6
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8*, i8** %16, i64 %18
%20 = load i8*, i8** %19
%21 = load i32, i32* @stdout
%22 = call i32 @fputs(i8* %20, i32 %21)
%23 = load i32, i32* %6
%24 = load i32, i32* %4
%25 = sub nsw i32 %24, 1
%26 = icmp slt i32 %23, %25
br i1 %26, label %27, label %30
27: ; preds = %15
%28 = load i32, i32* @stdout
%29 = call i32 @putc(i8 signext 32, i32 %28)
br label %30
30: ; preds = %27, %15
br label %31
31: ; preds = %30
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %11
34: ; preds = %11
%35 = load i32, i32* @stdout
%36 = call i32 @putc(i8 signext 10, i32 %35)
store i32 0, i32* %3
br label %37
37: ; preds = %34, %9
%38 = load i32, i32* %3
ret i32 %38
}

LLVM IR (-O2):
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %24, label %4
4: ; preds = %2
%5 = add nsw i32 %0, -1
%6 = zext i32 %5 to i64
%7 = zext i32 %0 to i64
br label %8
8: ; preds = %4, %18
%9 = phi i64 [ 1, %4 ], [ %19, %18 ]
%10 = getelementptr inbounds i8*, i8** %1, i64 %9
%11 = load i8*, i8** %10
%12 = load i32, i32* @stdout
%13 = tail call i32 @fputs(i8* %11, i32 %12)
%14 = icmp ult i64 %9, %6
br i1 %14, label %15, label %18
15: ; preds = %8
%16 = load i32, i32* @stdout
%17 = tail call i32 @putc(i8 signext 32, i32 %16)
br label %18
18: ; preds = %8, %15
%19 = add nuw nsw i64 %9, 1
%20 = icmp eq i64 %19, %7
br i1 %20, label %21, label %8
21: ; preds = %18
%22 = load i32, i32* @stdout
%23 = tail call i32 @putc(i8 signext 10, i32 %22)
br label %24
24: ; preds = %2, %21
%25 = phi i32 [ 0, %21 ], [ 1, %2 ]
ret i32 %25
}