#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free_CLOUD();
int /*<<< orphan*/ free_GEOPOTENTIAL();
int /*<<< orphan*/ free_LATLON();
int /*<<< orphan*/ free_MODEL_LEVEL();
int /*<<< orphan*/ free_PBLH();
int /*<<< orphan*/ free_PRESS();
int /*<<< orphan*/ free_RAIN();
int /*<<< orphan*/ free_RH();
int /*<<< orphan*/ free_TEMP();
int /*<<< orphan*/ free_TEMP2M();
int /*<<< orphan*/ free_TOPO();
int /*<<< orphan*/ free_WIND();
int /*<<< orphan*/ free_WIND10M();
int /*<<< orphan*/ load_CLOUD();
int /*<<< orphan*/ load_GEOPOTENTIAL();
int /*<<< orphan*/ load_LATLON();
int /*<<< orphan*/ load_MODEL_LEVEL();
int /*<<< orphan*/ load_PBLH();
int /*<<< orphan*/ load_PRESS();
int /*<<< orphan*/ load_RAIN();
int /*<<< orphan*/ load_RH();
int /*<<< orphan*/ load_TEMP();
int /*<<< orphan*/ load_TEMP2M();
int /*<<< orphan*/ load_TOPO();
int /*<<< orphan*/ load_WIND();
int /*<<< orphan*/ load_WIND10M();
int /*<<< orphan*/ ncout_close();
int /*<<< orphan*/ ncout_enddef();
int /*<<< orphan*/ ncout_open();
int /*<<< orphan*/ set_meta_CLOUD();
int /*<<< orphan*/ set_meta_GEOPOTENTIAL();
int /*<<< orphan*/ set_meta_LAMBERT();
int /*<<< orphan*/ set_meta_LATLON();
int /*<<< orphan*/ set_meta_MODEL_LEVEL();
int /*<<< orphan*/ set_meta_PBLH();
int /*<<< orphan*/ set_meta_PRESS();
int /*<<< orphan*/ set_meta_RAIN();
int /*<<< orphan*/ set_meta_RH();
int /*<<< orphan*/ set_meta_TEMP();
int /*<<< orphan*/ set_meta_TEMP2M();
int /*<<< orphan*/ set_meta_TOPO();
int /*<<< orphan*/ set_meta_WIND();
int /*<<< orphan*/ set_meta_WIND10M();
int /*<<< orphan*/ set_meta_ip_levels();
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ wrfout_close();
int /*<<< orphan*/ wrfout_open(int, char **);
int /*<<< orphan*/ write_CLOUD();
int /*<<< orphan*/ write_GEOPOTENTIAL();
int /*<<< orphan*/ write_LATLON();
int /*<<< orphan*/ write_MODEL_LEVEL();
int /*<<< orphan*/ write_PBLH();
int /*<<< orphan*/ write_PRESS();
int /*<<< orphan*/ write_RAIN();
int /*<<< orphan*/ write_RH();
int /*<<< orphan*/ write_TEMP();
int /*<<< orphan*/ write_TEMP2M();
int /*<<< orphan*/ write_TOPO();
int /*<<< orphan*/ write_WIND();
int /*<<< orphan*/ write_WIND10M();
int /*<<< orphan*/ write_ip_levels();
int main(int argc, char *argv[]) {
  if (argc != 4 && argc != 5) {
    fprintf(stderr, "USAGE : ./wrfpp {DOMAIN} {RUN} {FRAME} [{LASTFRAME}]\n");
  }
  fprintf(stdout, "== Opening input files ==\n");
  wrfout_open(argc, argv);
  fprintf(stdout, "== Loading data ==\n");
  load_LATLON();
  load_MODEL_LEVEL();
  load_TOPO();
  load_PBLH();
  load_PRESS();
  load_GEOPOTENTIAL();
  load_TEMP();
  load_TEMP2M();
  load_RAIN();
  load_RH();
  load_WIND();
  load_WIND10M();
  load_CLOUD();
  fprintf(stdout, "== Opening output file ==\n");
  ncout_open();
  fprintf(stdout, "== Setting metadata ==\n");
  set_meta_LATLON();
  set_meta_LAMBERT();
  set_meta_MODEL_LEVEL();
  set_meta_ip_levels();
  set_meta_TOPO();
  set_meta_PBLH();
  set_meta_PRESS();
  set_meta_GEOPOTENTIAL();
  set_meta_TEMP();
  set_meta_TEMP2M();
  set_meta_RAIN();
  set_meta_RH();
  set_meta_WIND();
  set_meta_WIND10M();
  set_meta_CLOUD();
  ncout_enddef();
  fprintf(stdout, "== Writing data ==\n");
  write_LATLON();
  write_MODEL_LEVEL();
  write_ip_levels();
  write_TOPO();
  write_PBLH();
  write_PRESS();
  write_GEOPOTENTIAL();
  write_TEMP();
  write_TEMP2M();
  write_RAIN();
  write_RH();
  write_WIND();
  write_WIND10M();
  write_CLOUD();
  fprintf(stdout, "== Releasing memory ==\n");
  free_LATLON();
  free_MODEL_LEVEL();
  free_TOPO();
  free_PBLH();
  free_PRESS();
  free_GEOPOTENTIAL();
  free_TEMP();
  free_TEMP2M();
  free_RAIN();
  free_RH();
  free_WIND();
  free_WIND10M();
  free_CLOUD();
  fprintf(stdout, "== Closing files ==\n");
  ncout_close();
  wrfout_close();
  fprintf(stdout, "== WRF-PP SUCCESS COMPLETE ==\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     250f <main+0x3f>
cmpl   $0x5,-0x8(%rbp)
je     250f <main+0x3f>
mov    0x2adf(%rip),%rax
mov    (%rax),%edi
lea    0xaf6(%rip),%rsi
call   21f0 <fprintf@plt>
mov    0x2ac2(%rip),%rax
mov    (%rax),%edi
lea    0xb17(%rip),%rsi
call   21f0 <fprintf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   20e0 <wrfout_open@plt>
mov    0x2aa1(%rip),%rax
mov    (%rax),%edi
lea    0xb11(%rip),%rsi
call   21f0 <fprintf@plt>
mov    $0x0,%al
call   23e0 <load_LATLON@plt>
mov    $0x0,%al
call   21c0 <load_MODEL_LEVEL@plt>
mov    $0x0,%al
call   2260 <load_TOPO@plt>
mov    $0x0,%al
call   2090 <load_PBLH@plt>
mov    $0x0,%al
call   22b0 <load_PRESS@plt>
mov    $0x0,%al
call   2170 <load_GEOPOTENTIAL@plt>
mov    $0x0,%al
call   21d0 <load_TEMP@plt>
mov    $0x0,%al
call   23d0 <load_TEMP2M@plt>
mov    $0x0,%al
call   2140 <load_RAIN@plt>
mov    $0x0,%al
call   23c0 <load_RH@plt>
mov    $0x0,%al
call   2050 <load_WIND@plt>
mov    $0x0,%al
call   21b0 <load_WIND10M@plt>
mov    $0x0,%al
call   20a0 <load_CLOUD@plt>
mov    0x2a31(%rip),%rax
mov    (%rax),%edi
lea    0xab5(%rip),%rsi
call   21f0 <fprintf@plt>
mov    $0x0,%al
call   22e0 <ncout_open@plt>
mov    0x2a15(%rip),%rax
mov    (%rax),%edi
lea    0xab4(%rip),%rsi
call   21f0 <fprintf@plt>
mov    $0x0,%al
call   2340 <set_meta_LATLON@plt>
mov    $0x0,%al
call   21a0 <set_meta_LAMBERT@plt>
mov    $0x0,%al
call   2110 <set_meta_MODEL_LEVEL@plt>
mov    $0x0,%al
call   22f0 <set_meta_ip_levels@plt>
mov    $0x0,%al
call   2380 <set_meta_TOPO@plt>
mov    $0x0,%al
call   2100 <set_meta_PBLH@plt>
mov    $0x0,%al
call   2180 <set_meta_PRESS@plt>
mov    $0x0,%al
call   2250 <set_meta_GEOPOTENTIAL@plt>
mov    $0x0,%al
call   20d0 <set_meta_TEMP@plt>
mov    $0x0,%al
call   2120 <set_meta_TEMP2M@plt>
mov    $0x0,%al
call   2080 <set_meta_RAIN@plt>
mov    $0x0,%al
call   2330 <set_meta_RH@plt>
mov    $0x0,%al
call   2150 <set_meta_WIND@plt>
mov    $0x0,%al
call   23b0 <set_meta_WIND10M@plt>
mov    $0x0,%al
call   2160 <set_meta_CLOUD@plt>
mov    $0x0,%al
call   23a0 <ncout_enddef@plt>
mov    0x2990(%rip),%rax
mov    (%rax),%edi
lea    0xa47(%rip),%rsi
call   21f0 <fprintf@plt>
mov    $0x0,%al
call   2130 <write_LATLON@plt>
mov    $0x0,%al
call   2270 <write_MODEL_LEVEL@plt>
mov    $0x0,%al
call   20f0 <write_ip_levels@plt>
mov    $0x0,%al
call   2200 <write_TOPO@plt>
mov    $0x0,%al
call   22d0 <write_PBLH@plt>
mov    $0x0,%al
call   2040 <write_PRESS@plt>
mov    $0x0,%al
call   2240 <write_GEOPOTENTIAL@plt>
mov    $0x0,%al
call   2290 <write_TEMP@plt>
mov    $0x0,%al
call   2390 <write_TEMP2M@plt>
mov    $0x0,%al
call   2310 <write_RAIN@plt>
mov    $0x0,%al
call   2300 <write_RH@plt>
mov    $0x0,%al
call   22c0 <write_WIND@plt>
mov    $0x0,%al
call   2280 <write_WIND10M@plt>
mov    $0x0,%al
call   2350 <write_CLOUD@plt>
mov    0x2919(%rip),%rax
mov    (%rax),%edi
lea    0x9e4(%rip),%rsi
call   21f0 <fprintf@plt>
mov    $0x0,%al
call   20b0 <free_LATLON@plt>
mov    $0x0,%al
call   23f0 <free_MODEL_LEVEL@plt>
mov    $0x0,%al
call   2060 <free_TOPO@plt>
mov    $0x0,%al
call   2190 <free_PBLH@plt>
mov    $0x0,%al
call   20c0 <free_PRESS@plt>
mov    $0x0,%al
call   2070 <free_GEOPOTENTIAL@plt>
mov    $0x0,%al
call   2030 <free_TEMP@plt>
mov    $0x0,%al
call   2230 <free_TEMP2M@plt>
mov    $0x0,%al
call   2320 <free_RAIN@plt>
mov    $0x0,%al
call   22a0 <free_RH@plt>
mov    $0x0,%al
call   2220 <free_WIND@plt>
mov    $0x0,%al
call   2210 <free_WIND10M@plt>
mov    $0x0,%al
call   2370 <free_CLOUD@plt>
mov    0x28a9(%rip),%rax
mov    (%rax),%edi
lea    0x98c(%rip),%rsi
call   21f0 <fprintf@plt>
mov    $0x0,%al
call   2360 <ncout_close@plt>
mov    $0x0,%al
call   21e0 <wrfout_close@plt>
mov    0x2886(%rip),%rax
mov    (%rax),%edi
lea    0x97e(%rip),%rsi
call   21f0 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %edi,%eax
and    $0xfffffffe,%eax
cmp    $0x4,%eax
je     24f8 <main+0x28>
mov    0x2af6(%rip),%rax
mov    (%rax),%edi
lea    0xb0d(%rip),%rsi
call   21f0 <fprintf@plt>
mov    0x2ad9(%rip),%r14
mov    (%r14),%edi
lea    0xb2d(%rip),%rsi
call   21f0 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   20e0 <wrfout_open@plt>
mov    (%r14),%edi
lea    0xb2f(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
call   23e0 <load_LATLON@plt>
xor    %eax,%eax
call   21c0 <load_MODEL_LEVEL@plt>
xor    %eax,%eax
call   2260 <load_TOPO@plt>
xor    %eax,%eax
call   2090 <load_PBLH@plt>
xor    %eax,%eax
call   22b0 <load_PRESS@plt>
xor    %eax,%eax
call   2170 <load_GEOPOTENTIAL@plt>
xor    %eax,%eax
call   21d0 <load_TEMP@plt>
xor    %eax,%eax
call   23d0 <load_TEMP2M@plt>
xor    %eax,%eax
call   2140 <load_RAIN@plt>
xor    %eax,%eax
call   23c0 <load_RH@plt>
xor    %eax,%eax
call   2050 <load_WIND@plt>
xor    %eax,%eax
call   21b0 <load_WIND10M@plt>
xor    %eax,%eax
call   20a0 <load_CLOUD@plt>
mov    (%r14),%edi
lea    0xad9(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
call   22e0 <ncout_open@plt>
mov    (%r14),%edi
lea    0xade(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
call   2340 <set_meta_LATLON@plt>
xor    %eax,%eax
call   21a0 <set_meta_LAMBERT@plt>
xor    %eax,%eax
call   2110 <set_meta_MODEL_LEVEL@plt>
xor    %eax,%eax
call   22f0 <set_meta_ip_levels@plt>
xor    %eax,%eax
call   2380 <set_meta_TOPO@plt>
xor    %eax,%eax
call   2100 <set_meta_PBLH@plt>
xor    %eax,%eax
call   2180 <set_meta_PRESS@plt>
xor    %eax,%eax
call   2250 <set_meta_GEOPOTENTIAL@plt>
xor    %eax,%eax
call   20d0 <set_meta_TEMP@plt>
xor    %eax,%eax
call   2120 <set_meta_TEMP2M@plt>
xor    %eax,%eax
call   2080 <set_meta_RAIN@plt>
xor    %eax,%eax
call   2330 <set_meta_RH@plt>
xor    %eax,%eax
call   2150 <set_meta_WIND@plt>
xor    %eax,%eax
call   23b0 <set_meta_WIND10M@plt>
xor    %eax,%eax
call   2160 <set_meta_CLOUD@plt>
xor    %eax,%eax
call   23a0 <ncout_enddef@plt>
mov    (%r14),%edi
lea    0xa77(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
call   2130 <write_LATLON@plt>
xor    %eax,%eax
call   2270 <write_MODEL_LEVEL@plt>
xor    %eax,%eax
call   20f0 <write_ip_levels@plt>
xor    %eax,%eax
call   2200 <write_TOPO@plt>
xor    %eax,%eax
call   22d0 <write_PBLH@plt>
xor    %eax,%eax
call   2040 <write_PRESS@plt>
xor    %eax,%eax
call   2240 <write_GEOPOTENTIAL@plt>
xor    %eax,%eax
call   2290 <write_TEMP@plt>
xor    %eax,%eax
call   2390 <write_TEMP2M@plt>
xor    %eax,%eax
call   2310 <write_RAIN@plt>
xor    %eax,%eax
call   2300 <write_RH@plt>
xor    %eax,%eax
call   22c0 <write_WIND@plt>
xor    %eax,%eax
call   2280 <write_WIND10M@plt>
xor    %eax,%eax
call   2350 <write_CLOUD@plt>
mov    (%r14),%edi
lea    0xa1a(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
call   20b0 <free_LATLON@plt>
xor    %eax,%eax
call   23f0 <free_MODEL_LEVEL@plt>
xor    %eax,%eax
call   2060 <free_TOPO@plt>
xor    %eax,%eax
call   2190 <free_PBLH@plt>
xor    %eax,%eax
call   20c0 <free_PRESS@plt>
xor    %eax,%eax
call   2070 <free_GEOPOTENTIAL@plt>
xor    %eax,%eax
call   2030 <free_TEMP@plt>
xor    %eax,%eax
call   2230 <free_TEMP2M@plt>
xor    %eax,%eax
call   2320 <free_RAIN@plt>
xor    %eax,%eax
call   22a0 <free_RH@plt>
xor    %eax,%eax
call   2220 <free_WIND@plt>
xor    %eax,%eax
call   2210 <free_WIND10M@plt>
xor    %eax,%eax
call   2370 <free_CLOUD@plt>
mov    (%r14),%edi
lea    0x9c8(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
call   2360 <ncout_close@plt>
xor    %eax,%eax
call   21e0 <wrfout_close@plt>
mov    (%r14),%edi
lea    0x9c0(%rip),%rsi
call   21f0 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [54 x i8] c"USAGE : ./wrfpp {DOMAIN} {RUN} {FRAME} [{LASTFRAME}]\0A\00"
@stdout = global i32 0
@.str.1 = [27 x i8] c"== Opening input files ==\0A\00"
@.str.2 = [20 x i8] c"== Loading data ==\0A\00"
@.str.3 = [27 x i8] c"== Opening output file ==\0A\00"
@.str.4 = [24 x i8] c"== Setting metadata ==\0A\00"
@.str.5 = [20 x i8] c"== Writing data ==\0A\00"
@.str.6 = [24 x i8] c"== Releasing memory ==\0A\00"
@.str.7 = [21 x i8] c"== Closing files ==\0A\00"
@.str.8 = [31 x i8] c"== WRF-PP SUCCESS COMPLETE ==\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 4
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 5
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %11, %8, %2
%15 = load i32, i32* @stdout
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%17 = load i32, i32* %4
%18 = load i8**, i8*** %5
%19 = call i32 @wrfout_open(i32 %17, i8** %18)
%20 = load i32, i32* @stdout
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 (...) @load_LATLON()
%23 = call i32 (...) @load_MODEL_LEVEL()
%24 = call i32 (...) @load_TOPO()
%25 = call i32 (...) @load_PBLH()
%26 = call i32 (...) @load_PRESS()
%27 = call i32 (...) @load_GEOPOTENTIAL()
%28 = call i32 (...) @load_TEMP()
%29 = call i32 (...) @load_TEMP2M()
%30 = call i32 (...) @load_RAIN()
%31 = call i32 (...) @load_RH()
%32 = call i32 (...) @load_WIND()
%33 = call i32 (...) @load_WIND10M()
%34 = call i32 (...) @load_CLOUD()
%35 = load i32, i32* @stdout
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 (...) @ncout_open()
%38 = load i32, i32* @stdout
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 (...) @set_meta_LATLON()
%41 = call i32 (...) @set_meta_LAMBERT()
%42 = call i32 (...) @set_meta_MODEL_LEVEL()
%43 = call i32 (...) @set_meta_ip_levels()
%44 = call i32 (...) @set_meta_TOPO()
%45 = call i32 (...) @set_meta_PBLH()
%46 = call i32 (...) @set_meta_PRESS()
%47 = call i32 (...) @set_meta_GEOPOTENTIAL()
%48 = call i32 (...) @set_meta_TEMP()
%49 = call i32 (...) @set_meta_TEMP2M()
%50 = call i32 (...) @set_meta_RAIN()
%51 = call i32 (...) @set_meta_RH()
%52 = call i32 (...) @set_meta_WIND()
%53 = call i32 (...) @set_meta_WIND10M()
%54 = call i32 (...) @set_meta_CLOUD()
%55 = call i32 (...) @ncout_enddef()
%56 = load i32, i32* @stdout
%57 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%58 = call i32 (...) @write_LATLON()
%59 = call i32 (...) @write_MODEL_LEVEL()
%60 = call i32 (...) @write_ip_levels()
%61 = call i32 (...) @write_TOPO()
%62 = call i32 (...) @write_PBLH()
%63 = call i32 (...) @write_PRESS()
%64 = call i32 (...) @write_GEOPOTENTIAL()
%65 = call i32 (...) @write_TEMP()
%66 = call i32 (...) @write_TEMP2M()
%67 = call i32 (...) @write_RAIN()
%68 = call i32 (...) @write_RH()
%69 = call i32 (...) @write_WIND()
%70 = call i32 (...) @write_WIND10M()
%71 = call i32 (...) @write_CLOUD()
%72 = load i32, i32* @stdout
%73 = call i32 @fprintf(i32 %72, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%74 = call i32 (...) @free_LATLON()
%75 = call i32 (...) @free_MODEL_LEVEL()
%76 = call i32 (...) @free_TOPO()
%77 = call i32 (...) @free_PBLH()
%78 = call i32 (...) @free_PRESS()
%79 = call i32 (...) @free_GEOPOTENTIAL()
%80 = call i32 (...) @free_TEMP()
%81 = call i32 (...) @free_TEMP2M()
%82 = call i32 (...) @free_RAIN()
%83 = call i32 (...) @free_RH()
%84 = call i32 (...) @free_WIND()
%85 = call i32 (...) @free_WIND10M()
%86 = call i32 (...) @free_CLOUD()
%87 = load i32, i32* @stdout
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%89 = call i32 (...) @ncout_close()
%90 = call i32 (...) @wrfout_close()
%91 = load i32, i32* @stdout
%92 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%93 = load i32, i32* %3
ret i32 %93
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [54 x i8] c"USAGE : ./wrfpp {DOMAIN} {RUN} {FRAME} [{LASTFRAME}]\0A\00"
@stdout = global i32 0
@.str.1 = [27 x i8] c"== Opening input files ==\0A\00"
@.str.2 = [20 x i8] c"== Loading data ==\0A\00"
@.str.3 = [27 x i8] c"== Opening output file ==\0A\00"
@.str.4 = [24 x i8] c"== Setting metadata ==\0A\00"
@.str.5 = [20 x i8] c"== Writing data ==\0A\00"
@.str.6 = [24 x i8] c"== Releasing memory ==\0A\00"
@.str.7 = [21 x i8] c"== Closing files ==\0A\00"
@.str.8 = [31 x i8] c"== WRF-PP SUCCESS COMPLETE ==\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = and i32 %0, -2
%4 = icmp eq i32 %3, 4
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %5, %2
%9 = load i32, i32* @stdout
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @wrfout_open(i32 %0, i8** %1)
%12 = load i32, i32* @stdout
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%14 = tail call i32 (...) @load_LATLON()
%15 = tail call i32 (...) @load_MODEL_LEVEL()
%16 = tail call i32 (...) @load_TOPO()
%17 = tail call i32 (...) @load_PBLH()
%18 = tail call i32 (...) @load_PRESS()
%19 = tail call i32 (...) @load_GEOPOTENTIAL()
%20 = tail call i32 (...) @load_TEMP()
%21 = tail call i32 (...) @load_TEMP2M()
%22 = tail call i32 (...) @load_RAIN()
%23 = tail call i32 (...) @load_RH()
%24 = tail call i32 (...) @load_WIND()
%25 = tail call i32 (...) @load_WIND10M()
%26 = tail call i32 (...) @load_CLOUD()
%27 = load i32, i32* @stdout
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%29 = tail call i32 (...) @ncout_open()
%30 = load i32, i32* @stdout
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%32 = tail call i32 (...) @set_meta_LATLON()
%33 = tail call i32 (...) @set_meta_LAMBERT()
%34 = tail call i32 (...) @set_meta_MODEL_LEVEL()
%35 = tail call i32 (...) @set_meta_ip_levels()
%36 = tail call i32 (...) @set_meta_TOPO()
%37 = tail call i32 (...) @set_meta_PBLH()
%38 = tail call i32 (...) @set_meta_PRESS()
%39 = tail call i32 (...) @set_meta_GEOPOTENTIAL()
%40 = tail call i32 (...) @set_meta_TEMP()
%41 = tail call i32 (...) @set_meta_TEMP2M()
%42 = tail call i32 (...) @set_meta_RAIN()
%43 = tail call i32 (...) @set_meta_RH()
%44 = tail call i32 (...) @set_meta_WIND()
%45 = tail call i32 (...) @set_meta_WIND10M()
%46 = tail call i32 (...) @set_meta_CLOUD()
%47 = tail call i32 (...) @ncout_enddef()
%48 = load i32, i32* @stdout
%49 = tail call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%50 = tail call i32 (...) @write_LATLON()
%51 = tail call i32 (...) @write_MODEL_LEVEL()
%52 = tail call i32 (...) @write_ip_levels()
%53 = tail call i32 (...) @write_TOPO()
%54 = tail call i32 (...) @write_PBLH()
%55 = tail call i32 (...) @write_PRESS()
%56 = tail call i32 (...) @write_GEOPOTENTIAL()
%57 = tail call i32 (...) @write_TEMP()
%58 = tail call i32 (...) @write_TEMP2M()
%59 = tail call i32 (...) @write_RAIN()
%60 = tail call i32 (...) @write_RH()
%61 = tail call i32 (...) @write_WIND()
%62 = tail call i32 (...) @write_WIND10M()
%63 = tail call i32 (...) @write_CLOUD()
%64 = load i32, i32* @stdout
%65 = tail call i32 @fprintf(i32 %64, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%66 = tail call i32 (...) @free_LATLON()
%67 = tail call i32 (...) @free_MODEL_LEVEL()
%68 = tail call i32 (...) @free_TOPO()
%69 = tail call i32 (...) @free_PBLH()
%70 = tail call i32 (...) @free_PRESS()
%71 = tail call i32 (...) @free_GEOPOTENTIAL()
%72 = tail call i32 (...) @free_TEMP()
%73 = tail call i32 (...) @free_TEMP2M()
%74 = tail call i32 (...) @free_RAIN()
%75 = tail call i32 (...) @free_RH()
%76 = tail call i32 (...) @free_WIND()
%77 = tail call i32 (...) @free_WIND10M()
%78 = tail call i32 (...) @free_CLOUD()
%79 = load i32, i32* @stdout
%80 = tail call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%81 = tail call i32 (...) @ncout_close()
%82 = tail call i32 (...) @wrfout_close()
%83 = load i32, i32* @stdout
%84 = tail call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}