#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*/ check_info(int, char);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ get_info(char **, int *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read_info(int, char *);
int /*<<< orphan*/ write_info(int, char);
int main(int argc, char *argv[]) {
  int type;
  char class, class_old;
  if (argc != 3) {
    printf("Usage: %s benchmark-name class\n", argv[0]);
    exit(1);
  }
  get_info(argv, &type, &class);
  if (class != 'U') {
    check_info(type, class);
  }
  read_info(type, &class_old);
  if (class != 'U') {
    if (class_old != 'X') {
    }
  } else {
    printf("setparams:\n  "
           "*******************************************************************"
           "**\n  * You must specify CLASS to build this benchmark             "
           "       *\n  * For example, to build a class A benchmark, type      "
           "             *\n  *       make {benchmark-name} CLASS=A            "
           "                   *\n  "
           "*******************************************************************"
           "**\n\n");
    if (class_old != 'X') {
    }
    exit(1);
  }
  if (class != class_old) {
    write_info(type, class);
  } else {
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     119f <main+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x15(%rbp),%rdx
call   1040 <get_info@plt>
movsbl -0x15(%rbp),%eax
cmp    $0x55,%eax
je     11c9 <main+0x69>
mov    -0x14(%rbp),%edi
movsbl -0x15(%rbp),%esi
call   1060 <check_info@plt>
mov    -0x14(%rbp),%edi
lea    -0x16(%rbp),%rsi
call   1070 <read_info@plt>
movsbl -0x15(%rbp),%eax
cmp    $0x55,%eax
je     11f9 <main+0x99>
movsbl -0x16(%rbp),%eax
cmp    $0x58,%eax
je     11f4 <main+0x94>
jmp    11f4 <main+0x94>
jmp    1223 <main+0xc3>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x16(%rbp),%eax
cmp    $0x58,%eax
je     1219 <main+0xb9>
jmp    1219 <main+0xb9>
mov    $0x1,%edi
call   1080 <exit@plt>
movsbl -0x15(%rbp),%eax
movsbl -0x16(%rbp),%ecx
cmp    %ecx,%eax
je     1244 <main+0xe4>
mov    -0x14(%rbp),%edi
movsbl -0x15(%rbp),%esi
call   1030 <write_info@plt>
jmp    1249 <main+0xe9>
jmp    1249 <main+0xe9>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x3,%edi
jne    11cb <main+0x5b>
lea    0x4(%rsp),%rax
lea    0x2(%rsp),%rdx
mov    %rsi,%rdi
mov    %rax,%rsi
call   1040 <get_info@plt>
mov    0x2(%rsp),%al
cmp    $0x55,%al
je     119f <main+0x2f>
mov    0x4(%rsp),%edi
movsbl %al,%esi
call   1070 <check_info@plt>
mov    0x4(%rsp),%edi
lea    0x3(%rsp),%rsi
call   1080 <read_info@plt>
mov    0x2(%rsp),%al
cmp    $0x55,%al
je     11e6 <main+0x76>
cmp    0x3(%rsp),%al
je     11c7 <main+0x57>
mov    0x4(%rsp),%edi
movsbl %al,%esi
call   1030 <write_info@plt>
xor    %eax,%eax
pop    %rcx
ret
mov    (%rsi),%rsi
lea    0xe2b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
lea    0xe33(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Usage: %s benchmark-name class\0A\00"
@.str.1 = [373 x i8] c"setparams:\0A *********************************************************************\0A * You must specify CLASS to build this benchmark *\0A * For example, to build a class A benchmark, type *\0A * make {benchmark-name} CLASS=A *\0A *********************************************************************\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8
%8 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = call i32 @get_info(i8** %18, i32* %6, i8* %7)
%20 = load i8, i8* %7
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 85
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i32, i32* %6
%25 = load i8, i8* %7
%26 = call i32 @check_info(i32 %24, i8 signext %25)
br label %27
27: ; preds = %23, %17
%28 = load i32, i32* %6
%29 = call i32 @read_info(i32 %28, i8* %8)
%30 = load i8, i8* %7
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 85
br i1 %32, label %33, label %39
33: ; preds = %27
%34 = load i8, i8* %8
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 88
br i1 %36, label %37, label %38
37: ; preds = %33
br label %38
38: ; preds = %37, %33
br label %47
39: ; preds = %27
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([373 x i8], [373 x i8]* @.str.1, i64 0, i64 0))
%41 = load i8, i8* %8
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %42, 88
br i1 %43, label %44, label %45
44: ; preds = %39
br label %45
45: ; preds = %44, %39
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %38
%48 = load i8, i8* %7
%49 = sext i8 %48 to i32
%50 = load i8, i8* %8
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %49, %51
br i1 %52, label %53, label %57
53: ; preds = %47
%54 = load i32, i32* %6
%55 = load i8, i8* %7
%56 = call i32 @write_info(i32 %54, i8 signext %55)
br label %58
57: ; preds = %47
br label %58
58: ; preds = %57, %53
ret i32 0
}

LLVM IR (-O2):
@.str = [32 x i8] c"Usage: %s benchmark-name class\0A\00"
@str = [372 x i8] c"setparams:\0A *********************************************************************\0A * You must specify CLASS to build this benchmark *\0A * For example, to build a class A benchmark, type *\0A * make {benchmark-name} CLASS=A *\0A *********************************************************************\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8
%5 = alloca i8
%6 = bitcast i32* %3 to i8*
%7 = icmp eq i32 %0, 3
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = call i32 @get_info(i8** %1, i32* %3, i8* %4)
%14 = load i8, i8* %4
%15 = icmp eq i8 %14, 85
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i32, i32* %3
%18 = call i32 @check_info(i32 %17, i8 signext %14)
br label %19
19: ; preds = %16, %12
%20 = load i32, i32* %3
%21 = call i32 @read_info(i32 %20, i8* %5)
%22 = load i8, i8* %4
%23 = icmp eq i8 %22, 85
br i1 %23, label %27, label %24
24: ; preds = %19
%25 = load i8, i8* %5
%26 = icmp eq i8 %22, %25
br i1 %26, label %33, label %30
27: ; preds = %19
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([372 x i8], [372 x i8]* @str, i64 0, i64 0))
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %24
%31 = load i32, i32* %3
%32 = call i32 @write_info(i32 %31, i8 signext %22)
br label %33
33: ; preds = %24, %30
ret i32 0
}