#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
char *parse_exename(char const *);
void parse_print_help(FILE *fp, const char *cmd, int multi) {
  fprintf(fp,
          "Usage: %s [options] infile... \n"
          "  --help            print this help message\n"
          "  --version         print the VTK version\n"
          "  -o <file>         the output file\n"
          "  -I <dir>          add an include directory\n"
          "  -D <macro[=def]>  define a preprocessor macro\n"
          "  -U <macro>        undefine a preprocessor macro\n"
          "  @<file>           read arguments from a file\n",
          parse_exename(cmd));
  if (!multi) {
    fprintf(
        fp,
        "  --hints <file>    the hints file to use\n"
        "  --types <file>    the type hierarchy file to use\n"
        "  --concrete        force concrete class (ignored, deprecated)\n"
        "  --abstract        force abstract class (ignored, deprecated)\n"
        "  --vtkobject       vtkObjectBase-derived class (ignored, "
        "deprecated)\n"
        "  --special         non-vtkObjectBase class (ignored, deprecated)\n");
  }
}


x86 assembly (clang, -O0):
<parse_print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <parse_exename@plt>
mov    -0x20(%rbp),%rdi
mov    %rax,%rdx
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
cmpl   $0x0,-0x14(%rbp)
jne    1175 <parse_print_help+0x55>
mov    -0x8(%rbp),%rdi
lea    0xfea(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_print_help>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1040 <parse_exename@plt>
lea    0xeb9(%rip),%rsi
mov    %rbx,%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
test   %ebp,%ebp
je     115f <parse_print_help+0x2f>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xff2(%rip),%rdi
mov    $0x163,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [344 x i8] c"Usage: %s [options] infile... \0A --help print this help message\0A --version print the VTK version\0A -o <file> the output file\0A -I <dir> add an include directory\0A -D <macro[=def]> define a preprocessor macro\0A -U <macro> undefine a preprocessor macro\0A @<file> read arguments from a file\0A\00"
@.str.1 = [356 x i8] c" --hints <file> the hints file to use\0A --types <file> the type hierarchy file to use\0A --concrete force concrete class (ignored, deprecated)\0A --abstract force abstract class (ignored, deprecated)\0A --vtkobject vtkObjectBase-derived class (ignored, deprecated)\0A --special non-vtkObjectBase class (ignored, deprecated)\0A\00"
define void @parse_print_help(i32* %0, i8* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32
store i32* %0, i32** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32*, i32** %4
%8 = load i8*, i8** %5
%9 = call i8* @parse_exename(i8* %8)
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([344 x i8], [344 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i32, i32* %6
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %3
%14 = load i32*, i32** %4
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([356 x i8], [356 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %13, %3
ret void
}

LLVM IR (-O2):
@.str = [344 x i8] c"Usage: %s [options] infile... \0A --help print this help message\0A --version print the VTK version\0A -o <file> the output file\0A -I <dir> add an include directory\0A -D <macro[=def]> define a preprocessor macro\0A -U <macro> undefine a preprocessor macro\0A @<file> read arguments from a file\0A\00"
@.str.1 = [356 x i8] c" --hints <file> the hints file to use\0A --types <file> the type hierarchy file to use\0A --concrete force concrete class (ignored, deprecated)\0A --abstract force abstract class (ignored, deprecated)\0A --vtkobject vtkObjectBase-derived class (ignored, deprecated)\0A --special non-vtkObjectBase class (ignored, deprecated)\0A\00"
define void @parse_print_help(i32* nocapture %0, i8* %1, i32 %2) {
%4 = tail call i8* @parse_exename(i8* %1)
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([344 x i8], [344 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = icmp eq i32 %2, 0
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([356 x i8], [356 x i8]* @.str.1, i64 0, i64 0), i64 355, i64 1, i32* %0)
br label %9
9: ; preds = %7, %3
ret void
}