#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 *);
void help(void) {
  printf("c 
             create a BT of size 's'\n"
         "d                 destroy the current BT\n"
         "s <i>             set the bit index 'i'\n"
         "r <i>             reset the bit index 'i'\n"
         "g <i>             get the bit index 'i'\n");
  printf("sr [<i> <i>]      set the specified range\n"
         "rr [<i> <i>]      reset the specified range\n"
         "is [<i> <i>]      is the specified range set?\n"
         "ir [<i> <i>]      is the specified range reset?\n");
  printf("f <l> [<i> <i>]   find a reset range of length 'l'.\n"
         "fh <l> [<i> <i>]  find a reset range length 'l', working downwards\n"
         "fl <l> [<i> <i>]  find a reset range of length at least 'l'\n"
         "q                 quit\n"
         "?                 print this message\n");
  printf("\n"
         "No way of testing BTSize, BTRangesSame, or BTCopyInvertRange.\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
call   1030 <printf@plt>
lea    0x1134(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1051(%rip),%rdi
call   1030 <puts@plt>
lea    0x1134(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [206 x i8] c"c 
 create a BT of size 's'\0Ad destroy the current BT\0As <i> set the bit index 'i'\0Ar <i> reset the bit index 'i'\0Ag <i> get the bit index 'i'\0A\00"
@.str.1 = [181 x i8] c"sr [<i> <i>] set the specified range\0Arr [<i> <i>] reset the specified range\0Ais [<i> <i>] is the specified range set?\0Air [<i> <i>] is the specified range reset?\0A\00"
@.str.2 = [240 x i8] c"f <l> [<i> <i>] find a reset range of length 'l'.\0Afh <l> [<i> <i>] find a reset range length 'l', working downwards\0Afl <l> [<i> <i>] find a reset range of length at least 'l'\0Aq quit\0A? print this message\0A\00"
@.str.3 = [64 x i8] c"\0ANo way of testing BTSize, BTRangesSame, or BTCopyInvertRange.\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([206 x i8], [206 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([240 x i8], [240 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [205 x i8] c"c 
 create a BT of size 's'\0Ad destroy the current BT\0As <i> set the bit index 'i'\0Ar <i> reset the bit index 'i'\0Ag <i> get the bit index 'i'\00"
@str.4 = [180 x i8] c"sr [<i> <i>] set the specified range\0Arr [<i> <i>] reset the specified range\0Ais [<i> <i>] is the specified range set?\0Air [<i> <i>] is the specified range reset?\00"
@str.5 = [239 x i8] c"f <l> [<i> <i>] find a reset range of length 'l'.\0Afh <l> [<i> <i>] find a reset range length 'l', working downwards\0Afl <l> [<i> <i>] find a reset range of length at least 'l'\0Aq quit\0A? print this message\00"
@str.6 = [63 x i8] c"\0ANo way of testing BTSize, BTRangesSame, or BTCopyInvertRange.\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([205 x i8], [205 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([180 x i8], [180 x i8]* @str.4, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([239 x i8], [239 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.6, i64 0, i64 0))
ret void
}