#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 tcUsage() {
  printf("Usage: tc [-q] [-d] [-r seed-code] appfile");
  printf("\n-q quiet mode (logo and done msg suppressed)");
  printf("\n-d enables the debugger, which has its own usage print.");
  printf("\n-r run specific seed-code");
  printf("\nThe arg loads the appfile and libraries as follows.");
  printf("\n  If the appfile has NO #include <path to libfile> lines");
  printf("\n  the standard library is also loaded.");
  printf("\n  If the appfile has #include <path to libfile> lines");
  printf("\n  they are loaded. In that case the standard library is not");
  printf("\n  included by default but must be explicitly included in the");
  printf("\n  list if required by the app.");
  printf("\nThe default start of the tinyC app is a main() function,");
  printf("\n  with no arguments. -r changes this default to code, which ");
  printf("\n  can be any function, args permitted, or even a compound");
  printf("\n  statement.");
  printf("\nNo args prints this usage.");
  printf("\n");
}


x86 assembly (clang, -O0):
<tcUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf62(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
call   1030 <printf@plt>
lea    0x1031(%rip),%rdi
call   1030 <printf@plt>
lea    0x1063(%rip),%rdi
call   1030 <printf@plt>
lea    0x1077(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1106(%rip),%rdi
call   1030 <printf@plt>
lea    0x1108(%rip),%rdi
call   1030 <printf@plt>
lea    0x1118(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcUsage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xef7(%rip),%rdi
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
call   1040 <printf@plt>
lea    0xf46(%rip),%rdi
call   1040 <printf@plt>
lea    0xf55(%rip),%rdi
call   1040 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1040 <printf@plt>
lea    0xfac(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc8(%rip),%rdi
call   1040 <printf@plt>
lea    0xff3(%rip),%rdi
call   1040 <printf@plt>
lea    0x1024(%rip),%rdi
call   1040 <printf@plt>
lea    0x1056(%rip),%rdi
call   1040 <printf@plt>
lea    0x106a(%rip),%rdi
call   1040 <printf@plt>
lea    0x1098(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ca(%rip),%rdi
call   1040 <printf@plt>
lea    0x10f9(%rip),%rdi
call   1040 <printf@plt>
lea    0x10fb(%rip),%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"Usage: tc [-q] [-d] [-r seed-code] appfile\00"
@.str.1 = [46 x i8] c"\0A-q quiet mode (logo and done msg suppressed)\00"
@.str.2 = [57 x i8] c"\0A-d enables the debugger, which has its own usage print.\00"
@.str.3 = [27 x i8] c"\0A-r run specific seed-code\00"
@.str.4 = [53 x i8] c"\0AThe arg loads the appfile and libraries as follows.\00"
@.str.5 = [58 x i8] c"\0A If the appfile has NO #include <path to libfile> lines\00"
@.str.6 = [40 x i8] c"\0A the standard library is also loaded.\00"
@.str.7 = [55 x i8] c"\0A If the appfile has #include <path to libfile> lines\00"
@.str.8 = [61 x i8] c"\0A they are loaded. In that case the standard library is not\00"
@.str.9 = [62 x i8] c"\0A included by default but must be explicitly included in the\00"
@.str.10 = [32 x i8] c"\0A list if required by the app.\00"
@.str.11 = [58 x i8] c"\0AThe default start of the tinyC app is a main() function,\00"
@.str.12 = [62 x i8] c"\0A with no arguments. -r changes this default to code, which \00"
@.str.13 = [59 x i8] c"\0A can be any function, args permitted, or even a compound\00"
@.str.14 = [14 x i8] c"\0A statement.\00"
@.str.15 = [28 x i8] c"\0ANo args prints this usage.\00"
@.str.16 = [2 x i8] c"\0A\00"
define void @tcUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"Usage: tc [-q] [-d] [-r seed-code] appfile\00"
@.str.1 = [46 x i8] c"\0A-q quiet mode (logo and done msg suppressed)\00"
@.str.2 = [57 x i8] c"\0A-d enables the debugger, which has its own usage print.\00"
@.str.3 = [27 x i8] c"\0A-r run specific seed-code\00"
@.str.4 = [53 x i8] c"\0AThe arg loads the appfile and libraries as follows.\00"
@.str.5 = [58 x i8] c"\0A If the appfile has NO #include <path to libfile> lines\00"
@.str.6 = [40 x i8] c"\0A the standard library is also loaded.\00"
@.str.7 = [55 x i8] c"\0A If the appfile has #include <path to libfile> lines\00"
@.str.8 = [61 x i8] c"\0A they are loaded. In that case the standard library is not\00"
@.str.9 = [62 x i8] c"\0A included by default but must be explicitly included in the\00"
@.str.10 = [32 x i8] c"\0A list if required by the app.\00"
@.str.11 = [58 x i8] c"\0AThe default start of the tinyC app is a main() function,\00"
@.str.12 = [62 x i8] c"\0A with no arguments. -r changes this default to code, which \00"
@.str.13 = [59 x i8] c"\0A can be any function, args permitted, or even a compound\00"
@.str.14 = [14 x i8] c"\0A statement.\00"
@.str.15 = [28 x i8] c"\0ANo args prints this usage.\00"
define void @tcUsage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
ret void
}