#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() {
  printf("Syntax: cvUpgrade ConfFile ConnType[USB|OPTLINK] "
         "[ConfigOptions][DeviceOptions]\n");
  printf("Syntax: cvUpgrade -KeyInfo ConnType[USB|OPTLINK] [DeviceOptions]\n");
  printf("Syntax: cvUpgrade -License ConnType[USB|OPTLINK] [LicenseOptions]\n");
  printf("Syntax: cvUpgrade -Key N ConnType[USB|OPTLINK] [DeviceOptions]\n\n");
  printf("Syntax: cvUpgrade -fvrel ConnType[USB|OPTLINK] [DeviceOptions]\n\n");
  printf("Description: write the file 'ConfFile' (Altera Raw Binary Format) "
         "into\n");
  printf("the flash memory of board connected by the specified connection type "
         "OR\n");
  printf("retrieve the keyinfo data from the board and store it on "
         "BoardInfo.dat file OR\n");
  printf("retrieve or delete the license data from the board:\n");
  printf("  to delete the license file you must specify -delete option\n\n");
  printf("ConfigOptions:\n\n");
  printf("-backup: write backup image\n\n");
  printf("-key    N: The key value to enable the DPP firmware\n\n");
  printf("-no_verify: disable verify (don't read and compare the flash "
         "content)\n\n");
  printf("-verify_only: read the flash content and compare with the ConfFile "
         "file\n\n");
  printf("DeviceOptions:\n\n");
  printf("-param filename: allow to specify the file that contain the "
         "parameters for the\n");
  printf("                 board that is being upgraded (default is "
         "cvUpgrade_params.txt)\n");
  printf("				 With CFA files this option is not "
         "required.\n\n");
  printf(
      "-rbf: specifies that the config file to be updated is in RBF format.\n");
  printf("-link   N: when using CONET, it is the optical link number to be "
         "used\n");
  printf("           when using USB, it is the USB device number to be used "
         "(default is 0)\n\n");
  printf("-bdnum  N: select board number in a chainable link (V2718 only)\n\n");
  printf("-VMEbaseaddress   N: The base address of the VME slave board to be "
         "upgraded (Hex 32 bit)\n\n");
  printf("-modelname ModelName: specify the model name (e.g. V1724B)\n\n");
  printf(
      "-filepath Folder: specify the folder where store the KeyInfo file\n\n");
  printf("LicenseOptions:\n\n");
  printf("-delete : deletes the license data\n");
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf60(%rip),%rdi
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1001(%rip),%rdi
call   1030 <printf@plt>
lea    0x103d(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e7(%rip),%rdi
call   1030 <printf@plt>
lea    0x111a(%rip),%rdi
call   1030 <printf@plt>
lea    0x111f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1131(%rip),%rdi
call   1030 <printf@plt>
lea    0x115b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1197(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d5(%rip),%rdi
call   1030 <printf@plt>
lea    0x11da(%rip),%rdi
call   1030 <printf@plt>
lea    0x121e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1263(%rip),%rdi
call   1030 <printf@plt>
lea    0x128a(%rip),%rdi
call   1030 <printf@plt>
lea    0x12c4(%rip),%rdi
call   1030 <printf@plt>
lea    0x12ff(%rip),%rdi
call   1030 <printf@plt>
lea    0x1346(%rip),%rdi
call   1030 <printf@plt>
lea    0x137c(%rip),%rdi
call   1030 <printf@plt>
lea    0x13cb(%rip),%rdi
call   1030 <printf@plt>
lea    0x13fc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1434(%rip),%rdi
call   1030 <printf@plt>
lea    0x143a(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf97(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1076(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1113(%rip),%rdi
call   1030 <puts@plt>
lea    0x1117(%rip),%rdi
call   1030 <puts@plt>
lea    0x1128(%rip),%rdi
call   1030 <puts@plt>
lea    0x1151(%rip),%rdi
call   1030 <puts@plt>
lea    0x118c(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c9(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1210(%rip),%rdi
call   1030 <puts@plt>
lea    0x1254(%rip),%rdi
call   1030 <puts@plt>
lea    0x127a(%rip),%rdi
call   1030 <puts@plt>
lea    0x12b3(%rip),%rdi
call   1030 <puts@plt>
lea    0x12ed(%rip),%rdi
call   1030 <puts@plt>
lea    0x1333(%rip),%rdi
call   1030 <puts@plt>
lea    0x1368(%rip),%rdi
call   1030 <puts@plt>
lea    0x13b6(%rip),%rdi
call   1030 <puts@plt>
lea    0x13e6(%rip),%rdi
call   1030 <puts@plt>
lea    0x141d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1422(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [81 x i8] c"Syntax: cvUpgrade ConfFile ConnType[USB|OPTLINK] [ConfigOptions][DeviceOptions]\0A\00"
@.str.1 = [66 x i8] c"Syntax: cvUpgrade -KeyInfo ConnType[USB|OPTLINK] [DeviceOptions]\0A\00"
@.str.2 = [67 x i8] c"Syntax: cvUpgrade -License ConnType[USB|OPTLINK] [LicenseOptions]\0A\00"
@.str.3 = [65 x i8] c"Syntax: cvUpgrade -Key N ConnType[USB|OPTLINK] [DeviceOptions]\0A\0A\00"
@.str.4 = [65 x i8] c"Syntax: cvUpgrade -fvrel ConnType[USB|OPTLINK] [DeviceOptions]\0A\0A\00"
@.str.5 = [72 x i8] c"Description: write the file 'ConfFile' (Altera Raw Binary Format) into\0A\00"
@.str.6 = [73 x i8] c"the flash memory of board connected by the specified connection type OR\0A\00"
@.str.7 = [80 x i8] c"retrieve the keyinfo data from the board and store it on BoardInfo.dat file OR\0A\00"
@.str.8 = [53 x i8] c"retrieve or delete the license data from the board:\0A\00"
@.str.9 = [63 x i8] c" to delete the license file you must specify -delete option\0A\0A\00"
@.str.10 = [17 x i8] c"ConfigOptions:\0A\0A\00"
@.str.11 = [30 x i8] c"-backup: write backup image\0A\0A\00"
@.str.12 = [54 x i8] c"-key N: The key value to enable the DPP firmware\0A\0A\00"
@.str.13 = [72 x i8] c"-no_verify: disable verify (don't read and compare the flash content)\0A\0A\00"
@.str.14 = [74 x i8] c"-verify_only: read the flash content and compare with the ConfFile file\0A\0A\00"
@.str.15 = [17 x i8] c"DeviceOptions:\0A\0A\00"
@.str.16 = [80 x i8] c"-param filename: allow to specify the file that contain the parameters for the\0A\00"
@.str.17 = [81 x i8] c" board that is being upgraded (default is cvUpgrade_params.txt)\0A\00"
@.str.18 = [51 x i8] c"\09\09\09\09 With CFA files this option is not required.\0A\0A\00"
@.str.19 = [70 x i8] c"-rbf: specifies that the config file to be updated is in RBF format.\0A\00"
@.str.20 = [71 x i8] c"-link N: when using CONET, it is the optical link number to be used\0A\00"
@.str.21 = [83 x i8] c" when using USB, it is the USB device number to be used (default is 0)\0A\0A\00"
@.str.22 = [66 x i8] c"-bdnum N: select board number in a chainable link (V2718 only)\0A\0A\00"
@.str.23 = [91 x i8] c"-VMEbaseaddress N: The base address of the VME slave board to be upgraded (Hex 32 bit)\0A\0A\00"
@.str.24 = [61 x i8] c"-modelname ModelName: specify the model name (e.g. V1724B)\0A\0A\00"
@.str.25 = [68 x i8] c"-filepath Folder: specify the folder where store the KeyInfo file\0A\0A\00"
@.str.26 = [18 x i8] c"LicenseOptions:\0A\0A\00"
@.str.27 = [36 x i8] c"-delete : deletes the license data\0A\00"
define void @Usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.27, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [80 x i8] c"Syntax: cvUpgrade ConfFile ConnType[USB|OPTLINK] [ConfigOptions][DeviceOptions]\00"
@str.28 = [65 x i8] c"Syntax: cvUpgrade -KeyInfo ConnType[USB|OPTLINK] [DeviceOptions]\00"
@str.29 = [66 x i8] c"Syntax: cvUpgrade -License ConnType[USB|OPTLINK] [LicenseOptions]\00"
@str.30 = [64 x i8] c"Syntax: cvUpgrade -Key N ConnType[USB|OPTLINK] [DeviceOptions]\0A\00"
@str.31 = [64 x i8] c"Syntax: cvUpgrade -fvrel ConnType[USB|OPTLINK] [DeviceOptions]\0A\00"
@str.32 = [71 x i8] c"Description: write the file 'ConfFile' (Altera Raw Binary Format) into\00"
@str.33 = [72 x i8] c"the flash memory of board connected by the specified connection type OR\00"
@str.34 = [79 x i8] c"retrieve the keyinfo data from the board and store it on BoardInfo.dat file OR\00"
@str.35 = [52 x i8] c"retrieve or delete the license data from the board:\00"
@str.36 = [62 x i8] c" to delete the license file you must specify -delete option\0A\00"
@str.37 = [16 x i8] c"ConfigOptions:\0A\00"
@str.38 = [29 x i8] c"-backup: write backup image\0A\00"
@str.39 = [53 x i8] c"-key N: The key value to enable the DPP firmware\0A\00"
@str.40 = [71 x i8] c"-no_verify: disable verify (don't read and compare the flash content)\0A\00"
@str.41 = [73 x i8] c"-verify_only: read the flash content and compare with the ConfFile file\0A\00"
@str.42 = [16 x i8] c"DeviceOptions:\0A\00"
@str.43 = [79 x i8] c"-param filename: allow to specify the file that contain the parameters for the\00"
@str.44 = [80 x i8] c" board that is being upgraded (default is cvUpgrade_params.txt)\00"
@str.45 = [50 x i8] c"\09\09\09\09 With CFA files this option is not required.\0A\00"
@str.46 = [69 x i8] c"-rbf: specifies that the config file to be updated is in RBF format.\00"
@str.47 = [70 x i8] c"-link N: when using CONET, it is the optical link number to be used\00"
@str.48 = [82 x i8] c" when using USB, it is the USB device number to be used (default is 0)\0A\00"
@str.49 = [65 x i8] c"-bdnum N: select board number in a chainable link (V2718 only)\0A\00"
@str.50 = [90 x i8] c"-VMEbaseaddress N: The base address of the VME slave board to be upgraded (Hex 32 bit)\0A\00"
@str.51 = [60 x i8] c"-modelname ModelName: specify the model name (e.g. V1724B)\0A\00"
@str.52 = [67 x i8] c"-filepath Folder: specify the folder where store the KeyInfo file\0A\00"
@str.53 = [17 x i8] c"LicenseOptions:\0A\00"
@str.54 = [35 x i8] c"-delete : deletes the license data\00"
define void @Usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.28, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.29, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.30, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.31, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.32, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.33, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.34, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.35, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.36, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.37, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.38, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.39, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.40, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.41, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.42, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.43, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.44, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.45, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.46, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.47, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.48, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.49, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.50, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.51, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.52, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.53, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.54, i64 0, i64 0))
ret void
}