#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_lola(int nx, double x0, double dx, int ny, double y0,
                         double dy, unsigned char **old_sec) {
  static unsigned char gds[72];
  unsigned char *p;
  int i;
  double r;
  uint_char(72, gds);
  gds[4] = 3;
  gds[5] = 0;
  uint_char(nx * ny, gds + 6);
  gds[10] = 0;
  gds[11] = 0;
  gds[12] = gds[13] = 0;
  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 + (ny - 1) * dy;
  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);
  int_char((int)floor(fabs(dy) * 1.0e6 + 0.5), gds + 67);
  gds[71] = 0;
  if (dx < 0.0)
    gds[71] |= 128;
  if (dy > 0.0)
    gds[71] |= 64;
  return gds;
}


x86 assembly (clang, -O0):
<sec3_lola>:
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)
movsd  %xmm3,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    $0x48,%edi
lea    0x2ede(%rip),%rsi
call   1030 <uint_char@plt>
movb   $0x3,0x2ed6(%rip)
movb   $0x0,0x2ed0(%rip)
mov    -0x4(%rbp),%edi
imul   -0x1c(%rbp),%edi
lea    0x2ebd(%rip),%rsi
add    $0x6,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2eb7(%rip)
movb   $0x0,0x2eb1(%rip)
movb   $0x0,0x2eac(%rip)
movb   $0x0,0x2ea4(%rip)
cmpq   $0x0,-0x38(%rbp)
jne    121a <sec3_lola+0xda>
movb   $0x6,0x2e94(%rip)
movb   $0x0,0x2e8e(%rip)
xor    %edi,%edi
lea    0x2e76(%rip),%rsi
add    $0x10,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e7a(%rip)
xor    %edi,%edi
lea    0x2e5d(%rip),%rsi
add    $0x15,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e66(%rip)
xor    %edi,%edi
lea    0x2e44(%rip),%rsi
add    $0x1a,%rsi
call   1030 <uint_char@plt>
jmp    1269 <sec3_lola+0x129>
mov    -0x38(%rbp),%rdi
call   1040 <code_table_3_2_location@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x10,-0x44(%rbp)
jge    1264 <sec3_lola+0x124>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x44(%rbp),%eax
add    $0xe,%eax
movslq %eax,%rcx
lea    0x2dfd(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    122e <sec3_lola+0xee>
jmp    1269 <sec3_lola+0x129>
mov    -0x4(%rbp),%edi
lea    0x2ddd(%rip),%rsi
add    $0x1e,%rsi
call   1030 <uint_char@plt>
mov    -0x1c(%rbp),%edi
lea    0x2dca(%rip),%rsi
add    $0x22,%rsi
call   1030 <uint_char@plt>
xor    %edi,%edi
lea    0x2db8(%rip),%rsi
add    $0x26,%rsi
call   1030 <uint_char@plt>
mov    $0xffffffff,%edi
lea    0x2da3(%rip),%rsi
add    $0x2a,%rsi
call   1030 <uint_char@plt>
movsd  -0x28(%rbp),%xmm0
movsd  0xd45(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd41(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2d6f(%rip),%rsi
add    $0x2e,%rsi
call   1050 <int_char@plt>
movsd  -0x10(%rbp),%xmm0
movsd  0xd11(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd0d(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2d3b(%rip),%rsi
add    $0x32,%rsi
call   1030 <uint_char@plt>
movb   $0x30,0x2d61(%rip)
movsd  -0x28(%rbp),%xmm1
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xcb5(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcb1(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2cdf(%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,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xc58(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13c8 <sec3_lola+0x288>
movsd  -0x50(%rbp),%xmm0
movsd  0xc41(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    13e8 <sec3_lola+0x2a8>
movsd  0xc22(%rip),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xc13(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc0f(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2c3d(%rip),%rsi
add    $0x3b,%rsi
call   1030 <uint_char@plt>
movsd  -0x18(%rbp),%xmm0
movaps 0xbf8(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xbd4(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbd0(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2bfe(%rip),%rsi
add    $0x3f,%rsi
call   1050 <int_char@plt>
movsd  -0x30(%rbp),%xmm0
movaps 0xbb9(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xb95(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb91(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2bbf(%rip),%rsi
add    $0x43,%rsi
call   1050 <int_char@plt>
movb   $0x0,0x2bf6(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    14c1 <sec3_lola+0x381>
movzbl 0x2be1(%rip),%eax
or     $0x80,%eax
mov    %al,0x2bd6(%rip)
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14e3 <sec3_lola+0x3a3>
movzbl 0x2bbd(%rip),%eax
or     $0x40,%eax
mov    %al,0x2bb4(%rip)
lea    0x2b66(%rip),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sec3_lola>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%rbp
movaps %xmm3,0x20(%rsp)
movsd  %xmm2,(%rsp)
mov    %esi,%ebx
movaps %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %edi,%r15d
lea    0x2ee2(%rip),%rsi
mov    $0x48,%edi
call   1030 <uint_char@plt>
movw   $0x3,0x2ed3(%rip)
mov    %ebx,%edi
imul   %r15d,%edi
lea    0x2ec8(%rip),%rsi
call   1030 <uint_char@plt>
movl   $0x0,0x2ebd(%rip)
test   %rbp,%rbp
je     123f <sec3_lola+0xff>
mov    %rbp,%rdi
call   1040 <code_table_3_2_location@plt>
mov    (%rax),%cl
mov    %cl,0x2ea8(%rip)
mov    0x1(%rax),%cl
mov    %cl,0x2ea0(%rip)
mov    0x2(%rax),%cl
mov    %cl,0x2e98(%rip)
mov    0x3(%rax),%cl
mov    %cl,0x2e90(%rip)
mov    0x4(%rax),%cl
mov    %cl,0x2e88(%rip)
mov    0x5(%rax),%cl
mov    %cl,0x2e80(%rip)
mov    0x6(%rax),%cl
mov    %cl,0x2e78(%rip)
mov    0x7(%rax),%cl
mov    %cl,0x2e70(%rip)
mov    0x8(%rax),%cl
mov    %cl,0x2e68(%rip)
mov    0x9(%rax),%cl
mov    %cl,0x2e60(%rip)
mov    0xa(%rax),%cl
mov    %cl,0x2e58(%rip)
mov    0xb(%rax),%cl
mov    %cl,0x2e50(%rip)
mov    0xc(%rax),%cl
mov    %cl,0x2e48(%rip)
mov    0xd(%rax),%cl
mov    %cl,0x2e40(%rip)
mov    0xe(%rax),%cl
mov    %cl,0x2e38(%rip)
mov    0xf(%rax),%al
mov    %al,0x2e30(%rip)
jmp    1280 <sec3_lola+0x140>
movw   $0x6,0x2e16(%rip)
lea    0x2e11(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
movb   $0x0,0x2e07(%rip)
lea    0x2e01(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
movb   $0x0,0x2df7(%rip)
lea    0x2df1(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
lea    0x2de7(%rip),%rsi
mov    %r15d,%edi
call   1030 <uint_char@plt>
lea    0x2dba(%rip),%r14
lea    0x2dd5(%rip),%rsi
mov    %ebx,%edi
call   1030 <uint_char@plt>
lea    0x2dcb(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
lea    0x2dc1(%rip),%rsi
mov    $0xffffffff,%edi
call   1030 <uint_char@plt>
movsd  (%rsp),%xmm0
mulsd  0xd30(%rip),%xmm0
addsd  0xd30(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d9a(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xd07(%rip),%xmm0
addsd  0xd07(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d75(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movb   $0x30,0x2d6b(%rip)
add    $0xffffffff,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0x20(%rsp),%xmm0
addsd  (%rsp),%xmm0
mulsd  0xcc8(%rip),%xmm0
addsd  0xcc8(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d3b(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
add    $0xffffffff,%r15d
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  0xc9d(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xc99(%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  0xc47(%rip),%xmm0
addsd  0xc47(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2cbe(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movapd 0x10(%rsp),%xmm0
andpd  0xc3e(%rip),%xmm0
mulsd  0xc16(%rip),%xmm0
addsd  0xc16(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2c91(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movapd 0xc13(%rip),%xmm0
andpd  0x20(%rsp),%xmm0
mulsd  0xbe5(%rip),%xmm0
addsd  0xbe5(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2c64(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
xorpd  %xmm1,%xmm1
ucomisd 0x10(%rsp),%xmm1
seta   %al
shl    $0x7,%al
lea    0x40(%rax),%ecx
movapd 0x20(%rsp),%xmm0
ucomisd %xmm1,%xmm0
movzbl %al,%eax
movzbl %cl,%ecx
cmovbe %eax,%ecx
mov    %cl,0x2c35(%rip)
mov    %r14,%rax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@sec3_lola.gds = internal global [72 x i8] zeroinitializer
define i8* @sec3_lola(i32 %0, double %1, double %2, i32 %3, double %4, double %5, i8** %6) {
%8 = tail call i32 @uint_char(i32 72, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 0))
store i8 3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 4)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 5)
%9 = mul nsw i32 %3, %0
%10 = tail call i32 @uint_char(i32 %9, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 6))
%11 = icmp eq i8** %6, null
store i32 0, i32* bitcast (i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 10) to i32*)
br i1 %11, label %12, label %16
12: ; preds = %7
store i8 6, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 14)
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 15)
%13 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 16))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 20)
%14 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 21))
store i8 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 25)
%15 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 26))
br label %49
16: ; preds = %7
%17 = tail call i8* @code_table_3_2_location(i8** %6)
%18 = load i8, i8* %17
store i8 %18, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 14)
%19 = getelementptr inbounds i8, i8* %17, i64 1
%20 = load i8, i8* %19
store i8 %20, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 15)
%21 = getelementptr inbounds i8, i8* %17, i64 2
%22 = load i8, i8* %21
store i8 %22, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 16)
%23 = getelementptr inbounds i8, i8* %17, i64 3
%24 = load i8, i8* %23
store i8 %24, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 17)
%25 = getelementptr inbounds i8, i8* %17, i64 4
%26 = load i8, i8* %25
store i8 %26, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 18)
%27 = getelementptr inbounds i8, i8* %17, i64 5
%28 = load i8, i8* %27
store i8 %28, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 19)
%29 = getelementptr inbounds i8, i8* %17, i64 6
%30 = load i8, i8* %29
store i8 %30, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 20)
%31 = getelementptr inbounds i8, i8* %17, i64 7
%32 = load i8, i8* %31
store i8 %32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 21)
%33 = getelementptr inbounds i8, i8* %17, i64 8
%34 = load i8, i8* %33
store i8 %34, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 22)
%35 = getelementptr inbounds i8, i8* %17, i64 9
%36 = load i8, i8* %35
store i8 %36, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 23)
%37 = getelementptr inbounds i8, i8* %17, i64 10
%38 = load i8, i8* %37
store i8 %38, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 24)
%39 = getelementptr inbounds i8, i8* %17, i64 11
%40 = load i8, i8* %39
store i8 %40, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 25)
%41 = getelementptr inbounds i8, i8* %17, i64 12
%42 = load i8, i8* %41
store i8 %42, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 26)
%43 = getelementptr inbounds i8, i8* %17, i64 13
%44 = load i8, i8* %43
store i8 %44, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 27)
%45 = getelementptr inbounds i8, i8* %17, i64 14
%46 = load i8, i8* %45
store i8 %46, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 28)
%47 = getelementptr inbounds i8, i8* %17, i64 15
%48 = load i8, i8* %47
store i8 %48, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 29)
br label %49
49: ; preds = %16, %12
%50 = tail call i32 @uint_char(i32 %0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 30))
%51 = tail call i32 @uint_char(i32 %3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 34))
%52 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 38))
%53 = tail call i32 @uint_char(i32 -1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 42))
%54 = tail call double @llvm.fmuladd.f64(double %4, double 1.000000e+06, double 5.000000e-01)
%55 = tail call i64 @floor(double %54)
%56 = trunc i64 %55 to i32
%57 = tail call i32 @int_char(i32 %56, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 46))
%58 = tail call double @llvm.fmuladd.f64(double %1, double 1.000000e+06, double 5.000000e-01)
%59 = tail call i64 @floor(double %58)
%60 = trunc i64 %59 to i32
%61 = tail call i32 @uint_char(i32 %60, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 50))
store i8 48, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 54)
%62 = add nsw i32 %3, -1
%63 = sitofp i32 %62 to double
%64 = tail call double @llvm.fmuladd.f64(double %63, double %5, 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_lola.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 %1)
%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_lola.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_lola.gds, i64 0, i64 63))
%87 = tail call double @llvm.fabs.f64(double %5)
%88 = tail call double @llvm.fmuladd.f64(double %87, double 1.000000e+06, double 5.000000e-01)
%89 = tail call i64 @floor(double %88)
%90 = trunc i64 %89 to i32
%91 = tail call i32 @int_char(i32 %90, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 67))
%92 = fcmp olt double %2, 0.000000e+00
%93 = select i1 %92, i8 -128, i8 0
%94 = fcmp ogt double %5, 0.000000e+00
%95 = or i8 %93, 64
%96 = select i1 %94, i8 %95, i8 %93
store i8 %96, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 71)
ret i8* getelementptr inbounds ([72 x i8], [72 x i8]* @sec3_lola.gds, i64 0, i64 0)
}