#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 atoi(char *);
int /*<<< orphan*/ covariance(char *, int, int, int, char);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ output_starting_argv_stderr(int, char **);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  char *anchor_datatype_group;
  int date_time_group_piece;
  int datatype_group_piece;
  int data_piece;
  char piece_character;
  if (argc != 6) {
    fprintf(stderr,
            "Usage: %s anchor_datatype_group date_time_group_piece "
            "datatype_group_piece data_piece piece_character\n",
            argv[0]);
    exit(1);
  }
  output_starting_argv_stderr(argc, argv);
  anchor_datatype_group = argv[1];
  date_time_group_piece = atoi(argv[2]);
  datatype_group_piece = atoi(argv[3]);
  data_piece = atoi(argv[4]);
  piece_character = *argv[5];
  covariance(anchor_datatype_group, date_time_group_piece, datatype_group_piece,
             data_piece, piece_character);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x6,-0x8(%rbp)
je     1196 <main+0x46>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe79(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <output_starting_argv_stderr@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rax
mov    (%rax),%al
mov    %al,-0x25(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
movsbl -0x25(%rbp),%r8d
call   1040 <covariance@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x6,%edi
jne    11b4 <main+0x64>
mov    $0x6,%edi
mov    %rbx,%rsi
call   1050 <output_starting_argv_stderr@plt>
mov    0x8(%rbx),%r14
mov    0x10(%rbx),%rdi
call   1060 <atoi@plt>
mov    %eax,%r15d
mov    0x18(%rbx),%rdi
call   1060 <atoi@plt>
mov    %eax,%ebp
mov    0x20(%rbx),%rdi
call   1060 <atoi@plt>
mov    0x28(%rbx),%rcx
movsbl (%rcx),%r8d
mov    %r14,%rdi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   1040 <covariance@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xe39(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [103 x i8] c"Usage: %s anchor_datatype_group date_time_group_piece datatype_group_piece data_piece piece_character\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp ne i32 %11, 6
br i1 %12, label %13, label %20
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = call i32 @exit(i32 1)
unreachable
20: ; preds = %2
%21 = load i32, i32* %4
%22 = load i8**, i8*** %5
%23 = call i32 @output_starting_argv_stderr(i32 %21, i8** %22)
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
store i8* %26, i8** %6
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i32 @atoi(i8* %29)
store i32 %30, i32* %7
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 3
%33 = load i8*, i8** %32
%34 = call i32 @atoi(i8* %33)
store i32 %34, i32* %8
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 4
%37 = load i8*, i8** %36
%38 = call i32 @atoi(i8* %37)
store i32 %38, i32* %9
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 5
%41 = load i8*, i8** %40
%42 = load i8, i8* %41
store i8 %42, i8* %10
%43 = load i8*, i8** %6
%44 = load i32, i32* %7
%45 = load i32, i32* %8
%46 = load i32, i32* %9
%47 = load i8, i8* %10
%48 = call i32 @covariance(i8* %43, i32 %44, i32 %45, i32 %46, i8 signext %47)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [103 x i8] c"Usage: %s anchor_datatype_group date_time_group_piece datatype_group_piece data_piece piece_character\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp eq i32 %0, 6
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %2
%10 = tail call i32 @output_starting_argv_stderr(i32 6, i8** %1)
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32 @atoi(i8* %14)
%16 = getelementptr inbounds i8*, i8** %1, i64 3
%17 = load i8*, i8** %16
%18 = tail call i32 @atoi(i8* %17)
%19 = getelementptr inbounds i8*, i8** %1, i64 4
%20 = load i8*, i8** %19
%21 = tail call i32 @atoi(i8* %20)
%22 = getelementptr inbounds i8*, i8** %1, i64 5
%23 = load i8*, i8** %22
%24 = load i8, i8* %23
%25 = tail call i32 @covariance(i8* %12, i32 %15, i32 %18, i32 %21, i8 signext %24)
ret i32 0
}