#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 printInfo() {
  printf("\nCopyright (c) 2014, 2015 Payton Quinn\n\n");
  printf("Permission is hereby granted, free of charge, to any person "
         "obtaining a copy \n");
  printf("of this software and associated documentation files (the "
         "\"Software\"), to deal \n");
  printf("in the Software without restriction, including without limitation "
         "the rights \n");
  printf("to use, copy, modify, merge, publish, distribute, sublicense, and/or "
         "sell \n");
  printf("copies of the Software, and to permit persons to whom the Software "
         "is \n");
  printf("furnished to do so, subject to the following conditions: \n\n");
  printf("The above copyright notice and this permission notice shall be "
         "included in \n");
  printf("all copies or substantial portions of the Software. \n\n");
  printf("THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, "
         "EXPRESS OR \n");
  printf("IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF "
         "MERCHANTABILITY, \n");
  printf("FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT "
         "SHALL THE \n");
  printf("AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR "
         "OTHER \n");
  printf("LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, "
         "ARISING FROM, \n");
  printf("OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER "
         "DEALINGS IN \n");
  printf("THE SOFTWARE.\n\n\n");
  printf("This program is a C implementation of something similar to the "
         "version of RSA \n");
  printf("taught in CSE 311 at the University of Washington. ");
  printf("It uses an implementation\nthat has an exponent of 3 and uses primes "
         "that are too small, rendering it\ninsecure. ");
  printf("The powerpoint for the lecture upon which this program is based "
         "can\nbe accessed ");
  printf("at http://www.cs.washington.edu/homes/tompa/papers/rsa311.pptx\n");
  printf("\n\n");
  printf("For documentation and instructions on using this program, please "
         "visit \n");
  printf("https://github.com/paytonq/CryptoProgram\n\n");
}


x86 assembly (clang, -O0):
<printInfo>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
call   1030 <printf@plt>
lea    0x100c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1125(%rip),%rdi
call   1030 <printf@plt>
lea    0x1164(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a6(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1227(%rip),%rdi
call   1030 <printf@plt>
lea    0x1267(%rip),%rdi
call   1030 <printf@plt>
lea    0x126c(%rip),%rdi
call   1030 <printf@plt>
lea    0x12b0(%rip),%rdi
call   1030 <printf@plt>
lea    0x12d8(%rip),%rdi
call   1030 <printf@plt>
lea    0x133c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1381(%rip),%rdi
call   1030 <printf@plt>
lea    0x122d(%rip),%rdi
call   1030 <printf@plt>
lea    0x13a9(%rip),%rdi
call   1030 <printf@plt>
lea    0x13e6(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printInfo>:
push   %rax
lea    0xfcd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe9(%rip),%rdi
call   1030 <puts@plt>
lea    0x102b(%rip),%rdi
call   1030 <puts@plt>
lea    0x106e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x112a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1159(%rip),%rdi
call   1030 <puts@plt>
lea    0x1199(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1203(%rip),%rdi
call   1030 <puts@plt>
lea    0x1241(%rip),%rdi
call   1030 <puts@plt>
lea    0x1282(%rip),%rdi
call   1030 <puts@plt>
lea    0x12be(%rip),%rdi
call   1030 <puts@plt>
lea    0x1301(%rip),%rdi
call   1030 <puts@plt>
lea    0x1340(%rip),%rdi
call   1030 <puts@plt>
lea    0x1344(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0c(%rip),%rdi
call   1040 <printf@plt>
lea    0xe34(%rip),%rdi
call   1040 <printf@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0x1363(%rip),%rdi
call   1030 <puts@plt>
lea    0x1306(%rip),%rdi
call   1030 <puts@plt>
lea    0x138a(%rip),%rdi
call   1030 <puts@plt>
lea    0x13c6(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [41 x i8] c"\0ACopyright (c) 2014, 2015 Payton Quinn\0A\0A\00"
@.str.1 = [79 x i8] c"Permission is hereby granted, free of charge, to any person obtaining a copy \0A\00"
@.str.2 = [80 x i8] c"of this software and associated documentation files (the \22Software\22), to deal \0A\00"
@.str.3 = [79 x i8] c"in the Software without restriction, including without limitation the rights \0A\00"
@.str.4 = [76 x i8] c"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \0A\00"
@.str.5 = [72 x i8] c"copies of the Software, and to permit persons to whom the Software is \0A\00"
@.str.6 = [60 x i8] c"furnished to do so, subject to the following conditions: \0A\0A\00"
@.str.7 = [77 x i8] c"The above copyright notice and this permission notice shall be included in \0A\00"
@.str.8 = [55 x i8] c"all copies or substantial portions of the Software. \0A\0A\00"
@.str.9 = [77 x i8] c"THE SOFTWARE IS PROVIDED \22AS IS\22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \0A\00"
@.str.10 = [75 x i8] c"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \0A\00"
@.str.11 = [78 x i8] c"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \0A\00"
@.str.12 = [73 x i8] c"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \0A\00"
@.str.13 = [80 x i8] c"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \0A\00"
@.str.14 = [76 x i8] c"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN \0A\00"
@.str.15 = [17 x i8] c"THE SOFTWARE.\0A\0A\0A\00"
@.str.16 = [80 x i8] c"This program is a C implementation of something similar to the version of RSA \0A\00"
@.str.17 = [52 x i8] c"taught in CSE 311 at the University of Washington. \00"
@.str.18 = [112 x i8] c"It uses an implementation\0Athat has an exponent of 3 and uses primes that are too small, rendering it\0Ainsecure. \00"
@.str.19 = [81 x i8] c"The powerpoint for the lecture upon which this program is based can\0Abe accessed \00"
@.str.20 = [64 x i8] c"at http://www.cs.washington.edu/homes/tompa/papers/rsa311.pptx\0A\00"
@.str.21 = [3 x i8] c"\0A\0A\00"
@.str.22 = [73 x i8] c"For documentation and instructions on using this program, please visit \0A\00"
@.str.23 = [43 x i8] c"https://github.com/paytonq/CryptoProgram\0A\0A\00"
define void @printInfo() {
%1 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 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 ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 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 ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.23, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.17 = [52 x i8] c"taught in CSE 311 at the University of Washington. \00"
@.str.18 = [112 x i8] c"It uses an implementation\0Athat has an exponent of 3 and uses primes that are too small, rendering it\0Ainsecure. \00"
@.str.19 = [81 x i8] c"The powerpoint for the lecture upon which this program is based can\0Abe accessed \00"
@str = [40 x i8] c"\0ACopyright (c) 2014, 2015 Payton Quinn\0A\00"
@str.24 = [78 x i8] c"Permission is hereby granted, free of charge, to any person obtaining a copy \00"
@str.25 = [79 x i8] c"of this software and associated documentation files (the \22Software\22), to deal \00"
@str.26 = [78 x i8] c"in the Software without restriction, including without limitation the rights \00"
@str.27 = [75 x i8] c"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \00"
@str.28 = [71 x i8] c"copies of the Software, and to permit persons to whom the Software is \00"
@str.29 = [59 x i8] c"furnished to do so, subject to the following conditions: \0A\00"
@str.30 = [76 x i8] c"The above copyright notice and this permission notice shall be included in \00"
@str.31 = [54 x i8] c"all copies or substantial portions of the Software. \0A\00"
@str.32 = [76 x i8] c"THE SOFTWARE IS PROVIDED \22AS IS\22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \00"
@str.33 = [74 x i8] c"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \00"
@str.34 = [77 x i8] c"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \00"
@str.35 = [72 x i8] c"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \00"
@str.36 = [79 x i8] c"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \00"
@str.37 = [75 x i8] c"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN \00"
@str.38 = [16 x i8] c"THE SOFTWARE.\0A\0A\00"
@str.39 = [79 x i8] c"This program is a C implementation of something similar to the version of RSA \00"
@str.40 = [63 x i8] c"at http://www.cs.washington.edu/homes/tompa/papers/rsa311.pptx\00"
@str.41 = [2 x i8] c"\0A\00"
@str.42 = [72 x i8] c"For documentation and instructions on using this program, please visit \00"
@str.43 = [42 x i8] c"https://github.com/paytonq/CryptoProgram\0A\00"
define void @printInfo() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.24, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.25, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.26, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.27, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.28, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.29, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.30, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.31, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.32, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.33, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.34, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.35, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.36, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.37, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.38, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.39, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.41, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.42, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.43, i64 0, i64 0))
ret void
}