#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*/ printf(char *, char const *, ...);
void printHelpOption(const char *optLong, char optShort, const char *value,
                     const char *text) {
  if (value != NULL) {
    printf("  --%s <%s>\t-%c <%s>", optLong, value, optShort, value);
  } else {
    printf("  --%s\t-%c", optLong, optShort);
  }
  printf(" :  %s\n", text);
}


x86 assembly (clang, -O0):
<printHelpOption>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1158 <printHelpOption+0x48>
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
movsbl -0x9(%rbp),%ecx
mov    -0x18(%rbp),%r8
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    116e <printHelpOption+0x5e>
mov    -0x8(%rbp),%rsi
movsbl -0x9(%rbp),%edx
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelpOption>:
push   %rbx
mov    %rcx,%rbx
mov    %esi,%ecx
mov    %rdi,%rsi
test   %rdx,%rdx
je     1131 <printHelpOption+0x21>
lea    0xedb(%rip),%rdi
mov    %rdx,%r8
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1141 <printHelpOption+0x31>
lea    0xedd(%rip),%rdi
mov    %ecx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c" --%s <%s>\09-%c <%s>\00"
@.str.1 = [11 x i8] c" --%s\09-%c\00"
@.str.2 = [8 x i8] c" : %s\0A\00"
define void @printHelpOption(i8* %0, i8 signext %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i8 %1, i8* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %7
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %18
11: ; preds = %4
%12 = load i8*, i8** %5
%13 = load i8*, i8** %7
%14 = load i8, i8* %6
%15 = sext i8 %14 to i32
%16 = load i8*, i8** %7
%17 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13, i32 %15, i8* %16)
br label %23
18: ; preds = %4
%19 = load i8*, i8** %5
%20 = load i8, i8* %6
%21 = sext i8 %20 to i32
%22 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %19, i32 %21)
br label %23
23: ; preds = %18, %11
%24 = load i8*, i8** %8
%25 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %24)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c" --%s <%s>\09-%c <%s>\00"
@.str.1 = [11 x i8] c" --%s\09-%c\00"
@.str.2 = [8 x i8] c" : %s\0A\00"
define void @printHelpOption(i8* %0, i8 signext %1, i8* %2, i8* %3) {
%5 = icmp eq i8* %2, null
%6 = sext i8 %1 to i32
br i1 %5, label %9, label %7
7: ; preds = %4
%8 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %2, i32 %6, i8* %2)
br label %11
9: ; preds = %4
%10 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %6)
br label %11
11: ; preds = %9, %7
%12 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %3)
ret void
}