#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
void printhelp() {
  fprintf(stderr, "-a IPADDRESS -p PORT -c COMMAND -v\n");
  printf(
      "usage: GET or SET coffeed with remote commands\n"
      "------------------\n"
      "If a value is read+write and you just want to read do not set it\n"
      "So if you want to know BPOINT just put \"BPOINT\" and it will return "
      "it\n"
      "Chain commands with a comma \"coffeec -c SLEEP=1,PTERM,AUTOT=1\"\n\n"
      "COMMANDS\n"
      "------------------\n"
      "SLEEP=<0/1>         Set to sleep or wake\n"
      "ACTIVE=<0/1>        Set to sleep or wake (inverse of above)\n"
      "AUTOT=<0/1>         Get/Set Initiate autotuning cycle for the PID\n"
      "BPOINT=<float>      Get/Set Brew setpoint\n"
      "SPOINT=<float>      Get/Set Steam setpoint\n"
      "PGAIN=<float>       Get/Set PID p-gain\n"
      "IGAIN=<float>       Get/Set PID i-gain\n"
      "DGAIN=<float>       Get/Set PID d-gain\n"
      "OFFSET=<float>      Get/Set boiler temp offset\n"
      "BMODE=<0/1>         Get/Set to brewmode or steam mode\n"
      "SMODE=<0/1>         Get/Set to brewmode or steam mode (inverse of "
      "above)\n"
      "TPOINT              Get the current temperature\n"
      "POW                 Get the current heater power\n"
      "PTERM               Get the current P value\n"
      "ITERM               Get the current I value\n"
      "DTERM               Get the current D value\n"
      "SETPOINT            Get the current target temperature\n"
      "SHUTD               Shutdown the system (WARNING: stops remote daemon)\n"
      "VERSION             Get the version of coffeed\n");
}


x86 assembly (clang, -O0):
<printhelp>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhelp>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xee7(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [36 x i8] c"-a IPADDRESS -p PORT -c COMMAND -v\0A\00"
@.str.1 = [1239 x i8] c"usage: GET or SET coffeed with remote commands\0A------------------\0AIf a value is read+write and you just want to read do not set it\0ASo if you want to know BPOINT just put \22BPOINT\22 and it will return it\0AChain commands with a comma \22coffeec -c SLEEP=1,PTERM,AUTOT=1\22\0A\0ACOMMANDS\0A------------------\0ASLEEP=<0/1> Set to sleep or wake\0AACTIVE=<0/1> Set to sleep or wake (inverse of above)\0AAUTOT=<0/1> Get/Set Initiate autotuning cycle for the PID\0ABPOINT=<float> Get/Set Brew setpoint\0ASPOINT=<float> Get/Set Steam setpoint\0APGAIN=<float> Get/Set PID p-gain\0AIGAIN=<float> Get/Set PID i-gain\0ADGAIN=<float> Get/Set PID d-gain\0AOFFSET=<float> Get/Set boiler temp offset\0ABMODE=<0/1> Get/Set to brewmode or steam mode\0ASMODE=<0/1> Get/Set to brewmode or steam mode (inverse of above)\0ATPOINT Get the current temperature\0APOW Get the current heater power\0APTERM Get the current P value\0AITERM Get the current I value\0ADTERM Get the current D value\0ASETPOINT Get the current target temperature\0ASHUTD Shutdown the system (WARNING: stops remote daemon)\0AVERSION Get the version of coffeed\0A\00"
define void @printhelp() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([1239 x i8], [1239 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [36 x i8] c"-a IPADDRESS -p PORT -c COMMAND -v\0A\00"
@str = [1238 x i8] c"usage: GET or SET coffeed with remote commands\0A------------------\0AIf a value is read+write and you just want to read do not set it\0ASo if you want to know BPOINT just put \22BPOINT\22 and it will return it\0AChain commands with a comma \22coffeec -c SLEEP=1,PTERM,AUTOT=1\22\0A\0ACOMMANDS\0A------------------\0ASLEEP=<0/1> Set to sleep or wake\0AACTIVE=<0/1> Set to sleep or wake (inverse of above)\0AAUTOT=<0/1> Get/Set Initiate autotuning cycle for the PID\0ABPOINT=<float> Get/Set Brew setpoint\0ASPOINT=<float> Get/Set Steam setpoint\0APGAIN=<float> Get/Set PID p-gain\0AIGAIN=<float> Get/Set PID i-gain\0ADGAIN=<float> Get/Set PID d-gain\0AOFFSET=<float> Get/Set boiler temp offset\0ABMODE=<0/1> Get/Set to brewmode or steam mode\0ASMODE=<0/1> Get/Set to brewmode or steam mode (inverse of above)\0ATPOINT Get the current temperature\0APOW Get the current heater power\0APTERM Get the current P value\0AITERM Get the current I value\0ADTERM Get the current D value\0ASETPOINT Get the current target temperature\0ASHUTD Shutdown the system (WARNING: stops remote daemon)\0AVERSION Get the version of coffeed\00"
define void @printhelp() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1238 x i8], [1238 x i8]* @str, i64 0, i64 0))
ret void
}