#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*/ puts(char *);
void syntax() {
  puts("Syntax: mdb [-b<idstring>] [-r<norows>] [-k<keyno>] [-h <host>] [-p "
       "<port>]");
  puts("                           <tablename> <cmd> [<key> [<data>]]");
  puts(" Options:  -b  assign a stringid for recognising empty fields");
  puts("               used when updating a record");
  puts("           -f  show field names before data");
  puts("           -k  select key");
  puts("           -r  retrieve .. number of rows");
  puts("           -h  hostname (only in case of client/server)");
  puts("           -p  portno (default 7221)");
  puts("           -u  used fields");
  puts("");
  puts("       cmd = f,l   (first,last)");
  puts("             p,e,n (previous, equal, next)");
  puts("             a,u,d (add, update, delete)");
  puts("	     s     (search)");
  puts("	     r     (retrieve record 1..n)");
  puts("	     B,C,D (reBuild, create or drop index)");
  puts("	     L     (database logging on/off)");
  puts(" Examples: ");
  puts("   mdb customer c "
       "'custid:n6|seak:c8|Name:a30|place:a30|_idx:1|_idx:2:1|' ");
  puts("   mdb customer a '1201|doe|John Doe|New York|' ");
  puts("   mdb customer e '1201' ");
  puts("   mdb -k2 -r10 customer s 'do' ");
  puts("   mdb -b'#' customer u '1201' '#|#|London|' ");
  puts("   mdb -k2 customer D  ");
  puts("   mdb -k2 customer C '2:1' ");
  exit(1);
}


x86 assembly (clang, -O0):
<syntax>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
lea    0xf79(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x1029(%rip),%rdi
call   1030 <puts@plt>
lea    0x123e(%rip),%rdi
call   1030 <puts@plt>
lea    0x102c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1040(%rip),%rdi
call   1030 <puts@plt>
lea    0x105f(%rip),%rdi
call   1030 <puts@plt>
lea    0x107c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1085(%rip),%rdi
call   1030 <puts@plt>
lea    0x109c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bc(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1115(%rip),%rdi
call   1030 <puts@plt>
lea    0x113a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1148(%rip),%rdi
call   1030 <puts@plt>
lea    0x115d(%rip),%rdi
call   1030 <puts@plt>
lea    0x117f(%rip),%rdi
call   1030 <puts@plt>
lea    0x118b(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<syntax>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf08(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfab(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1003(%rip),%rdi
call   1040 <puts@plt>
lea    0x101c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1021(%rip),%rdi
call   1040 <puts@plt>
lea    0x1035(%rip),%rdi
call   1040 <puts@plt>
lea    0x1054(%rip),%rdi
call   1040 <puts@plt>
lea    0x1071(%rip),%rdi
call   1040 <puts@plt>
lea    0x107a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1091(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b1(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cb(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cb(%rip),%rdi
call   1040 <puts@plt>
lea    0x110a(%rip),%rdi
call   1040 <puts@plt>
lea    0x112f(%rip),%rdi
call   1040 <puts@plt>
lea    0x113d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1152(%rip),%rdi
call   1040 <puts@plt>
lea    0x1174(%rip),%rdi
call   1040 <puts@plt>
lea    0x1180(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [76 x i8] c"Syntax: mdb [-b<idstring>] [-r<norows>] [-k<keyno>] [-h <host>] [-p <port>]\00"
@.str.1 = [62 x i8] c" <tablename> <cmd> [<key> [<data>]]\00"
@.str.2 = [62 x i8] c" Options: -b assign a stringid for recognising empty fields\00"
@.str.3 = [43 x i8] c" used when updating a record\00"
@.str.4 = [44 x i8] c" -f show field names before data\00"
@.str.5 = [26 x i8] c" -k select key\00"
@.str.6 = [42 x i8] c" -r retrieve .. number of rows\00"
@.str.7 = [56 x i8] c" -h hostname (only in case of client/server)\00"
@.str.8 = [37 x i8] c" -p portno (default 7221)\00"
@.str.9 = [27 x i8] c" -u used fields\00"
@.str.10 = [1 x i8] zeroinitializer
@.str.11 = [32 x i8] c" cmd = f,l (first,last)\00"
@.str.12 = [43 x i8] c" p,e,n (previous, equal, next)\00"
@.str.13 = [41 x i8] c" a,u,d (add, update, delete)\00"
@.str.14 = [21 x i8] c"\09 s (search)\00"
@.str.15 = [35 x i8] c"\09 r (retrieve record 1..n)\00"
@.str.16 = [44 x i8] c"\09 B,C,D (reBuild, create or drop index)\00"
@.str.17 = [38 x i8] c"\09 L (database logging on/off)\00"
@.str.18 = [12 x i8] c" Examples: \00"
@.str.19 = [75 x i8] c" mdb customer c 'custid:n6|seak:c8|Name:a30|place:a30|_idx:1|_idx:2:1|' \00"
@.str.20 = [49 x i8] c" mdb customer a '1201|doe|John Doe|New York|' \00"
@.str.21 = [26 x i8] c" mdb customer e '1201' \00"
@.str.22 = [33 x i8] c" mdb -k2 -r10 customer s 'do' \00"
@.str.23 = [46 x i8] c" mdb -b'#' customer u '1201' '#|#|London|' \00"
@.str.24 = [24 x i8] c" mdb -k2 customer D \00"
@.str.25 = [29 x i8] c" mdb -k2 customer C '2:1' \00"
define void @syntax() {
%1 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @puts(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [76 x i8] c"Syntax: mdb [-b<idstring>] [-r<norows>] [-k<keyno>] [-h <host>] [-p <port>]\00"
@.str.1 = [62 x i8] c" <tablename> <cmd> [<key> [<data>]]\00"
@.str.2 = [62 x i8] c" Options: -b assign a stringid for recognising empty fields\00"
@.str.3 = [43 x i8] c" used when updating a record\00"
@.str.4 = [44 x i8] c" -f show field names before data\00"
@.str.5 = [26 x i8] c" -k select key\00"
@.str.6 = [42 x i8] c" -r retrieve .. number of rows\00"
@.str.7 = [56 x i8] c" -h hostname (only in case of client/server)\00"
@.str.8 = [37 x i8] c" -p portno (default 7221)\00"
@.str.9 = [27 x i8] c" -u used fields\00"
@.str.11 = [32 x i8] c" cmd = f,l (first,last)\00"
@.str.12 = [43 x i8] c" p,e,n (previous, equal, next)\00"
@.str.13 = [41 x i8] c" a,u,d (add, update, delete)\00"
@.str.14 = [21 x i8] c"\09 s (search)\00"
@.str.15 = [35 x i8] c"\09 r (retrieve record 1..n)\00"
@.str.16 = [44 x i8] c"\09 B,C,D (reBuild, create or drop index)\00"
@.str.17 = [38 x i8] c"\09 L (database logging on/off)\00"
@.str.18 = [12 x i8] c" Examples: \00"
@.str.19 = [75 x i8] c" mdb customer c 'custid:n6|seak:c8|Name:a30|place:a30|_idx:1|_idx:2:1|' \00"
@.str.20 = [49 x i8] c" mdb customer a '1201|doe|John Doe|New York|' \00"
@.str.21 = [26 x i8] c" mdb customer e '1201' \00"
@.str.22 = [33 x i8] c" mdb -k2 -r10 customer s 'do' \00"
@.str.23 = [46 x i8] c" mdb -b'#' customer u '1201' '#|#|London|' \00"
@.str.24 = [24 x i8] c" mdb -k2 customer D \00"
@.str.25 = [29 x i8] c" mdb -k2 customer C '2:1' \00"
define void @syntax() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.22, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.25, i64 0, i64 0))
%27 = tail call i32 @exit(i32 1)
unreachable
}