#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_convert_to_c(char *);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char **argv) {
  int i;
  if (argc == 1)
    write(1, "No file specified.\n", 19);
  i = 1;
  while (i < argc) {
    ft_convert_to_c(argv[1]);
    i++;
  }
  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   $0x1,-0x8(%rbp)
jne    1156 <main+0x36>
mov    $0x1,%edi
lea    0xeb4(%rip),%rsi
mov    $0x13,%edx
call   1030 <write@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1184 <main+0x64>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <ft_convert_to_c@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115d <main+0x3d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x1,%edi
jne    1140 <main+0x20>
lea    0xed1(%rip),%rsi
mov    $0x1,%edi
mov    $0x13,%edx
call   1030 <write@plt>
jmp    115e <main+0x3e>
jle    115e <main+0x3e>
mov    %rsi,%rbx
mov    %edi,%ebp
add    $0xffffffff,%ebp
nopw   0x0(%rax,%rax,1)
mov    0x8(%rbx),%rdi
call   1040 <ft_convert_to_c@plt>
add    $0xffffffff,%ebp
jne    1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"No file specified.\0A\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 i32, i32* %4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @write(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 19)
br label %11
11: ; preds = %9, %2
store i32 1, i32* %6
br label %12
12: ; preds = %16, %11
%13 = load i32, i32* %6
%14 = load i32, i32* %4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @ft_convert_to_c(i8* %19)
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
br label %12
23: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"No file specified.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 19)
br label %16
6: ; preds = %2
%7 = icmp sgt i32 %0, 1
br i1 %7, label %8, label %16
8: ; preds = %6
%9 = getelementptr inbounds i8*, i8** %1, i64 1
br label %10
10: ; preds = %8, %10
%11 = phi i32 [ 1, %8 ], [ %14, %10 ]
%12 = load i8*, i8** %9
%13 = tail call i32 @ft_convert_to_c(i8* %12)
%14 = add nuw nsw i32 %11, 1
%15 = icmp eq i32 %14, %0
br i1 %15, label %16, label %10
16: ; preds = %10, %4, %6
ret i32 0
}