#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 /*<<< orphan*/ geofence_aprs_frequency(char *, char *);
int geofence_slow_tlm_altitude(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  char lat[11] = "+0000.0000";
  char a[12] = "+01200.0000";
  char b[12] = "+08900.0000";
  char c[12] = "+09000.0000";
  char d[12] = "+12000.0000";
  char e[12] = "-03900.0000";
  char f[12] = "-04000.0000";
  char g[12] = "-12000.0000";
  char h[12] = "+00000.0000";
  char i[12] = "yyyxjxjxjjj";
  printf("12E (EU) is ");
  geofence_aprs_frequency(lat, a);
  printf("89E (EU) is ");
  geofence_aprs_frequency(lat, b);
  printf("90E (CN) is ");
  geofence_aprs_frequency(lat, c);
  printf("120E (CN) is ");
  geofence_aprs_frequency(lat, d);
  printf("39W (EU) is ");
  geofence_aprs_frequency(lat, e);
  printf("40W (US) is ");
  geofence_aprs_frequency(lat, f);
  printf("120W (US) is ");
  geofence_aprs_frequency(lat, g);
  printf("0E (EU) is ");
  geofence_aprs_frequency(lat, h);
  printf("ERROR (EU) is ");
  geofence_aprs_frequency(lat, i);
  char aa[6] = "0";
  int aa_len = 1;
  char bb[6] = "80";
  int bb_len = 2;
  char cc[6] = "800";
  int cc_len = 3;
  char dd[6] = "3000";
  int dd_len = 4;
  char ee[6] = "4000";
  int ee_len = 4;
  char ff[6] = "4100";
  int ff_len = 4;
  char gg[6] = "9999";
  int gg_len = 4;
  char hh[6] = "10000";
  int hh_len = 5;
  char ii[6] = "50000";
  int ii_len = 5;
  printf("%s: %d\n", aa, geofence_slow_tlm_altitude(aa, aa_len));
  printf("%s: %d\n", bb, geofence_slow_tlm_altitude(bb, bb_len));
  printf("%s: %d\n", cc, geofence_slow_tlm_altitude(cc, cc_len));
  printf("%s: %d\n", dd, geofence_slow_tlm_altitude(dd, dd_len));
  printf("%s: %d\n", ee, geofence_slow_tlm_altitude(ee, ee_len));
  printf("%s: %d\n", ff, geofence_slow_tlm_altitude(ff, ff_len));
  printf("%s: %d\n", gg, geofence_slow_tlm_altitude(gg, gg_len));
  printf("%s: %d\n", hh, geofence_slow_tlm_altitude(hh, hh_len));
  printf("%s: %d\n", ii, geofence_slow_tlm_altitude(ii, ii_len));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xeb4(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xeac(%rip),%al
mov    %al,-0x5(%rbp)
mov    0xea3(%rip),%rax
mov    %rax,-0x1b(%rbp)
mov    0xea1(%rip),%eax
mov    %eax,-0x13(%rbp)
mov    0xe9b(%rip),%rax
mov    %rax,-0x27(%rbp)
mov    0xe99(%rip),%eax
mov    %eax,-0x1f(%rbp)
mov    0xe93(%rip),%rax
mov    %rax,-0x33(%rbp)
mov    0xe91(%rip),%eax
mov    %eax,-0x2b(%rbp)
mov    0xe8b(%rip),%rax
mov    %rax,-0x3f(%rbp)
mov    0xe89(%rip),%eax
mov    %eax,-0x37(%rbp)
mov    0xe83(%rip),%rax
mov    %rax,-0x4b(%rbp)
mov    0xe81(%rip),%eax
mov    %eax,-0x43(%rbp)
mov    0xe7b(%rip),%rax
mov    %rax,-0x57(%rbp)
mov    0xe79(%rip),%eax
mov    %eax,-0x4f(%rbp)
mov    0xe73(%rip),%rax
mov    %rax,-0x63(%rbp)
mov    0xe71(%rip),%eax
mov    %eax,-0x5b(%rbp)
mov    0xe6b(%rip),%rax
mov    %rax,-0x6f(%rbp)
mov    0xe69(%rip),%eax
mov    %eax,-0x67(%rbp)
mov    0xe63(%rip),%rax
mov    %rax,-0x7b(%rbp)
mov    0xe61(%rip),%eax
mov    %eax,-0x73(%rbp)
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x1b(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x27(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x33(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x3f(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x4b(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x57(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x63(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x6f(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf(%rbp),%rdi
lea    -0x7b(%rbp),%rsi
call   1040 <geofence_aprs_frequency@plt>
mov    0xdf5(%rip),%eax
mov    %eax,-0x81(%rbp)
mov    0xdec(%rip),%ax
mov    %ax,-0x7d(%rbp)
movl   $0x1,-0x88(%rbp)
mov    0xdda(%rip),%eax
mov    %eax,-0x8e(%rbp)
mov    0xdd1(%rip),%ax
mov    %ax,-0x8a(%rbp)
movl   $0x2,-0x94(%rbp)
mov    0xdbc(%rip),%eax
mov    %eax,-0x9a(%rbp)
mov    0xdb3(%rip),%ax
mov    %ax,-0x96(%rbp)
movl   $0x3,-0xa0(%rbp)
mov    0xd9e(%rip),%eax
mov    %eax,-0xa6(%rbp)
mov    0xd95(%rip),%ax
mov    %ax,-0xa2(%rbp)
movl   $0x4,-0xac(%rbp)
mov    0xd80(%rip),%eax
mov    %eax,-0xb2(%rbp)
mov    0xd77(%rip),%ax
mov    %ax,-0xae(%rbp)
movl   $0x4,-0xb8(%rbp)
mov    0xd62(%rip),%eax
mov    %eax,-0xbe(%rbp)
mov    0xd59(%rip),%ax
mov    %ax,-0xba(%rbp)
movl   $0x4,-0xc4(%rbp)
mov    0xd44(%rip),%eax
mov    %eax,-0xca(%rbp)
mov    0xd3b(%rip),%ax
mov    %ax,-0xc6(%rbp)
movl   $0x4,-0xd0(%rbp)
mov    0xce8(%rip),%eax
mov    %eax,-0xd6(%rbp)
mov    0xcdf(%rip),%ax
mov    %ax,-0xd2(%rbp)
movl   $0x5,-0xdc(%rbp)
mov    0xcca(%rip),%eax
mov    %eax,-0xe2(%rbp)
mov    0xcc1(%rip),%ax
mov    %ax,-0xde(%rbp)
movl   $0x5,-0xe8(%rbp)
lea    -0x81(%rbp),%rax
mov    %rax,-0x130(%rbp)
lea    -0x81(%rbp),%rdi
mov    -0x88(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x130(%rbp),%rsi
mov    %eax,%edx
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x8e(%rbp),%rax
mov    %rax,-0x128(%rbp)
lea    -0x8e(%rbp),%rdi
mov    -0x94(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x128(%rbp),%rsi
mov    %eax,%edx
lea    0xc4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x9a(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    -0x9a(%rbp),%rdi
mov    -0xa0(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x120(%rbp),%rsi
mov    %eax,%edx
lea    0xc14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xa6(%rbp),%rax
mov    %rax,-0x118(%rbp)
lea    -0xa6(%rbp),%rdi
mov    -0xac(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x118(%rbp),%rsi
mov    %eax,%edx
lea    0xbdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xb2(%rbp),%rax
mov    %rax,-0x110(%rbp)
lea    -0xb2(%rbp),%rdi
mov    -0xb8(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x110(%rbp),%rsi
mov    %eax,%edx
lea    0xba6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xbe(%rbp),%rax
mov    %rax,-0x108(%rbp)
lea    -0xbe(%rbp),%rdi
mov    -0xc4(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x108(%rbp),%rsi
mov    %eax,%edx
lea    0xb6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xca(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    -0xca(%rbp),%rdi
mov    -0xd0(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0x100(%rbp),%rsi
mov    %eax,%edx
lea    0xb38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xd6(%rbp),%rax
mov    %rax,-0xf8(%rbp)
lea    -0xd6(%rbp),%rdi
mov    -0xdc(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0xf8(%rbp),%rsi
mov    %eax,%edx
lea    0xb01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xe2(%rbp),%rax
mov    %rax,-0xf0(%rbp)
lea    -0xe2(%rbp),%rdi
mov    -0xe8(%rbp),%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    -0xf0(%rbp),%rsi
mov    %eax,%edx
lea    0xaca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xe8,%rsp
movabs $0x30302e303030302b,%rax
2e 30 30
mov    %rax,0x48(%rsp)
movl   $0x303030,0x4f(%rsp)
movabs $0x302e30303231302b,%rax
30 2e 30
mov    %rax,0xd8(%rsp)
movl   $0x303030,0xe0(%rsp)
movabs $0x302e30303938302b,%rax
30 2e 30
mov    %rax,0xc8(%rsp)
movl   $0x303030,0xd0(%rsp)
movabs $0x302e30303039302b,%rax
30 2e 30
mov    %rax,0xb8(%rsp)
movl   $0x303030,0xc0(%rsp)
movabs $0x302e30303032312b,%rax
30 2e 30
mov    %rax,0xa8(%rsp)
movl   $0x303030,0xb0(%rsp)
movabs $0x302e30303933302d,%rax
30 2e 30
mov    %rax,0x98(%rsp)
movl   $0x303030,0xa0(%rsp)
movabs $0x302e30303034302d,%rax
30 2e 30
mov    %rax,0x88(%rsp)
movl   $0x303030,0x90(%rsp)
movabs $0x302e30303032312d,%rax
30 2e 30
mov    %rax,0x78(%rsp)
movl   $0x303030,0x80(%rsp)
movabs $0x302e30303030302b,%rax
30 2e 30
mov    %rax,0x68(%rsp)
movl   $0x303030,0x70(%rsp)
movabs $0x786a786a78797979,%rax
78 6a 78
mov    %rax,0x58(%rsp)
movl   $0x6a6a6a,0x60(%rsp)
lea    0xe29(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x48(%rsp),%rbx
lea    0xd8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe13(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xe02(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xb8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xa8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xde1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x98(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xdd0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x88(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xdbf(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x78(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xdb2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x68(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
lea    0xda3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x58(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <geofence_aprs_frequency@plt>
movw   $0x0,0x44(%rsp)
movl   $0x30,0x40(%rsp)
movw   $0x0,0x3c(%rsp)
movl   $0x3038,0x38(%rsp)
movw   $0x0,0x34(%rsp)
movl   $0x303038,0x30(%rsp)
movw   $0x0,0x2c(%rsp)
movl   $0x30303033,0x28(%rsp)
30
movw   $0x0,0x24(%rsp)
movl   $0x30303034,0x20(%rsp)
30
movw   $0x0,0x1c(%rsp)
movl   $0x30303134,0x18(%rsp)
30
movw   $0x0,0x14(%rsp)
movl   $0x39393939,0x10(%rsp)
39
movw   $0x30,0xc(%rsp)
movl   $0x30303031,0x8(%rsp)
30
movw   $0x30,0x4(%rsp)
movl   $0x30303035,(%rsp)
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
lea    0xd0b(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x38(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x2,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x5,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x5,%esi
call   1050 <geofence_slow_tlm_altitude@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.lat = [11 x i8] c"+0000.0000\00"
@__const.main.a = [12 x i8] c"+01200.0000\00"
@__const.main.b = [12 x i8] c"+08900.0000\00"
@__const.main.c = [12 x i8] c"+09000.0000\00"
@__const.main.d = [12 x i8] c"+12000.0000\00"
@__const.main.e = [12 x i8] c"-03900.0000\00"
@__const.main.f = [12 x i8] c"-04000.0000\00"
@__const.main.g = [12 x i8] c"-12000.0000\00"
@__const.main.h = [12 x i8] c"+00000.0000\00"
@__const.main.i = [12 x i8] c"yyyxjxjxjjj\00"
@.str = [13 x i8] c"12E (EU) is \00"
@.str.1 = [13 x i8] c"89E (EU) is \00"
@.str.2 = [13 x i8] c"90E (CN) is \00"
@.str.3 = [14 x i8] c"120E (CN) is \00"
@.str.4 = [13 x i8] c"39W (EU) is \00"
@.str.5 = [13 x i8] c"40W (US) is \00"
@.str.6 = [14 x i8] c"120W (US) is \00"
@.str.7 = [12 x i8] c"0E (EU) is \00"
@.str.8 = [15 x i8] c"ERROR (EU) is \00"
@__const.main.aa = [6 x i8] c"0\00\00\00\00\00"
@__const.main.bb = [6 x i8] c"80\00\00\00\00"
@__const.main.cc = [6 x i8] c"800\00\00\00"
@__const.main.dd = [6 x i8] c"3000\00\00"
@__const.main.ee = [6 x i8] c"4000\00\00"
@__const.main.ff = [6 x i8] c"4100\00\00"
@__const.main.gg = [6 x i8] c"9999\00\00"
@__const.main.hh = [6 x i8] c"10000\00"
@__const.main.ii = [6 x i8] c"50000\00"
@.str.9 = [8 x i8] c"%s: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
%3 = alloca [12 x i8]
%4 = alloca [12 x i8]
%5 = alloca [12 x i8]
%6 = alloca [12 x i8]
%7 = alloca [12 x i8]
%8 = alloca [12 x i8]
%9 = alloca [12 x i8]
%10 = alloca [12 x i8]
%11 = alloca [12 x i8]
%12 = alloca [6 x i8]
%13 = alloca i32
%14 = alloca [6 x i8]
%15 = alloca i32
%16 = alloca [6 x i8]
%17 = alloca i32
%18 = alloca [6 x i8]
%19 = alloca i32
%20 = alloca [6 x i8]
%21 = alloca i32
%22 = alloca [6 x i8]
%23 = alloca i32
%24 = alloca [6 x i8]
%25 = alloca i32
%26 = alloca [6 x i8]
%27 = alloca i32
%28 = alloca [6 x i8]
%29 = alloca i32
store i32 0, i32* %1
%30 = bitcast [11 x i8]* %2 to i8*
%31 = bitcast [12 x i8]* %3 to i8*
%32 = bitcast [12 x i8]* %4 to i8*
%33 = bitcast [12 x i8]* %5 to i8*
%34 = bitcast [12 x i8]* %6 to i8*
%35 = bitcast [12 x i8]* %7 to i8*
%36 = bitcast [12 x i8]* %8 to i8*
%37 = bitcast [12 x i8]* %9 to i8*
%38 = bitcast [12 x i8]* %10 to i8*
%39 = bitcast [12 x i8]* %11 to i8*
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%41 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%42 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%43 = call i32 @geofence_aprs_frequency(i8* %41, i8* %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%45 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%46 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%47 = call i32 @geofence_aprs_frequency(i8* %45, i8* %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%49 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%50 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%51 = call i32 @geofence_aprs_frequency(i8* %49, i8* %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%53 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%54 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%55 = call i32 @geofence_aprs_frequency(i8* %53, i8* %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%57 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%58 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 0
%59 = call i32 @geofence_aprs_frequency(i8* %57, i8* %58)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%61 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%62 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%63 = call i32 @geofence_aprs_frequency(i8* %61, i8* %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%65 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%66 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%67 = call i32 @geofence_aprs_frequency(i8* %65, i8* %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%69 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%70 = getelementptr inbounds [12 x i8], [12 x i8]* %10, i64 0, i64 0
%71 = call i32 @geofence_aprs_frequency(i8* %69, i8* %70)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%73 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%74 = getelementptr inbounds [12 x i8], [12 x i8]* %11, i64 0, i64 0
%75 = call i32 @geofence_aprs_frequency(i8* %73, i8* %74)
%76 = bitcast [6 x i8]* %12 to i8*
store i32 1, i32* %13
%77 = bitcast [6 x i8]* %14 to i8*
store i32 2, i32* %15
%78 = bitcast [6 x i8]* %16 to i8*
store i32 3, i32* %17
%79 = bitcast [6 x i8]* %18 to i8*
store i32 4, i32* %19
%80 = bitcast [6 x i8]* %20 to i8*
store i32 4, i32* %21
%81 = bitcast [6 x i8]* %22 to i8*
store i32 4, i32* %23
%82 = bitcast [6 x i8]* %24 to i8*
store i32 4, i32* %25
%83 = bitcast [6 x i8]* %26 to i8*
store i32 5, i32* %27
%84 = bitcast [6 x i8]* %28 to i8*
store i32 5, i32* %29
%85 = getelementptr inbounds [6 x i8], [6 x i8]* %12, i64 0, i64 0
%86 = getelementptr inbounds [6 x i8], [6 x i8]* %12, i64 0, i64 0
%87 = load i32, i32* %13
%88 = call i32 @geofence_slow_tlm_altitude(i8* %86, i32 %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %85, i32 %88)
%90 = getelementptr inbounds [6 x i8], [6 x i8]* %14, i64 0, i64 0
%91 = getelementptr inbounds [6 x i8], [6 x i8]* %14, i64 0, i64 0
%92 = load i32, i32* %15
%93 = call i32 @geofence_slow_tlm_altitude(i8* %91, i32 %92)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %90, i32 %93)
%95 = getelementptr inbounds [6 x i8], [6 x i8]* %16, i64 0, i64 0
%96 = getelementptr inbounds [6 x i8], [6 x i8]* %16, i64 0, i64 0
%97 = load i32, i32* %17
%98 = call i32 @geofence_slow_tlm_altitude(i8* %96, i32 %97)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %95, i32 %98)
%100 = getelementptr inbounds [6 x i8], [6 x i8]* %18, i64 0, i64 0
%101 = getelementptr inbounds [6 x i8], [6 x i8]* %18, i64 0, i64 0
%102 = load i32, i32* %19
%103 = call i32 @geofence_slow_tlm_altitude(i8* %101, i32 %102)
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %100, i32 %103)
%105 = getelementptr inbounds [6 x i8], [6 x i8]* %20, i64 0, i64 0
%106 = getelementptr inbounds [6 x i8], [6 x i8]* %20, i64 0, i64 0
%107 = load i32, i32* %21
%108 = call i32 @geofence_slow_tlm_altitude(i8* %106, i32 %107)
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %105, i32 %108)
%110 = getelementptr inbounds [6 x i8], [6 x i8]* %22, i64 0, i64 0
%111 = getelementptr inbounds [6 x i8], [6 x i8]* %22, i64 0, i64 0
%112 = load i32, i32* %23
%113 = call i32 @geofence_slow_tlm_altitude(i8* %111, i32 %112)
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %110, i32 %113)
%115 = getelementptr inbounds [6 x i8], [6 x i8]* %24, i64 0, i64 0
%116 = getelementptr inbounds [6 x i8], [6 x i8]* %24, i64 0, i64 0
%117 = load i32, i32* %25
%118 = call i32 @geofence_slow_tlm_altitude(i8* %116, i32 %117)
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %115, i32 %118)
%120 = getelementptr inbounds [6 x i8], [6 x i8]* %26, i64 0, i64 0
%121 = getelementptr inbounds [6 x i8], [6 x i8]* %26, i64 0, i64 0
%122 = load i32, i32* %27
%123 = call i32 @geofence_slow_tlm_altitude(i8* %121, i32 %122)
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %120, i32 %123)
%125 = getelementptr inbounds [6 x i8], [6 x i8]* %28, i64 0, i64 0
%126 = getelementptr inbounds [6 x i8], [6 x i8]* %28, i64 0, i64 0
%127 = load i32, i32* %29
%128 = call i32 @geofence_slow_tlm_altitude(i8* %126, i32 %127)
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %125, i32 %128)
ret i32 0
}

LLVM IR (-O2):
@__const.main.lat = [11 x i8] c"+0000.0000\00"
@__const.main.a = [12 x i8] c"+01200.0000\00"
@__const.main.b = [12 x i8] c"+08900.0000\00"
@__const.main.c = [12 x i8] c"+09000.0000\00"
@__const.main.d = [12 x i8] c"+12000.0000\00"
@__const.main.e = [12 x i8] c"-03900.0000\00"
@__const.main.f = [12 x i8] c"-04000.0000\00"
@__const.main.g = [12 x i8] c"-12000.0000\00"
@__const.main.h = [12 x i8] c"+00000.0000\00"
@__const.main.i = [12 x i8] c"yyyxjxjxjjj\00"
@.str = [13 x i8] c"12E (EU) is \00"
@.str.1 = [13 x i8] c"89E (EU) is \00"
@.str.2 = [13 x i8] c"90E (CN) is \00"
@.str.3 = [14 x i8] c"120E (CN) is \00"
@.str.4 = [13 x i8] c"39W (EU) is \00"
@.str.5 = [13 x i8] c"40W (US) is \00"
@.str.6 = [14 x i8] c"120W (US) is \00"
@.str.7 = [12 x i8] c"0E (EU) is \00"
@.str.8 = [15 x i8] c"ERROR (EU) is \00"
@__const.main.aa = [6 x i8] c"0\00\00\00\00\00"
@__const.main.bb = [6 x i8] c"80\00\00\00\00"
@__const.main.cc = [6 x i8] c"800\00\00\00"
@__const.main.dd = [6 x i8] c"3000\00\00"
@__const.main.ee = [6 x i8] c"4000\00\00"
@__const.main.ff = [6 x i8] c"4100\00\00"
@__const.main.gg = [6 x i8] c"9999\00\00"
@__const.main.hh = [6 x i8] c"10000\00"
@__const.main.ii = [6 x i8] c"50000\00"
@.str.9 = [8 x i8] c"%s: %d\0A\00"
define i32 @main() {
%1 = alloca [11 x i8]
%2 = alloca [12 x i8]
%3 = alloca [12 x i8]
%4 = alloca [12 x i8]
%5 = alloca [12 x i8]
%6 = alloca [12 x i8]
%7 = alloca [12 x i8]
%8 = alloca [12 x i8]
%9 = alloca [12 x i8]
%10 = alloca [12 x i8]
%11 = alloca [6 x i8]
%12 = alloca [6 x i8]
%13 = alloca [6 x i8]
%14 = alloca [6 x i8]
%15 = alloca [6 x i8]
%16 = alloca [6 x i8]
%17 = alloca [6 x i8]
%18 = alloca [6 x i8]
%19 = alloca [6 x i8]
%20 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%21 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%22 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%23 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%24 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%25 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%26 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 0
%27 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%28 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%29 = getelementptr inbounds [12 x i8], [12 x i8]* %10, i64 0, i64 0
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%31 = call i32 @geofence_aprs_frequency(i8* %20, i8* %21)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @geofence_aprs_frequency(i8* %20, i8* %22)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 @geofence_aprs_frequency(i8* %20, i8* %23)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 @geofence_aprs_frequency(i8* %20, i8* %24)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%39 = call i32 @geofence_aprs_frequency(i8* %20, i8* %25)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%41 = call i32 @geofence_aprs_frequency(i8* %20, i8* %26)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%43 = call i32 @geofence_aprs_frequency(i8* %20, i8* %27)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%45 = call i32 @geofence_aprs_frequency(i8* %20, i8* %28)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%47 = call i32 @geofence_aprs_frequency(i8* %20, i8* %29)
%48 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
%49 = getelementptr inbounds [6 x i8], [6 x i8]* %12, i64 0, i64 0
%50 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%51 = getelementptr inbounds [6 x i8], [6 x i8]* %14, i64 0, i64 0
%52 = getelementptr inbounds [6 x i8], [6 x i8]* %15, i64 0, i64 0
%53 = getelementptr inbounds [6 x i8], [6 x i8]* %16, i64 0, i64 0
%54 = getelementptr inbounds [6 x i8], [6 x i8]* %17, i64 0, i64 0
%55 = getelementptr inbounds [6 x i8], [6 x i8]* %18, i64 0, i64 0
%56 = getelementptr inbounds [6 x i8], [6 x i8]* %19, i64 0, i64 0
%57 = call i32 @geofence_slow_tlm_altitude(i8* %48, i32 1)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %48, i32 %57)
%59 = call i32 @geofence_slow_tlm_altitude(i8* %49, i32 2)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %49, i32 %59)
%61 = call i32 @geofence_slow_tlm_altitude(i8* %50, i32 3)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %50, i32 %61)
%63 = call i32 @geofence_slow_tlm_altitude(i8* %51, i32 4)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %51, i32 %63)
%65 = call i32 @geofence_slow_tlm_altitude(i8* %52, i32 4)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %52, i32 %65)
%67 = call i32 @geofence_slow_tlm_altitude(i8* %53, i32 4)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %53, i32 %67)
%69 = call i32 @geofence_slow_tlm_altitude(i8* %54, i32 4)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %54, i32 %69)
%71 = call i32 @geofence_slow_tlm_altitude(i8* %55, i32 5)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %55, i32 %71)
%73 = call i32 @geofence_slow_tlm_altitude(i8* %56, i32 5)
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* %56, i32 %73)
ret i32 0
}