#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*/ ft_putchar(char);
int main(int argc, char const *argv[]) {
  while (argc-- > 1) {
    while (*argv[argc])
      ft_putchar(*argv[argc]++);
    ft_putchar('\n');
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x1,%eax
jle    1187 <main+0x77>
jmp    113f <main+0x2f>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmpb   $0x0,(%rax)
je     1178 <main+0x68>
mov    -0x10(%rbp),%rcx
movslq -0x8(%rbp),%rdx
mov    (%rcx,%rdx,8),%rax
mov    %rax,%rsi
add    $0x1,%rsi
mov    %rsi,(%rcx,%rdx,8)
movsbl (%rax),%edi
call   1030 <ft_putchar@plt>
jmp    113f <main+0x2f>
mov    $0xa,%edi
call   1030 <ft_putchar@plt>
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
cmp    $0x2,%edi
jl     117b <main+0x6b>
mov    %rsi,%r15
mov    %edi,%r14d
jmp    1143 <main+0x33>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <ft_putchar@plt>
cmp    $0x2,%r14
mov    %rbx,%r14
jle    117b <main+0x6b>
lea    -0x1(%r14),%rbx
mov    -0x8(%r15,%r14,8),%rax
cmpb   $0x0,(%rax)
je     1130 <main+0x20>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x1(%rax),%rcx
mov    %rcx,(%r15,%rbx,8)
movsbl (%rax),%edi
call   1030 <ft_putchar@plt>
mov    (%r15,%rbx,8),%rax
cmpb   $0x0,(%rax)
jne    1160 <main+0x50>
jmp    1130 <main+0x20>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %6
6: ; preds = %28, %2
%7 = load i32, i32* %4
%8 = add nsw i32 %7, -1
store i32 %8, i32* %4
%9 = icmp sgt i32 %7, 1
br i1 %9, label %10, label %30
10: ; preds = %6
br label %11
11: ; preds = %19, %10
%12 = load i8**, i8*** %5
%13 = load i32, i32* %4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8*, i8** %12, i64 %14
%16 = load i8*, i8** %15
%17 = load i8, i8* %16
%18 = icmp ne i8 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %11
%20 = load i8**, i8*** %5
%21 = load i32, i32* %4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8*, i8** %20, i64 %22
%24 = load i8*, i8** %23
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %23
%26 = load i8, i8* %24
%27 = call i32 @ft_putchar(i8 signext %26)
br label %11
28: ; preds = %11
%29 = call i32 @ft_putchar(i8 signext 10)
br label %6
30: ; preds = %6
ret i32 0
}

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