#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*/ challenge1(char *);
int /*<<< orphan*/ challenge2(char *, char *);
int /*<<< orphan*/ challenge3(char *);
int /*<<< orphan*/ challenge4(char *);
int /*<<< orphan*/ challenge5(char *, char *);
int /*<<< orphan*/ challenge6(char *);
int /*<<< orphan*/ challenge7(char *, unsigned char *, int, int);
int /*<<< orphan*/ challenge8(char *, int);
int /*<<< orphan*/ printf(char *);
void set1() {
  printf("****** Set 1\n");
  challenge1("49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f6"
             "9736f6e6f7573206d757368726f6f6d");
  challenge2("1c0111001f010100061a024b53535009181c",
             "686974207468652062756c6c277320657965");
  challenge3(
      "1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736");
  challenge4("files/4.txt");
  challenge5("Burning 'em, if you ain't quick and nimble\nI go crazy when I "
             "hear a cymbal",
             "ICE");
  challenge6("files/6.txt");
  challenge7("files/7.txt", (unsigned char *)"YELLOW SUBMARINE", 16, 128);
  challenge8("files/8.txt", 16);
}


x86 assembly (clang, -O0):
<set1>:
push   %rbp
mov    %rsp,%rbp
lea    0xe65(%rip),%rdi
call   1070 <printf@plt>
lea    0xe67(%rip),%rdi
call   10b0 <challenge1@plt>
lea    0xebc(%rip),%rdi
lea    0xeda(%rip),%rsi
call   1060 <challenge2@plt>
lea    0xef3(%rip),%rdi
call   1090 <challenge3@plt>
lea    0xf2c(%rip),%rdi
call   1030 <challenge4@plt>
lea    0xf2c(%rip),%rdi
lea    0xf70(%rip),%rsi
call   10a0 <challenge5@plt>
lea    0xf68(%rip),%rdi
call   1050 <challenge6@plt>
lea    0xf68(%rip),%rdi
lea    0xf6d(%rip),%rsi
mov    $0x10,%edx
mov    $0x80,%ecx
call   1080 <challenge7@plt>
lea    0xf68(%rip),%rdi
mov    $0x10,%esi
call   1040 <challenge8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set1>:
push   %rax
lea    0xfe8(%rip),%rdi
call   1070 <puts@plt>
lea    0xe5c(%rip),%rdi
call   10b0 <challenge1@plt>
lea    0xeb1(%rip),%rdi
lea    0xecf(%rip),%rsi
call   1060 <challenge2@plt>
lea    0xee8(%rip),%rdi
call   1090 <challenge3@plt>
lea    0xf21(%rip),%rdi
call   1030 <challenge4@plt>
lea    0xf21(%rip),%rdi
lea    0xf65(%rip),%rsi
call   10a0 <challenge5@plt>
lea    0xf5d(%rip),%rdi
call   1050 <challenge6@plt>
lea    0xf5d(%rip),%rdi
lea    0xf62(%rip),%rsi
mov    $0x10,%edx
mov    $0x80,%ecx
call   1080 <challenge7@plt>
lea    0xf5d(%rip),%rdi
mov    $0x10,%esi
pop    %rax
jmp    1040 <challenge8@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"****** Set 1\0A\00"
@.str.1 = [97 x i8] c"49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d\00"
@.str.2 = [37 x i8] c"1c0111001f010100061a024b53535009181c\00"
@.str.3 = [37 x i8] c"686974207468652062756c6c277320657965\00"
@.str.4 = [69 x i8] c"1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736\00"
@.str.5 = [12 x i8] c"files/4.txt\00"
@.str.6 = [75 x i8] c"Burning 'em, if you ain't quick and nimble\0AI go crazy when I hear a cymbal\00"
@.str.7 = [4 x i8] c"ICE\00"
@.str.8 = [12 x i8] c"files/6.txt\00"
@.str.9 = [12 x i8] c"files/7.txt\00"
@.str.10 = [17 x i8] c"YELLOW SUBMARINE\00"
@.str.11 = [12 x i8] c"files/8.txt\00"
define void @set1() {
%1 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @challenge1(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @challenge2(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @challenge3(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @challenge4(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @challenge5(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 @challenge6(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 @challenge7(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 16, i32 128)
%9 = call i32 @challenge8(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 16)
ret void
}

LLVM IR (-O2):
@.str.1 = [97 x i8] c"49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d\00"
@.str.2 = [37 x i8] c"1c0111001f010100061a024b53535009181c\00"
@.str.3 = [37 x i8] c"686974207468652062756c6c277320657965\00"
@.str.4 = [69 x i8] c"1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736\00"
@.str.5 = [12 x i8] c"files/4.txt\00"
@.str.6 = [75 x i8] c"Burning 'em, if you ain't quick and nimble\0AI go crazy when I hear a cymbal\00"
@.str.7 = [4 x i8] c"ICE\00"
@.str.8 = [12 x i8] c"files/6.txt\00"
@.str.9 = [12 x i8] c"files/7.txt\00"
@.str.10 = [17 x i8] c"YELLOW SUBMARINE\00"
@.str.11 = [12 x i8] c"files/8.txt\00"
@str = [13 x i8] c"****** Set 1\00"
define void @set1() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @challenge1(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @challenge2(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @challenge3(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @challenge4(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @challenge5(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 @challenge6(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%8 = tail call i32 @challenge7(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 16, i32 128)
%9 = tail call i32 @challenge8(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 16)
ret void
}