#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("\n"
         "\tUse:\n"
         "\t2cca root   [DN] [days=xx]         # Create a root CA\n"
         "\t2cca sub    [DN] [days=xx] [ca=xx] # Create a sub CA\n"
         "\t2cca server [DN] [days=xx] [ca=xx] # Create a server\n"
         "\t2cca client [DN] [days=xx] [ca=xx] # Create a client\n"
         "\t2cca www    [DN] [days=xx] [ca=xx] [dns=x] [dns=x]\n"
         "\n"
         "Where DN is given as key=val pairs. Supported fields:\n"
         "\n"
         "\tO     Organization, only for root (default: Home)\n"
         "\tCN    Common Name (default: root|server|client\n"
         "\tC     2-letter country code like US, FR, UK (optional)\n"
         "\tST    a state name (optional)\n"
         "\tL     a locality or city name (optional)\n"
         "\temail an email address\n"
         "\n"
         "\tdays specifies certificate duration in days\n"
         "\n"
         "Key generation:\n"
         "\tEither RSA with keysize set by rsa=xx\n"
         "\tOr elliptic-curve with curve name set by ec=xx\n"
         "\tDefault is RSA-2048, i.e. rsa=2048\n"
         "\tSigning CA is specified with ca=CN (default: root)\n"
         "\n"
         "CRL management\n"
         "\t2cca crl [ca=xx]            # Show CRL for CA xx\n"
         "\t2cca revoke NAME [ca=xx]    # Revoke single cert by name\n"
         "\n"
         "\t2cca dh [numbits]           # Generate DH parameters\n"
         "\n"
         "Web server certificates\n"
         "\tGenerate web server certificates using 'wwww'\n"
         "\tSpecify DNS names using dns=x dns=y on the command-line\n"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [1132 x i8] c"\0A\09Use:\0A\092cca root [DN] [days=xx] # Create a root CA\0A\092cca sub [DN] [days=xx] [ca=xx] # Create a sub CA\0A\092cca server [DN] [days=xx] [ca=xx] # Create a server\0A\092cca client [DN] [days=xx] [ca=xx] # Create a client\0A\092cca www [DN] [days=xx] [ca=xx] [dns=x] [dns=x]\0A\0AWhere DN is given as key=val pairs. Supported fields:\0A\0A\09O Organization, only for root (default: Home)\0A\09CN Common Name (default: root|server|client\0A\09C 2-letter country code like US, FR, UK (optional)\0A\09ST a state name (optional)\0A\09L a locality or city name (optional)\0A\09email an email address\0A\0A\09days specifies certificate duration in days\0A\0AKey generation:\0A\09Either RSA with keysize set by rsa=xx\0A\09Or elliptic-curve with curve name set by ec=xx\0A\09Default is RSA-2048, i.e. rsa=2048\0A\09Signing CA is specified with ca=CN (default: root)\0A\0ACRL management\0A\092cca crl [ca=xx] # Show CRL for CA xx\0A\092cca revoke NAME [ca=xx] # Revoke single cert by name\0A\0A\092cca dh [numbits] # Generate DH parameters\0A\0AWeb server certificates\0A\09Generate web server certificates using 'wwww'\0A\09Specify DNS names using dns=x dns=y on the command-line\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([1132 x i8], [1132 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [1131 x i8] c"\0A\09Use:\0A\092cca root [DN] [days=xx] # Create a root CA\0A\092cca sub [DN] [days=xx] [ca=xx] # Create a sub CA\0A\092cca server [DN] [days=xx] [ca=xx] # Create a server\0A\092cca client [DN] [days=xx] [ca=xx] # Create a client\0A\092cca www [DN] [days=xx] [ca=xx] [dns=x] [dns=x]\0A\0AWhere DN is given as key=val pairs. Supported fields:\0A\0A\09O Organization, only for root (default: Home)\0A\09CN Common Name (default: root|server|client\0A\09C 2-letter country code like US, FR, UK (optional)\0A\09ST a state name (optional)\0A\09L a locality or city name (optional)\0A\09email an email address\0A\0A\09days specifies certificate duration in days\0A\0AKey generation:\0A\09Either RSA with keysize set by rsa=xx\0A\09Or elliptic-curve with curve name set by ec=xx\0A\09Default is RSA-2048, i.e. rsa=2048\0A\09Signing CA is specified with ca=CN (default: root)\0A\0ACRL management\0A\092cca crl [ca=xx] # Show CRL for CA xx\0A\092cca revoke NAME [ca=xx] # Revoke single cert by name\0A\0A\092cca dh [numbits] # Generate DH parameters\0A\0AWeb server certificates\0A\09Generate web server certificates using 'wwww'\0A\09Specify DNS names using dns=x dns=y on the command-line\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1131 x i8], [1131 x i8]* @str, i64 0, i64 0))
ret void
}