#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*/ options();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int usage(void) {
  printf("\n");
  printf("%s\n", "Usage  : >motet <msg> <key> <cipher mode> <cipher type> "
                 "<output> <csprng>");
  printf("%s\n", "Example: >motet \"my message\" \"my strong key\" e m a 4");
  printf("%s\n", "(Encrypt \"my message\" on key \"my strong key\" with "
                 "Caesar/MIX using MOTE8)");
  puts("CSPRNG : ISAAC(0) BB128(1) BB256(2) BB512(3) MOTE8(4) MOTE16(5) "
       "MOTE32(6)");
  printf("Maximum message length: %5d B; maximum key length: %4d B.\n", 20480,
         2048 - 1);
  printf("Minimum message length: %5d B; minimum key length: %4d B.\n", 2, 8);
  options();
  return 0;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0x1050(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeb7(%rip),%rdi
lea    0xeb4(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xea2(%rip),%rdi
lea    0xee9(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe8d(%rip),%rdi
lea    0xf09(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
mov    $0x5000,%esi
mov    $0x7ff,%edx
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xfa6(%rip),%rdi
mov    $0x2,%esi
mov    $0x8,%edx
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <options@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeae(%rip),%rdi
call   1040 <puts@plt>
lea    0xeec(%rip),%rdi
call   1040 <puts@plt>
lea    0xf15(%rip),%rdi
call   1040 <puts@plt>
lea    0xf53(%rip),%rdi
call   1040 <puts@plt>
lea    0xf91(%rip),%rdi
mov    $0x5000,%esi
mov    $0x7ff,%edx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xfb4(%rip),%rdi
mov    $0x2,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <options@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [74 x i8] c"Usage : >motet <msg> <key> <cipher mode> <cipher type> <output> <csprng>\00"
@.str.3 = [53 x i8] c"Example: >motet \22my message\22 \22my strong key\22 e m a 4\00"
@.str.4 = [74 x i8] c"(Encrypt \22my message\22 on key \22my strong key\22 with Caesar/MIX using MOTE8)\00"
@.str.5 = [74 x i8] c"CSPRNG : ISAAC(0) BB128(1) BB256(2) BB512(3) MOTE8(4) MOTE16(5) MOTE32(6)\00"
@.str.6 = [59 x i8] c"Maximum message length: %5d B; maximum key length: %4d B.\0A\00"
@.str.7 = [59 x i8] c"Minimum message length: %5d B; minimum key length: %4d B.\0A\00"
define i32 @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0), i32 20480, i32 2047)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32 2, i32 8)
%8 = call i32 (...) @options()
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [74 x i8] c"Usage : >motet <msg> <key> <cipher mode> <cipher type> <output> <csprng>\00"
@.str.3 = [53 x i8] c"Example: >motet \22my message\22 \22my strong key\22 e m a 4\00"
@.str.4 = [74 x i8] c"(Encrypt \22my message\22 on key \22my strong key\22 with Caesar/MIX using MOTE8)\00"
@.str.5 = [74 x i8] c"CSPRNG : ISAAC(0) BB128(1) BB256(2) BB512(3) MOTE8(4) MOTE16(5) MOTE32(6)\00"
@.str.6 = [59 x i8] c"Maximum message length: %5d B; maximum key length: %4d B.\0A\00"
@.str.7 = [59 x i8] c"Minimum message length: %5d B; minimum key length: %4d B.\0A\00"
define i32 @usage() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0), i32 20480, i32 2047)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32 2, i32 8)
%8 = tail call i32 (...) @options()
ret i32 0
}