#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 */
char *getenv(char *);
int /*<<< orphan*/ parseConfigurationFileOptionsInDirectory(char const *const);
int /*<<< orphan*/ parseFileOptions(char *);
void parseConfigurationFileOptions(void) {
  const char *const home = getenv("HOME");
  parseFileOptions("/etc/ctags.conf");
  parseFileOptions("/usr/local/etc/ctags.conf");
  if (home != NULL) {
    parseConfigurationFileOptionsInDirectory(home);
  } else {
  }
  parseConfigurationFileOptionsInDirectory(".");
}


x86 assembly (clang, -O0):
<parseConfigurationFileOptions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x8(%rbp)
lea    0xec0(%rip),%rdi
call   1040 <parseFileOptions@plt>
lea    0xeaa(%rip),%rdi
call   1040 <parseFileOptions@plt>
cmpq   $0x0,-0x8(%rbp)
je     1179 <parseConfigurationFileOptions+0x49>
mov    -0x8(%rbp),%rdi
call   1050 <parseConfigurationFileOptionsInDirectory@plt>
jmp    117e <parseConfigurationFileOptions+0x4e>
jmp    117e <parseConfigurationFileOptions+0x4e>
lea    0xe9a(%rip),%rdi
call   1050 <parseConfigurationFileOptionsInDirectory@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseConfigurationFileOptions>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rbx
lea    0xec8(%rip),%rdi
call   1040 <parseFileOptions@plt>
lea    0xeb2(%rip),%rdi
call   1040 <parseFileOptions@plt>
test   %rbx,%rbx
je     1165 <parseConfigurationFileOptions+0x35>
mov    %rbx,%rdi
call   1050 <parseConfigurationFileOptionsInDirectory@plt>
lea    0xeb3(%rip),%rdi
pop    %rbx
jmp    1050 <parseConfigurationFileOptionsInDirectory@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"HOME\00"
@.str.1 = [16 x i8] c"/etc/ctags.conf\00"
@.str.2 = [26 x i8] c"/usr/local/etc/ctags.conf\00"
@.str.3 = [2 x i8] c".\00"
define void @parseConfigurationFileOptions() {
%1 = alloca i8*
%2 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i8* %2, i8** %1
%3 = call i32 @parseFileOptions(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @parseFileOptions(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%5 = load i8*, i8** %1
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i8*, i8** %1
%9 = call i32 @parseConfigurationFileOptionsInDirectory(i8* %8)
br label %11
10: ; preds = %0
br label %11
11: ; preds = %10, %7
%12 = call i32 @parseConfigurationFileOptionsInDirectory(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"HOME\00"
@.str.1 = [16 x i8] c"/etc/ctags.conf\00"
@.str.2 = [26 x i8] c"/usr/local/etc/ctags.conf\00"
@.str.3 = [2 x i8] c".\00"
define void @parseConfigurationFileOptions() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @parseFileOptions(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @parseFileOptions(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%4 = icmp eq i8* %1, null
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = tail call i32 @parseConfigurationFileOptionsInDirectory(i8* %1)
br label %7
7: ; preds = %0, %5
%8 = tail call i32 @parseConfigurationFileOptionsInDirectory(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}