#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void print_help(int status) {
  printf("Usage:\n");
  printf("\tdbdctl setup-snapshot [-c <cache size>] [-f fallocate] <block "
         "device> <cow file> <minor>\n");
  printf("\tdbdctl reload-snapshot [-c <cache size>] <block device> <cow file> "
         "<minor>\n");
  printf("\tdbdctl reload-incremental [-c <cache size>] <block device> <cow "
         "file> <minor>\n");
  printf("\tdbdctl destroy <minor>\n");
  printf("\tdbdctl transition-to-incremental <minor>\n");
  printf("\tdbdctl transition-to-snapshot [-f fallocate] <cow file> <minor>\n");
  printf("\tdbdctl reconfigure [-c <cache size>] <minor>\n");
  printf("\tdbdctl help\n\n");
  printf("for the reload commands, <cow file> should be specified relative to "
         "the root of <block device>\n");
  printf("cache size should be provided in bytes, and fallocate should be "
         "provided in megabytes\n");
  printf("note: if the -c or -f options are not specified for any given call, "
         "module defaults are used\n");
  exit(status);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1001(%rip),%rdi
call   1030 <puts@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0x1025(%rip),%rdi
call   1030 <puts@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c2(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [91 x i8] c"\09dbdctl setup-snapshot [-c <cache size>] [-f fallocate] <block device> <cow file> <minor>\0A\00"
@.str.2 = [77 x i8] c"\09dbdctl reload-snapshot [-c <cache size>] <block device> <cow file> <minor>\0A\00"
@.str.3 = [80 x i8] c"\09dbdctl reload-incremental [-c <cache size>] <block device> <cow file> <minor>\0A\00"
@.str.4 = [25 x i8] c"\09dbdctl destroy <minor>\0A\00"
@.str.5 = [43 x i8] c"\09dbdctl transition-to-incremental <minor>\0A\00"
@.str.6 = [66 x i8] c"\09dbdctl transition-to-snapshot [-f fallocate] <cow file> <minor>\0A\00"
@.str.7 = [47 x i8] c"\09dbdctl reconfigure [-c <cache size>] <minor>\0A\00"
@.str.8 = [15 x i8] c"\09dbdctl help\0A\0A\00"
@.str.9 = [96 x i8] c"for the reload commands, <cow file> should be specified relative to the root of <block device>\0A\00"
@.str.10 = [87 x i8] c"cache size should be provided in bytes, and fallocate should be provided in megabytes\0A\00"
@.str.11 = [94 x i8] c"note: if the -c or -f options are not specified for any given call, module defaults are used\0A\00"
define void @print_help(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.11, i64 0, i64 0))
%15 = load i32, i32* %2
%16 = call i32 @exit(i32 %15)
unreachable
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.12 = [90 x i8] c"\09dbdctl setup-snapshot [-c <cache size>] [-f fallocate] <block device> <cow file> <minor>\00"
@str.13 = [76 x i8] c"\09dbdctl reload-snapshot [-c <cache size>] <block device> <cow file> <minor>\00"
@str.14 = [79 x i8] c"\09dbdctl reload-incremental [-c <cache size>] <block device> <cow file> <minor>\00"
@str.15 = [24 x i8] c"\09dbdctl destroy <minor>\00"
@str.16 = [42 x i8] c"\09dbdctl transition-to-incremental <minor>\00"
@str.17 = [65 x i8] c"\09dbdctl transition-to-snapshot [-f fallocate] <cow file> <minor>\00"
@str.18 = [46 x i8] c"\09dbdctl reconfigure [-c <cache size>] <minor>\00"
@str.19 = [14 x i8] c"\09dbdctl help\0A\00"
@str.20 = [95 x i8] c"for the reload commands, <cow file> should be specified relative to the root of <block device>\00"
@str.21 = [86 x i8] c"cache size should be provided in bytes, and fallocate should be provided in megabytes\00"
@str.22 = [93 x i8] c"note: if the -c or -f options are not specified for any given call, module defaults are used\00"
define void @print_help(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @exit(i32 %0)
unreachable
}