#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*/ fail_test(int);
scalar_t__ run(char *);
void test_primitive_exprs() {
  do {
    if (run("test/progs/"
            "primitive_expr_basic.b"))
      fail_test(145);
    ;
  } while (0);
  do {
    if (run("test/progs/"
            "primitive_expr_ops.b"))
      fail_test(146);
    ;
  } while (0);
  do {
    if (run("test/progs/"
            "primitive_expr_conv.b"))
      fail_test(147);
    ;
  } while (0);
  do {
    if (run("test/progs/"
            "primitive_expr_time.b"))
      fail_test(148);
    ;
  } while (0);
  do {
    if (run("test/progs/"
            "primitive_expr_str_index.b"))
      fail_test(149);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_not_string_err.b"))
      fail_test(150);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_not_real_err.b"))
      fail_test(151);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_eq_err.b"))
      fail_test(152);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_neq_err.b"))
      fail_test(153);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_and_err.b"))
      fail_test(154);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_or_err.b"))
      fail_test(155);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_gt_err.b"))
      fail_test(156);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_lt_err.b"))
      fail_test(157);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_sum_err.b"))
      fail_test(158);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_sub_err.b"))
      fail_test(159);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_mul_err.b"))
      fail_test(160);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_div_err.b"))
      fail_test(161);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_unknown_func_err.b"))
      fail_test(162);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_conv_str_to_int_err.b"))
      fail_test(163);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_conv_str_to_real_err.b"))
      fail_test(164);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_conv_str_to_long_err.b"))
      fail_test(165);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_conv_param_err.b"))
      fail_test(166);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_time_int_err.b"))
      fail_test(167);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_str_index_param_missing_err.b"))
      fail_test(168);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_str_index_param_one_type_err.b"))
      fail_test(169);
    ;
  } while (0);
  do {
    if (!run("test/progs/"
             "primitive_expr_str_index_param_two_type_err.b"))
      fail_test(170);
    ;
  } while (0);
}


x86 assembly (clang, -O0):
<test_primitive_exprs>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <test_primitive_exprs+0x9>
lea    0xed0(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
je     1149 <test_primitive_exprs+0x29>
mov    $0x91,%edi
call   1030 <fail_test@plt>
jmp    114e <test_primitive_exprs+0x2e>
jmp    1153 <test_primitive_exprs+0x33>
lea    0xec8(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
je     1173 <test_primitive_exprs+0x53>
mov    $0x92,%edi
call   1030 <fail_test@plt>
jmp    1178 <test_primitive_exprs+0x58>
jmp    117d <test_primitive_exprs+0x5d>
lea    0xebe(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
je     119d <test_primitive_exprs+0x7d>
mov    $0x93,%edi
call   1030 <fail_test@plt>
jmp    11a2 <test_primitive_exprs+0x82>
jmp    11a7 <test_primitive_exprs+0x87>
lea    0xeb5(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
je     11c7 <test_primitive_exprs+0xa7>
mov    $0x94,%edi
call   1030 <fail_test@plt>
jmp    11cc <test_primitive_exprs+0xac>
jmp    11d1 <test_primitive_exprs+0xb1>
lea    0xeac(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
je     11f1 <test_primitive_exprs+0xd1>
mov    $0x95,%edi
call   1030 <fail_test@plt>
jmp    11f6 <test_primitive_exprs+0xd6>
jmp    11fb <test_primitive_exprs+0xdb>
lea    0xea8(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    121b <test_primitive_exprs+0xfb>
mov    $0x96,%edi
call   1030 <fail_test@plt>
jmp    1220 <test_primitive_exprs+0x100>
jmp    1225 <test_primitive_exprs+0x105>
lea    0xea9(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1245 <test_primitive_exprs+0x125>
mov    $0x97,%edi
call   1030 <fail_test@plt>
jmp    124a <test_primitive_exprs+0x12a>
jmp    124f <test_primitive_exprs+0x12f>
lea    0xea8(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    126f <test_primitive_exprs+0x14f>
mov    $0x98,%edi
call   1030 <fail_test@plt>
jmp    1274 <test_primitive_exprs+0x154>
jmp    1279 <test_primitive_exprs+0x159>
lea    0xea1(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1299 <test_primitive_exprs+0x179>
mov    $0x99,%edi
call   1030 <fail_test@plt>
jmp    129e <test_primitive_exprs+0x17e>
jmp    12a3 <test_primitive_exprs+0x183>
lea    0xe9b(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    12c3 <test_primitive_exprs+0x1a3>
mov    $0x9a,%edi
call   1030 <fail_test@plt>
jmp    12c8 <test_primitive_exprs+0x1a8>
jmp    12cd <test_primitive_exprs+0x1ad>
lea    0xe95(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    12ed <test_primitive_exprs+0x1cd>
mov    $0x9b,%edi
call   1030 <fail_test@plt>
jmp    12f2 <test_primitive_exprs+0x1d2>
jmp    12f7 <test_primitive_exprs+0x1d7>
lea    0xe8e(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1317 <test_primitive_exprs+0x1f7>
mov    $0x9c,%edi
call   1030 <fail_test@plt>
jmp    131c <test_primitive_exprs+0x1fc>
jmp    1321 <test_primitive_exprs+0x201>
lea    0xe87(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1341 <test_primitive_exprs+0x221>
mov    $0x9d,%edi
call   1030 <fail_test@plt>
jmp    1346 <test_primitive_exprs+0x226>
jmp    134b <test_primitive_exprs+0x22b>
lea    0xe80(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    136b <test_primitive_exprs+0x24b>
mov    $0x9e,%edi
call   1030 <fail_test@plt>
jmp    1370 <test_primitive_exprs+0x250>
jmp    1375 <test_primitive_exprs+0x255>
lea    0xe7a(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1395 <test_primitive_exprs+0x275>
mov    $0x9f,%edi
call   1030 <fail_test@plt>
jmp    139a <test_primitive_exprs+0x27a>
jmp    139f <test_primitive_exprs+0x27f>
lea    0xe74(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    13bf <test_primitive_exprs+0x29f>
mov    $0xa0,%edi
call   1030 <fail_test@plt>
jmp    13c4 <test_primitive_exprs+0x2a4>
jmp    13c9 <test_primitive_exprs+0x2a9>
lea    0xe6e(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    13e9 <test_primitive_exprs+0x2c9>
mov    $0xa1,%edi
call   1030 <fail_test@plt>
jmp    13ee <test_primitive_exprs+0x2ce>
jmp    13f3 <test_primitive_exprs+0x2d3>
lea    0xe68(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1413 <test_primitive_exprs+0x2f3>
mov    $0xa2,%edi
call   1030 <fail_test@plt>
jmp    1418 <test_primitive_exprs+0x2f8>
jmp    141d <test_primitive_exprs+0x2fd>
lea    0xe6b(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    143d <test_primitive_exprs+0x31d>
mov    $0xa3,%edi
call   1030 <fail_test@plt>
jmp    1442 <test_primitive_exprs+0x322>
jmp    1447 <test_primitive_exprs+0x327>
lea    0xe71(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1467 <test_primitive_exprs+0x347>
mov    $0xa4,%edi
call   1030 <fail_test@plt>
jmp    146c <test_primitive_exprs+0x34c>
jmp    1471 <test_primitive_exprs+0x351>
lea    0xe78(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1491 <test_primitive_exprs+0x371>
mov    $0xa5,%edi
call   1030 <fail_test@plt>
jmp    1496 <test_primitive_exprs+0x376>
jmp    149b <test_primitive_exprs+0x37b>
lea    0xe7f(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    14bb <test_primitive_exprs+0x39b>
mov    $0xa6,%edi
call   1030 <fail_test@plt>
jmp    14c0 <test_primitive_exprs+0x3a0>
jmp    14c5 <test_primitive_exprs+0x3a5>
lea    0xe80(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    14e5 <test_primitive_exprs+0x3c5>
mov    $0xa7,%edi
call   1030 <fail_test@plt>
jmp    14ea <test_primitive_exprs+0x3ca>
jmp    14ef <test_primitive_exprs+0x3cf>
lea    0xe7f(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    150f <test_primitive_exprs+0x3ef>
mov    $0xa8,%edi
call   1030 <fail_test@plt>
jmp    1514 <test_primitive_exprs+0x3f4>
jmp    1519 <test_primitive_exprs+0x3f9>
lea    0xe8d(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1539 <test_primitive_exprs+0x419>
mov    $0xa9,%edi
call   1030 <fail_test@plt>
jmp    153e <test_primitive_exprs+0x41e>
jmp    1543 <test_primitive_exprs+0x423>
lea    0xe9c(%rip),%rdi
call   1040 <run@plt>
cmp    $0x0,%rax
jne    1563 <test_primitive_exprs+0x443>
mov    $0xaa,%edi
call   1030 <fail_test@plt>
jmp    1568 <test_primitive_exprs+0x448>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_primitive_exprs>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
je     113c <test_primitive_exprs+0x1c>
mov    $0x91,%edi
call   1030 <fail_test@plt>
lea    0xedf(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
je     1157 <test_primitive_exprs+0x37>
mov    $0x92,%edi
call   1030 <fail_test@plt>
lea    0xee4(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
je     1172 <test_primitive_exprs+0x52>
mov    $0x93,%edi
call   1030 <fail_test@plt>
lea    0xeea(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
je     118d <test_primitive_exprs+0x6d>
mov    $0x94,%edi
call   1030 <fail_test@plt>
lea    0xef0(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
je     11a8 <test_primitive_exprs+0x88>
mov    $0x95,%edi
call   1030 <fail_test@plt>
lea    0xefb(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    11c3 <test_primitive_exprs+0xa3>
mov    $0x96,%edi
call   1030 <fail_test@plt>
lea    0xf0b(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    11de <test_primitive_exprs+0xbe>
mov    $0x97,%edi
call   1030 <fail_test@plt>
lea    0xf19(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    11f9 <test_primitive_exprs+0xd9>
mov    $0x98,%edi
call   1030 <fail_test@plt>
lea    0xf21(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1214 <test_primitive_exprs+0xf4>
mov    $0x99,%edi
call   1030 <fail_test@plt>
lea    0xf2a(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    122f <test_primitive_exprs+0x10f>
mov    $0x9a,%edi
call   1030 <fail_test@plt>
lea    0xf33(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    124a <test_primitive_exprs+0x12a>
mov    $0x9b,%edi
call   1030 <fail_test@plt>
lea    0xf3b(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1265 <test_primitive_exprs+0x145>
mov    $0x9c,%edi
call   1030 <fail_test@plt>
lea    0xf43(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1280 <test_primitive_exprs+0x160>
mov    $0x9d,%edi
call   1030 <fail_test@plt>
lea    0xf4b(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    129b <test_primitive_exprs+0x17b>
mov    $0x9e,%edi
call   1030 <fail_test@plt>
lea    0xf54(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    12b6 <test_primitive_exprs+0x196>
mov    $0x9f,%edi
call   1030 <fail_test@plt>
lea    0xf5d(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    12d1 <test_primitive_exprs+0x1b1>
mov    $0xa0,%edi
call   1030 <fail_test@plt>
lea    0xf66(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    12ec <test_primitive_exprs+0x1cc>
mov    $0xa1,%edi
call   1030 <fail_test@plt>
lea    0xf6f(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1307 <test_primitive_exprs+0x1e7>
mov    $0xa2,%edi
call   1030 <fail_test@plt>
lea    0xf81(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1322 <test_primitive_exprs+0x202>
mov    $0xa3,%edi
call   1030 <fail_test@plt>
lea    0xf96(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    133d <test_primitive_exprs+0x21d>
mov    $0xa4,%edi
call   1030 <fail_test@plt>
lea    0xfac(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1358 <test_primitive_exprs+0x238>
mov    $0xa5,%edi
call   1030 <fail_test@plt>
lea    0xfc2(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    1373 <test_primitive_exprs+0x253>
mov    $0xa6,%edi
call   1030 <fail_test@plt>
lea    0xfd2(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    138e <test_primitive_exprs+0x26e>
mov    $0xa7,%edi
call   1030 <fail_test@plt>
lea    0xfe0(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    13a9 <test_primitive_exprs+0x289>
mov    $0xa8,%edi
call   1030 <fail_test@plt>
lea    0xffd(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
jne    13c4 <test_primitive_exprs+0x2a4>
mov    $0xa9,%edi
call   1030 <fail_test@plt>
lea    0x101b(%rip),%rdi
call   1040 <run@plt>
test   %rax,%rax
je     13d7 <test_primitive_exprs+0x2b7>
pop    %rax
ret
mov    $0xaa,%edi
pop    %rax
jmp    1030 <fail_test@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"test/progs/primitive_expr_basic.b\00"
@.str.1 = [32 x i8] c"test/progs/primitive_expr_ops.b\00"
@.str.2 = [33 x i8] c"test/progs/primitive_expr_conv.b\00"
@.str.3 = [33 x i8] c"test/progs/primitive_expr_time.b\00"
@.str.4 = [38 x i8] c"test/progs/primitive_expr_str_index.b\00"
@.str.5 = [43 x i8] c"test/progs/primitive_expr_not_string_err.b\00"
@.str.6 = [41 x i8] c"test/progs/primitive_expr_not_real_err.b\00"
@.str.7 = [35 x i8] c"test/progs/primitive_expr_eq_err.b\00"
@.str.8 = [36 x i8] c"test/progs/primitive_expr_neq_err.b\00"
@.str.9 = [36 x i8] c"test/progs/primitive_expr_and_err.b\00"
@.str.10 = [35 x i8] c"test/progs/primitive_expr_or_err.b\00"
@.str.11 = [35 x i8] c"test/progs/primitive_expr_gt_err.b\00"
@.str.12 = [35 x i8] c"test/progs/primitive_expr_lt_err.b\00"
@.str.13 = [36 x i8] c"test/progs/primitive_expr_sum_err.b\00"
@.str.14 = [36 x i8] c"test/progs/primitive_expr_sub_err.b\00"
@.str.15 = [36 x i8] c"test/progs/primitive_expr_mul_err.b\00"
@.str.16 = [36 x i8] c"test/progs/primitive_expr_div_err.b\00"
@.str.17 = [45 x i8] c"test/progs/primitive_expr_unknown_func_err.b\00"
@.str.18 = [48 x i8] c"test/progs/primitive_expr_conv_str_to_int_err.b\00"
@.str.19 = [49 x i8] c"test/progs/primitive_expr_conv_str_to_real_err.b\00"
@.str.20 = [49 x i8] c"test/progs/primitive_expr_conv_str_to_long_err.b\00"
@.str.21 = [43 x i8] c"test/progs/primitive_expr_conv_param_err.b\00"
@.str.22 = [41 x i8] c"test/progs/primitive_expr_time_int_err.b\00"
@.str.23 = [56 x i8] c"test/progs/primitive_expr_str_index_param_missing_err.b\00"
@.str.24 = [57 x i8] c"test/progs/primitive_expr_str_index_param_one_type_err.b\00"
@.str.25 = [57 x i8] c"test/progs/primitive_expr_str_index_param_two_type_err.b\00"
define void @test_primitive_exprs() {
br label %1
1: ; preds = %0
%2 = call i64 @run(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = call i32 @fail_test(i32 145)
br label %6
6: ; preds = %4, %1
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
%9 = call i64 @run(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @fail_test(i32 146)
br label %13
13: ; preds = %11, %8
br label %14
14: ; preds = %13
br label %15
15: ; preds = %14
%16 = call i64 @run(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @fail_test(i32 147)
br label %20
20: ; preds = %18, %15
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = call i64 @run(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @fail_test(i32 148)
br label %27
27: ; preds = %25, %22
br label %28
28: ; preds = %27
br label %29
29: ; preds = %28
%30 = call i64 @run(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @fail_test(i32 149)
br label %34
34: ; preds = %32, %29
br label %35
35: ; preds = %34
br label %36
36: ; preds = %35
%37 = call i64 @run(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%38 = icmp ne i64 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = call i32 @fail_test(i32 150)
br label %41
41: ; preds = %39, %36
br label %42
42: ; preds = %41
br label %43
43: ; preds = %42
%44 = call i64 @run(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%45 = icmp ne i64 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = call i32 @fail_test(i32 151)
br label %48
48: ; preds = %46, %43
br label %49
49: ; preds = %48
br label %50
50: ; preds = %49
%51 = call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp ne i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = call i32 @fail_test(i32 152)
br label %55
55: ; preds = %53, %50
br label %56
56: ; preds = %55
br label %57
57: ; preds = %56
%58 = call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%59 = icmp ne i64 %58, 0
br i1 %59, label %62, label %60
60: ; preds = %57
%61 = call i32 @fail_test(i32 153)
br label %62
62: ; preds = %60, %57
br label %63
63: ; preds = %62
br label %64
64: ; preds = %63
%65 = call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
%66 = icmp ne i64 %65, 0
br i1 %66, label %69, label %67
67: ; preds = %64
%68 = call i32 @fail_test(i32 154)
br label %69
69: ; preds = %67, %64
br label %70
70: ; preds = %69
br label %71
71: ; preds = %70
%72 = call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%73 = icmp ne i64 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = call i32 @fail_test(i32 155)
br label %76
76: ; preds = %74, %71
br label %77
77: ; preds = %76
br label %78
78: ; preds = %77
%79 = call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%80 = icmp ne i64 %79, 0
br i1 %80, label %83, label %81
81: ; preds = %78
%82 = call i32 @fail_test(i32 156)
br label %83
83: ; preds = %81, %78
br label %84
84: ; preds = %83
br label %85
85: ; preds = %84
%86 = call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%87 = icmp ne i64 %86, 0
br i1 %87, label %90, label %88
88: ; preds = %85
%89 = call i32 @fail_test(i32 157)
br label %90
90: ; preds = %88, %85
br label %91
91: ; preds = %90
br label %92
92: ; preds = %91
%93 = call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%94 = icmp ne i64 %93, 0
br i1 %94, label %97, label %95
95: ; preds = %92
%96 = call i32 @fail_test(i32 158)
br label %97
97: ; preds = %95, %92
br label %98
98: ; preds = %97
br label %99
99: ; preds = %98
%100 = call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%101 = icmp ne i64 %100, 0
br i1 %101, label %104, label %102
102: ; preds = %99
%103 = call i32 @fail_test(i32 159)
br label %104
104: ; preds = %102, %99
br label %105
105: ; preds = %104
br label %106
106: ; preds = %105
%107 = call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0))
%108 = icmp ne i64 %107, 0
br i1 %108, label %111, label %109
109: ; preds = %106
%110 = call i32 @fail_test(i32 160)
br label %111
111: ; preds = %109, %106
br label %112
112: ; preds = %111
br label %113
113: ; preds = %112
%114 = call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0))
%115 = icmp ne i64 %114, 0
br i1 %115, label %118, label %116
116: ; preds = %113
%117 = call i32 @fail_test(i32 161)
br label %118
118: ; preds = %116, %113
br label %119
119: ; preds = %118
br label %120
120: ; preds = %119
%121 = call i64 @run(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.17, i64 0, i64 0))
%122 = icmp ne i64 %121, 0
br i1 %122, label %125, label %123
123: ; preds = %120
%124 = call i32 @fail_test(i32 162)
br label %125
125: ; preds = %123, %120
br label %126
126: ; preds = %125
br label %127
127: ; preds = %126
%128 = call i64 @run(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0))
%129 = icmp ne i64 %128, 0
br i1 %129, label %132, label %130
130: ; preds = %127
%131 = call i32 @fail_test(i32 163)
br label %132
132: ; preds = %130, %127
br label %133
133: ; preds = %132
br label %134
134: ; preds = %133
%135 = call i64 @run(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.19, i64 0, i64 0))
%136 = icmp ne i64 %135, 0
br i1 %136, label %139, label %137
137: ; preds = %134
%138 = call i32 @fail_test(i32 164)
br label %139
139: ; preds = %137, %134
br label %140
140: ; preds = %139
br label %141
141: ; preds = %140
%142 = call i64 @run(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i64 0, i64 0))
%143 = icmp ne i64 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %141
%145 = call i32 @fail_test(i32 165)
br label %146
146: ; preds = %144, %141
br label %147
147: ; preds = %146
br label %148
148: ; preds = %147
%149 = call i64 @run(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0))
%150 = icmp ne i64 %149, 0
br i1 %150, label %153, label %151
151: ; preds = %148
%152 = call i32 @fail_test(i32 166)
br label %153
153: ; preds = %151, %148
br label %154
154: ; preds = %153
br label %155
155: ; preds = %154
%156 = call i64 @run(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0))
%157 = icmp ne i64 %156, 0
br i1 %157, label %160, label %158
158: ; preds = %155
%159 = call i32 @fail_test(i32 167)
br label %160
160: ; preds = %158, %155
br label %161
161: ; preds = %160
br label %162
162: ; preds = %161
%163 = call i64 @run(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i64 0, i64 0))
%164 = icmp ne i64 %163, 0
br i1 %164, label %167, label %165
165: ; preds = %162
%166 = call i32 @fail_test(i32 168)
br label %167
167: ; preds = %165, %162
br label %168
168: ; preds = %167
br label %169
169: ; preds = %168
%170 = call i64 @run(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.24, i64 0, i64 0))
%171 = icmp ne i64 %170, 0
br i1 %171, label %174, label %172
172: ; preds = %169
%173 = call i32 @fail_test(i32 169)
br label %174
174: ; preds = %172, %169
br label %175
175: ; preds = %174
br label %176
176: ; preds = %175
%177 = call i64 @run(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.25, i64 0, i64 0))
%178 = icmp ne i64 %177, 0
br i1 %178, label %181, label %179
179: ; preds = %176
%180 = call i32 @fail_test(i32 170)
br label %181
181: ; preds = %179, %176
br label %182
182: ; preds = %181
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"test/progs/primitive_expr_basic.b\00"
@.str.1 = [32 x i8] c"test/progs/primitive_expr_ops.b\00"
@.str.2 = [33 x i8] c"test/progs/primitive_expr_conv.b\00"
@.str.3 = [33 x i8] c"test/progs/primitive_expr_time.b\00"
@.str.4 = [38 x i8] c"test/progs/primitive_expr_str_index.b\00"
@.str.5 = [43 x i8] c"test/progs/primitive_expr_not_string_err.b\00"
@.str.6 = [41 x i8] c"test/progs/primitive_expr_not_real_err.b\00"
@.str.7 = [35 x i8] c"test/progs/primitive_expr_eq_err.b\00"
@.str.8 = [36 x i8] c"test/progs/primitive_expr_neq_err.b\00"
@.str.9 = [36 x i8] c"test/progs/primitive_expr_and_err.b\00"
@.str.10 = [35 x i8] c"test/progs/primitive_expr_or_err.b\00"
@.str.11 = [35 x i8] c"test/progs/primitive_expr_gt_err.b\00"
@.str.12 = [35 x i8] c"test/progs/primitive_expr_lt_err.b\00"
@.str.13 = [36 x i8] c"test/progs/primitive_expr_sum_err.b\00"
@.str.14 = [36 x i8] c"test/progs/primitive_expr_sub_err.b\00"
@.str.15 = [36 x i8] c"test/progs/primitive_expr_mul_err.b\00"
@.str.16 = [36 x i8] c"test/progs/primitive_expr_div_err.b\00"
@.str.17 = [45 x i8] c"test/progs/primitive_expr_unknown_func_err.b\00"
@.str.18 = [48 x i8] c"test/progs/primitive_expr_conv_str_to_int_err.b\00"
@.str.19 = [49 x i8] c"test/progs/primitive_expr_conv_str_to_real_err.b\00"
@.str.20 = [49 x i8] c"test/progs/primitive_expr_conv_str_to_long_err.b\00"
@.str.21 = [43 x i8] c"test/progs/primitive_expr_conv_param_err.b\00"
@.str.22 = [41 x i8] c"test/progs/primitive_expr_time_int_err.b\00"
@.str.23 = [56 x i8] c"test/progs/primitive_expr_str_index_param_missing_err.b\00"
@.str.24 = [57 x i8] c"test/progs/primitive_expr_str_index_param_one_type_err.b\00"
@.str.25 = [57 x i8] c"test/progs/primitive_expr_str_index_param_two_type_err.b\00"
define void @test_primitive_exprs() {
%1 = tail call i64 @run(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @fail_test(i32 145)
br label %5
5: ; preds = %3, %0
%6 = tail call i64 @run(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 @fail_test(i32 146)
br label %10
10: ; preds = %8, %5
%11 = tail call i64 @run(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @fail_test(i32 147)
br label %15
15: ; preds = %13, %10
%16 = tail call i64 @run(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 @fail_test(i32 148)
br label %20
20: ; preds = %18, %15
%21 = tail call i64 @run(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 @fail_test(i32 149)
br label %25
25: ; preds = %23, %20
%26 = tail call i64 @run(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = tail call i32 @fail_test(i32 150)
br label %30
30: ; preds = %28, %25
%31 = tail call i64 @run(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = tail call i32 @fail_test(i32 151)
br label %35
35: ; preds = %33, %30
%36 = tail call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = tail call i32 @fail_test(i32 152)
br label %40
40: ; preds = %38, %35
%41 = tail call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = tail call i32 @fail_test(i32 153)
br label %45
45: ; preds = %43, %40
%46 = tail call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = tail call i32 @fail_test(i32 154)
br label %50
50: ; preds = %48, %45
%51 = tail call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = tail call i32 @fail_test(i32 155)
br label %55
55: ; preds = %53, %50
%56 = tail call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = tail call i32 @fail_test(i32 156)
br label %60
60: ; preds = %58, %55
%61 = tail call i64 @run(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = tail call i32 @fail_test(i32 157)
br label %65
65: ; preds = %63, %60
%66 = tail call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = tail call i32 @fail_test(i32 158)
br label %70
70: ; preds = %68, %65
%71 = tail call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = tail call i32 @fail_test(i32 159)
br label %75
75: ; preds = %73, %70
%76 = tail call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = tail call i32 @fail_test(i32 160)
br label %80
80: ; preds = %78, %75
%81 = tail call i64 @run(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = tail call i32 @fail_test(i32 161)
br label %85
85: ; preds = %83, %80
%86 = tail call i64 @run(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.17, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = tail call i32 @fail_test(i32 162)
br label %90
90: ; preds = %88, %85
%91 = tail call i64 @run(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = tail call i32 @fail_test(i32 163)
br label %95
95: ; preds = %93, %90
%96 = tail call i64 @run(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.19, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = tail call i32 @fail_test(i32 164)
br label %100
100: ; preds = %98, %95
%101 = tail call i64 @run(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = tail call i32 @fail_test(i32 165)
br label %105
105: ; preds = %103, %100
%106 = tail call i64 @run(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = tail call i32 @fail_test(i32 166)
br label %110
110: ; preds = %108, %105
%111 = tail call i64 @run(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %110
%114 = tail call i32 @fail_test(i32 167)
br label %115
115: ; preds = %113, %110
%116 = tail call i64 @run(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i64 0, i64 0))
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %120
118: ; preds = %115
%119 = tail call i32 @fail_test(i32 168)
br label %120
120: ; preds = %118, %115
%121 = tail call i64 @run(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.24, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %125
123: ; preds = %120
%124 = tail call i32 @fail_test(i32 169)
br label %125
125: ; preds = %123, %120
%126 = tail call i64 @run(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.25, i64 0, i64 0))
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = tail call i32 @fail_test(i32 170)
br label %130
130: ; preds = %125, %128
ret void
}