#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 benchmark(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):
<benchmark>:
push   %rbp
mov    %rsp,%rbp
sub    $0x990,%rsp
lea    -0x190(%rbp),%rdi
lea    0xe57(%rip),%rsi
mov    $0x190,%edx
call   1070 <memcpy@plt>
lea    -0x320(%rbp),%rdi
lea    0xfcf(%rip),%rsi
mov    $0x190,%edx
call   1070 <memcpy@plt>
movw   $0x3,-0x322(%rbp)
movq   $0xaaaa,-0x978(%rbp)
mov    0x113b(%rip),%eax
mov    %eax,-0x97c(%rbp)
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
movswl -0x322(%rbp),%edx
call   1050 <vec_mpy1@plt>
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
movswq -0x322(%rbp),%rdx
ff
lea    -0x970(%rbp),%rcx
call   10a0 <mac@plt>
mov    %ax,-0x322(%rbp)
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
lea    -0x970(%rbp),%rdx
call   10b0 <fir@plt>
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
lea    -0x970(%rbp),%rdx
call   1090 <fir_no_red_ld@plt>
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
mov    -0x978(%rbp),%rcx
mov    $0x64,%edx
call   1040 <latsynth@plt>
mov    %rax,-0x978(%rbp)
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
lea    -0x970(%rbp),%rdx
add    $0x320,%rdx
lea    -0x970(%rbp),%rcx
call   1030 <iir1@plt>
mov    -0x978(%rbp),%rdi
mov    -0x97c(%rbp),%ecx
mov    -0x978(%rbp),%r8
lea    -0x190(%rbp),%r9
mov    $0x1,%esi
mov    $0x11,%edx
movswl -0x322(%rbp),%eax
mov    %eax,(%rsp)
movl   $0x1,0x8(%rsp)
call   1080 <codebook@plt>
mov    %eax,-0x97c(%rbp)
lea    -0x190(%rbp),%rdi
lea    -0x320(%rbp),%rsi
call   1060 <jpegdct@plt>
xor    %eax,%eax
add    $0x990,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<benchmark>:
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.benchmark.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.benchmark.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.benchmark.e = [1 x i32] [i32 61166]
define i32 @benchmark() {
%1 = alloca [200 x i16]
%2 = alloca [200 x i16]
%3 = alloca i16
%4 = alloca [200 x i64]
%5 = alloca i64
%6 = alloca [1 x i32]
%7 = bitcast [200 x i16]* %1 to i8*
%8 = bitcast [200 x i16]* %2 to i8*
store i16 3, i16* %3
store i64 43690, i64* %5
%9 = bitcast [1 x i32]* %6 to i8*
%10 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%11 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%12 = load i16, i16* %3
%13 = call i32 @vec_mpy1(i16* %10, i16* %11, i16 signext %12)
%14 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%15 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%16 = load i16, i16* %3
%17 = sext i16 %16 to i64
%18 = getelementptr inbounds [200 x i64], [200 x i64]* %4, i64 0, i64 0
%19 = call signext i16 @mac(i16* %14, i16* %15, i64 %17, i64* %18)
store i16 %19, i16* %3
%20 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%21 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%22 = getelementptr inbounds [200 x i64], [200 x i64]* %4, i64 0, i64 0
%23 = call i32 @fir(i16* %20, i16* %21, i64* %22)
%24 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%25 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%26 = getelementptr inbounds [200 x i64], [200 x i64]* %4, i64 0, i64 0
%27 = call i32 @fir_no_red_ld(i16* %24, i16* %25, i64* %26)
%28 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%29 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%30 = load i64, i64* %5
%31 = call i64 @latsynth(i16* %28, i16* %29, i32 100, i64 %30)
store i64 %31, i64* %5
%32 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%33 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%34 = getelementptr inbounds [200 x i64], [200 x i64]* %4, i64 0, i64 100
%35 = getelementptr inbounds [200 x i64], [200 x i64]* %4, i64 0, i64 0
%36 = call i32 @iir1(i16* %32, i16* %33, i64* %34, i64* %35)
%37 = load i64, i64* %5
%38 = getelementptr inbounds [1 x i32], [1 x i32]* %6, i64 0, i64 0
%39 = load i32, i32* %38
%40 = load i64, i64* %5
%41 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%42 = load i16, i16* %3
%43 = call i32 @codebook(i64 %37, i32 1, i32 17, i32 %39, i64 %40, i16* %41, i16 signext %42, i32 1)
%44 = getelementptr inbounds [1 x i32], [1 x i32]* %6, i64 0, i64 0
store i32 %43, i32* %44
%45 = getelementptr inbounds [200 x i16], [200 x i16]* %1, i64 0, i64 0
%46 = getelementptr inbounds [200 x i16], [200 x i16]* %2, i64 0, i64 0
%47 = call i32 @jpegdct(i16* %45, i16* %46)
ret i32 0
}

LLVM IR (-O2):
@__const.benchmark.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.benchmark.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 @benchmark() {
%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
}