#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 a2time_range(char *);
int /*<<< orphan*/ add_time(int *, int *, int *, int *, int *, int *, int, int);
unsigned char *code_table_1_2_location(unsigned char **);
unsigned char *code_table_1_4_location(unsigned char **);
unsigned char *code_table_4_4_location(unsigned char **);
int /*<<< orphan*/ fatal_error(char *, char const *);
int /*<<< orphan*/ get_time(unsigned char *, int *, int *, int *, int *, int *,
                            int *);
int /*<<< orphan*/ int2_char(int, unsigned char *);
int int4(unsigned char *);
int /*<<< orphan*/ int_char(int, unsigned char *);
int /*<<< orphan*/ reftime(unsigned char **, int *, int *, int *, int *, int *,
                           int *);
int /*<<< orphan*/ save_time(int, int, int, int, int, int, unsigned char *);
int sscanf(char const *, char *, int *, char *, char *, int *);
unsigned char *stat_proc_verf_time_location(unsigned char **);
scalar_t__ strcmp(char const *, char *);
int strlen(char const *);
int /*<<< orphan*/ sub_time(int, int, int, int, int, int, int, int, int, int,
                            int, int, int *, int *);
int f_set_ftime1(int mode, unsigned char **sec, float *data, unsigned int ndata,
                 char *inv_out, void **local, const char *arg1) {
  int len, pdt;
  char string[200];
  char string2[200];
  unsigned char *code_4_4, *verf_time, *code_1_2, *code_1_4;
  int old_ftime, old_ftime_units;
  int new_ftime, new_ftime_units, dt, units;
  int year, month, day, hour, minute, second;
  int year0, month0, day0, hour0, minute0, second0;
  if (mode < 0)
    return 0;
  code_4_4 = code_table_4_4_location(sec);
  if (code_4_4 == NULL)
    fatal_error("set_ftime: Code Table 4.4 not present or defined", "");
  pdt = (((int)((sec[4][7] << 8) + (sec[4][8]))));
  old_ftime_units = (int)*code_4_4;
  old_ftime = int4(code_4_4 + 1);
  verf_time = stat_proc_verf_time_location(sec);
  new_ftime = 0;
  new_ftime_units = -1;
  if (strcmp(arg1, "anl") == 0) {
    new_ftime = 0;
    new_ftime_units = 1;
  } else {
    if (sscanf(arg1, "%d %s %s%n", &new_ftime, string, string2, &len) == 3 &&
        len == strlen(arg1)) {
      if (strcmp(string2, "forecast") == 0 || strcmp(string2, "fcst") == 0) {
        new_ftime_units = a2time_range(string);
      }
    }
  }
  if (new_ftime_units == -1)
    fatal_error("set_ftime: unknown option %s", arg1);
  *code_4_4 = (unsigned char)new_ftime_units;
  if (pdt != 44) {
    int_char(new_ftime, code_4_4 + 1);
  } else {
    int2_char(new_ftime, code_4_4 + 1);
  }
  code_1_2 = code_table_1_2_location(sec);
  code_1_4 = code_table_1_4_location(sec);
  if (new_ftime == 0) {
    if (code_1_2 != NULL)
      *code_1_2 = 0;
    if (code_1_4 != NULL && (int)*code_1_4 == 1)
      *code_1_4 = 0;
  } else {
    if (code_1_2 != NULL)
      *code_1_2 = 1;
    if (code_1_4 != NULL && (int)*code_1_4 == 0)
      *code_1_4 = 1;
  }
  if (verf_time == NULL)
    return 0;
  reftime(sec, &year0, &month0, &day0, &hour0, &minute0, &second0);
  add_time(&year0, &month0, &day0, &hour0, &minute0, &second0, old_ftime,
           old_ftime_units);
  get_time(verf_time, &year, &month, &day, &hour, &minute, &second);
  sub_time(year, month, day, hour, minute, second, year0, month0, day0, hour0,
           minute0, second0, &dt, &units);
  reftime(sec, &year0, &month0, &day0, &hour0, &minute0, &second0);
  add_time(&year0, &month0, &day0, &hour0, &minute0, &second0, new_ftime,
           new_ftime_units);
  add_time(&year0, &month0, &day0, &hour0, &minute0, &second0, dt, units);
  save_time(year0, month0, day0, hour0, minute0, second0, verf_time);
  return 0;
}


x86 assembly (clang, -O0):
<f_set_ftime1>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x288,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %ecx,-0x44(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
cmpl   $0x0,-0x30(%rbp)
jge    1254 <f_set_ftime1+0x44>
movl   $0x0,-0x2c(%rbp)
jmp    1745 <f_set_ftime1+0x535>
mov    -0x38(%rbp),%rdi
call   1120 <code_table_4_4_location@plt>
mov    %rax,-0x208(%rbp)
cmpq   $0x0,-0x208(%rbp)
jne    1285 <f_set_ftime1+0x75>
lea    0xd87(%rip),%rdi
lea    0xdb0(%rip),%rsi
call   10c0 <fatal_error@plt>
mov    -0x38(%rbp),%rax
mov    0x20(%rax),%rax
movzbl 0x7(%rax),%eax
shl    $0x8,%eax
mov    -0x38(%rbp),%rcx
mov    0x20(%rcx),%rcx
movzbl 0x8(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x60(%rbp)
mov    -0x208(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x228(%rbp)
mov    -0x208(%rbp),%rdi
add    $0x1,%rdi
call   1040 <int4@plt>
mov    %eax,-0x224(%rbp)
mov    -0x38(%rbp),%rdi
call   10d0 <stat_proc_verf_time_location@plt>
mov    %rax,-0x210(%rbp)
movl   $0x0,-0x22c(%rbp)
movl   $0xffffffff,-0x230(%rbp)
ff ff ff
mov    0x10(%rbp),%rdi
lea    0xd37(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1322 <f_set_ftime1+0x112>
movl   $0x0,-0x22c(%rbp)
movl   $0x1,-0x230(%rbp)
jmp    13cc <f_set_ftime1+0x1bc>
mov    0x10(%rbp),%rdi
lea    -0x130(%rbp),%rcx
lea    -0x200(%rbp),%r8
lea    0xcfa(%rip),%rsi
lea    -0x22c(%rbp),%rdx
lea    -0x5c(%rbp),%r9
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    13c7 <f_set_ftime1+0x1b7>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x26c(%rbp)
mov    0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x26c(%rbp),%eax
cmp    %ecx,%eax
jne    13c7 <f_set_ftime1+0x1b7>
lea    -0x200(%rbp),%rdi
lea    0xcbc(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     13b0 <f_set_ftime1+0x1a0>
lea    -0x200(%rbp),%rdi
lea    0xca8(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13c2 <f_set_ftime1+0x1b2>
lea    -0x130(%rbp),%rdi
call   1030 <a2time_range@plt>
mov    %eax,-0x230(%rbp)
jmp    13c7 <f_set_ftime1+0x1b7>
jmp    13cc <f_set_ftime1+0x1bc>
cmpl   $0xffffffff,-0x230(%rbp)
jne    13e9 <f_set_ftime1+0x1d9>
mov    0x10(%rbp),%rsi
lea    0xc6a(%rip),%rdi
call   10c0 <fatal_error@plt>
mov    -0x230(%rbp),%eax
mov    %al,%cl
mov    -0x208(%rbp),%rax
mov    %cl,(%rax)
cmpl   $0x2c,-0x60(%rbp)
je     141f <f_set_ftime1+0x20f>
mov    -0x22c(%rbp),%edi
mov    -0x208(%rbp),%rsi
add    $0x1,%rsi
call   1100 <int_char@plt>
jmp    1435 <f_set_ftime1+0x225>
mov    -0x22c(%rbp),%edi
mov    -0x208(%rbp),%rsi
add    $0x1,%rsi
call   1110 <int2_char@plt>
mov    -0x38(%rbp),%rdi
call   1050 <code_table_1_2_location@plt>
mov    %rax,-0x218(%rbp)
mov    -0x38(%rbp),%rdi
call   10f0 <code_table_1_4_location@plt>
mov    %rax,-0x220(%rbp)
cmpl   $0x0,-0x22c(%rbp)
jne    14aa <f_set_ftime1+0x29a>
cmpq   $0x0,-0x218(%rbp)
je     147a <f_set_ftime1+0x26a>
mov    -0x218(%rbp),%rax
movb   $0x0,(%rax)
cmpq   $0x0,-0x220(%rbp)
je     14a5 <f_set_ftime1+0x295>
mov    -0x220(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x1,%eax
jne    14a5 <f_set_ftime1+0x295>
mov    -0x220(%rbp),%rax
movb   $0x0,(%rax)
jmp    14f2 <f_set_ftime1+0x2e2>
cmpq   $0x0,-0x218(%rbp)
je     14c2 <f_set_ftime1+0x2b2>
mov    -0x218(%rbp),%rax
movb   $0x1,(%rax)
cmpq   $0x0,-0x220(%rbp)
je     14ed <f_set_ftime1+0x2dd>
mov    -0x220(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x0,%eax
jne    14ed <f_set_ftime1+0x2dd>
mov    -0x220(%rbp),%rax
movb   $0x1,(%rax)
jmp    14f2 <f_set_ftime1+0x2e2>
cmpq   $0x0,-0x210(%rbp)
jne    150c <f_set_ftime1+0x2fc>
movl   $0x0,-0x2c(%rbp)
jmp    1745 <f_set_ftime1+0x535>
mov    -0x38(%rbp),%rdi
lea    -0x254(%rbp),%rsi
lea    -0x258(%rbp),%rdx
lea    -0x25c(%rbp),%rcx
lea    -0x260(%rbp),%r8
lea    -0x264(%rbp),%r9
lea    -0x268(%rbp),%rax
mov    %rax,(%rsp)
call   10b0 <reftime@plt>
mov    -0x224(%rbp),%r10d
mov    -0x228(%rbp),%eax
lea    -0x254(%rbp),%rdi
lea    -0x258(%rbp),%rsi
lea    -0x25c(%rbp),%rdx
lea    -0x260(%rbp),%rcx
lea    -0x264(%rbp),%r8
lea    -0x268(%rbp),%r9
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <add_time@plt>
mov    -0x210(%rbp),%rdi
lea    -0x23c(%rbp),%rsi
lea    -0x240(%rbp),%rdx
lea    -0x244(%rbp),%rcx
lea    -0x248(%rbp),%r8
lea    -0x24c(%rbp),%r9
lea    -0x250(%rbp),%rax
mov    %rax,(%rsp)
call   1090 <get_time@plt>
mov    -0x23c(%rbp),%edi
mov    -0x240(%rbp),%esi
mov    -0x244(%rbp),%edx
mov    -0x248(%rbp),%ecx
mov    -0x24c(%rbp),%r8d
mov    -0x250(%rbp),%r9d
mov    -0x254(%rbp),%r13d
mov    -0x258(%rbp),%r12d
mov    -0x25c(%rbp),%r15d
mov    -0x260(%rbp),%r14d
mov    -0x264(%rbp),%ebx
mov    -0x268(%rbp),%r11d
lea    -0x234(%rbp),%r10
lea    -0x238(%rbp),%rax
mov    %r13d,(%rsp)
mov    %r12d,0x8(%rsp)
mov    %r15d,0x10(%rsp)
mov    %r14d,0x18(%rsp)
mov    %ebx,0x20(%rsp)
mov    %r11d,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
call   1130 <sub_time@plt>
mov    -0x38(%rbp),%rdi
lea    -0x254(%rbp),%rsi
lea    -0x258(%rbp),%rdx
lea    -0x25c(%rbp),%rcx
lea    -0x260(%rbp),%r8
lea    -0x264(%rbp),%r9
lea    -0x268(%rbp),%rax
mov    %rax,(%rsp)
call   10b0 <reftime@plt>
mov    -0x22c(%rbp),%r10d
mov    -0x230(%rbp),%eax
lea    -0x254(%rbp),%rdi
lea    -0x258(%rbp),%rsi
lea    -0x25c(%rbp),%rdx
lea    -0x260(%rbp),%rcx
lea    -0x264(%rbp),%r8
lea    -0x268(%rbp),%r9
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <add_time@plt>
mov    -0x234(%rbp),%r10d
mov    -0x238(%rbp),%eax
lea    -0x254(%rbp),%rdi
lea    -0x258(%rbp),%rsi
lea    -0x25c(%rbp),%rdx
lea    -0x260(%rbp),%rcx
lea    -0x264(%rbp),%r8
lea    -0x268(%rbp),%r9
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <add_time@plt>
mov    -0x254(%rbp),%edi
mov    -0x258(%rbp),%esi
mov    -0x25c(%rbp),%edx
mov    -0x260(%rbp),%ecx
mov    -0x264(%rbp),%r8d
mov    -0x268(%rbp),%r9d
mov    -0x210(%rbp),%rax
mov    %rax,(%rsp)
call   1080 <save_time@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x288,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_set_ftime1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
test   %edi,%edi
js     1563 <f_set_ftime1+0x353>
mov    %rsi,%r14
mov    %rsi,%rdi
call   1120 <code_table_4_4_location@plt>
mov    %rax,%rbx
mov    %rax,%r15
test   %rax,%rax
jne    1252 <f_set_ftime1+0x42>
lea    0xdba(%rip),%rdi
lea    0xde3(%rip),%rsi
call   10c0 <fatal_error@plt>
mov    0x20(%r14),%rax
movzwl 0x7(%rax),%ebp
shl    $0x10,%ebp
bswap  %ebp
movzbl (%r15),%eax
mov    %rax,0x68(%rsp)
add    $0x1,%rbx
mov    %rbx,%rdi
call   1040 <int4@plt>
mov    %rax,0x58(%rsp)
mov    %r14,%rdi
call   10d0 <stat_proc_verf_time_location@plt>
mov    %rax,0x20(%rsp)
movl   $0x0,0x4(%rsp)
lea    0xd9c(%rip),%rsi
mov    0x240(%rsp),%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     134b <f_set_ftime1+0x13b>
lea    0xd83(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x140(%rsp),%rcx
lea    0x70(%rsp),%r8
lea    0x4c(%rsp),%r9
mov    0x240(%rsp),%rdi
call   10e0 <sscanf@plt>
cmp    $0x3,%eax
jne    1330 <f_set_ftime1+0x120>
mov    0x4c(%rsp),%r12d
mov    0x240(%rsp),%rdi
call   1060 <strlen@plt>
cmp    %eax,%r12d
jne    1330 <f_set_ftime1+0x120>
lea    0xd47(%rip),%rsi
lea    0x70(%rsp),%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     131e <f_set_ftime1+0x10e>
lea    0xd3a(%rip),%rsi
lea    0x70(%rsp),%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1330 <f_set_ftime1+0x120>
lea    0x140(%rsp),%rdi
call   1030 <a2time_range@plt>
cmp    $0xffffffff,%eax
jne    1358 <f_set_ftime1+0x148>
lea    0xd17(%rip),%rdi
mov    0x240(%rsp),%rsi
call   10c0 <fatal_error@plt>
mov    $0xffffffff,%eax
jmp    1358 <f_set_ftime1+0x148>
movl   $0x0,0x4(%rsp)
mov    $0x1,%eax
mov    %rax,0x60(%rsp)
mov    %al,(%r15)
mov    0x4(%rsp),%edi
mov    %rbx,%rsi
cmp    $0x2c,%ebp
jne    1373 <f_set_ftime1+0x163>
call   1110 <int2_char@plt>
jmp    1378 <f_set_ftime1+0x168>
call   1100 <int_char@plt>
mov    %r14,%rdi
call   1050 <code_table_1_2_location@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   10f0 <code_table_1_4_location@plt>
cmpl   $0x0,0x4(%rsp)
je     13a8 <f_set_ftime1+0x198>
test   %rbx,%rbx
je     139a <f_set_ftime1+0x18a>
movb   $0x1,(%rbx)
test   %rax,%rax
je     13be <f_set_ftime1+0x1ae>
cmpb   $0x0,(%rax)
jne    13be <f_set_ftime1+0x1ae>
mov    $0x1,%cl
jmp    13bc <f_set_ftime1+0x1ac>
test   %rbx,%rbx
je     13b0 <f_set_ftime1+0x1a0>
movb   $0x0,(%rbx)
test   %rax,%rax
je     13be <f_set_ftime1+0x1ae>
cmpb   $0x1,(%rax)
jne    13be <f_set_ftime1+0x1ae>
xor    %ecx,%ecx
mov    %cl,(%rax)
cmpq   $0x0,0x20(%rsp)
je     1563 <f_set_ftime1+0x353>
sub    $0x8,%rsp
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%rbp
lea    0x20(%rsp),%r13
lea    0x1c(%rsp),%r12
lea    0x18(%rsp),%r8
lea    0x24(%rsp),%rbx
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r14,0x58(%rsp)
mov    %r8,%r14
mov    %rbx,%r9
push   %r15
call   10b0 <reftime@plt>
add    $0x10,%rsp
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %rbx,%r8
mov    %rbx,%r14
mov    %r15,%r9
push   0x68(%rsp)
push   0x60(%rsp)
call   1070 <add_time@plt>
add    $0x8,%rsp
lea    0x34(%rsp),%rax
lea    0x48(%rsp),%rsi
lea    0x44(%rsp),%rdx
lea    0x40(%rsp),%rcx
lea    0x3c(%rsp),%r8
lea    0x38(%rsp),%r9
mov    0x28(%rsp),%rdi
push   %rax
call   1090 <get_time@plt>
add    $0x10,%rsp
mov    0x40(%rsp),%edi
mov    0x3c(%rsp),%esi
mov    0x38(%rsp),%edx
mov    0x34(%rsp),%ecx
mov    0x30(%rsp),%r8d
mov    0x2c(%rsp),%r9d
mov    0x8(%rsp),%r10d
mov    0x18(%rsp),%r11d
mov    0x14(%rsp),%ebp
mov    0x10(%rsp),%eax
mov    0x1c(%rsp),%ebx
mov    0xc(%rsp),%r13d
lea    0x44(%rsp),%r15
lea    0x48(%rsp),%r12
push   %r15
push   %r12
push   %r13
push   %rbx
push   %rax
push   %rbp
push   %r11
push   %r10
call   1130 <sub_time@plt>
add    $0x38,%rsp
mov    0x58(%rsp),%rdi
lea    0x10(%rsp),%rbp
mov    %rbp,%rsi
lea    0x20(%rsp),%r15
mov    %r15,%rdx
lea    0x1c(%rsp),%r12
mov    %r12,%rcx
lea    0x18(%rsp),%r13
mov    %r13,%r8
mov    %r14,%r9
lea    0x14(%rsp),%rbx
push   %rbx
call   10b0 <reftime@plt>
add    $0x10,%rsp
mov    0x4(%rsp),%eax
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %rbx,%r9
push   0x60(%rsp)
push   %rax
call   1070 <add_time@plt>
add    $0x10,%rsp
mov    0x48(%rsp),%eax
mov    0x44(%rsp),%ebp
lea    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %rbx,%r9
push   %rbp
push   %rax
call   1070 <add_time@plt>
add    $0x10,%rsp
mov    0x8(%rsp),%edi
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0xc(%rsp),%r9d
sub    $0x8,%rsp
push   0x28(%rsp)
call   1080 <save_time@plt>
add    $0x10,%rsp
xor    %eax,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"set_ftime: Code Table 4.4 not present or defined\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [4 x i8] c"anl\00"
@.str.3 = [11 x i8] c"%d %s %s%n\00"
@.str.4 = [9 x i8] c"forecast\00"
@.str.5 = [5 x i8] c"fcst\00"
@.str.6 = [29 x i8] c"set_ftime: unknown option %s\00"
define i32 @f_set_ftime1(i32 %0, i8** %1, float* %2, i32 %3, i8* %4, i8** %5, i8* %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8**
%11 = alloca float*
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8**
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
%18 = alloca [200 x i8]
%19 = alloca [200 x i8]
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
store i32 %0, i32* %9
store i8** %1, i8*** %10
store float* %2, float** %11
store i32 %3, i32* %12
store i8* %4, i8** %13
store i8** %5, i8*** %14
store i8* %6, i8** %15
%42 = load i32, i32* %9
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %7
store i32 0, i32* %8
br label %205
45: ; preds = %7
%46 = load i8**, i8*** %10
%47 = call i8* @code_table_4_4_location(i8** %46)
store i8* %47, i8** %20
%48 = load i8*, i8** %20
%49 = icmp eq i8* %48, null
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = call i32 @fatal_error(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %52
52: ; preds = %50, %45
%53 = load i8**, i8*** %10
%54 = getelementptr inbounds i8*, i8** %53, i64 4
%55 = load i8*, i8** %54
%56 = getelementptr inbounds i8, i8* %55, i64 7
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = shl i32 %58, 8
%60 = load i8**, i8*** %10
%61 = getelementptr inbounds i8*, i8** %60, i64 4
%62 = load i8*, i8** %61
%63 = getelementptr inbounds i8, i8* %62, i64 8
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = add nsw i32 %59, %65
store i32 %66, i32* %17
%67 = load i8*, i8** %20
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
store i32 %69, i32* %25
%70 = load i8*, i8** %20
%71 = getelementptr inbounds i8, i8* %70, i64 1
%72 = call i32 @int4(i8* %71)
store i32 %72, i32* %24
%73 = load i8**, i8*** %10
%74 = call i8* @stat_proc_verf_time_location(i8** %73)
store i8* %74, i8** %21
store i32 0, i32* %26
store i32 -1, i32* %27
%75 = load i8*, i8** %15
%76 = call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %52
store i32 0, i32* %26
store i32 1, i32* %27
br label %103
79: ; preds = %52
%80 = load i8*, i8** %15
%81 = getelementptr inbounds [200 x i8], [200 x i8]* %18, i64 0, i64 0
%82 = getelementptr inbounds [200 x i8], [200 x i8]* %19, i64 0, i64 0
%83 = call i32 @sscanf(i8* %80, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32* %26, i8* %81, i8* %82, i32* %16)
%84 = icmp eq i32 %83, 3
br i1 %84, label %85, label %102
85: ; preds = %79
%86 = load i32, i32* %16
%87 = load i8*, i8** %15
%88 = call i32 @strlen(i8* %87)
%89 = icmp eq i32 %86, %88
br i1 %89, label %90, label %102
90: ; preds = %85
%91 = getelementptr inbounds [200 x i8], [200 x i8]* %19, i64 0, i64 0
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %98, label %94
94: ; preds = %90
%95 = getelementptr inbounds [200 x i8], [200 x i8]* %19, i64 0, i64 0
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %94, %90
%99 = getelementptr inbounds [200 x i8], [200 x i8]* %18, i64 0, i64 0
%100 = call i32 @a2time_range(i8* %99)
store i32 %100, i32* %27
br label %101
101: ; preds = %98, %94
br label %102
102: ; preds = %101, %85, %79
br label %103
103: ; preds = %102, %78
%104 = load i32, i32* %27
%105 = icmp eq i32 %104, -1
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load i8*, i8** %15
%108 = call i32 @fatal_error(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i8* %107)
br label %109
109: ; preds = %106, %103
%110 = load i32, i32* %27
%111 = trunc i32 %110 to i8
%112 = load i8*, i8** %20
store i8 %111, i8* %112
%113 = load i32, i32* %17
%114 = icmp ne i32 %113, 44
br i1 %114, label %115, label %120
115: ; preds = %109
%116 = load i32, i32* %26
%117 = load i8*, i8** %20
%118 = getelementptr inbounds i8, i8* %117, i64 1
%119 = call i32 @int_char(i32 %116, i8* %118)
br label %125
120: ; preds = %109
%121 = load i32, i32* %26
%122 = load i8*, i8** %20
%123 = getelementptr inbounds i8, i8* %122, i64 1
%124 = call i32 @int2_char(i32 %121, i8* %123)
br label %125
125: ; preds = %120, %115
%126 = load i8**, i8*** %10
%127 = call i8* @code_table_1_2_location(i8** %126)
store i8* %127, i8** %22
%128 = load i8**, i8*** %10
%129 = call i8* @code_table_1_4_location(i8** %128)
store i8* %129, i8** %23
%130 = load i32, i32* %26
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %148
132: ; preds = %125
%133 = load i8*, i8** %22
%134 = icmp ne i8* %133, null
br i1 %134, label %135, label %137
135: ; preds = %132
%136 = load i8*, i8** %22
store i8 0, i8* %136
br label %137
137: ; preds = %135, %132
%138 = load i8*, i8** %23
%139 = icmp ne i8* %138, null
br i1 %139, label %140, label %147
140: ; preds = %137
%141 = load i8*, i8** %23
%142 = load i8, i8* %141
%143 = zext i8 %142 to i32
%144 = icmp eq i32 %143, 1
br i1 %144, label %145, label %147
145: ; preds = %140
%146 = load i8*, i8** %23
store i8 0, i8* %146
br label %147
147: ; preds = %145, %140, %137
br label %164
148: ; preds = %125
%149 = load i8*, i8** %22
%150 = icmp ne i8* %149, null
br i1 %150, label %151, label %153
151: ; preds = %148
%152 = load i8*, i8** %22
store i8 1, i8* %152
br label %153
153: ; preds = %151, %148
%154 = load i8*, i8** %23
%155 = icmp ne i8* %154, null
br i1 %155, label %156, label %163
156: ; preds = %153
%157 = load i8*, i8** %23
%158 = load i8, i8* %157
%159 = zext i8 %158 to i32
%160 = icmp eq i32 %159, 0
br i1 %160, label %161, label %163
161: ; preds = %156
%162 = load i8*, i8** %23
store i8 1, i8* %162
br label %163
163: ; preds = %161, %156, %153
br label %164
164: ; preds = %163, %147
%165 = load i8*, i8** %21
%166 = icmp eq i8* %165, null
br i1 %166, label %167, label %168
167: ; preds = %164
store i32 0, i32* %8
br label %205
168: ; preds = %164
%169 = load i8**, i8*** %10
%170 = call i32 @reftime(i8** %169, i32* %36, i32* %37, i32* %38, i32* %39, i32* %40, i32* %41)
%171 = load i32, i32* %24
%172 = load i32, i32* %25
%173 = call i32 @add_time(i32* %36, i32* %37, i32* %38, i32* %39, i32* %40, i32* %41, i32 %171, i32 %172)
%174 = load i8*, i8** %21
%175 = call i32 @get_time(i8* %174, i32* %30, i32* %31, i32* %32, i32* %33, i32* %34, i32* %35)
%176 = load i32, i32* %30
%177 = load i32, i32* %31
%178 = load i32, i32* %32
%179 = load i32, i32* %33
%180 = load i32, i32* %34
%181 = load i32, i32* %35
%182 = load i32, i32* %36
%183 = load i32, i32* %37
%184 = load i32, i32* %38
%185 = load i32, i32* %39
%186 = load i32, i32* %40
%187 = load i32, i32* %41
%188 = call i32 @sub_time(i32 %176, i32 %177, i32 %178, i32 %179, i32 %180, i32 %181, i32 %182, i32 %183, i32 %184, i32 %185, i32 %186, i32 %187, i32* %28, i32* %29)
%189 = load i8**, i8*** %10
%190 = call i32 @reftime(i8** %189, i32* %36, i32* %37, i32* %38, i32* %39, i32* %40, i32* %41)
%191 = load i32, i32* %26
%192 = load i32, i32* %27
%193 = call i32 @add_time(i32* %36, i32* %37, i32* %38, i32* %39, i32* %40, i32* %41, i32 %191, i32 %192)
%194 = load i32, i32* %28
%195 = load i32, i32* %29
%196 = call i32 @add_time(i32* %36, i32* %37, i32* %38, i32* %39, i32* %40, i32* %41, i32 %194, i32 %195)
%197 = load i32, i32* %36
%198 = load i32, i32* %37
%199 = load i32, i32* %38
%200 = load i32, i32* %39
%201 = load i32, i32* %40
%202 = load i32, i32* %41
%203 = load i8*, i8** %21
%204 = call i32 @save_time(i32 %197, i32 %198, i32 %199, i32 %200, i32 %201, i32 %202, i8* %203)
store i32 0, i32* %8
br label %205
205: ; preds = %168, %167, %44
%206 = load i32, i32* %8
ret i32 %206
}

LLVM IR (-O2):
@.str = [49 x i8] c"set_ftime: Code Table 4.4 not present or defined\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [4 x i8] c"anl\00"
@.str.3 = [11 x i8] c"%d %s %s%n\00"
@.str.4 = [9 x i8] c"forecast\00"
@.str.5 = [5 x i8] c"fcst\00"
@.str.6 = [29 x i8] c"set_ftime: unknown option %s\00"
define i32 @f_set_ftime1(i32 %0, i8** %1, float* nocapture readnone %2, i32 %3, i8* nocapture readnone %4, i8** nocapture readnone %5, i8* %6) {
%8 = alloca i32
%9 = alloca [200 x i8]
%10 = alloca [200 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = bitcast i32* %8 to i8*
%27 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%28 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%29 = bitcast i32* %11 to i8*
%30 = bitcast i32* %12 to i8*
%31 = bitcast i32* %13 to i8*
%32 = bitcast i32* %14 to i8*
%33 = bitcast i32* %15 to i8*
%34 = bitcast i32* %16 to i8*
%35 = bitcast i32* %17 to i8*
%36 = bitcast i32* %18 to i8*
%37 = bitcast i32* %19 to i8*
%38 = bitcast i32* %20 to i8*
%39 = bitcast i32* %21 to i8*
%40 = bitcast i32* %22 to i8*
%41 = bitcast i32* %23 to i8*
%42 = bitcast i32* %24 to i8*
%43 = bitcast i32* %25 to i8*
%44 = icmp slt i32 %0, 0
br i1 %44, label %150, label %45
45: ; preds = %7
%46 = tail call i8* @code_table_4_4_location(i8** %1)
%47 = icmp eq i8* %46, null
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = tail call i32 @fatal_error(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %50
50: ; preds = %48, %45
%51 = getelementptr inbounds i8*, i8** %1, i64 4
%52 = load i8*, i8** %51
%53 = getelementptr inbounds i8, i8* %52, i64 7
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = shl nuw nsw i32 %55, 8
%57 = getelementptr inbounds i8, i8* %52, i64 8
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = or i32 %56, %59
%61 = load i8, i8* %46
%62 = zext i8 %61 to i32
%63 = getelementptr inbounds i8, i8* %46, i64 1
%64 = tail call i32 @int4(i8* %63)
%65 = tail call i8* @stat_proc_verf_time_location(i8** %1)
store i32 0, i32* %11
%66 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %50
store i32 0, i32* %11
br label %87
69: ; preds = %50
%70 = call i32 @sscanf(i8* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32* %11, i8* %27, i8* %28, i32* %8)
%71 = icmp eq i32 %70, 3
br i1 %71, label %72, label %85
72: ; preds = %69
%73 = load i32, i32* %8
%74 = call i32 @strlen(i8* %6)
%75 = icmp eq i32 %73, %74
br i1 %75, label %76, label %85
76: ; preds = %72
%77 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %76
%80 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %76, %79
%83 = call i32 @a2time_range(i8* %27)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %87
85: ; preds = %69, %72, %79, %82
%86 = call i32 @fatal_error(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i8* %6)
br label %87
87: ; preds = %68, %85, %82
%88 = phi i32 [ -1, %85 ], [ %83, %82 ], [ 1, %68 ]
%89 = trunc i32 %88 to i8
store i8 %89, i8* %46
%90 = icmp eq i32 %60, 44
%91 = load i32, i32* %11
br i1 %90, label %94, label %92
92: ; preds = %87
%93 = call i32 @int_char(i32 %91, i8* %63)
br label %96
94: ; preds = %87
%95 = call i32 @int2_char(i32 %91, i8* %63)
br label %96
96: ; preds = %94, %92
%97 = call i8* @code_table_1_2_location(i8** %1)
%98 = call i8* @code_table_1_4_location(i8** %1)
%99 = load i32, i32* %11
%100 = icmp eq i32 %99, 0
%101 = icmp eq i8* %97, null
br i1 %100, label %102, label %109
102: ; preds = %96
br i1 %101, label %104, label %103
103: ; preds = %102
store i8 0, i8* %97
br label %104
104: ; preds = %103, %102
%105 = icmp eq i8* %98, null
br i1 %105, label %118, label %106
106: ; preds = %104
%107 = load i8, i8* %98
%108 = icmp eq i8 %107, 1
br i1 %108, label %116, label %118
109: ; preds = %96
br i1 %101, label %111, label %110
110: ; preds = %109
store i8 1, i8* %97
br label %111
111: ; preds = %110, %109
%112 = icmp eq i8* %98, null
br i1 %112, label %118, label %113
113: ; preds = %111
%114 = load i8, i8* %98
%115 = icmp eq i8 %114, 0
br i1 %115, label %116, label %118
116: ; preds = %113, %106
%117 = phi i8 [ 0, %106 ], [ 1, %113 ]
store i8 %117, i8* %98
br label %118
118: ; preds = %116, %111, %113, %104, %106
%119 = icmp eq i8* %65, null
br i1 %119, label %150, label %120
120: ; preds = %118
%121 = call i32 @reftime(i8** %1, i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25)
%122 = call i32 @add_time(i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32 %64, i32 %62)
%123 = call i32 @get_time(i8* %65, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18, i32* %19)
%124 = load i32, i32* %14
%125 = load i32, i32* %15
%126 = load i32, i32* %16
%127 = load i32, i32* %17
%128 = load i32, i32* %18
%129 = load i32, i32* %19
%130 = load i32, i32* %20
%131 = load i32, i32* %21
%132 = load i32, i32* %22
%133 = load i32, i32* %23
%134 = load i32, i32* %24
%135 = load i32, i32* %25
%136 = call i32 @sub_time(i32 %124, i32 %125, i32 %126, i32 %127, i32 %128, i32 %129, i32 %130, i32 %131, i32 %132, i32 %133, i32 %134, i32 %135, i32* %12, i32* %13)
%137 = call i32 @reftime(i8** %1, i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25)
%138 = load i32, i32* %11
%139 = call i32 @add_time(i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32 %138, i32 %88)
%140 = load i32, i32* %12
%141 = load i32, i32* %13
%142 = call i32 @add_time(i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32 %140, i32 %141)
%143 = load i32, i32* %20
%144 = load i32, i32* %21
%145 = load i32, i32* %22
%146 = load i32, i32* %23
%147 = load i32, i32* %24
%148 = load i32, i32* %25
%149 = call i32 @save_time(i32 %143, i32 %144, i32 %145, i32 %146, i32 %147, i32 %148, i8* %65)
br label %150
150: ; preds = %118, %7, %120
ret i32 0
}