#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 usage(void) {
  printf("Usage:\n");
  printf("Options:\n");
  printf("  -d, --device=<dev> Use device <dev> as the video device.\n");
  printf("                     If <dev> starts with a digit, then "
         "/dev/video<dev> is used.\n");
  printf("  -s, --scan         Scan for mtd devices\n");
  printf("  -i, --info         Get flash information\n");
  printf("  -f, --factory      Allow write of factory image\n");
  printf("  -w, --write        Write *.flash file to flash\n");
  printf("  -m, --multiple     Use multiple byte write algorithm. 2-64, "
         "default 64 bytes\n");
  printf("  -r, --read         Read from flash to file. Default %d bytes\n",
         256);
  printf("  -c, --count        Bytes to read from flash. 1-%d\n", 256);
  printf(
      "  -o, --offset       Read offset into flash. Default offset = page1\n");
  printf("  -h, --help         Print this message\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1013(%rip),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1040(%rip),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1099(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xf4d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd7(%rip),%rdi
call   1030 <puts@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0x101c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1041(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6c(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe99(%rip),%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x105e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1096(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [60 x i8] c" -d, --device=<dev> Use device <dev> as the video device.\0A\00"
@.str.3 = [82 x i8] c" If <dev> starts with a digit, then /dev/video<dev> is used.\0A\00"
@.str.4 = [43 x i8] c" -s, --scan Scan for mtd devices\0A\00"
@.str.5 = [44 x i8] c" -i, --info Get flash information\0A\00"
@.str.6 = [51 x i8] c" -f, --factory Allow write of factory image\0A\00"
@.str.7 = [50 x i8] c" -w, --write Write *.flash file to flash\0A\00"
@.str.8 = [80 x i8] c" -m, --multiple Use multiple byte write algorithm. 2-64, default 64 bytes\0A\00"
@.str.9 = [64 x i8] c" -r, --read Read from flash to file. Default %d bytes\0A\00"
@.str.10 = [53 x i8] c" -c, --count Bytes to read from flash. 1-%d\0A\00"
@.str.11 = [69 x i8] c" -o, --offset Read offset into flash. Default offset = page1\0A\00"
@.str.12 = [41 x i8] c" -h, --help Print this message\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i32 256)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 256)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.9 = [64 x i8] c" -r, --read Read from flash to file. Default %d bytes\0A\00"
@.str.10 = [53 x i8] c" -c, --count Bytes to read from flash. 1-%d\0A\00"
@str = [7 x i8] c"Usage:\00"
@str.13 = [9 x i8] c"Options:\00"
@str.14 = [59 x i8] c" -d, --device=<dev> Use device <dev> as the video device.\00"
@str.15 = [81 x i8] c" If <dev> starts with a digit, then /dev/video<dev> is used.\00"
@str.16 = [42 x i8] c" -s, --scan Scan for mtd devices\00"
@str.17 = [43 x i8] c" -i, --info Get flash information\00"
@str.18 = [50 x i8] c" -f, --factory Allow write of factory image\00"
@str.19 = [49 x i8] c" -w, --write Write *.flash file to flash\00"
@str.20 = [79 x i8] c" -m, --multiple Use multiple byte write algorithm. 2-64, default 64 bytes\00"
@str.21 = [68 x i8] c" -o, --offset Read offset into flash. Default offset = page1\00"
@str.22 = [40 x i8] c" -h, --help Print this message\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i32 256)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 256)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.22, i64 0, i64 0))
ret void
}