#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("\tdo calculation:         '[expression, no variables]'\n");
  printf("\tplot function:          '[expression, one variable]'\n");
  printf("\tview help menu:         'help'\n");
  printf("\tplot window width:      'set width [pixels]'\n");
  printf("\tplot window height:     'set height [pixels]'\n");
  printf("\tplot color:             'set color [red] [green] [blue]'\n");
  printf("\tplot secondary color:   'set color 2 [red] [green] [blue]\n");
  printf("\t                            must be in range [0, 255]\n");
  printf("\tuse gradient on plot:   'set grad [args]'\n");
  printf("\t                            args: 1 (use gradient), 0 (don't use "
         "gradient)), none (toggle)\n");
  printf("\ttoggle new window:      'set window [args]'\n");
  printf("\t                            args: 1 (plot in new window), 0 (plot "
         "in same window), none (toggle)\n");
  printf("\ttoggle verbose mode:    'set verbose [args]'\n");
  printf(
      "\t                            args: 1 (on), 0 (off), none (toggle)\n");
  printf("\tplot with thick line:   'set thick [args]'\n");
  printf("\t                            args: 1 (thick line), 0 (thin line), "
         "none (toggle)\n");
  printf("\tchange base of 'log':   'set base [new base]'\n");
  printf("\tget settings from file: 'set file [filename]'\n");
  printf("\tdisplay settings:       'set'\n");
  printf("\trefresh settings:       'set refresh'\n");
  printf("\tclear screen:           'c'\n");
  printf("\tquit prgram:            'q'\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
call   1030 <printf@plt>
lea    0xff6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
lea    0x1042(%rip),%rdi
call   1030 <printf@plt>
lea    0x1093(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
call   1030 <printf@plt>
lea    0x110c(%rip),%rdi
call   1030 <printf@plt>
lea    0x112f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
call   1030 <printf@plt>
lea    0x1187(%rip),%rdi
call   1030 <printf@plt>
lea    0x11cc(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1214(%rip),%rdi
call   1030 <printf@plt>
lea    0x1228(%rip),%rdi
call   1030 <printf@plt>
lea    0x1244(%rip),%rdi
call   1030 <printf@plt>
lea    0x1256(%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    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1030 <puts@plt>
lea    0x101d(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ad(%rip),%rdi
call   1030 <puts@plt>
lea    0x1103(%rip),%rdi
call   1030 <puts@plt>
lea    0x1125(%rip),%rdi
call   1030 <puts@plt>
lea    0x115b(%rip),%rdi
call   1030 <puts@plt>
lea    0x117b(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bf(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1205(%rip),%rdi
call   1030 <puts@plt>
lea    0x1218(%rip),%rdi
call   1030 <puts@plt>
lea    0x1233(%rip),%rdi
call   1030 <puts@plt>
lea    0x1244(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"\09do calculation: '[expression, no variables]'\0A\00"
@.str.1 = [55 x i8] c"\09plot function: '[expression, one variable]'\0A\00"
@.str.2 = [33 x i8] c"\09view help menu: 'help'\0A\00"
@.str.3 = [47 x i8] c"\09plot window width: 'set width [pixels]'\0A\00"
@.str.4 = [48 x i8] c"\09plot window height: 'set height [pixels]'\0A\00"
@.str.5 = [59 x i8] c"\09plot color: 'set color [red] [green] [blue]'\0A\00"
@.str.6 = [60 x i8] c"\09plot secondary color: 'set color 2 [red] [green] [blue]\0A\00"
@.str.7 = [56 x i8] c"\09 must be in range [0, 255]\0A\00"
@.str.8 = [44 x i8] c"\09use gradient on plot: 'set grad [args]'\0A\00"
@.str.9 = [93 x i8] c"\09 args: 1 (use gradient), 0 (don't use gradient)), none (toggle)\0A\00"
@.str.10 = [46 x i8] c"\09toggle new window: 'set window [args]'\0A\00"
@.str.11 = [99 x i8] c"\09 args: 1 (plot in new window), 0 (plot in same window), none (toggle)\0A\00"
@.str.12 = [47 x i8] c"\09toggle verbose mode: 'set verbose [args]'\0A\00"
@.str.13 = [67 x i8] c"\09 args: 1 (on), 0 (off), none (toggle)\0A\00"
@.str.14 = [45 x i8] c"\09plot with thick line: 'set thick [args]'\0A\00"
@.str.15 = [81 x i8] c"\09 args: 1 (thick line), 0 (thin line), none (toggle)\0A\00"
@.str.16 = [48 x i8] c"\09change base of 'log': 'set base [new base]'\0A\00"
@.str.17 = [48 x i8] c"\09get settings from file: 'set file [filename]'\0A\00"
@.str.18 = [32 x i8] c"\09display settings: 'set'\0A\00"
@.str.19 = [40 x i8] c"\09refresh settings: 'set refresh'\0A\00"
@.str.20 = [30 x i8] c"\09clear screen: 'c'\0A\00"
@.str.21 = [30 x i8] c"\09quit prgram: 'q'\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 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 ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [54 x i8] c"\09do calculation: '[expression, no variables]'\00"
@str.22 = [54 x i8] c"\09plot function: '[expression, one variable]'\00"
@str.23 = [32 x i8] c"\09view help menu: 'help'\00"
@str.24 = [46 x i8] c"\09plot window width: 'set width [pixels]'\00"
@str.25 = [47 x i8] c"\09plot window height: 'set height [pixels]'\00"
@str.26 = [58 x i8] c"\09plot color: 'set color [red] [green] [blue]'\00"
@str.27 = [59 x i8] c"\09plot secondary color: 'set color 2 [red] [green] [blue]\00"
@str.28 = [55 x i8] c"\09 must be in range [0, 255]\00"
@str.29 = [43 x i8] c"\09use gradient on plot: 'set grad [args]'\00"
@str.30 = [92 x i8] c"\09 args: 1 (use gradient), 0 (don't use gradient)), none (toggle)\00"
@str.31 = [45 x i8] c"\09toggle new window: 'set window [args]'\00"
@str.32 = [98 x i8] c"\09 args: 1 (plot in new window), 0 (plot in same window), none (toggle)\00"
@str.33 = [46 x i8] c"\09toggle verbose mode: 'set verbose [args]'\00"
@str.34 = [66 x i8] c"\09 args: 1 (on), 0 (off), none (toggle)\00"
@str.35 = [44 x i8] c"\09plot with thick line: 'set thick [args]'\00"
@str.36 = [80 x i8] c"\09 args: 1 (thick line), 0 (thin line), none (toggle)\00"
@str.37 = [47 x i8] c"\09change base of 'log': 'set base [new base]'\00"
@str.38 = [47 x i8] c"\09get settings from file: 'set file [filename]'\00"
@str.39 = [31 x i8] c"\09display settings: 'set'\00"
@str.40 = [39 x i8] c"\09refresh settings: 'set refresh'\00"
@str.41 = [29 x i8] c"\09clear screen: 'c'\00"
@str.42 = [29 x i8] c"\09quit prgram: 'q'\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.22, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.23, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.24, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.25, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.26, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.27, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.28, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.29, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.30, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.31, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.32, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.33, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.34, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.35, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.37, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.38, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.39, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.40, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.41, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.42, i64 0, i64 0))
ret void
}