#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_usage(const char *called_as) {
  printf("usage: %s [OPTION]... [FILE]...\n", called_as);
  printf("\n");
  printf("Print or check checksums based on the defined algorithm.\n");
  printf("With no FILE, or when FILE is -, read standard input.\n");
  printf("\n");
  printf("-a, --algo <algo>\talgorithm to use (see --version output)\n");
  printf("-b, --binary\t\tread in binary mode\n");
  printf("-c, --check\t\tread sums from the FILEs and check them\n");
  printf("    --tag\t\tcreate a BSD-style checksum\n");
  printf("-t, --text\t\tread in text mode (default)\n");
  printf("\n");
  printf("The following three options are useful only when verifying "
         "checksums:\n");
  printf("    --quiet\t\tdon't print OK for each successfully verified file\n");
  printf("    --status\t\tdon't output anything, status code shows success\n");
  printf("-w, --warn\t\twarn about improperly formatted checksum lines\n");
  printf("\n");
  printf("    --strict\t\twith --check, exit non-zero for any invalid input\n");
  printf("    --help\t\tdisplay this help and exit\n");
  printf("    --version\toutput version information and exit\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1040(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1054(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1074(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf1b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf49(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfb5(%rip),%rdi
call   1040 <puts@plt>
lea    0xfef(%rip),%rdi
call   1040 <puts@plt>
lea    0x1023(%rip),%rdi
call   1040 <puts@plt>
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x107b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10af(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ca(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"usage: %s [OPTION]... [FILE]...\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [58 x i8] c"Print or check checksums based on the defined algorithm.\0A\00"
@.str.3 = [55 x i8] c"With no FILE, or when FILE is -, read standard input.\0A\00"
@.str.4 = [59 x i8] c"-a, --algo <algo>\09algorithm to use (see --version output)\0A\00"
@.str.5 = [35 x i8] c"-b, --binary\09\09read in binary mode\0A\00"
@.str.6 = [54 x i8] c"-c, --check\09\09read sums from the FILEs and check them\0A\00"
@.str.7 = [40 x i8] c" --tag\09\09create a BSD-style checksum\0A\00"
@.str.8 = [41 x i8] c"-t, --text\09\09read in text mode (default)\0A\00"
@.str.9 = [71 x i8] c"The following three options are useful only when verifying checksums:\0A\00"
@.str.10 = [65 x i8] c" --quiet\09\09don't print OK for each successfully verified file\0A\00"
@.str.11 = [64 x i8] c" --status\09\09don't output anything, status code shows success\0A\00"
@.str.12 = [60 x i8] c"-w, --warn\09\09warn about improperly formatted checksum lines\0A\00"
@.str.13 = [65 x i8] c" --strict\09\09with --check, exit non-zero for any invalid input\0A\00"
@.str.14 = [40 x i8] c" --help\09\09display this help and exit\0A\00"
@.str.15 = [51 x i8] c" --version\09output version information and exit\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"usage: %s [OPTION]... [FILE]...\0A\00"
@str = [57 x i8] c"Print or check checksums based on the defined algorithm.\00"
@str.16 = [54 x i8] c"With no FILE, or when FILE is -, read standard input.\00"
@str.17 = [58 x i8] c"-a, --algo <algo>\09algorithm to use (see --version output)\00"
@str.18 = [34 x i8] c"-b, --binary\09\09read in binary mode\00"
@str.19 = [53 x i8] c"-c, --check\09\09read sums from the FILEs and check them\00"
@str.20 = [39 x i8] c" --tag\09\09create a BSD-style checksum\00"
@str.21 = [40 x i8] c"-t, --text\09\09read in text mode (default)\00"
@str.22 = [70 x i8] c"The following three options are useful only when verifying checksums:\00"
@str.23 = [64 x i8] c" --quiet\09\09don't print OK for each successfully verified file\00"
@str.24 = [63 x i8] c" --status\09\09don't output anything, status code shows success\00"
@str.25 = [59 x i8] c"-w, --warn\09\09warn about improperly formatted checksum lines\00"
@str.26 = [64 x i8] c" --strict\09\09with --check, exit non-zero for any invalid input\00"
@str.27 = [39 x i8] c" --help\09\09display this help and exit\00"
@str.28 = [50 x i8] c" --version\09output version information and exit\00"
define void @print_usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.24, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.25, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.26, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.27, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.28, i64 0, i64 0))
ret void
}