#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 *argv[]) {
  int argn;
  if (argc < 2)
    return (0);
  argn = 0;
  while (++argn < argc) {
    while (*argv[argn] != '\0')
      ft_putchar(*(argv[argn]++));
    ft_putchar('\n');
  }
  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    113c <main+0x2c>
movl   $0x0,-0x4(%rbp)
jmp    11ac <main+0x9c>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmp    -0x8(%rbp),%eax
jge    11a5 <main+0x95>
jmp    115a <main+0x4a>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1196 <main+0x86>
mov    -0x10(%rbp),%rcx
movslq -0x14(%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    115a <main+0x4a>
mov    $0xa,%edi
call   1030 <ft_putchar@plt>
jmp    1143 <main+0x33>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
cmp    $0x2,%edi
jl     115c <main+0x4c>
mov    %rsi,%r15
mov    %edi,%r14d
mov    $0x1,%ebx
jmp    1140 <main+0x30>
nopw   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    1130 <main+0x20>
mov    $0xa,%edi
call   1030 <ft_putchar@plt>
add    $0x1,%rbx
cmp    %r14,%rbx
jne    1140 <main+0x30>
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**
%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 0, i32* %3
br label %38
10: ; preds = %2
store i32 0, i32* %6
br label %11
11: ; preds = %35, %10
%12 = load i32, i32* %6
%13 = add nsw i32 %12, 1
store i32 %13, i32* %6
%14 = load i32, i32* %4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %37
16: ; preds = %11
br label %17
17: ; preds = %26, %16
%18 = load i8**, i8*** %5
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8*, i8** %18, i64 %20
%22 = load i8*, i8** %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %35
26: ; preds = %17
%27 = load i8**, i8*** %5
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8*, i8** %27, i64 %29
%31 = load i8*, i8** %30
%32 = getelementptr inbounds i8, i8* %31, i32 1
store i8* %32, i8** %30
%33 = load i8, i8* %31
%34 = call i32 @ft_putchar(i8 signext %33)
br label %17
35: ; preds = %17
%36 = call i32 @ft_putchar(i8 signext 10)
br label %11
37: ; preds = %11
store i32 0, i32* %3
br label %38
38: ; preds = %37, %9
%39 = load i32, i32* %3
ret i32 %39
}

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, %20
%7 = phi i64 [ 1, %4 ], [ %22, %20 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %20, label %12
12: ; preds = %6, %12
%13 = phi i8* [ %17, %12 ], [ %9, %6 ]
%14 = getelementptr inbounds i8, i8* %13, i64 1
store i8* %14, i8** %8
%15 = load i8, i8* %13
%16 = tail call i32 @ft_putchar(i8 signext %15)
%17 = load i8*, i8** %8
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 0
br i1 %19, label %20, label %12
20: ; preds = %12, %6
%21 = tail call i32 @ft_putchar(i8 signext 10)
%22 = add nuw nsw i64 %7, 1
%23 = icmp eq i64 %22, %5
br i1 %23, label %24, label %6
24: ; preds = %20, %2
ret i32 0
}