#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 codebook(long, int, int, int, long, short *, short, int);
int /*<<< orphan*/ fir(short *, short *, long *);
int /*<<< orphan*/ fir_no_red_ld(short *, short *, long *);
int /*<<< orphan*/ iir1(short *, short *, long *, long *);
int /*<<< orphan*/ jpegdct(short *, short *);
long latsynth(short *, short *, int, long);
short mac(short *, short *, long, long *);
int /*<<< orphan*/ vec_mpy1(short *, short *, short);
int main(void) {
  short a[200] = {
      0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000,
      0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff,
      0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00,
      0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800,
      0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200,
      0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800,
      0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300,
      0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400,
      0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000,
      0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff,
      0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00,
      0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800,
      0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200,
      0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800,
      0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300,
      0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400,
      0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000,
      0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff,
      0x0c00, 0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00,
      0x0800, 0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800,
      0x0200, 0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200,
      0xf800, 0xf300, 0x0400, 0x0000, 0x07ff, 0x0c00, 0x0800, 0x0200, 0xf800,
      0xf300, 0x0400};
  short b[200] = {
      0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60,
      0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40,
      0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20,
      0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00,
      0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600,
      0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400,
      0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200,
      0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000,
      0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60,
      0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40,
      0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20,
      0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00,
      0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600,
      0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400,
      0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200,
      0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000,
      0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60,
      0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40,
      0x0c20, 0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20,
      0x0c00, 0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00,
      0xf600, 0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600,
      0xf400, 0xf200, 0xf000, 0x0c60, 0x0c40, 0x0c20, 0x0c00, 0xf600, 0xf400,
      0xf200, 0xf000};
  short c = 0x3;
  long int output[200];
  long int d = 0xAAAA;
  int e[1] = {0xEEEE};
  vec_mpy1(a, b, c);
  c = mac(a, b, (long int)c, (long int *)output);
  fir(a, b, output);
  fir_no_red_ld(a, b, output);
  d = latsynth(a, b, 100, d);
  iir1(a, b, &output[100], output);
  e[0] = codebook(d, 1, 17, e[0], d, a, c, 1);
  jpegdct(a, b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9a0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    0xe50(%rip),%rsi
mov    $0x190,%edx
call   1070 <memcpy@plt>
lea    -0x330(%rbp),%rdi
lea    0xfc8(%rip),%rsi
mov    $0x190,%edx
call   1070 <memcpy@plt>
movw   $0x3,-0x332(%rbp)
movq   $0xaaaa,-0x988(%rbp)
mov    0x1134(%rip),%eax
mov    %eax,-0x98c(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
movswl -0x332(%rbp),%edx
call   1050 <vec_mpy1@plt>
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
movswq -0x332(%rbp),%rdx
ff
lea    -0x980(%rbp),%rcx
call   10a0 <mac@plt>
mov    %ax,-0x332(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
lea    -0x980(%rbp),%rdx
call   10b0 <fir@plt>
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
lea    -0x980(%rbp),%rdx
call   1090 <fir_no_red_ld@plt>
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
mov    -0x988(%rbp),%rcx
mov    $0x64,%edx
call   1040 <latsynth@plt>
mov    %rax,-0x988(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
lea    -0x980(%rbp),%rdx
add    $0x320,%rdx
lea    -0x980(%rbp),%rcx
call   1030 <iir1@plt>
mov    -0x988(%rbp),%rdi
mov    -0x98c(%rbp),%ecx
mov    -0x988(%rbp),%r8
lea    -0x1a0(%rbp),%r9
mov    $0x1,%esi
mov    $0x11,%edx
movswl -0x332(%rbp),%eax
mov    %eax,(%rsp)
movl   $0x1,0x8(%rsp)
call   1080 <codebook@plt>
mov    %eax,-0x98c(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    -0x330(%rbp),%rsi
call   1060 <jpegdct@plt>
xor    %eax,%eax
add    $0x9a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x960,%rsp
lea    0xe5a(%rip),%rsi
lea    0x190(%rsp),%rbx
mov    $0x190,%edx
mov    %rbx,%rdi
call   1070 <memcpy@plt>
lea    0xfce(%rip),%rsi
mov    %rsp,%r14
mov    $0x190,%edx
mov    %r14,%rdi
call   1070 <memcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
call   1050 <vec_mpy1@plt>
lea    0x320(%rsp),%r15
mov    $0x3,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rcx
call   10a0 <mac@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   10b0 <fir@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1090 <fir_no_red_ld@plt>
mov    $0xaaaa,%ecx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x64,%edx
call   1040 <latsynth@plt>
mov    %rax,%rbp
lea    0x640(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rcx
call   1030 <iir1@plt>
movswl %r12w,%eax
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x11,%edx
mov    $0xeeee,%ecx
mov    %rbp,%r8
mov    %rbx,%r9
push   $0x1
push   %rax
call   1080 <codebook@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <jpegdct@plt>
xor    %eax,%eax
add    $0x960,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.a = [200 x i16] [i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024]
@__const.main.b = [200 x i16] [i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096]
@__const.main.e = [1 x i32] [i32 61166]
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x i16]
%3 = alloca [200 x i16]
%4 = alloca i16
%5 = alloca [200 x i64]
%6 = alloca i64
%7 = alloca [1 x i32]
store i32 0, i32* %1
%8 = bitcast [200 x i16]* %2 to i8*
%9 = bitcast [200 x i16]* %3 to i8*
store i16 3, i16* %4
store i64 43690, i64* %6
%10 = bitcast [1 x i32]* %7 to i8*
%11 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%12 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%13 = load i16, i16* %4
%14 = call i32 @vec_mpy1(i16* %11, i16* %12, i16 signext %13)
%15 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%16 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%17 = load i16, i16* %4
%18 = sext i16 %17 to i64
%19 = getelementptr inbounds [200 x i64], [200 x i64]* %5, i64 0, i64 0
%20 = call signext i16 @mac(i16* %15, i16* %16, i64 %18, i64* %19)
store i16 %20, i16* %4
%21 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%22 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%23 = getelementptr inbounds [200 x i64], [200 x i64]* %5, i64 0, i64 0
%24 = call i32 @fir(i16* %21, i16* %22, i64* %23)
%25 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%26 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%27 = getelementptr inbounds [200 x i64], [200 x i64]* %5, i64 0, i64 0
%28 = call i32 @fir_no_red_ld(i16* %25, i16* %26, i64* %27)
%29 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%30 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%31 = load i64, i64* %6
%32 = call i64 @latsynth(i16* %29, i16* %30, i32 100, i64 %31)
store i64 %32, i64* %6
%33 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%34 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%35 = getelementptr inbounds [200 x i64], [200 x i64]* %5, i64 0, i64 100
%36 = getelementptr inbounds [200 x i64], [200 x i64]* %5, i64 0, i64 0
%37 = call i32 @iir1(i16* %33, i16* %34, i64* %35, i64* %36)
%38 = load i64, i64* %6
%39 = getelementptr inbounds [1 x i32], [1 x i32]* %7, i64 0, i64 0
%40 = load i32, i32* %39
%41 = load i64, i64* %6
%42 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%43 = load i16, i16* %4
%44 = call i32 @codebook(i64 %38, i32 1, i32 17, i32 %40, i64 %41, i16* %42, i16 signext %43, i32 1)
%45 = getelementptr inbounds [1 x i32], [1 x i32]* %7, i64 0, i64 0
store i32 %44, i32* %45
%46 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%47 = getelementptr inbounds [200 x i16], [200 x i16]* %3, i64 0, i64 0
%48 = call i32 @jpegdct(i16* %46, i16* %47)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [200 x i16] [i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024, i16 0, i16 2047, i16 3072, i16 2048, i16 512, i16 -2048, i16 -3328, i16 1024]
@__const.main.b = [200 x i16] [i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096, i16 3168, i16 3136, i16 3104, i16 3072, i16 -2560, i16 -3072, i16 -3584, i16 -4096]
define i32 @main() {
%1 = alloca [200 x i16]
%2 = alloca [200 x i16]
%3 = alloca [200 x i64]
%4 = bitcast [200 x i16]* %1 to i8*
%5 = bitcast [200 x i16]* %2 to i8*
%6 = bitcast [200 x i64]* %3 to i8*
%7 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%8 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%9 = call i32 @vec_mpy1(i16* %7, i16* %8, i16 signext 3)
%10 = getelementptr inbounds [200 x i64], [200 x i64]* %3, i64 0, i64 0
%11 = call signext i16 @mac(i16* %7, i16* %8, i64 3, i64* %10)
%12 = call i32 @fir(i16* %7, i16* %8, i64* %10)
%13 = call i32 @fir_no_red_ld(i16* %7, i16* %8, i64* %10)
%14 = call i64 @latsynth(i16* %7, i16* %8, i32 100, i64 43690)
%15 = getelementptr inbounds [200 x i64], [200 x i64]* %3, i64 0, i64 100
%16 = call i32 @iir1(i16* %7, i16* %8, i64* %15, i64* %10)
%17 = call i32 @codebook(i64 %14, i32 1, i32 17, i32 61166, i64 %14, i16* %7, i16 signext %11, i32 1)
%18 = call i32 @jpegdct(i16* %7, i16* %8)
ret i32 0
}