#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 */
unsigned char *code_table_3_2_location(unsigned char **);
double fabs(double);
scalar_t__ floor(double);
int /*<<< orphan*/ int_char(int, unsigned char *);
int /*<<< orphan*/ uint_char(int, unsigned char *);
unsigned char *sec3_gaussian(int nx, double x0, double dx, int ny, double y0,
                             unsigned char **old_sec) {
  static unsigned char gds[72];
  unsigned char *p;
  double r;
  int i;
  if (x0 < 0)
    x0 += 360.0;
  uint_char(72, gds);
  gds[4] = 3;
  gds[5] = 0;
  uint_char(nx * ny, gds + 6);
  gds[10] = 0;
  gds[11] = 0;
  gds[12] = 0;
  gds[13] = 40;
  if (old_sec == NULL) {
    gds[14] = 6;
    gds[15] = 0;
    uint_char(0, gds + 16);
    gds[20] = 0;
    uint_char(0, gds + 21);
    gds[25] = 0;
    uint_char(0, gds + 26);
  } else {
    p = code_table_3_2_location(old_sec);
    for (i = 0; i < 16; i++)
      gds[14 + i] = p[i];
  }
  uint_char(nx, gds + 30);
  uint_char(ny, gds + 34);
  uint_char(0, gds + 38);
  uint_char(0xffffffff, gds + 42);
  int_char((int)floor(y0 * 1.0e6 + 0.5), gds + 46);
  uint_char((int)floor(x0 * 1.0e6 + 0.5), gds + 50);
  gds[54] = 32 + 16;
  r = -y0;
  int_char((int)floor(r * 1.0e6 + 0.5), gds + 55);
  r = x0 + (nx - 1) * dx;
  if (r >= 360.0)
    r -= 360.0;
  if (r < 0.0)
    r += 360.0;
  uint_char((int)floor(r * 1.0e6 + 0.5), gds + 59);
  int_char((int)floor(fabs(dx) * 1.0e6 + 0.5), gds + 63);
  uint_char(ny / 2, gds + 67);
  gds[71] = 0;
  if (dx < 0.0)
    gds[71] |= 128;
  if (y0 < 0.0)
    gds[71] |= 64;
  return gds;
}


x86 assembly (clang, -O0):
<sec3_gaussian>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
movsd  %xmm2,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1181 <sec3_gaussian+0x41>
movsd  0xe89(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    $0x48,%edi
lea    0x2ec3(%rip),%rsi
call   1030 <uint_char@plt>
movb   $0x3,0x2ebb(%rip)
movb   $0x0,0x2eb5(%rip)
mov    -0x4(%rbp),%edi
imul   -0x1c(%rbp),%edi
lea    0x2ea2(%rip),%rsi
add    $0x6,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e9c(%rip)
movb   $0x0,0x2e96(%rip)
movb   $0x0,0x2e90(%rip)
movb   $0x28,0x2e8a(%rip)
cmpq   $0x0,-0x30(%rbp)
jne    1235 <sec3_gaussian+0xf5>
movb   $0x6,0x2e79(%rip)
movb   $0x0,0x2e73(%rip)
xor    %edi,%edi
lea    0x2e5b(%rip),%rsi
add    $0x10,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e5f(%rip)
xor    %edi,%edi
lea    0x2e42(%rip),%rsi
add    $0x15,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e4b(%rip)
xor    %edi,%edi
lea    0x2e29(%rip),%rsi
add    $0x1a,%rsi
call   1030 <uint_char@plt>
jmp    1284 <sec3_gaussian+0x144>
mov    -0x30(%rbp),%rdi
call   1040 <code_table_3_2_location@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x10,-0x44(%rbp)
jge    127f <sec3_gaussian+0x13f>
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x44(%rbp),%eax
add    $0xe,%eax
movslq %eax,%rcx
lea    0x2de2(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1249 <sec3_gaussian+0x109>
jmp    1284 <sec3_gaussian+0x144>
mov    -0x4(%rbp),%edi
lea    0x2dc2(%rip),%rsi
add    $0x1e,%rsi
call   1030 <uint_char@plt>
mov    -0x1c(%rbp),%edi
lea    0x2daf(%rip),%rsi
add    $0x22,%rsi
call   1030 <uint_char@plt>
xor    %edi,%edi
lea    0x2d9d(%rip),%rsi
add    $0x26,%rsi
call   1030 <uint_char@plt>
mov    $0xffffffff,%edi
lea    0x2d88(%rip),%rsi
add    $0x2a,%rsi
call   1030 <uint_char@plt>
movsd  -0x28(%rbp),%xmm0
movsd  0xd2a(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd26(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2d54(%rip),%rsi
add    $0x2e,%rsi
call   1050 <int_char@plt>
movsd  -0x10(%rbp),%xmm0
movsd  0xcf6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcf2(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2d20(%rip),%rsi
add    $0x32,%rsi
call   1030 <uint_char@plt>
movb   $0x30,0x2d46(%rip)
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xc9a(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc96(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2cc4(%rip),%rsi
add    $0x37,%rsi
call   1050 <int_char@plt>
movsd  -0x10(%rbp),%xmm1
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xc3d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13e3 <sec3_gaussian+0x2a3>
movsd  -0x40(%rbp),%xmm0
movsd  0xc26(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    1403 <sec3_gaussian+0x2c3>
movsd  0xc07(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xbf8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbf4(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2c22(%rip),%rsi
add    $0x3b,%rsi
call   1030 <uint_char@plt>
movsd  -0x18(%rbp),%xmm0
movaps 0xbdd(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xbb9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbb5(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2be3(%rip),%rsi
add    $0x3f,%rsi
call   1050 <int_char@plt>
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
lea    0x2bc6(%rip),%rsi
add    $0x43,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2bfd(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    14ba <sec3_gaussian+0x37a>
movzbl 0x2be8(%rip),%eax
or     $0x80,%eax
mov    %al,0x2bdd(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    14d8 <sec3_gaussian+0x398>
movzbl 0x2bc8(%rip),%eax
or     $0x40,%eax
mov    %al,0x2bbf(%rip)
lea    0x2b71(%rip),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sec3_gaussian>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%rbx
movsd  %xmm2,0x8(%rsp)
mov    %esi,%r15d
movaps %xmm1,0x10(%rsp)
mov    %edi,%ebp
movsd  0xe9b(%rip),%xmm1
addsd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
movapd %xmm0,%xmm3
cmpltsd %xmm2,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
movapd %xmm3,0x30(%rsp)
lea    0x2ec1(%rip),%rsi
mov    $0x48,%edi
call   1030 <uint_char@plt>
movw   $0x3,0x2eb2(%rip)
mov    %r15d,%edi
imul   %ebp,%edi
lea    0x2ea7(%rip),%rsi
call   1030 <uint_char@plt>
movl   $0x28000000,0x2e9c(%rip)
test   %rbx,%rbx
je     1260 <sec3_gaussian+0x120>
mov    %rbx,%rdi
call   1040 <code_table_3_2_location@plt>
mov    (%rax),%cl
mov    %cl,0x2e87(%rip)
mov    0x1(%rax),%cl
mov    %cl,0x2e7f(%rip)
mov    0x2(%rax),%cl
mov    %cl,0x2e77(%rip)
mov    0x3(%rax),%cl
mov    %cl,0x2e6f(%rip)
mov    0x4(%rax),%cl
mov    %cl,0x2e67(%rip)
mov    0x5(%rax),%cl
mov    %cl,0x2e5f(%rip)
mov    0x6(%rax),%cl
mov    %cl,0x2e57(%rip)
mov    0x7(%rax),%cl
mov    %cl,0x2e4f(%rip)
mov    0x8(%rax),%cl
mov    %cl,0x2e47(%rip)
mov    0x9(%rax),%cl
mov    %cl,0x2e3f(%rip)
mov    0xa(%rax),%cl
mov    %cl,0x2e37(%rip)
mov    0xb(%rax),%cl
mov    %cl,0x2e2f(%rip)
mov    0xc(%rax),%cl
mov    %cl,0x2e27(%rip)
mov    0xd(%rax),%cl
mov    %cl,0x2e1f(%rip)
mov    0xe(%rax),%cl
mov    %cl,0x2e17(%rip)
mov    0xf(%rax),%al
mov    %al,0x2e0f(%rip)
jmp    12a1 <sec3_gaussian+0x161>
movw   $0x6,0x2df5(%rip)
lea    0x2df0(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
movb   $0x0,0x2de6(%rip)
lea    0x2de0(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
movb   $0x0,0x2dd6(%rip)
lea    0x2dd0(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
lea    0x2dc6(%rip),%rsi
mov    %ebp,%edi
call   1030 <uint_char@plt>
lea    0x2d9a(%rip),%r14
lea    0x2db5(%rip),%rsi
mov    %r15d,%edi
call   1030 <uint_char@plt>
lea    0x2daa(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
lea    0x2da0(%rip),%rsi
mov    $0xffffffff,%edi
call   1030 <uint_char@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xd16(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
addsd  0xd10(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d72(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movapd 0x30(%rsp),%xmm0
mulsd  0xce7(%rip),%xmm0
addsd  0xce7(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d4d(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movb   $0x30,0x2d43(%rip)
movsd  0xcc5(%rip),%xmm0
subsd  0x28(%rsp),%xmm0
call   1060 <floor@plt>
lea    0x2d2a(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
add    $0xffffffff,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
movsd  0xc96(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xc72(%rip),%xmm2
movapd %xmm2,%xmm3
cmpnlesd %xmm0,%xmm3
andpd  %xmm3,%xmm0
andnpd %xmm1,%xmm3
orpd   %xmm0,%xmm3
addsd  %xmm3,%xmm2
xorpd  %xmm1,%xmm1
movapd %xmm3,%xmm0
cmpltsd %xmm1,%xmm0
andpd  %xmm0,%xmm2
andnpd %xmm3,%xmm0
orpd   %xmm2,%xmm0
mulsd  0xc40(%rip),%xmm0
addsd  0xc40(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2caf(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movapd 0xc35(%rip),%xmm0
andpd  0x10(%rsp),%xmm0
mulsd  0xc0f(%rip),%xmm0
addsd  0xc0f(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2c82(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
mov    %r15d,%edi
shr    $0x1f,%edi
add    %r15d,%edi
sar    %edi
lea    0x2c6d(%rip),%rsi
call   1030 <uint_char@plt>
xorpd  %xmm0,%xmm0
ucomisd 0x10(%rsp),%xmm0
seta   %al
shl    $0x7,%al
lea    0x40(%rax),%ecx
ucomisd 0x8(%rsp),%xmm0
movzbl %al,%eax
movzbl %cl,%ecx
cmovbe %eax,%ecx
mov    %cl,0x2c44(%rip)
mov    %r14,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@sec3_gaussian.gds = internal global [72 x i8] zeroinitializer
define i8* @sec3_gaussian(i32 %0, double %1, double %2, i32 %3, double %4, i8** %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca double
%12 = alloca i8**
%13 = alloca i8*
%14 = alloca double
%15 = alloca i32
store i32 %0, i32* %7
store double %1, double* %8
store double %2, double* %9
store i32 %3, i32* %10
store double %4, double* %11
store i8** %5, i8*** %12
%16 = load double, double* %8
%17 = fcmp olt double %16, 0.000000e+00
br i1 %17, label %18, label %21
18: ; preds = %6
%19 = load double, double* %8
%20 = fadd double %19, 3.600000e+02
store double %20, double* %8
br label %21
21: ; preds = %18, %6
%22 = call i32 @uint_char(i32 72, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 0))
store i8 3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 4)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 5)
%23 = load i32, i32* %7
%24 = load i32, i32* %10
%25 = mul nsw i32 %23, %24
%26 = call i32 @uint_char(i32 %25, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 6))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 10)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 11)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 12)
store i8 40, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 13)
%27 = load i8**, i8*** %12
%28 = icmp eq i8** %27, null
br i1 %28, label %29, label %33
29: ; preds = %21
store i8 6, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 14)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 15)
%30 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 16))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 20)
%31 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 21))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 25)
%32 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 26))
br label %53
33: ; preds = %21
%34 = load i8**, i8*** %12
%35 = call i8* @code_table_3_2_location(i8** %34)
store i8* %35, i8** %13
store i32 0, i32* %15
br label %36
36: ; preds = %49, %33
%37 = load i32, i32* %15
%38 = icmp slt i32 %37, 16
br i1 %38, label %39, label %52
39: ; preds = %36
%40 = load i8*, i8** %13
%41 = load i32, i32* %15
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %40, i64 %42
%44 = load i8, i8* %43
%45 = load i32, i32* %15
%46 = add nsw i32 14, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 %47
store i8 %44, i8* %48
br label %49
49: ; preds = %39
%50 = load i32, i32* %15
%51 = add nsw i32 %50, 1
store i32 %51, i32* %15
br label %36
52: ; preds = %36
br label %53
53: ; preds = %52, %29
%54 = load i32, i32* %7
%55 = call i32 @uint_char(i32 %54, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 30))
%56 = load i32, i32* %10
%57 = call i32 @uint_char(i32 %56, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 34))
%58 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 38))
%59 = call i32 @uint_char(i32 -1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 42))
%60 = load double, double* %11
%61 = call double @llvm.fmuladd.f64(double %60, double 1.000000e+06, double 5.000000e-01)
%62 = call i64 @floor(double %61)
%63 = trunc i64 %62 to i32
%64 = call i32 @int_char(i32 %63, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 46))
%65 = load double, double* %8
%66 = call double @llvm.fmuladd.f64(double %65, double 1.000000e+06, double 5.000000e-01)
%67 = call i64 @floor(double %66)
%68 = trunc i64 %67 to i32
%69 = call i32 @uint_char(i32 %68, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 50))
store i8 48, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 54)
%70 = load double, double* %11
%71 = fneg double %70
store double %71, double* %14
%72 = load double, double* %14
%73 = call double @llvm.fmuladd.f64(double %72, double 1.000000e+06, double 5.000000e-01)
%74 = call i64 @floor(double %73)
%75 = trunc i64 %74 to i32
%76 = call i32 @int_char(i32 %75, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 55))
%77 = load double, double* %8
%78 = load i32, i32* %7
%79 = sub nsw i32 %78, 1
%80 = sitofp i32 %79 to double
%81 = load double, double* %9
%82 = call double @llvm.fmuladd.f64(double %80, double %81, double %77)
store double %82, double* %14
%83 = load double, double* %14
%84 = fcmp oge double %83, 3.600000e+02
br i1 %84, label %85, label %88
85: ; preds = %53
%86 = load double, double* %14
%87 = fsub double %86, 3.600000e+02
store double %87, double* %14
br label %88
88: ; preds = %85, %53
%89 = load double, double* %14
%90 = fcmp olt double %89, 0.000000e+00
br i1 %90, label %91, label %94
91: ; preds = %88
%92 = load double, double* %14
%93 = fadd double %92, 3.600000e+02
store double %93, double* %14
br label %94
94: ; preds = %91, %88
%95 = load double, double* %14
%96 = call double @llvm.fmuladd.f64(double %95, double 1.000000e+06, double 5.000000e-01)
%97 = call i64 @floor(double %96)
%98 = trunc i64 %97 to i32
%99 = call i32 @uint_char(i32 %98, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 59))
%100 = load double, double* %9
%101 = call double @llvm.fabs.f64(double %100)
%102 = call double @llvm.fmuladd.f64(double %101, double 1.000000e+06, double 5.000000e-01)
%103 = call i64 @floor(double %102)
%104 = trunc i64 %103 to i32
%105 = call i32 @int_char(i32 %104, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 63))
%106 = load i32, i32* %10
%107 = sdiv i32 %106, 2
%108 = call i32 @uint_char(i32 %107, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 67))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 71)
%109 = load double, double* %9
%110 = fcmp olt double %109, 0.000000e+00
br i1 %110, label %111, label %116
111: ; preds = %94
%112 = load i8, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 71)
%113 = zext i8 %112 to i32
%114 = or i32 %113, 128
%115 = trunc i32 %114 to i8
store i8 %115, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 71)
br label %116
116: ; preds = %111, %94
%117 = load double, double* %11
%118 = fcmp olt double %117, 0.000000e+00
br i1 %118, label %119, label %124
119: ; preds = %116
%120 = load i8, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 71)
%121 = zext i8 %120 to i32
%122 = or i32 %121, 64
%123 = trunc i32 %122 to i8
store i8 %123, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 71)
br label %124
124: ; preds = %119, %116
ret i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 0)
}

LLVM IR (-O2):
@sec3_gaussian.gds = internal global [72 x i8] zeroinitializer
define i8* @sec3_gaussian(i32 %0, double %1, double %2, i32 %3, double %4, i8** %5) {
%7 = fcmp olt double %1, 0.000000e+00
%8 = fadd double %1, 3.600000e+02
%9 = select i1 %7, double %8, double %1
%10 = tail call i32 @uint_char(i32 72, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 0))
store i8 3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 4)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 5)
%11 = mul nsw i32 %3, %0
%12 = tail call i32 @uint_char(i32 %11, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 6))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 10)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 11)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 12)
store i8 40, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 13)
%13 = icmp eq i8** %5, null
br i1 %13, label %14, label %18
14: ; preds = %6
store i8 6, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 14)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 15)
%15 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 16))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 20)
%16 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 21))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 25)
%17 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 26))
br label %51
18: ; preds = %6
%19 = tail call i8* @code_table_3_2_location(i8** %5)
%20 = load i8, i8* %19
store i8 %20, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 14)
%21 = getelementptr inbounds i8, i8* %19, i64 1
%22 = load i8, i8* %21
store i8 %22, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 15)
%23 = getelementptr inbounds i8, i8* %19, i64 2
%24 = load i8, i8* %23
store i8 %24, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 16)
%25 = getelementptr inbounds i8, i8* %19, i64 3
%26 = load i8, i8* %25
store i8 %26, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 17)
%27 = getelementptr inbounds i8, i8* %19, i64 4
%28 = load i8, i8* %27
store i8 %28, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 18)
%29 = getelementptr inbounds i8, i8* %19, i64 5
%30 = load i8, i8* %29
store i8 %30, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 19)
%31 = getelementptr inbounds i8, i8* %19, i64 6
%32 = load i8, i8* %31
store i8 %32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 20)
%33 = getelementptr inbounds i8, i8* %19, i64 7
%34 = load i8, i8* %33
store i8 %34, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 21)
%35 = getelementptr inbounds i8, i8* %19, i64 8
%36 = load i8, i8* %35
store i8 %36, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 22)
%37 = getelementptr inbounds i8, i8* %19, i64 9
%38 = load i8, i8* %37
store i8 %38, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 23)
%39 = getelementptr inbounds i8, i8* %19, i64 10
%40 = load i8, i8* %39
store i8 %40, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 24)
%41 = getelementptr inbounds i8, i8* %19, i64 11
%42 = load i8, i8* %41
store i8 %42, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 25)
%43 = getelementptr inbounds i8, i8* %19, i64 12
%44 = load i8, i8* %43
store i8 %44, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 26)
%45 = getelementptr inbounds i8, i8* %19, i64 13
%46 = load i8, i8* %45
store i8 %46, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 27)
%47 = getelementptr inbounds i8, i8* %19, i64 14
%48 = load i8, i8* %47
store i8 %48, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 28)
%49 = getelementptr inbounds i8, i8* %19, i64 15
%50 = load i8, i8* %49
store i8 %50, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 29)
br label %51
51: ; preds = %18, %14
%52 = tail call i32 @uint_char(i32 %0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 30))
%53 = tail call i32 @uint_char(i32 %3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 34))
%54 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 38))
%55 = tail call i32 @uint_char(i32 -1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 42))
%56 = tail call double @llvm.fmuladd.f64(double %4, double 1.000000e+06, double 5.000000e-01)
%57 = tail call i64 @floor(double %56)
%58 = trunc i64 %57 to i32
%59 = tail call i32 @int_char(i32 %58, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 46))
%60 = tail call double @llvm.fmuladd.f64(double %9, double 1.000000e+06, double 5.000000e-01)
%61 = tail call i64 @floor(double %60)
%62 = trunc i64 %61 to i32
%63 = tail call i32 @uint_char(i32 %62, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 50))
store i8 48, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 54)
%64 = fneg double %4
%65 = tail call double @llvm.fmuladd.f64(double %64, double 1.000000e+06, double 5.000000e-01)
%66 = tail call i64 @floor(double %65)
%67 = trunc i64 %66 to i32
%68 = tail call i32 @int_char(i32 %67, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 55))
%69 = add nsw i32 %0, -1
%70 = sitofp i32 %69 to double
%71 = tail call double @llvm.fmuladd.f64(double %70, double %2, double %9)
%72 = fcmp ult double %71, 3.600000e+02
%73 = fadd double %71, -3.600000e+02
%74 = select i1 %72, double %71, double %73
%75 = fcmp olt double %74, 0.000000e+00
%76 = fadd double %74, 3.600000e+02
%77 = select i1 %75, double %76, double %74
%78 = tail call double @llvm.fmuladd.f64(double %77, double 1.000000e+06, double 5.000000e-01)
%79 = tail call i64 @floor(double %78)
%80 = trunc i64 %79 to i32
%81 = tail call i32 @uint_char(i32 %80, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 59))
%82 = tail call double @llvm.fabs.f64(double %2)
%83 = tail call double @llvm.fmuladd.f64(double %82, double 1.000000e+06, double 5.000000e-01)
%84 = tail call i64 @floor(double %83)
%85 = trunc i64 %84 to i32
%86 = tail call i32 @int_char(i32 %85, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 63))
%87 = sdiv i32 %3, 2
%88 = tail call i32 @uint_char(i32 %87, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 67))
%89 = fcmp olt double %2, 0.000000e+00
%90 = select i1 %89, i8 -128, i8 0
%91 = fcmp olt double %4, 0.000000e+00
%92 = or i8 %90, 64
%93 = select i1 %91, i8 %92, i8 %90
store i8 %93, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 71)
ret i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_gaussian.gds, i64 0, i64 0)
}