#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 */
char *gettext(char *);
int /*<<< orphan*/ printf(char *);
void printTokens(void) {
  printf(gettext("Numbers:\n"));
  printf(gettext("  1.0    : example number\n"));
  printf(gettext("  1.0e-3 : example number\n"));
  printf(gettext("  1.0m   : example number\n"));
  printf(gettext("  _      : previous result\n"));
  printf(gettext("  y, z, a, f, p, n, u, m : SI prefixes\n"));
  printf(gettext("  k, M, G, T, P, E, Z, Y : SI prefixes\n"));
  printf(gettext("\nOperators:\n"));
  printf(gettext("  +     : addition\n"));
  printf(gettext("  -     : subtraction\n"));
  printf(gettext("  * x   : multiplication\n"));
  printf(gettext("  /     : division\n"));
  printf(gettext("  %%     : modulus\n"));
  printf(gettext("  ^     : power\n"));
  printf(gettext("  () [] : brackets increase precedence\n"));
  printf(gettext("\nFunctions:\n"));
  printf(gettext("  log X         : logarithm to base 10 of X\n"));
  printf(gettext("  ln X          : natural logarithm of X\n"));
  printf(gettext("  sin X, asin X : sine, arcsin of X\n"));
  printf(gettext("  cos X, acos X : cosine, arccos of X\n"));
  printf(gettext("  tan X, atan X : tangent, arctan of X\n"));
  printf(gettext("  sqrt X        : square root of X\n"));
  printf(gettext("\nConstants:\n"));
  printf(gettext("  pi  : 3.14159\n"));
  printf(gettext("  exp : 2.71828\n"));
}


x86 assembly (clang, -O0):
<printTokens>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xecb(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf23(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf5c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf83(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf93(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf8c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf89(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printTokens>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xedc(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xeff(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf26(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf4e(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf72(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf86(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf8f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf8c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Numbers:\0A\00"
@.str.1 = [27 x i8] c" 1.0 : example number\0A\00"
@.str.2 = [27 x i8] c" 1.0e-3 : example number\0A\00"
@.str.3 = [27 x i8] c" 1.0m : example number\0A\00"
@.str.4 = [28 x i8] c" _ : previous result\0A\00"
@.str.5 = [40 x i8] c" y, z, a, f, p, n, u, m : SI prefixes\0A\00"
@.str.6 = [40 x i8] c" k, M, G, T, P, E, Z, Y : SI prefixes\0A\00"
@.str.7 = [13 x i8] c"\0AOperators:\0A\00"
@.str.8 = [20 x i8] c" + : addition\0A\00"
@.str.9 = [23 x i8] c" - : subtraction\0A\00"
@.str.10 = [26 x i8] c" * x : multiplication\0A\00"
@.str.11 = [20 x i8] c" / : division\0A\00"
@.str.12 = [20 x i8] c" %% : modulus\0A\00"
@.str.13 = [17 x i8] c" ^ : power\0A\00"
@.str.14 = [40 x i8] c" () [] : brackets increase precedence\0A\00"
@.str.15 = [13 x i8] c"\0AFunctions:\0A\00"
@.str.16 = [45 x i8] c" log X : logarithm to base 10 of X\0A\00"
@.str.17 = [42 x i8] c" ln X : natural logarithm of X\0A\00"
@.str.18 = [37 x i8] c" sin X, asin X : sine, arcsin of X\0A\00"
@.str.19 = [39 x i8] c" cos X, acos X : cosine, arccos of X\0A\00"
@.str.20 = [40 x i8] c" tan X, atan X : tangent, arctan of X\0A\00"
@.str.21 = [36 x i8] c" sqrt X : square root of X\0A\00"
@.str.22 = [13 x i8] c"\0AConstants:\0A\00"
@.str.23 = [17 x i8] c" pi : 3.14159\0A\00"
@.str.24 = [17 x i8] c" exp : 2.71828\0A\00"
define void @printTokens() {
%1 = call i8* @gettext(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* %1)
%3 = call i8* @gettext(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* %3)
%5 = call i8* @gettext(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* %5)
%7 = call i8* @gettext(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* %7)
%9 = call i8* @gettext(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* %9)
%11 = call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* %11)
%13 = call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @printf(i8* %13)
%15 = call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @printf(i8* %15)
%17 = call i8* @gettext(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @printf(i8* %17)
%19 = call i8* @gettext(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 @printf(i8* %19)
%21 = call i8* @gettext(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%22 = call i32 @printf(i8* %21)
%23 = call i8* @gettext(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%24 = call i32 @printf(i8* %23)
%25 = call i8* @gettext(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%26 = call i32 @printf(i8* %25)
%27 = call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%28 = call i32 @printf(i8* %27)
%29 = call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%30 = call i32 @printf(i8* %29)
%31 = call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%32 = call i32 @printf(i8* %31)
%33 = call i8* @gettext(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.16, i64 0, i64 0))
%34 = call i32 @printf(i8* %33)
%35 = call i8* @gettext(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
%36 = call i32 @printf(i8* %35)
%37 = call i8* @gettext(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0))
%38 = call i32 @printf(i8* %37)
%39 = call i8* @gettext(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.19, i64 0, i64 0))
%40 = call i32 @printf(i8* %39)
%41 = call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0))
%42 = call i32 @printf(i8* %41)
%43 = call i8* @gettext(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.21, i64 0, i64 0))
%44 = call i32 @printf(i8* %43)
%45 = call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0))
%46 = call i32 @printf(i8* %45)
%47 = call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0))
%48 = call i32 @printf(i8* %47)
%49 = call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0))
%50 = call i32 @printf(i8* %49)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"Numbers:\0A\00"
@.str.1 = [27 x i8] c" 1.0 : example number\0A\00"
@.str.2 = [27 x i8] c" 1.0e-3 : example number\0A\00"
@.str.3 = [27 x i8] c" 1.0m : example number\0A\00"
@.str.4 = [28 x i8] c" _ : previous result\0A\00"
@.str.5 = [40 x i8] c" y, z, a, f, p, n, u, m : SI prefixes\0A\00"
@.str.6 = [40 x i8] c" k, M, G, T, P, E, Z, Y : SI prefixes\0A\00"
@.str.7 = [13 x i8] c"\0AOperators:\0A\00"
@.str.8 = [20 x i8] c" + : addition\0A\00"
@.str.9 = [23 x i8] c" - : subtraction\0A\00"
@.str.10 = [26 x i8] c" * x : multiplication\0A\00"
@.str.11 = [20 x i8] c" / : division\0A\00"
@.str.12 = [20 x i8] c" %% : modulus\0A\00"
@.str.13 = [17 x i8] c" ^ : power\0A\00"
@.str.14 = [40 x i8] c" () [] : brackets increase precedence\0A\00"
@.str.15 = [13 x i8] c"\0AFunctions:\0A\00"
@.str.16 = [45 x i8] c" log X : logarithm to base 10 of X\0A\00"
@.str.17 = [42 x i8] c" ln X : natural logarithm of X\0A\00"
@.str.18 = [37 x i8] c" sin X, asin X : sine, arcsin of X\0A\00"
@.str.19 = [39 x i8] c" cos X, acos X : cosine, arccos of X\0A\00"
@.str.20 = [40 x i8] c" tan X, atan X : tangent, arctan of X\0A\00"
@.str.21 = [36 x i8] c" sqrt X : square root of X\0A\00"
@.str.22 = [13 x i8] c"\0AConstants:\0A\00"
@.str.23 = [17 x i8] c" pi : 3.14159\0A\00"
@.str.24 = [17 x i8] c" exp : 2.71828\0A\00"
define void @printTokens() {
%1 = tail call i8* @gettext(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) %1)
%3 = tail call i8* @gettext(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) %3)
%5 = tail call i8* @gettext(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) %5)
%7 = tail call i8* @gettext(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) %7)
%9 = tail call i8* @gettext(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) %9)
%11 = tail call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) %11)
%13 = tail call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) %13)
%15 = tail call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) %15)
%17 = tail call i8* @gettext(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) %17)
%19 = tail call i8* @gettext(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 @printf(i8* dereferenceable(1) %19)
%21 = tail call i8* @gettext(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%22 = tail call i32 @printf(i8* dereferenceable(1) %21)
%23 = tail call i8* @gettext(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%24 = tail call i32 @printf(i8* dereferenceable(1) %23)
%25 = tail call i8* @gettext(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%26 = tail call i32 @printf(i8* dereferenceable(1) %25)
%27 = tail call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%28 = tail call i32 @printf(i8* dereferenceable(1) %27)
%29 = tail call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%30 = tail call i32 @printf(i8* dereferenceable(1) %29)
%31 = tail call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%32 = tail call i32 @printf(i8* dereferenceable(1) %31)
%33 = tail call i8* @gettext(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.16, i64 0, i64 0))
%34 = tail call i32 @printf(i8* dereferenceable(1) %33)
%35 = tail call i8* @gettext(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
%36 = tail call i32 @printf(i8* dereferenceable(1) %35)
%37 = tail call i8* @gettext(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0))
%38 = tail call i32 @printf(i8* dereferenceable(1) %37)
%39 = tail call i8* @gettext(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.19, i64 0, i64 0))
%40 = tail call i32 @printf(i8* dereferenceable(1) %39)
%41 = tail call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.20, i64 0, i64 0))
%42 = tail call i32 @printf(i8* dereferenceable(1) %41)
%43 = tail call i8* @gettext(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.21, i64 0, i64 0))
%44 = tail call i32 @printf(i8* dereferenceable(1) %43)
%45 = tail call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0))
%46 = tail call i32 @printf(i8* dereferenceable(1) %45)
%47 = tail call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0))
%48 = tail call i32 @printf(i8* dereferenceable(1) %47)
%49 = tail call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0))
%50 = tail call i32 @printf(i8* dereferenceable(1) %49)
ret void
}