#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) {
  char *tmp[31];
  int i;
  i = 0;
  while (++argv)
    tmp[i++] = *argv;
  i = 0;
  while (i < argc - 1) {
    while (*tmp[i])
      ft_putchar(*tmp[i]++);
    ft_putchar('\n');
    i++;
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x114(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1170 <main+0x60>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x114(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x114(%rbp)
cltq
mov    %rcx,-0x110(%rbp,%rax,8)
ff
jmp    1133 <main+0x23>
movl   $0x0,-0x114(%rbp)
mov    -0x114(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    11f4 <main+0xe4>
jmp    1193 <main+0x83>
movslq -0x114(%rbp),%rax
mov    -0x110(%rbp,%rax,8),%rax
ff
cmpb   $0x0,(%rax)
je     11d6 <main+0xc6>
movslq -0x114(%rbp),%rcx
mov    -0x110(%rbp,%rcx,8),%rax
ff
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x110(%rbp,%rcx,8)
ff
movsbl (%rax),%edi
call   1030 <ft_putchar@plt>
jmp    1193 <main+0x83>
mov    $0xa,%edi
call   1030 <ft_putchar@plt>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    117a <main+0x6a>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [31 x i8*]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
br label %8
8: ; preds = %12, %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i32 1
store i8** %10, i8*** %5
%11 = icmp ne i8** %10, null
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i8**, i8*** %5
%14 = load i8*, i8** %13
%15 = load i32, i32* %7
%16 = add nsw i32 %15, 1
store i32 %16, i32* %7
%17 = sext i32 %15 to i64
%18 = getelementptr inbounds [31 x i8*], [31 x i8*]* %6, i64 0, i64 %17
store i8* %14, i8** %18
br label %8
19: ; preds = %8
store i32 0, i32* %7
br label %20
20: ; preds = %41, %19
%21 = load i32, i32* %7
%22 = load i32, i32* %4
%23 = sub nsw i32 %22, 1
%24 = icmp slt i32 %21, %23
br i1 %24, label %25, label %45
25: ; preds = %20
br label %26
26: ; preds = %33, %25
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [31 x i8*], [31 x i8*]* %6, i64 0, i64 %28
%30 = load i8*, i8** %29
%31 = load i8, i8* %30
%32 = icmp ne i8 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %26
%34 = load i32, i32* %7
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [31 x i8*], [31 x i8*]* %6, i64 0, i64 %35
%37 = load i8*, i8** %36
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %36
%39 = load i8, i8* %37
%40 = call i32 @ft_putchar(i8 signext %39)
br label %26
41: ; preds = %26
%42 = call i32 @ft_putchar(i8 signext 10)
%43 = load i32, i32* %7
%44 = add nsw i32 %43, 1
store i32 %44, i32* %7
br label %20
45: ; preds = %20
ret i32 0
}

LLVM IR (-O2):