#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*/ llib_print_f(int, char *);
void usage() {
  llib_print_f(1, "usage: lkey list\n");
  llib_print_f(1, "            (list of keys in user's keyring)\n");
  llib_print_f(1, "       lkey create_user length description\n");
  llib_print_f(1, "            (create a new 'user' key in user's keyring)\n");
  llib_print_f(1, "       lkey create_trusted length description\n");
  llib_print_f(1,
               "            (create a new 'trusted' key in user's keyring)\n");
  llib_print_f(1,
               "       lkey create_encrypted length description master_key\n");
  llib_print_f(
      1, "            (create a new 'encrypted' key in user's keyring)\n");
  llib_print_f(1, "       lkey describe id\n");
  llib_print_f(1, "            (show details about key #id)\n");
  llib_print_f(1, "       lkey remove id\n");
  llib_print_f(1, "            (remove key #id from user's keyring)\n");
  llib_print_f(1, "       lkey read id\n");
  llib_print_f(1,
               "            (read content of key #id from user's keyring)\n");
  llib_print_f(1, "       lkey save id path\n");
  llib_print_f(1, "            (save content of key #id from user's keyring "
                  "into file #path)\n");
  llib_print_f(1, "       lkey load type description path\n");
  llib_print_f(
      1,
      "            (load content of key in file #pathinto user's keyring)\n");
  llib_print_f(1, "       parameters: length => length of key in bytes\n");
  llib_print_f(1, "                   id => key id (positive integer)\n");
  llib_print_f(1, "                   description => short title of the key\n");
  llib_print_f(1,
               "                   master_key => trusted:xxx or user:xxx ..\n");
  llib_print_f(1, "                   type => user,trusted,encrypted..\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xee1(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xefe(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xf19(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xf41(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xf5f(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xf8a(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xfb5(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xfe2(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0xfea(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1003(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1009(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x102a(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x102e(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1058(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1061(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x109b(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x10b2(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x10e5(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1109(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x112c(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1155(%rip),%rsi
call   1030 <llib_print_f@plt>
mov    $0x1,%edi
lea    0x1181(%rip),%rsi
call   1030 <llib_print_f@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xee9(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xf06(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xf21(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xf49(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xf67(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xf92(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xfbd(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xfea(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0xff2(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x100b(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1011(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1032(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1036(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1060(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1069(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x10a3(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x10ba(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x10ed(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1111(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1134(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x115d(%rip),%rsi
mov    $0x1,%edi
call   1030 <llib_print_f@plt>
lea    0x1189(%rip),%rsi
mov    $0x1,%edi
pop    %rax
jmp    1030 <llib_print_f@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"usage: lkey list\0A\00"
@.str.1 = [46 x i8] c" (list of keys in user's keyring)\0A\00"
@.str.2 = [44 x i8] c" lkey create_user length description\0A\00"
@.str.3 = [57 x i8] c" (create a new 'user' key in user's keyring)\0A\00"
@.str.4 = [47 x i8] c" lkey create_trusted length description\0A\00"
@.str.5 = [60 x i8] c" (create a new 'trusted' key in user's keyring)\0A\00"
@.str.6 = [60 x i8] c" lkey create_encrypted length description master_key\0A\00"
@.str.7 = [62 x i8] c" (create a new 'encrypted' key in user's keyring)\0A\00"
@.str.8 = [25 x i8] c" lkey describe id\0A\00"
@.str.9 = [42 x i8] c" (show details about key #id)\0A\00"
@.str.10 = [23 x i8] c" lkey remove id\0A\00"
@.str.11 = [50 x i8] c" (remove key #id from user's keyring)\0A\00"
@.str.12 = [21 x i8] c" lkey read id\0A\00"
@.str.13 = [59 x i8] c" (read content of key #id from user's keyring)\0A\00"
@.str.14 = [26 x i8] c" lkey save id path\0A\00"
@.str.15 = [75 x i8] c" (save content of key #id from user's keyring into file #path)\0A\00"
@.str.16 = [40 x i8] c" lkey load type description path\0A\00"
@.str.17 = [68 x i8] c" (load content of key in file #pathinto user's keyring)\0A\00"
@.str.18 = [53 x i8] c" parameters: length => length of key in bytes\0A\00"
@.str.19 = [52 x i8] c" id => key id (positive integer)\0A\00"
@.str.20 = [58 x i8] c" description => short title of the key\0A\00"
@.str.21 = [61 x i8] c" master_key => trusted:xxx or user:xxx ..\0A\00"
@.str.22 = [53 x i8] c" type => user,trusted,encrypted..\0A\00"
define void @usage() {
%1 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"usage: lkey list\0A\00"
@.str.1 = [46 x i8] c" (list of keys in user's keyring)\0A\00"
@.str.2 = [44 x i8] c" lkey create_user length description\0A\00"
@.str.3 = [57 x i8] c" (create a new 'user' key in user's keyring)\0A\00"
@.str.4 = [47 x i8] c" lkey create_trusted length description\0A\00"
@.str.5 = [60 x i8] c" (create a new 'trusted' key in user's keyring)\0A\00"
@.str.6 = [60 x i8] c" lkey create_encrypted length description master_key\0A\00"
@.str.7 = [62 x i8] c" (create a new 'encrypted' key in user's keyring)\0A\00"
@.str.8 = [25 x i8] c" lkey describe id\0A\00"
@.str.9 = [42 x i8] c" (show details about key #id)\0A\00"
@.str.10 = [23 x i8] c" lkey remove id\0A\00"
@.str.11 = [50 x i8] c" (remove key #id from user's keyring)\0A\00"
@.str.12 = [21 x i8] c" lkey read id\0A\00"
@.str.13 = [59 x i8] c" (read content of key #id from user's keyring)\0A\00"
@.str.14 = [26 x i8] c" lkey save id path\0A\00"
@.str.15 = [75 x i8] c" (save content of key #id from user's keyring into file #path)\0A\00"
@.str.16 = [40 x i8] c" lkey load type description path\0A\00"
@.str.17 = [68 x i8] c" (load content of key in file #pathinto user's keyring)\0A\00"
@.str.18 = [53 x i8] c" parameters: length => length of key in bytes\0A\00"
@.str.19 = [52 x i8] c" id => key id (positive integer)\0A\00"
@.str.20 = [58 x i8] c" description => short title of the key\0A\00"
@.str.21 = [61 x i8] c" master_key => trusted:xxx or user:xxx ..\0A\00"
@.str.22 = [53 x i8] c" type => user,trusted,encrypted..\0A\00"
define void @usage() {
%1 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0))
%22 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.21, i64 0, i64 0))
%23 = tail call i32 @llib_print_f(i32 1, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0))
ret void
}