#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void usage() {
  printf("\nAtmel ATmega Programmer, Version "
         "1.5"
         "\n");
  printf("Copyright (C) 2000-2006 Serge Vakulenko, www.vak.ru\n");
  printf("\nUsage:\n");
  printf("\tmegaprog [-vnhuD] [-f dev] srec-file\n");
  printf("Options:\n");
  printf("\t-v\t\tverify only\n");
  printf("\t-u\t\tleave memory unprotected\n");
  printf("\t-D\t\tprint debugging information\n");
  printf("\t-f dev\t\tserial device name, e.g. COM1 or /dev/cua01\n");
  printf("\t-o option=0/1\toption for ATmega128; available options are:\n");
  printf("\t\t\tM103C, WDTON, OCDEN, JTAGEN, SPIEN, CKOPT, EESAVE,\n");
  printf("\t\t\tBOOTSZ1, BOOTSZ0, BOOTRST, BODLEVEL, BODEN,\n");
  printf("\t\t\tSUT1, SUT0, CKSEL3, CKSEL2, CKSEL1, CKSEL0\n");
  printf("\tsrec-file\tcode file in SREC format\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1008(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf32(%rip),%rdi
call   1030 <puts@plt>
lea    0xf44(%rip),%rdi
call   1030 <puts@plt>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
lea    0xf82(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1030 <puts@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0x1021(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"\0AAtmel ATmega Programmer, Version 1.5\0A\00"
@.str.1 = [53 x i8] c"Copyright (C) 2000-2006 Serge Vakulenko, www.vak.ru\0A\00"
@.str.2 = [9 x i8] c"\0AUsage:\0A\00"
@.str.3 = [39 x i8] c"\09megaprog [-vnhuD] [-f dev] srec-file\0A\00"
@.str.4 = [10 x i8] c"Options:\0A\00"
@.str.5 = [18 x i8] c"\09-v\09\09verify only\0A\00"
@.str.6 = [31 x i8] c"\09-u\09\09leave memory unprotected\0A\00"
@.str.7 = [34 x i8] c"\09-D\09\09print debugging information\0A\00"
@.str.8 = [54 x i8] c"\09-f dev\09\09serial device name, e.g. COM1 or /dev/cua01\0A\00"
@.str.9 = [61 x i8] c"\09-o option=0/1\09option for ATmega128; available options are:\0A\00"
@.str.10 = [55 x i8] c"\09\09\09M103C, WDTON, OCDEN, JTAGEN, SPIEN, CKOPT, EESAVE,\0A\00"
@.str.11 = [48 x i8] c"\09\09\09BOOTSZ1, BOOTSZ0, BOOTRST, BODLEVEL, BODEN,\0A\00"
@.str.12 = [47 x i8] c"\09\09\09SUT1, SUT0, CKSEL3, CKSEL2, CKSEL1, CKSEL0\0A\00"
@.str.13 = [37 x i8] c"\09srec-file\09code file in SREC format\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 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 ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@str = [38 x i8] c"\0AAtmel ATmega Programmer, Version 1.5\00"
@str.14 = [52 x i8] c"Copyright (C) 2000-2006 Serge Vakulenko, www.vak.ru\00"
@str.15 = [8 x i8] c"\0AUsage:\00"
@str.16 = [38 x i8] c"\09megaprog [-vnhuD] [-f dev] srec-file\00"
@str.17 = [9 x i8] c"Options:\00"
@str.18 = [17 x i8] c"\09-v\09\09verify only\00"
@str.19 = [30 x i8] c"\09-u\09\09leave memory unprotected\00"
@str.20 = [33 x i8] c"\09-D\09\09print debugging information\00"
@str.21 = [53 x i8] c"\09-f dev\09\09serial device name, e.g. COM1 or /dev/cua01\00"
@str.22 = [60 x i8] c"\09-o option=0/1\09option for ATmega128; available options are:\00"
@str.23 = [54 x i8] c"\09\09\09M103C, WDTON, OCDEN, JTAGEN, SPIEN, CKOPT, EESAVE,\00"
@str.24 = [47 x i8] c"\09\09\09BOOTSZ1, BOOTSZ0, BOOTRST, BODLEVEL, BODEN,\00"
@str.25 = [46 x i8] c"\09\09\09SUT1, SUT0, CKSEL3, CKSEL2, CKSEL1, CKSEL0\00"
@str.26 = [36 x i8] c"\09srec-file\09code file in SREC format\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @exit(i32 -1)
unreachable
}