#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*/ displayArrayOfStrings(char **, int);
int /*<<< orphan*/ initialize_main(int *, char ***, char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  initialize_main(&argc, &argv, " ");
  printf("\n***** %d arguments parsed from the stdin input *****\n", argc);
  displayArrayOfStrings(argv, argc);
  printf("***************************************************\n\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x4(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xeb2(%rip),%rdx
call   1040 <initialize_main@plt>
mov    -0x4(%rbp),%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1050 <displayArrayOfStrings@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
mov    %edi,0xc(%rsp)
mov    %rsi,0x10(%rsp)
lea    0xeac(%rip),%rdx
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1050 <initialize_main@plt>
mov    0xc(%rsp),%esi
lea    0xe94(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%rdi
mov    0xc(%rsp),%esi
call   1060 <displayArrayOfStrings@plt>
lea    0xeaf(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [55 x i8] c"\0A***** %d arguments parsed from the stdin input *****\0A\00"
@.str.2 = [54 x i8] c"***************************************************\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @initialize_main(i32* %3, i8*** %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* %3
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i8**, i8*** %4
%9 = load i32, i32* %3
%10 = call i32 @displayArrayOfStrings(i8** %8, i32 %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [55 x i8] c"\0A***** %d arguments parsed from the stdin input *****\0A\00"
@str = [53 x i8] c"***************************************************\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @initialize_main(i32* %3, i8*** %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* %3
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i8**, i8*** %4
%9 = load i32, i32* %3
%10 = call i32 @displayArrayOfStrings(i8** %8, i32 %9)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
ret i32 0
}