#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 */
size_t fiftyoneDegreesGetProviderSizeWithPropertyCount(char const *, int);
int getEntityCountFromFile(char const *, char *);
int getSeparatorCount(char const *);
size_t
fiftyoneDegreesGetProviderSizeWithPropertyString(const char *fileName,
                                                 const char *properties) {
  int requiredPropertyCount = getSeparatorCount(properties);
  if (requiredPropertyCount == 0) {
    requiredPropertyCount = getEntityCountFromFile(fileName, "properties");
  }
  return fiftyoneDegreesGetProviderSizeWithPropertyCount(fileName,
                                                         requiredPropertyCount);
}


x86 assembly (clang, -O0):
<fiftyoneDegreesGetProviderSizeWithPropertyString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <getSeparatorCount@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1169 <fiftyoneDegreesGetProviderSizeWithPropertyString+0x39>
mov    -0x8(%rbp),%rdi
lea    0xe9f(%rip),%rsi
call   1030 <getEntityCountFromFile@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1050 <fiftyoneDegreesGetProviderSizeWithPropertyCount@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiftyoneDegreesGetProviderSizeWithPropertyString>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1040 <getSeparatorCount@plt>
test   %eax,%eax
jne    114f <fiftyoneDegreesGetProviderSizeWithPropertyString+0x1f>
lea    0xeb9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <getEntityCountFromFile@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1050 <fiftyoneDegreesGetProviderSizeWithPropertyCount@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"properties\00"
define i64 @fiftyoneDegreesGetProviderSizeWithPropertyString(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = call i32 @getSeparatorCount(i8* %6)
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i8*, i8** %3
%12 = call i32 @getEntityCountFromFile(i8* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 %12, i32* %5
br label %13
13: ; preds = %10, %2
%14 = load i8*, i8** %3
%15 = load i32, i32* %5
%16 = call i64 @fiftyoneDegreesGetProviderSizeWithPropertyCount(i8* %14, i32 %15)
ret i64 %16
}

LLVM IR (-O2):
@.str = [11 x i8] c"properties\00"
define i64 @fiftyoneDegreesGetProviderSizeWithPropertyString(i8* %0, i8* %1) {
%3 = tail call i32 @getSeparatorCount(i8* %1)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @getEntityCountFromFile(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
%8 = phi i32 [ %6, %5 ], [ %3, %2 ]
%9 = tail call i64 @fiftyoneDegreesGetProviderSizeWithPropertyCount(i8* %0, i32 %8)
ret i64 %9
}