#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*/ f(char *, char **);
int /*<<< orphan*/ uppercase(char *);
int main() {
  char *none = 0;
  static char *strings[] = {"apple",    "banana", "carrot", "daikon",
                            "eggplant", "fig",    "grape",  0};
  f(strings[1], strings);
  uppercase("huckleberry");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
mov    0x2f0a(%rip),%rdi
lea    0x2efb(%rip),%rsi
call   1030 <f@plt>
lea    0xedd(%rip),%rdi
call   1040 <uppercase@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2f20(%rip),%rdi
lea    0x2f11(%rip),%rsi
call   1030 <f@plt>
lea    0xef3(%rip),%rdi
call   1040 <uppercase@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@main.strings = internal global [8 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* null]
@.str = [6 x i8] c"apple\00"
@.str.1 = [7 x i8] c"banana\00"
@.str.2 = [7 x i8] c"carrot\00"
@.str.3 = [7 x i8] c"daikon\00"
@.str.4 = [9 x i8] c"eggplant\00"
@.str.5 = [4 x i8] c"fig\00"
@.str.6 = [6 x i8] c"grape\00"
@.str.7 = [12 x i8] c"huckleberry\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
store i8* null, i8** %2
%3 = load i8*, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @main.strings, i64 0, i64 1)
%4 = call i32 @f(i8* %3, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @main.strings, i64 0, i64 0))
%5 = call i32 @uppercase(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@main.strings = internal global [8 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* null]
@.str = [6 x i8] c"apple\00"
@.str.1 = [7 x i8] c"banana\00"
@.str.2 = [7 x i8] c"carrot\00"
@.str.3 = [7 x i8] c"daikon\00"
@.str.4 = [9 x i8] c"eggplant\00"
@.str.5 = [4 x i8] c"fig\00"
@.str.6 = [6 x i8] c"grape\00"
@.str.7 = [12 x i8] c"huckleberry\00"
define i32 @main() {
%1 = load i8*, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @main.strings, i64 0, i64 1)
%2 = tail call i32 @f(i8* %1, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @main.strings, i64 0, i64 0))
%3 = tail call i32 @uppercase(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}