#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 printe(int error) {
  printf("[%i] ", error);
  switch (error) {
  case -1:
    printf("M invalid");
    break;
  case -2:
    printf("N invalid");
    break;
  case -3:
    printf("KL invalid");
    break;
  case -4:
    printf("KU invalid");
    break;
  case -5:
    printf("ALPHA invalid");
    break;
  case -6:
    printf("A invalid");
    break;
  case -7:
    printf("LDA invalid");
    break;
  case -8:
    printf("X invalid");
    break;
  case -9:
    printf("INCX invalid");
    break;
  case -10:
    printf("BETA invalid");
    break;
  case -11:
    printf("Y invalid");
    break;
  case -12:
    printf("INCY invalid");
    break;
  case -13:
    printf("TRANS invalid");
    break;
  case -14:
    printf("Overflow");
    break;
  case -15:
    printf("A is not a square matrix");
    break;
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<printe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xf17(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xf,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0xe,%eax
ja     126d <printe+0x15d>
mov    -0x10(%rbp),%rax
lea    0xeb4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126d <printe+0x15d>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printe>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xfffffff1,%ebx
jb     1153 <printe+0x33>
add    $0xf,%ebx
movslq %ebx,%rax
lea    0xf5f(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"[%i] \00"
@.str.1 = [10 x i8] c"M invalid\00"
@.str.2 = [10 x i8] c"N invalid\00"
@.str.3 = [11 x i8] c"KL invalid\00"
@.str.4 = [11 x i8] c"KU invalid\00"
@.str.5 = [14 x i8] c"ALPHA invalid\00"
@.str.6 = [10 x i8] c"A invalid\00"
@.str.7 = [12 x i8] c"LDA invalid\00"
@.str.8 = [10 x i8] c"X invalid\00"
@.str.9 = [13 x i8] c"INCX invalid\00"
@.str.10 = [13 x i8] c"BETA invalid\00"
@.str.11 = [10 x i8] c"Y invalid\00"
@.str.12 = [13 x i8] c"INCY invalid\00"
@.str.13 = [14 x i8] c"TRANS invalid\00"
@.str.14 = [9 x i8] c"Overflow\00"
@.str.15 = [25 x i8] c"A is not a square matrix\00"
@.str.16 = [2 x i8] c"\0A\00"
define void @printe(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
switch i32 %5, label %36 [
i32 -1, label %6
i32 -2, label %8
i32 -3, label %10
i32 -4, label %12
i32 -5, label %14
i32 -6, label %16
i32 -7, label %18
i32 -8, label %20
i32 -9, label %22
i32 -10, label %24
i32 -11, label %26
i32 -12, label %28
i32 -13, label %30
i32 -14, label %32
i32 -15, label %34
]
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %36
8: ; preds = %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %36
10: ; preds = %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %36
12: ; preds = %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %36
14: ; preds = %1
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %36
16: ; preds = %1
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %36
18: ; preds = %1
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %36
20: ; preds = %1
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %36
22: ; preds = %1
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
br label %36
24: ; preds = %1
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %36
26: ; preds = %1
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
br label %36
28: ; preds = %1
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
br label %36
30: ; preds = %1
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
br label %36
32: ; preds = %1
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
br label %36
34: ; preds = %1
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0))
br label %36
36: ; preds = %1, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"[%i] \00"
@.str.1 = [10 x i8] c"M invalid\00"
@.str.2 = [10 x i8] c"N invalid\00"
@.str.3 = [11 x i8] c"KL invalid\00"
@.str.4 = [11 x i8] c"KU invalid\00"
@.str.5 = [14 x i8] c"ALPHA invalid\00"
@.str.6 = [10 x i8] c"A invalid\00"
@.str.7 = [12 x i8] c"LDA invalid\00"
@.str.8 = [10 x i8] c"X invalid\00"
@.str.9 = [13 x i8] c"INCX invalid\00"
@.str.10 = [13 x i8] c"BETA invalid\00"
@.str.11 = [10 x i8] c"Y invalid\00"
@.str.12 = [13 x i8] c"INCY invalid\00"
@.str.13 = [14 x i8] c"TRANS invalid\00"
@.str.14 = [9 x i8] c"Overflow\00"
@.str.15 = [25 x i8] c"A is not a square matrix\00"
@reltable.printe = [15 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.15 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.14 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.13 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.12 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.11 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.10 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.9 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.8 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.7 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.6 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.5 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.4 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.3 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.2 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.1 to i64), i64 ptrtoint ([15 x i32]* @reltable.printe to i64)) to i32)]
define void @printe(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = icmp ugt i32 %0, -16
br i1 %3, label %4, label %10
4: ; preds = %1
%5 = add i32 %0, 15
%6 = sext i32 %5 to i64
%7 = shl i64 %6, 2
%8 = call i8* @llvm.load.relative.i64(i8* bitcast ([15 x i32]* @reltable.printe to i8*), i64 %7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %8)
br label %10
10: ; preds = %1, %4
%11 = tail call i32 @putchar(i32 10)
ret void
}