#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 print_help() {
  printf("Usage:\n"
         "-d DEVICE - specifies AVR chip\n"
         "-r ADDR - read flash memory from start to ADDR in bytes, or\n"
         "-r f FILE read whole flash memory to specified file\n"
         "-w HEX - write flash memory from intel HEX file\n"
         "-e - erase device\n"
         "-c HEX - read and compare HEX with flash memory (strictly)\n"
         "-a HEX - automatically erase, write and check data in chip, or\n"
         "-a s HEX - same with strict verification instead of fast default\n"
         "use if you're flashing complex HEX, like Arduino bootloader or if "
         "default fails\n"
         "-p r - read content of on-chip EEPROM, print in terminal, or\n"
         "-p r FILE - read EEPROM to FILE\n"
         "-p w HEX - write eeprom from intel hex file\n"
         "-f - read fuse bits\n"
         "-l BYTE - write low fuse, must be in hex format, e.g. 0x2A\n"
         "-H BYTE - write high fuse, must be in hex format, e.g. 0x2A\n"
         "-x BYTE - write extended fuse, must be in hex format, e.g. 0x2A\n"
         "-L - read lock bits\n"
         "-t TIME - overwrite default writing timeout (4500 us), useful for "
         "slower chips \n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [924 x i8] c"Usage:\0A-d DEVICE - specifies AVR chip\0A-r ADDR - read flash memory from start to ADDR in bytes, or\0A-r f FILE read whole flash memory to specified file\0A-w HEX - write flash memory from intel HEX file\0A-e - erase device\0A-c HEX - read and compare HEX with flash memory (strictly)\0A-a HEX - automatically erase, write and check data in chip, or\0A-a s HEX - same with strict verification instead of fast default\0Ause if you're flashing complex HEX, like Arduino bootloader or if default fails\0A-p r - read content of on-chip EEPROM, print in terminal, or\0A-p r FILE - read EEPROM to FILE\0A-p w HEX - write eeprom from intel hex file\0A-f - read fuse bits\0A-l BYTE - write low fuse, must be in hex format, e.g. 0x2A\0A-H BYTE - write high fuse, must be in hex format, e.g. 0x2A\0A-x BYTE - write extended fuse, must be in hex format, e.g. 0x2A\0A-L - read lock bits\0A-t TIME - overwrite default writing timeout (4500 us), useful for slower chips \0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([924 x i8], [924 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [923 x i8] c"Usage:\0A-d DEVICE - specifies AVR chip\0A-r ADDR - read flash memory from start to ADDR in bytes, or\0A-r f FILE read whole flash memory to specified file\0A-w HEX - write flash memory from intel HEX file\0A-e - erase device\0A-c HEX - read and compare HEX with flash memory (strictly)\0A-a HEX - automatically erase, write and check data in chip, or\0A-a s HEX - same with strict verification instead of fast default\0Ause if you're flashing complex HEX, like Arduino bootloader or if default fails\0A-p r - read content of on-chip EEPROM, print in terminal, or\0A-p r FILE - read EEPROM to FILE\0A-p w HEX - write eeprom from intel hex file\0A-f - read fuse bits\0A-l BYTE - write low fuse, must be in hex format, e.g. 0x2A\0A-H BYTE - write high fuse, must be in hex format, e.g. 0x2A\0A-x BYTE - write extended fuse, must be in hex format, e.g. 0x2A\0A-L - read lock bits\0A-t TIME - overwrite default writing timeout (4500 us), useful for slower chips \00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([923 x i8], [923 x i8]* @str, i64 0, i64 0))
ret void
}