#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 __sinpi(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  for (int idx = 0; idx < 4096; idx += 8) {
    unsigned short x0, x1, x2, x3, x4, x5, x6, x7;
    x0 = (unsigned short)(32768 + 32767 * __sinpi((idx + 0) * 2 / 4096.));
    x1 = (unsigned short)(32768 + 32767 * __sinpi((idx + 1) * 2 / 4096.));
    x2 = (unsigned short)(32768 + 32767 * __sinpi((idx + 2) * 2 / 4096.));
    x3 = (unsigned short)(32768 + 32767 * __sinpi((idx + 3) * 2 / 4096.));
    x4 = (unsigned short)(32768 + 32767 * __sinpi((idx + 4) * 2 / 4096.));
    x5 = (unsigned short)(32768 + 32767 * __sinpi((idx + 5) * 2 / 4096.));
    x6 = (unsigned short)(32768 + 32767 * __sinpi((idx + 6) * 2 / 4096.));
    x7 = (unsigned short)(32768 + 32767 * __sinpi((idx + 7) * 2 / 4096.));
    printf(
        "\t0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x,\n",
        x0, x1, x2, x3, x4, x5, x6, x7);
  }
  printf("\n");
  for (int var = 0; var < 52 * 2; ++var) {
    unsigned char x[16] = {0};
    for (int prop = 0; prop < 16; ++prop) {
      x[prop] =
          (unsigned char)((var >= 52 ? 0.5 : -0.5) + ((var - 52) * prop / 16.));
    }
    printf("\t0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, "
           "0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n",
           x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9], x[10],
           x[11], x[12], x[13], x[14], x[15]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x1000,-0x3c(%rbp)
jge    133b <main+0x20b>
mov    -0x3c(%rbp),%eax
add    $0x0,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xe9d(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x3e(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xe6c(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x40(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xe3b(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x42(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x3,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xe0a(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x44(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x4,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xdd9(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x46(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x5,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xda8(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x6,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xd77(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x4a(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x7,%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xd46(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
imul   $0x7fff,%eax,%eax
add    $0x8000,%eax
mov    %ax,-0x4c(%rbp)
movzwl -0x3e(%rbp),%esi
movzwl -0x40(%rbp),%edx
movzwl -0x42(%rbp),%ecx
movzwl -0x44(%rbp),%r8d
movzwl -0x46(%rbp),%r9d
movzwl -0x48(%rbp),%r11d
movzwl -0x4a(%rbp),%r10d
movzwl -0x4c(%rbp),%eax
lea    0xd07(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x3c(%rbp)
jmp    1159 <main+0x29>
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x50(%rbp)
cmpl   $0x68,-0x50(%rbp)
jge    1477 <main+0x347>
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0x10,-0x64(%rbp)
jge    13d0 <main+0x2a0>
mov    -0x50(%rbp),%eax
mov    %eax,%ecx
sub    $0x34,%ecx
setge  %cl
movzbl %cl,%ecx
mov    %ecx,%edx
lea    0xc6e(%rip),%rcx
movsd  (%rcx,%rdx,8),%xmm0
add    $0xffffffcc,%eax
mov    -0x64(%rbp),%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc64(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %al,%cl
movslq -0x64(%rbp),%rax
mov    %cl,-0x60(%rbp,%rax,1)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1371 <main+0x241>
movzbl -0x60(%rbp),%esi
movzbl -0x5f(%rbp),%edx
movzbl -0x5e(%rbp),%ecx
movzbl -0x5d(%rbp),%r8d
movzbl -0x5c(%rbp),%r9d
movzbl -0x5b(%rbp),%eax
movzbl -0x5a(%rbp),%edi
mov    %edi,-0x70(%rbp)
movzbl -0x59(%rbp),%edi
mov    %edi,-0x6c(%rbp)
movzbl -0x58(%rbp),%r13d
movzbl -0x57(%rbp),%r12d
movzbl -0x56(%rbp),%r15d
movzbl -0x55(%rbp),%r14d
movzbl -0x54(%rbp),%ebx
movzbl -0x53(%rbp),%r11d
movzbl -0x52(%rbp),%r10d
movzbl -0x51(%rbp),%edi
mov    %edi,-0x68(%rbp)
lea    0xc3a(%rip),%rdi
mov    %eax,(%rsp)
mov    -0x70(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x6c(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x68(%rbp),%eax
mov    %r13d,0x18(%rsp)
mov    %r12d,0x20(%rsp)
mov    %r15d,0x28(%rsp)
mov    %r14d,0x30(%rsp)
mov    %ebx,0x38(%rsp)
mov    %r11d,0x40(%rsp)
mov    %r10d,0x48(%rsp)
mov    %eax,0x50(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1350 <main+0x220>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    $0xfffffff8,%eax
mov    $0xe,%r14d
nopl   0x0(%rax)
mov    %eax,0x8(%rsp)
lea    -0xe(%r14),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xe99(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
lea    -0xc(%r14),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%ecx
shl    $0xf,%ecx
sub    %eax,%ecx
mov    %ecx,(%rsp)
mulsd  0xe6f(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
lea    -0xa(%r14),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%ecx
shl    $0xf,%ecx
sub    %eax,%ecx
mov    %ecx,0x4(%rsp)
mulsd  0xe48(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
lea    -0x8(%r14),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%ebp
shl    $0xf,%ebp
sub    %eax,%ebp
mulsd  0xe25(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
lea    -0x6(%r14),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%ebx
shl    $0xf,%ebx
sub    %eax,%ebx
mulsd  0xe02(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
lea    -0x4(%r14),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%r15d
shl    $0xf,%r15d
sub    %eax,%r15d
mulsd  0xddc(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
lea    -0x2(%r14),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%r12d
shl    $0xf,%r12d
sub    %eax,%r12d
mulsd  0xdb6(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
mov    %eax,%r13d
shl    $0xf,%r13d
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
sub    %eax,%r13d
mulsd  0xd93(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <__sinpi@plt>
mov    %eax,%edi
shl    $0xf,%edi
sub    %eax,%edi
movzwl (%rsp),%esi
xor    $0x8000,%esi
movzwl 0x4(%rsp),%edx
xor    $0x8000,%edx
movzwl %bp,%ecx
xor    $0x8000,%ecx
movzwl %bx,%r8d
xor    $0x8000,%r8d
movzwl %r15w,%r9d
xor    $0x8000,%r9d
movzwl %r12w,%r10d
xor    $0x8000,%r10d
movzwl %r13w,%ebx
xor    $0x8000,%ebx
movzwl %di,%ebp
xor    $0x8000,%ebp
sub    $0x8,%rsp
lea    0xd4e(%rip),%rdi
xor    %eax,%eax
push   %rbp
push   %rbx
push   %r10
call   1040 <printf@plt>
mov    0x28(%rsp),%eax
add    $0x20,%rsp
add    $0x8,%eax
add    $0x10,%r14d
cmp    $0xff8,%eax
jb     1150 <main+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xfffffcf4,%r8d
mov    $0xfffffd28,%r9d
mov    $0xfffffd5c,%edi
mov    $0xfffffd90,%r10d
mov    $0xfffffdc4,%r11d
mov    $0xfffffdf8,%ebx
mov    $0xfffffe2c,%ebp
mov    $0xfffffe60,%esi
mov    $0xfffffe94,%edx
mov    $0xfffffec8,%r14d
mov    $0xfffffefc,%r15d
mov    $0xffffff30,%r12d
mov    $0xffffff64,%r13d
movl   $0xffffff98,(%rsp)
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
mov    %rcx,0x8(%rsp)
mov    %r13d,0x28(%rsp)
mov    %r12d,0x2c(%rsp)
mov    %r15d,0x30(%rsp)
mov    %r14d,0x34(%rsp)
mov    %edx,0x38(%rsp)
mov    %esi,0x3c(%rsp)
mov    %ebp,0x40(%rsp)
mov    %ebx,0x44(%rsp)
mov    %r11d,0x48(%rsp)
mov    %r10d,0x4c(%rsp)
mov    %edi,0x50(%rsp)
mov    %r9d,0x54(%rsp)
mov    %r8d,0x4(%rsp)
xor    %eax,%eax
cmp    $0x34,%rcx
setae  %al
mov    0x8(%rsp),%rcx
lea    -0x34(%rcx),%ecx
cvtsi2sd %ecx,%xmm0
lea    0xc5b(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm1
movsd  0xc3d(%rip),%xmm8
mulsd  %xmm8,%xmm0
cvtsi2sdl (%rsp),%xmm9
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
mulsd  %xmm8,%xmm9
cvtsi2sd %r13d,%xmm10
addsd  %xmm1,%xmm9
mulsd  %xmm8,%xmm10
cvtsi2sd %r12d,%xmm11
addsd  %xmm1,%xmm10
mulsd  %xmm8,%xmm11
cvtsi2sd %r15d,%xmm12
addsd  %xmm1,%xmm11
mulsd  %xmm8,%xmm12
cvtsi2sd %r14d,%xmm13
addsd  %xmm1,%xmm12
mulsd  %xmm8,%xmm13
cvtsi2sd %edx,%xmm14
addsd  %xmm1,%xmm13
mulsd  %xmm8,%xmm14
cvtsi2sd %esi,%xmm15
addsd  %xmm1,%xmm14
mulsd  %xmm8,%xmm15
cvtsi2sd %ebp,%xmm2
addsd  %xmm1,%xmm15
mulsd  %xmm8,%xmm2
cvtsi2sd %ebx,%xmm3
addsd  %xmm1,%xmm2
mulsd  %xmm8,%xmm3
cvtsi2sd %r11d,%xmm5
addsd  %xmm1,%xmm3
mulsd  %xmm8,%xmm5
cvtsi2sd %r10d,%xmm6
addsd  %xmm1,%xmm5
mulsd  %xmm8,%xmm6
cvtsi2sd %edi,%xmm7
addsd  %xmm1,%xmm6
mulsd  %xmm8,%xmm7
xorps  %xmm0,%xmm0
cvtsi2sd %r9d,%xmm0
addsd  %xmm1,%xmm7
mulsd  %xmm8,%xmm0
cvtsi2sd %r8d,%xmm4
addsd  %xmm1,%xmm0
mulsd  %xmm8,%xmm4
addsd  %xmm1,%xmm4
addsd  0xb62(%rip),%xmm1
cvttsd2si %xmm1,%eax
cvttsd2si 0x10(%rsp),%ecx
cvttsd2si %xmm9,%edi
cvttsd2si %xmm10,%ebp
cvttsd2si %xmm11,%ebx
cvttsd2si %xmm12,%r10d
cvttsd2si %xmm13,%r11d
cvttsd2si %xmm14,%r14d
cvttsd2si %xmm15,%r15d
cvttsd2si %xmm2,%r12d
cvttsd2si %xmm3,%r13d
cvttsd2si %xmm5,%edx
cvttsd2si %xmm6,%esi
cvttsd2si %xmm7,%r8d
cvttsd2si %xmm0,%r9d
movzbl %al,%eax
mov    %eax,0x24(%rsp)
movzbl %cl,%eax
movzbl %dil,%ecx
movzbl %bpl,%edi
mov    %edi,0x20(%rsp)
movzbl %bl,%edi
mov    %edi,0x1c(%rsp)
movzbl %r10b,%edi
mov    %rdi,0x10(%rsp)
movzbl %r11b,%edi
mov    %rdi,0x60(%rsp)
movzbl %r14b,%edi
mov    %rdi,0x58(%rsp)
movzbl %r15b,%r11d
movzbl %r12b,%r10d
movzbl %r13b,%r14d
movzbl %dl,%r15d
movzbl %sil,%r12d
movzbl %r8b,%r13d
movzbl %r9b,%ebx
cvttsd2si %xmm4,%edx
movzbl %dl,%ebp
sub    $0x8,%rsp
lea    0xb0d(%rip),%rdi
mov    0x2c(%rsp),%esi
mov    %eax,%edx
mov    0x28(%rsp),%r8d
mov    0x24(%rsp),%r9d
xor    %eax,%eax
push   %rbp
push   %rbx
push   %r13
mov    0x48(%rsp),%r13d
push   %r12
mov    0x54(%rsp),%r12d
push   %r15
mov    0x60(%rsp),%r15d
push   %r14
mov    0x6c(%rsp),%r14d
push   %r10
push   %r11
push   0xa0(%rsp)
push   0xb0(%rsp)
push   0x68(%rsp)
call   1040 <printf@plt>
mov    0x68(%rsp),%rcx
mov    0x98(%rsp),%edx
mov    0x9c(%rsp),%esi
mov    0xa0(%rsp),%ebp
mov    0xa4(%rsp),%ebx
mov    0xa8(%rsp),%r11d
mov    0xac(%rsp),%r10d
mov    0xb0(%rsp),%edi
mov    0xb4(%rsp),%r9d
mov    0x64(%rsp),%r8d
add    $0x60,%rsp
add    $0xf,%r8d
add    $0xe,%r9d
add    $0xd,%edi
add    $0xc,%r10d
add    $0xb,%r11d
add    $0xa,%ebx
add    $0x9,%ebp
add    $0x8,%esi
add    $0x7,%edx
add    $0x6,%r14d
add    $0x5,%r15d
add    $0x4,%r12d
add    $0x3,%r13d
addl   $0x2,(%rsp)
add    $0x1,%rcx
cmp    $0x68,%rcx
jne    1360 <main+0x230>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [66 x i8] c"\090x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x,\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [130 x i8] c"\090x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x,\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i16
%8 = alloca i16
%9 = alloca i16
%10 = alloca i16
%11 = alloca i16
%12 = alloca i16
%13 = alloca i16
%14 = alloca i16
%15 = alloca i32
%16 = alloca [16 x i8]
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %18
18: ; preds = %119, %2
%19 = load i32, i32* %6
%20 = icmp slt i32 %19, 4096
br i1 %20, label %21, label %122
21: ; preds = %18
%22 = load i32, i32* %6
%23 = add nsw i32 %22, 0
%24 = mul nsw i32 %23, 2
%25 = sitofp i32 %24 to double
%26 = fdiv double %25, 4.096000e+03
%27 = fptosi double %26 to i32
%28 = call i32 @__sinpi(i32 %27)
%29 = mul nsw i32 32767, %28
%30 = add nsw i32 32768, %29
%31 = trunc i32 %30 to i16
store i16 %31, i16* %7
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
%34 = mul nsw i32 %33, 2
%35 = sitofp i32 %34 to double
%36 = fdiv double %35, 4.096000e+03
%37 = fptosi double %36 to i32
%38 = call i32 @__sinpi(i32 %37)
%39 = mul nsw i32 32767, %38
%40 = add nsw i32 32768, %39
%41 = trunc i32 %40 to i16
store i16 %41, i16* %8
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 2
%44 = mul nsw i32 %43, 2
%45 = sitofp i32 %44 to double
%46 = fdiv double %45, 4.096000e+03
%47 = fptosi double %46 to i32
%48 = call i32 @__sinpi(i32 %47)
%49 = mul nsw i32 32767, %48
%50 = add nsw i32 32768, %49
%51 = trunc i32 %50 to i16
store i16 %51, i16* %9
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 3
%54 = mul nsw i32 %53, 2
%55 = sitofp i32 %54 to double
%56 = fdiv double %55, 4.096000e+03
%57 = fptosi double %56 to i32
%58 = call i32 @__sinpi(i32 %57)
%59 = mul nsw i32 32767, %58
%60 = add nsw i32 32768, %59
%61 = trunc i32 %60 to i16
store i16 %61, i16* %10
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 4
%64 = mul nsw i32 %63, 2
%65 = sitofp i32 %64 to double
%66 = fdiv double %65, 4.096000e+03
%67 = fptosi double %66 to i32
%68 = call i32 @__sinpi(i32 %67)
%69 = mul nsw i32 32767, %68
%70 = add nsw i32 32768, %69
%71 = trunc i32 %70 to i16
store i16 %71, i16* %11
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 5
%74 = mul nsw i32 %73, 2
%75 = sitofp i32 %74 to double
%76 = fdiv double %75, 4.096000e+03
%77 = fptosi double %76 to i32
%78 = call i32 @__sinpi(i32 %77)
%79 = mul nsw i32 32767, %78
%80 = add nsw i32 32768, %79
%81 = trunc i32 %80 to i16
store i16 %81, i16* %12
%82 = load i32, i32* %6
%83 = add nsw i32 %82, 6
%84 = mul nsw i32 %83, 2
%85 = sitofp i32 %84 to double
%86 = fdiv double %85, 4.096000e+03
%87 = fptosi double %86 to i32
%88 = call i32 @__sinpi(i32 %87)
%89 = mul nsw i32 32767, %88
%90 = add nsw i32 32768, %89
%91 = trunc i32 %90 to i16
store i16 %91, i16* %13
%92 = load i32, i32* %6
%93 = add nsw i32 %92, 7
%94 = mul nsw i32 %93, 2
%95 = sitofp i32 %94 to double
%96 = fdiv double %95, 4.096000e+03
%97 = fptosi double %96 to i32
%98 = call i32 @__sinpi(i32 %97)
%99 = mul nsw i32 32767, %98
%100 = add nsw i32 32768, %99
%101 = trunc i32 %100 to i16
store i16 %101, i16* %14
%102 = load i16, i16* %7
%103 = zext i16 %102 to i32
%104 = load i16, i16* %8
%105 = zext i16 %104 to i32
%106 = load i16, i16* %9
%107 = zext i16 %106 to i32
%108 = load i16, i16* %10
%109 = zext i16 %108 to i32
%110 = load i16, i16* %11
%111 = zext i16 %110 to i32
%112 = load i16, i16* %12
%113 = zext i16 %112 to i32
%114 = load i16, i16* %13
%115 = zext i16 %114 to i32
%116 = load i16, i16* %14
%117 = zext i16 %116 to i32
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0), i32 %103, i32 %105, i32 %107, i32 %109, i32 %111, i32 %113, i32 %115, i32 %117)
br label %119
119: ; preds = %21
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 8
store i32 %121, i32* %6
br label %18
122: ; preds = %18
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %15
br label %124
124: ; preds = %201, %122
%125 = load i32, i32* %15
%126 = icmp slt i32 %125, 104
br i1 %126, label %127, label %204
127: ; preds = %124
%128 = bitcast [16 x i8]* %16 to i8*
store i32 0, i32* %17
br label %129
129: ; preds = %148, %127
%130 = load i32, i32* %17
%131 = icmp slt i32 %130, 16
br i1 %131, label %132, label %151
132: ; preds = %129
%133 = load i32, i32* %15
%134 = icmp sge i32 %133, 52
%135 = zext i1 %134 to i64
%136 = select i1 %134, double 5.000000e-01, double -5.000000e-01
%137 = load i32, i32* %15
%138 = sub nsw i32 %137, 52
%139 = load i32, i32* %17
%140 = mul nsw i32 %138, %139
%141 = sitofp i32 %140 to double
%142 = fdiv double %141, 1.600000e+01
%143 = fadd double %136, %142
%144 = fptoui double %143 to i8
%145 = load i32, i32* %17
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 %146
store i8 %144, i8* %147
br label %148
148: ; preds = %132
%149 = load i32, i32* %17
%150 = add nsw i32 %149, 1
store i32 %150, i32* %17
br label %129
151: ; preds = %129
%152 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 0
%153 = load i8, i8* %152
%154 = zext i8 %153 to i32
%155 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 1
%156 = load i8, i8* %155
%157 = zext i8 %156 to i32
%158 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 2
%159 = load i8, i8* %158
%160 = zext i8 %159 to i32
%161 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 3
%162 = load i8, i8* %161
%163 = zext i8 %162 to i32
%164 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 4
%165 = load i8, i8* %164
%166 = zext i8 %165 to i32
%167 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 5
%168 = load i8, i8* %167
%169 = zext i8 %168 to i32
%170 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 6
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 7
%174 = load i8, i8* %173
%175 = zext i8 %174 to i32
%176 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 8
%177 = load i8, i8* %176
%178 = zext i8 %177 to i32
%179 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 9
%180 = load i8, i8* %179
%181 = zext i8 %180 to i32
%182 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 10
%183 = load i8, i8* %182
%184 = zext i8 %183 to i32
%185 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 11
%186 = load i8, i8* %185
%187 = zext i8 %186 to i32
%188 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 12
%189 = load i8, i8* %188
%190 = zext i8 %189 to i32
%191 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 13
%192 = load i8, i8* %191
%193 = zext i8 %192 to i32
%194 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 14
%195 = load i8, i8* %194
%196 = zext i8 %195 to i32
%197 = getelementptr inbounds [16 x i8], [16 x i8]* %16, i64 0, i64 15
%198 = load i8, i8* %197
%199 = zext i8 %198 to i32
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str.2, i64 0, i64 0), i32 %154, i32 %157, i32 %160, i32 %163, i32 %166, i32 %169, i32 %172, i32 %175, i32 %178, i32 %181, i32 %184, i32 %187, i32 %190, i32 %193, i32 %196, i32 %199)
br label %201
201: ; preds = %151
%202 = load i32, i32* %15
%203 = add nsw i32 %202, 1
store i32 %203, i32* %15
br label %124
204: ; preds = %124
ret i32 0
}

LLVM IR (-O2):
@.str = [66 x i8] c"\090x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x,\0A\00"
@.str.2 = [130 x i8] c"\090x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x,\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %5
3: ; preds = %5
%4 = tail call i32 @putchar(i32 10)
br label %75
5: ; preds = %2, %5
%6 = phi i32 [ 0, %2 ], [ %72, %5 ]
%7 = shl nuw nsw i32 %6, 1
%8 = sitofp i32 %7 to double
%9 = fmul double %8, 0x3F30000000000000
%10 = fptosi double %9 to i32
%11 = tail call i32 @__sinpi(i32 %10)
%12 = mul i32 %11, 32767
%13 = or i32 %7, 2
%14 = sitofp i32 %13 to double
%15 = fmul double %14, 0x3F30000000000000
%16 = fptosi double %15 to i32
%17 = tail call i32 @__sinpi(i32 %16)
%18 = mul i32 %17, 32767
%19 = or i32 %7, 4
%20 = sitofp i32 %19 to double
%21 = fmul double %20, 0x3F30000000000000
%22 = fptosi double %21 to i32
%23 = tail call i32 @__sinpi(i32 %22)
%24 = mul i32 %23, 32767
%25 = or i32 %7, 6
%26 = sitofp i32 %25 to double
%27 = fmul double %26, 0x3F30000000000000
%28 = fptosi double %27 to i32
%29 = tail call i32 @__sinpi(i32 %28)
%30 = mul i32 %29, 32767
%31 = or i32 %7, 8
%32 = sitofp i32 %31 to double
%33 = fmul double %32, 0x3F30000000000000
%34 = fptosi double %33 to i32
%35 = tail call i32 @__sinpi(i32 %34)
%36 = mul i32 %35, 32767
%37 = or i32 %7, 10
%38 = sitofp i32 %37 to double
%39 = fmul double %38, 0x3F30000000000000
%40 = fptosi double %39 to i32
%41 = tail call i32 @__sinpi(i32 %40)
%42 = mul i32 %41, 32767
%43 = or i32 %7, 12
%44 = sitofp i32 %43 to double
%45 = fmul double %44, 0x3F30000000000000
%46 = fptosi double %45 to i32
%47 = tail call i32 @__sinpi(i32 %46)
%48 = mul i32 %47, 32767
%49 = or i32 %7, 14
%50 = sitofp i32 %49 to double
%51 = fmul double %50, 0x3F30000000000000
%52 = fptosi double %51 to i32
%53 = tail call i32 @__sinpi(i32 %52)
%54 = mul i32 %53, 32767
%55 = and i32 %12, 65535
%56 = xor i32 %55, 32768
%57 = and i32 %18, 65535
%58 = xor i32 %57, 32768
%59 = and i32 %24, 65535
%60 = xor i32 %59, 32768
%61 = and i32 %30, 65535
%62 = xor i32 %61, 32768
%63 = and i32 %36, 65535
%64 = xor i32 %63, 32768
%65 = and i32 %42, 65535
%66 = xor i32 %65, 32768
%67 = and i32 %48, 65535
%68 = xor i32 %67, 32768
%69 = and i32 %54, 65535
%70 = xor i32 %69, 32768
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0), i32 %56, i32 %58, i32 %60, i32 %62, i32 %64, i32 %66, i32 %68, i32 %70)
%72 = add nuw nsw i32 %6, 8
%73 = icmp ult i32 %6, 4088
br i1 %73, label %5, label %3
74: ; preds = %75
ret i32 0
75: ; preds = %3, %75
%76 = phi i64 [ 0, %3 ], [ %188, %75 ]
%77 = icmp ugt i64 %76, 51
%78 = select i1 %77, double 5.000000e-01, double -5.000000e-01
%79 = add nsw i64 %76, -52
%80 = fadd double %78, 0.000000e+00
%81 = fptoui double %80 to i8
%82 = trunc i64 %79 to i32
%83 = sitofp i32 %82 to double
%84 = fmul double %83, 6.250000e-02
%85 = fadd double %78, %84
%86 = fptoui double %85 to i8
%87 = trunc i64 %79 to i32
%88 = shl i32 %87, 1
%89 = sitofp i32 %88 to double
%90 = fmul double %89, 6.250000e-02
%91 = fadd double %78, %90
%92 = fptoui double %91 to i8
%93 = trunc i64 %79 to i32
%94 = mul i32 %93, 3
%95 = sitofp i32 %94 to double
%96 = fmul double %95, 6.250000e-02
%97 = fadd double %78, %96
%98 = fptoui double %97 to i8
%99 = trunc i64 %79 to i32
%100 = shl i32 %99, 2
%101 = sitofp i32 %100 to double
%102 = fmul double %101, 6.250000e-02
%103 = fadd double %78, %102
%104 = fptoui double %103 to i8
%105 = trunc i64 %79 to i32
%106 = mul i32 %105, 5
%107 = sitofp i32 %106 to double
%108 = fmul double %107, 6.250000e-02
%109 = fadd double %78, %108
%110 = fptoui double %109 to i8
%111 = trunc i64 %79 to i32
%112 = mul i32 %111, 6
%113 = sitofp i32 %112 to double
%114 = fmul double %113, 6.250000e-02
%115 = fadd double %78, %114
%116 = fptoui double %115 to i8
%117 = trunc i64 %79 to i32
%118 = mul i32 %117, 7
%119 = sitofp i32 %118 to double
%120 = fmul double %119, 6.250000e-02
%121 = fadd double %78, %120
%122 = fptoui double %121 to i8
%123 = trunc i64 %79 to i32
%124 = shl i32 %123, 3
%125 = sitofp i32 %124 to double
%126 = fmul double %125, 6.250000e-02
%127 = fadd double %78, %126
%128 = fptoui double %127 to i8
%129 = trunc i64 %79 to i32
%130 = mul i32 %129, 9
%131 = sitofp i32 %130 to double
%132 = fmul double %131, 6.250000e-02
%133 = fadd double %78, %132
%134 = fptoui double %133 to i8
%135 = trunc i64 %79 to i32
%136 = mul i32 %135, 10
%137 = sitofp i32 %136 to double
%138 = fmul double %137, 6.250000e-02
%139 = fadd double %78, %138
%140 = fptoui double %139 to i8
%141 = trunc i64 %79 to i32
%142 = mul i32 %141, 11
%143 = sitofp i32 %142 to double
%144 = fmul double %143, 6.250000e-02
%145 = fadd double %78, %144
%146 = fptoui double %145 to i8
%147 = trunc i64 %79 to i32
%148 = mul i32 %147, 12
%149 = sitofp i32 %148 to double
%150 = fmul double %149, 6.250000e-02
%151 = fadd double %78, %150
%152 = fptoui double %151 to i8
%153 = trunc i64 %79 to i32
%154 = mul i32 %153, 13
%155 = sitofp i32 %154 to double
%156 = fmul double %155, 6.250000e-02
%157 = fadd double %78, %156
%158 = fptoui double %157 to i8
%159 = trunc i64 %79 to i32
%160 = mul i32 %159, 14
%161 = sitofp i32 %160 to double
%162 = fmul double %161, 6.250000e-02
%163 = fadd double %78, %162
%164 = fptoui double %163 to i8
%165 = trunc i64 %79 to i32
%166 = mul i32 %165, 15
%167 = sitofp i32 %166 to double
%168 = fmul double %167, 6.250000e-02
%169 = fadd double %78, %168
%170 = fptoui double %169 to i8
%171 = zext i8 %81 to i32
%172 = zext i8 %86 to i32
%173 = zext i8 %92 to i32
%174 = zext i8 %98 to i32
%175 = zext i8 %104 to i32
%176 = zext i8 %110 to i32
%177 = zext i8 %116 to i32
%178 = zext i8 %122 to i32
%179 = zext i8 %128 to i32
%180 = zext i8 %134 to i32
%181 = zext i8 %140 to i32
%182 = zext i8 %146 to i32
%183 = zext i8 %152 to i32
%184 = zext i8 %158 to i32
%185 = zext i8 %164 to i32
%186 = zext i8 %170 to i32
%187 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([130 x i8], [130 x i8]* @.str.2, i64 0, i64 0), i32 %171, i32 %172, i32 %173, i32 %174, i32 %175, i32 %176, i32 %177, i32 %178, i32 %179, i32 %180, i32 %181, i32 %182, i32 %183, i32 %184, i32 %185, i32 %186)
%188 = add nuw nsw i64 %76, 1
%189 = icmp eq i64 %188, 104
br i1 %189, label %74, label %75
}