#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 */
typedef int uint8_t;
typedef int uint16_t;

/* Variables and functions */
int /*<<< orphan*/ check_test_vectors(int *, int);
int /*<<< orphan*/ initialize_test_vectors(int *, int *);
int /*<<< orphan*/ key_schedule(int **, int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sparx_decrypt(int *, int **);
int /*<<< orphan*/ sparx_encrypt(int *, int **);
int main() {
  uint16_t x[2 * 2], master_key[2 * 4], k[2 * 8 + 1][2 * 3] = {{0}};
  uint8_t i, j;
  initialize_test_vectors(x, master_key);
  printf("master = ");
  for (i = 0; i < 2 * 4; i++) {
    printf("%04x ", master_key[i]);
  }
  key_schedule(k, master_key);
  for (i = 0; i < 2 * 8 + 1; i++) {
    printf("\nk^{%2d} = ", i);
    for (j = 0; j < 2 * 3; j++)
      printf("%04x ", k[i][j]);
  }
  printf("\n\nplaintext  = ");
  for (i = 0; i < 2 * 2; i++) {
    printf("%04x ", x[i]);
  }
  sparx_encrypt(x, k);
  printf("\nciphertext = ");
  for (i = 0; i < 2 * 2; i++) {
    printf("%04x ", x[i]);
  }
  check_test_vectors(x, 0);
  sparx_decrypt(x, k);
  printf("\ndecryption = ");
  for (i = 0; i < 2 * 2; i++) {
    printf("%04x ", x[i]);
  }
  check_test_vectors(x, 1);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x198,%edx
call   1050 <memset@plt>
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <initialize_test_vectors@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1e4(%rbp)
cmpl   $0x8,-0x1e4(%rbp)
jge    11f4 <main+0x84>
movslq -0x1e4(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e4(%rbp)
jmp    11ba <main+0x4a>
lea    -0x1e0(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1090 <key_schedule@plt>
movl   $0x0,-0x1e4(%rbp)
cmpl   $0x11,-0x1e4(%rbp)
jge    12a0 <main+0x130>
mov    -0x1e4(%rbp),%esi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1e8(%rbp)
cmpl   $0x6,-0x1e8(%rbp)
jge    1287 <main+0x117>
movslq -0x1e4(%rbp),%rcx
lea    -0x1e0(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x1e8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1e8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e8(%rbp)
jmp    1239 <main+0xc9>
jmp    128c <main+0x11c>
mov    -0x1e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e4(%rbp)
jmp    120e <main+0x9e>
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1e4(%rbp)
cmpl   $0x4,-0x1e4(%rbp)
jge    12f2 <main+0x182>
movslq -0x1e4(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e4(%rbp)
jmp    12b8 <main+0x148>
lea    -0x20(%rbp),%rdi
lea    -0x1e0(%rbp),%rsi
call   1080 <sparx_encrypt@plt>
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1e4(%rbp)
cmpl   $0x4,-0x1e4(%rbp)
jge    1354 <main+0x1e4>
movslq -0x1e4(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e4(%rbp)
jmp    131a <main+0x1aa>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
call   1070 <check_test_vectors@plt>
lea    -0x20(%rbp),%rdi
lea    -0x1e0(%rbp),%rsi
call   1060 <sparx_decrypt@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1e4(%rbp)
cmpl   $0x4,-0x1e4(%rbp)
jge    13c1 <main+0x251>
movslq -0x1e4(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e4(%rbp)
jmp    1387 <main+0x217>
lea    -0x20(%rbp),%rdi
mov    $0x1,%esi
call   1070 <check_test_vectors@plt>
lea    0xc74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1c8,%rsp
lea    0x30(%rsp),%r14
mov    $0x198,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    %rsp,%rdi
lea    0x10(%rsp),%r15
mov    %r15,%rsi
call   1040 <initialize_test_vectors@plt>
lea    0xe47(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
lea    0xe3f(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   10a0 <key_schedule@plt>
lea    0x44(%rsp),%rbx
lea    0xdc2(%rip),%r14
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x14(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x10(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0xc(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x8(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x4(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r15
add    $0x18,%rbx
cmp    $0x11,%r15
jne    1260 <main+0xe0>
lea    0xd4d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp),%esi
lea    0xd2a(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%r14
lea    0x30(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
call   1090 <sparx_encrypt@plt>
lea    0xcfe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1080 <check_test_vectors@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1070 <sparx_decrypt@plt>
lea    0xcb3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
call   1080 <check_test_vectors@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x1c8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"master = \00"
@.str.1 = [6 x i8] c"%04x \00"
@.str.2 = [12 x i8] c"\0Ak^{%2d} = \00"
@.str.3 = [16 x i8] c"\0A\0Aplaintext = \00"
@.str.4 = [15 x i8] c"\0Aciphertext = \00"
@.str.5 = [15 x i8] c"\0Adecryption = \00"
@.str.6 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]
%3 = alloca [8 x i32]
%4 = alloca [17 x [6 x i32]]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = bitcast [17 x [6 x i32]]* %4 to i8*
%8 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%9 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%10 = call i32 @initialize_test_vectors(i32* %8, i32* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %5
br label %12
12: ; preds = %21, %0
%13 = load i32, i32* %5
%14 = icmp slt i32 %13, 8
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %19)
br label %21
21: ; preds = %15
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %12
24: ; preds = %12
%25 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %4, i64 0, i64 0
%26 = bitcast [6 x i32]* %25 to i32**
%27 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%28 = call i32 @key_schedule(i32** %26, i32* %27)
store i32 0, i32* %5
br label %29
29: ; preds = %51, %24
%30 = load i32, i32* %5
%31 = icmp slt i32 %30, 17
br i1 %31, label %32, label %54
32: ; preds = %29
%33 = load i32, i32* %5
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %33)
store i32 0, i32* %6
br label %35
35: ; preds = %47, %32
%36 = load i32, i32* %6
%37 = icmp slt i32 %36, 6
br i1 %37, label %38, label %50
38: ; preds = %35
%39 = load i32, i32* %5
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %4, i64 0, i64 %40
%42 = load i32, i32* %6
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [6 x i32], [6 x i32]* %41, i64 0, i64 %43
%45 = load i32, i32* %44
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %45)
br label %47
47: ; preds = %38
%48 = load i32, i32* %6
%49 = add nsw i32 %48, 1
store i32 %49, i32* %6
br label %35
50: ; preds = %35
br label %51
51: ; preds = %50
%52 = load i32, i32* %5
%53 = add nsw i32 %52, 1
store i32 %53, i32* %5
br label %29
54: ; preds = %29
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %56
56: ; preds = %65, %54
%57 = load i32, i32* %5
%58 = icmp slt i32 %57, 4
br i1 %58, label %59, label %68
59: ; preds = %56
%60 = load i32, i32* %5
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %63)
br label %65
65: ; preds = %59
%66 = load i32, i32* %5
%67 = add nsw i32 %66, 1
store i32 %67, i32* %5
br label %56
68: ; preds = %56
%69 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%70 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %4, i64 0, i64 0
%71 = bitcast [6 x i32]* %70 to i32**
%72 = call i32 @sparx_encrypt(i32* %69, i32** %71)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %74
74: ; preds = %83, %68
%75 = load i32, i32* %5
%76 = icmp slt i32 %75, 4
br i1 %76, label %77, label %86
77: ; preds = %74
%78 = load i32, i32* %5
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %77
%84 = load i32, i32* %5
%85 = add nsw i32 %84, 1
store i32 %85, i32* %5
br label %74
86: ; preds = %74
%87 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%88 = call i32 @check_test_vectors(i32* %87, i32 0)
%89 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%90 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %4, i64 0, i64 0
%91 = bitcast [6 x i32]* %90 to i32**
%92 = call i32 @sparx_decrypt(i32* %89, i32** %91)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %5
br label %94
94: ; preds = %103, %86
%95 = load i32, i32* %5
%96 = icmp slt i32 %95, 4
br i1 %96, label %97, label %106
97: ; preds = %94
%98 = load i32, i32* %5
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %99
%101 = load i32, i32* %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %101)
br label %103
103: ; preds = %97
%104 = load i32, i32* %5
%105 = add nsw i32 %104, 1
store i32 %105, i32* %5
br label %94
106: ; preds = %94
%107 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%108 = call i32 @check_test_vectors(i32* %107, i32 1)
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"master = \00"
@.str.1 = [6 x i8] c"%04x \00"
@.str.2 = [12 x i8] c"\0Ak^{%2d} = \00"
@.str.3 = [16 x i8] c"\0A\0Aplaintext = \00"
@.str.4 = [15 x i8] c"\0Aciphertext = \00"
@.str.5 = [15 x i8] c"\0Adecryption = \00"
define i32 @main() {
%1 = alloca [4 x i32]
%2 = alloca [8 x i32]
%3 = alloca [17 x [6 x i32]]
%4 = bitcast [4 x i32]* %1 to i8*
%5 = bitcast [8 x i32]* %2 to i8*
%6 = bitcast [17 x [6 x i32]]* %3 to i8*
%7 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 0
%8 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 0
%9 = call i32 @initialize_test_vectors(i32* %7, i32* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %8
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 1
%14 = load i32, i32* %13
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 2
%17 = load i32, i32* %16
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 3
%20 = load i32, i32* %19
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 4
%23 = load i32, i32* %22
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 5
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 6
%29 = load i32, i32* %28
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 7
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = bitcast [17 x [6 x i32]]* %3 to i32**
%35 = call i32 @key_schedule(i32** %34, i32* %8)
br label %36
36: ; preds = %0, %36
%37 = phi i64 [ 0, %0 ], [ %58, %36 ]
%38 = trunc i64 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %3, i64 0, i64 %37, i64 0
%41 = load i32, i32* %40
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %3, i64 0, i64 %37, i64 1
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %3, i64 0, i64 %37, i64 2
%47 = load i32, i32* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %47)
%49 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %3, i64 0, i64 %37, i64 3
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %50)
%52 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %3, i64 0, i64 %37, i64 4
%53 = load i32, i32* %52
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [17 x [6 x i32]], [17 x [6 x i32]]* %3, i64 0, i64 %37, i64 5
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %56)
%58 = add nuw nsw i64 %37, 1
%59 = icmp eq i64 %58, 17
br i1 %59, label %60, label %36
60: ; preds = %36
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%62 = load i32, i32* %7
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 2
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 3
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %71)
%73 = call i32 @sparx_encrypt(i32* %7, i32** %34)
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%75 = load i32, i32* %7
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %75)
%77 = load i32, i32* %64
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %77)
%79 = load i32, i32* %67
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %79)
%81 = load i32, i32* %70
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %81)
%83 = call i32 @check_test_vectors(i32* %7, i32 0)
%84 = call i32 @sparx_decrypt(i32* %7, i32** %34)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%86 = load i32, i32* %7
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %64
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %67
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %90)
%92 = load i32, i32* %70
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %92)
%94 = call i32 @check_test_vectors(i32* %7, i32 1)
%95 = call i32 @putchar(i32 10)
ret i32 0
}