#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 db_usage() {
  printf("	b <symbol>    set breakpoint\n");
  printf("	r,c           start or continue run to next breakpoint\n");
  printf("	i [b]         display breakpoints\n");
  printf("	n             next statement in this function\n");
  printf("	s             step into the function\n");
  printf("	p <symbol>    print the value of symbol\n");
  printf("	t <symbol>    print the type of symbol\n");
  printf("	g             enter your C debugger (see setup notes)\n");
  printf("	v [e|p|s|v]     toggle verbose mode for one of:\n");
  printf("	                e assignment, p parsed symbol,\n");
  printf("	                s stack push/pops, v variables\n");
  printf("	d [f|v]       dump function or variable table\n");
  printf("	default       print this usage\n");
  printf("	x,q           exit tiny-C\n");
}


x86 assembly (clang, -O0):
<db_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1009(%rip),%rdi
call   1030 <printf@plt>
lea    0x102e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1053(%rip),%rdi
call   1030 <printf@plt>
lea    0x1077(%rip),%rdi
call   1030 <printf@plt>
lea    0x108c(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<db_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf60(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf97(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfde(%rip),%rdi
call   1030 <puts@plt>
lea    0x1003(%rip),%rdi
call   1030 <puts@plt>
lea    0x1027(%rip),%rdi
call   1030 <puts@plt>
lea    0x104b(%rip),%rdi
call   1030 <puts@plt>
lea    0x106e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1082(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"\09b <symbol> set breakpoint\0A\00"
@.str.1 = [57 x i8] c"\09r,c start or continue run to next breakpoint\0A\00"
@.str.2 = [36 x i8] c"\09i [b] display breakpoints\0A\00"
@.str.3 = [48 x i8] c"\09n next statement in this function\0A\00"
@.str.4 = [39 x i8] c"\09s step into the function\0A\00"
@.str.5 = [42 x i8] c"\09p <symbol> print the value of symbol\0A\00"
@.str.6 = [41 x i8] c"\09t <symbol> print the type of symbol\0A\00"
@.str.7 = [56 x i8] c"\09g enter your C debugger (see setup notes)\0A\00"
@.str.8 = [50 x i8] c"\09v [e|p|s|v] toggle verbose mode for one of:\0A\00"
@.str.9 = [49 x i8] c"\09 e assignment, p parsed symbol,\0A\00"
@.str.10 = [49 x i8] c"\09 s stack push/pops, v variables\0A\00"
@.str.11 = [48 x i8] c"\09d [f|v] dump function or variable table\0A\00"
@.str.12 = [33 x i8] c"\09default print this usage\0A\00"
@.str.13 = [28 x i8] c"\09x,q exit tiny-C\0A\00"
define void @db_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [30 x i8] c"\09b <symbol> set breakpoint\00"
@str.14 = [56 x i8] c"\09r,c start or continue run to next breakpoint\00"
@str.15 = [35 x i8] c"\09i [b] display breakpoints\00"
@str.16 = [47 x i8] c"\09n next statement in this function\00"
@str.17 = [38 x i8] c"\09s step into the function\00"
@str.18 = [41 x i8] c"\09p <symbol> print the value of symbol\00"
@str.19 = [40 x i8] c"\09t <symbol> print the type of symbol\00"
@str.20 = [55 x i8] c"\09g enter your C debugger (see setup notes)\00"
@str.21 = [49 x i8] c"\09v [e|p|s|v] toggle verbose mode for one of:\00"
@str.22 = [48 x i8] c"\09 e assignment, p parsed symbol,\00"
@str.23 = [48 x i8] c"\09 s stack push/pops, v variables\00"
@str.24 = [47 x i8] c"\09d [f|v] dump function or variable table\00"
@str.25 = [32 x i8] c"\09default print this usage\00"
@str.26 = [27 x i8] c"\09x,q exit tiny-C\00"
define void @db_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.26, i64 0, i64 0))
ret void
}