#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 */
float ceilf(float);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ isInteger(int);
int /*<<< orphan*/ stderr;
int verifySettings(void) {
  if (0 < 0 || 0 > 7 || (!isInteger(0))) {
    fprintf(stderr, "Error: OUTPUT_NUM should be 0..7 and integer\n");
    return 0;
  }
  if (1916 < 1 || (!isInteger(1916))) {
    fprintf(stderr, "Error: PIXELS_WIDTH should be >=1 and integer\n");
    return 0;
  }
  if (1080 < 1 || (!isInteger(1080))) {
    fprintf(stderr, "Error: PIXELS_HEIGHT should be >=1 and integer\n");
    return 0;
  }
  if (73 < 1 || (!isInteger(73))) {
    fprintf(stderr, "Error: LEDS_X should be >=1 and integer\n");
    return 0;
  }
  if (41 < 1 || (!isInteger(41))) {
    fprintf(stderr, "Error: LEDS_Y should be >=1 and integer\n");
    return 0;
  }
  if ((73 * 2 + 41 * 2) > 512) {
    fprintf(stderr, "Error: Total number of LEDs is greater than 512 and will "
                    "exceed 1 output, this utility is not for you!\n");
    return 0;
  }
  if (0 < 0 || (!isInteger(0))) {
    fprintf(
        stderr,
        "Error: CELLGRID_BOUNDS_START_X_OFFSET should be >=0 and integer\n");
    return 0;
  }
  if (!isInteger(0)) {
    fprintf(stderr, "Error: CELLGRID_BOUNDS_END_X_OFFSET should be integer\n");
    return 0;
  }
  if (0 < 0 || (!isInteger(0))) {
    fprintf(
        stderr,
        "Error: CELLGRID_BOUNDS_START_Y_OFFSET should be >=0 and integer\n");
    return 0;
  }
  if (!isInteger(0)) {
    fprintf(stderr, "Error: CELLGRID_BOUNDS_END_Y_OFFSET should be integer\n");
    return 0;
  }
  if (1 < 1 || (!isInteger(1))) {
    fprintf(stderr, "Error: AREA_WIDTH should be >=1 and integer\n");
    return 0;
  }
  if (8 < 1 || (!isInteger(8))) {
    fprintf(stderr, "Error: AREA_DEPTH should be >=1 and integer\n");
    return 0;
  }
  int size = 1 * 8;
  while (size > 0) {
    if (size > 1 && (size & 1))
      break;
    size >>= 1;
  }
  if (size) {
    fprintf(stderr, "Error: AREA_WIDTH * AREA_DEPTH should be a power of 2\n");
    return 0;
  }
  if (((ceilf((float)1916 / (float)32) / (float)1) * 2.0 +
       ((ceilf((float)1080 / (float)32) / (float)1) * 2.0)) > 255.0) {
    fprintf(stderr, "Error: 255 Areas exceeded, increase AREA_WIDTH by 1\n");
    return 0;
  }
  if (0 < 0 || (!isInteger(0))) {
    fprintf(stderr,
            "Error: LEDS_BOUNDS_START_X_OFFSET should be >=0 and integer\n");
    return 0;
  }
  if (0 < 0 || (!isInteger(0))) {
    fprintf(stderr,
            "Error: LEDS_BOUNDS_START_Y_OFFSET should be >=0 and integer\n");
    return 0;
  }
  if (0 > 0 || (!isInteger(0))) {
    fprintf(stderr,
            "Error: LEDS_BOUNDS_END_X_OFFSET should be <=0 and integer\n");
    return 0;
  }
  if (0 > 0 || (!isInteger(0))) {
    fprintf(stderr,
            "Error: LEDS_BOUNDS_END_Y_OFFSET should be <=0 and integer\n");
    return 0;
  }
  if (1.77 <= 0.0) {
    fprintf(stderr, "Error: LETTER_BOX_RATIO should be >0.0\n");
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<verifySettings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    1159 <verifySettings+0x39>
mov    0x2ea1(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
mov    $0x77c,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    118d <verifySettings+0x6d>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
mov    $0x438,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    11c1 <verifySettings+0xa1>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
lea    0xec9(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
mov    $0x49,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    11f5 <verifySettings+0xd5>
mov    0x2e05(%rip),%rax
mov    (%rax),%edi
lea    0xec5(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
mov    $0x29,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    1229 <verifySettings+0x109>
mov    0x2dd1(%rip),%rax
mov    (%rax),%edi
lea    0xeba(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    125a <verifySettings+0x13a>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    128b <verifySettings+0x16b>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edi
lea    0xec2(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    12bc <verifySettings+0x19c>
mov    0x2d3e(%rip),%rax
mov    (%rax),%edi
lea    0xec8(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    12ed <verifySettings+0x1cd>
mov    0x2d0d(%rip),%rax
mov    (%rax),%edi
lea    0xed8(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
mov    $0x1,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    1321 <verifySettings+0x201>
mov    0x2cd9(%rip),%rax
mov    (%rax),%edi
lea    0xedb(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
mov    $0x8,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    1355 <verifySettings+0x235>
mov    0x2ca5(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
movl   $0x8,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1392 <verifySettings+0x272>
cmpl   $0x1,-0x8(%rbp)
jle    1384 <verifySettings+0x264>
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1384 <verifySettings+0x264>
jmp    1392 <verifySettings+0x272>
mov    -0x8(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    135c <verifySettings+0x23c>
cmpl   $0x0,-0x8(%rbp)
je     13bd <verifySettings+0x29d>
mov    0x2c3d(%rip),%rax
mov    (%rax),%edi
lea    0xe99(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
movss  0xc53(%rip),%xmm0
movss  0xc43(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movss  0xc37(%rip),%xmm1
movss  0xc2b(%rip),%xmm2
divss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xc13(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xbf7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1434 <verifySettings+0x314>
mov    0x2bc6(%rip),%rax
mov    (%rax),%edi
lea    0xe59(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    1465 <verifySettings+0x345>
mov    0x2b95(%rip),%rax
mov    (%rax),%edi
lea    0xe5d(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    1496 <verifySettings+0x376>
mov    0x2b64(%rip),%rax
mov    (%rax),%edi
lea    0xe69(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    14c7 <verifySettings+0x3a7>
mov    0x2b33(%rip),%rax
mov    (%rax),%edi
lea    0xe75(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
xor    %edi,%edi
call   1040 <isInteger@plt>
cmp    $0x0,%eax
jne    14f8 <verifySettings+0x3d8>
mov    0x2b02(%rip),%rax
mov    (%rax),%edi
lea    0xe7f(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ff <verifySettings+0x3df>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verifySettings>:
push   %rbx
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     11e6 <verifySettings+0xc6>
mov    $0x77c,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     11f2 <verifySettings+0xd2>
mov    $0x438,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     1213 <verifySettings+0xf3>
mov    $0x49,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     121f <verifySettings+0xff>
mov    $0x29,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     122b <verifySettings+0x10b>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     1237 <verifySettings+0x117>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     1243 <verifySettings+0x123>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     124c <verifySettings+0x12c>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     1255 <verifySettings+0x135>
mov    $0x1,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     125e <verifySettings+0x13e>
mov    $0x8,%ebx
mov    $0x8,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     1267 <verifySettings+0x147>
lea    0x1045(%rip),%rsi
jmp    1200 <verifySettings+0xe0>
lea    0xe13(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xe35(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
shr    %ebx
cmp    $0x1,%ebx
je     11fe <verifySettings+0xde>
test   %ebx,%ebx
je     1270 <verifySettings+0x150>
test   $0x1,%bl
je     11fe <verifySettings+0xde>
jmp    12c5 <verifySettings+0x1a5>
lea    0xe43(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xe67(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xe84(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xea1(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xed6(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xf04(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xf3c(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xf6a(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xf8e(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     12ac <verifySettings+0x18c>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     12b5 <verifySettings+0x195>
xor    %edi,%edi
call   1040 <isInteger@plt>
test   %eax,%eax
je     12be <verifySettings+0x19e>
xor    %edi,%edi
call   1040 <isInteger@plt>
mov    %eax,%ecx
mov    $0x1,%eax
test   %ecx,%ecx
jne    12d5 <verifySettings+0x1b5>
lea    0x106b(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xfad(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0xfe1(%rip),%rsi
jmp    12c5 <verifySettings+0x1a5>
lea    0x1015(%rip),%rsi
mov    0x2d14(%rip),%rax
mov    (%rax),%edi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [46 x i8] c"Error: OUTPUT_NUM should be 0..7 and integer\0A\00"
@.str.1 = [47 x i8] c"Error: PIXELS_WIDTH should be >=1 and integer\0A\00"
@.str.2 = [48 x i8] c"Error: PIXELS_HEIGHT should be >=1 and integer\0A\00"
@.str.3 = [41 x i8] c"Error: LEDS_X should be >=1 and integer\0A\00"
@.str.4 = [41 x i8] c"Error: LEDS_Y should be >=1 and integer\0A\00"
@.str.5 = [65 x i8] c"Error: CELLGRID_BOUNDS_START_X_OFFSET should be >=0 and integer\0A\00"
@.str.6 = [55 x i8] c"Error: CELLGRID_BOUNDS_END_X_OFFSET should be integer\0A\00"
@.str.7 = [65 x i8] c"Error: CELLGRID_BOUNDS_START_Y_OFFSET should be >=0 and integer\0A\00"
@.str.8 = [55 x i8] c"Error: CELLGRID_BOUNDS_END_Y_OFFSET should be integer\0A\00"
@.str.9 = [45 x i8] c"Error: AREA_WIDTH should be >=1 and integer\0A\00"
@.str.10 = [45 x i8] c"Error: AREA_DEPTH should be >=1 and integer\0A\00"
@.str.11 = [55 x i8] c"Error: AREA_WIDTH * AREA_DEPTH should be a power of 2\0A\00"
@.str.12 = [53 x i8] c"Error: 255 Areas exceeded, increase AREA_WIDTH by 1\0A\00"
@.str.13 = [61 x i8] c"Error: LEDS_BOUNDS_START_X_OFFSET should be >=0 and integer\0A\00"
@.str.14 = [61 x i8] c"Error: LEDS_BOUNDS_START_Y_OFFSET should be >=0 and integer\0A\00"
@.str.15 = [59 x i8] c"Error: LEDS_BOUNDS_END_X_OFFSET should be <=0 and integer\0A\00"
@.str.16 = [59 x i8] c"Error: LEDS_BOUNDS_END_Y_OFFSET should be <=0 and integer\0A\00"
define i32 @verifySettings() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @isInteger(i32 0)
%4 = icmp ne i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %0
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %127
8: ; preds = %0
%9 = call i32 @isInteger(i32 1916)
%10 = icmp ne i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %8
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %127
14: ; preds = %8
%15 = call i32 @isInteger(i32 1080)
%16 = icmp ne i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %127
20: ; preds = %14
%21 = call i32 @isInteger(i32 73)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %127
26: ; preds = %20
%27 = call i32 @isInteger(i32 41)
%28 = icmp ne i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, i32* @stderr
%31 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %127
32: ; preds = %26
%33 = call i32 @isInteger(i32 0)
%34 = icmp ne i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %127
38: ; preds = %32
%39 = call i32 @isInteger(i32 0)
%40 = icmp ne i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %38
%42 = load i32, i32* @stderr
%43 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %1
br label %127
44: ; preds = %38
%45 = call i32 @isInteger(i32 0)
%46 = icmp ne i32 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %44
%48 = load i32, i32* @stderr
%49 = call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %1
br label %127
50: ; preds = %44
%51 = call i32 @isInteger(i32 0)
%52 = icmp ne i32 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %50
%54 = load i32, i32* @stderr
%55 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %1
br label %127
56: ; preds = %50
%57 = call i32 @isInteger(i32 1)
%58 = icmp ne i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = load i32, i32* @stderr
%61 = call i32 @fprintf(i32 %60, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %1
br label %127
62: ; preds = %56
%63 = call i32 @isInteger(i32 8)
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %62
%66 = load i32, i32* @stderr
%67 = call i32 @fprintf(i32 %66, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %1
br label %127
68: ; preds = %62
store i32 8, i32* %2
br label %69
69: ; preds = %80, %68
%70 = load i32, i32* %2
%71 = icmp sgt i32 %70, 0
br i1 %71, label %72, label %83
72: ; preds = %69
%73 = load i32, i32* %2
%74 = icmp sgt i32 %73, 1
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load i32, i32* %2
%77 = and i32 %76, 1
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %75
br label %83
80: ; preds = %75, %72
%81 = load i32, i32* %2
%82 = ashr i32 %81, 1
store i32 %82, i32* %2
br label %69
83: ; preds = %79, %69
%84 = load i32, i32* %2
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %1
br label %127
89: ; preds = %83
%90 = call float @llvm.ceil.f32(float 5.987500e+01)
%91 = fdiv float %90, 1.000000e+00
%92 = fpext float %91 to double
%93 = call float @llvm.ceil.f32(float 3.375000e+01)
%94 = fdiv float %93, 1.000000e+00
%95 = fpext float %94 to double
%96 = fmul double %95, 2.000000e+00
%97 = call double @llvm.fmuladd.f64(double %92, double 2.000000e+00, double %96)
%98 = fcmp ogt double %97, 2.550000e+02
br i1 %98, label %99, label %102
99: ; preds = %89
%100 = load i32, i32* @stderr
%101 = call i32 @fprintf(i32 %100, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %1
br label %127
102: ; preds = %89
%103 = call i32 @isInteger(i32 0)
%104 = icmp ne i32 %103, 0
br i1 %104, label %108, label %105
105: ; preds = %102
%106 = load i32, i32* @stderr
%107 = call i32 @fprintf(i32 %106, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %1
br label %127
108: ; preds = %102
%109 = call i32 @isInteger(i32 0)
%110 = icmp ne i32 %109, 0
br i1 %110, label %114, label %111
111: ; preds = %108
%112 = load i32, i32* @stderr
%113 = call i32 @fprintf(i32 %112, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %1
br label %127
114: ; preds = %108
%115 = call i32 @isInteger(i32 0)
%116 = icmp ne i32 %115, 0
br i1 %116, label %120, label %117
117: ; preds = %114
%118 = load i32, i32* @stderr
%119 = call i32 @fprintf(i32 %118, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %1
br label %127
120: ; preds = %114
%121 = call i32 @isInteger(i32 0)
%122 = icmp ne i32 %121, 0
br i1 %122, label %126, label %123
123: ; preds = %120
%124 = load i32, i32* @stderr
%125 = call i32 @fprintf(i32 %124, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %1
br label %127
126: ; preds = %120
store i32 1, i32* %1
br label %127
127: ; preds = %126, %123, %117, %111, %105, %99, %86, %65, %59, %53, %47, %41, %35, %29, %23, %17, %11, %5
%128 = load i32, i32* %1
ret i32 %128
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [46 x i8] c"Error: OUTPUT_NUM should be 0..7 and integer\0A\00"
@.str.1 = [47 x i8] c"Error: PIXELS_WIDTH should be >=1 and integer\0A\00"
@.str.2 = [48 x i8] c"Error: PIXELS_HEIGHT should be >=1 and integer\0A\00"
@.str.3 = [41 x i8] c"Error: LEDS_X should be >=1 and integer\0A\00"
@.str.4 = [41 x i8] c"Error: LEDS_Y should be >=1 and integer\0A\00"
@.str.5 = [65 x i8] c"Error: CELLGRID_BOUNDS_START_X_OFFSET should be >=0 and integer\0A\00"
@.str.6 = [55 x i8] c"Error: CELLGRID_BOUNDS_END_X_OFFSET should be integer\0A\00"
@.str.7 = [65 x i8] c"Error: CELLGRID_BOUNDS_START_Y_OFFSET should be >=0 and integer\0A\00"
@.str.8 = [55 x i8] c"Error: CELLGRID_BOUNDS_END_Y_OFFSET should be integer\0A\00"
@.str.9 = [45 x i8] c"Error: AREA_WIDTH should be >=1 and integer\0A\00"
@.str.10 = [45 x i8] c"Error: AREA_DEPTH should be >=1 and integer\0A\00"
@.str.11 = [55 x i8] c"Error: AREA_WIDTH * AREA_DEPTH should be a power of 2\0A\00"
@.str.13 = [61 x i8] c"Error: LEDS_BOUNDS_START_X_OFFSET should be >=0 and integer\0A\00"
@.str.14 = [61 x i8] c"Error: LEDS_BOUNDS_START_Y_OFFSET should be >=0 and integer\0A\00"
@.str.15 = [59 x i8] c"Error: LEDS_BOUNDS_END_X_OFFSET should be <=0 and integer\0A\00"
@.str.16 = [59 x i8] c"Error: LEDS_BOUNDS_END_Y_OFFSET should be <=0 and integer\0A\00"
define i32 @verifySettings() {
%1 = tail call i32 @isInteger(i32 0)
%2 = icmp eq i32 %1, 0
br i1 %2, label %52, label %3
3: ; preds = %0
%4 = tail call i32 @isInteger(i32 1916)
%5 = icmp eq i32 %4, 0
br i1 %5, label %52, label %6
6: ; preds = %3
%7 = tail call i32 @isInteger(i32 1080)
%8 = icmp eq i32 %7, 0
br i1 %8, label %52, label %9
9: ; preds = %6
%10 = tail call i32 @isInteger(i32 73)
%11 = icmp eq i32 %10, 0
br i1 %11, label %52, label %12
12: ; preds = %9
%13 = tail call i32 @isInteger(i32 41)
%14 = icmp eq i32 %13, 0
br i1 %14, label %52, label %15
15: ; preds = %12
%16 = tail call i32 @isInteger(i32 0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %52, label %18
18: ; preds = %15
%19 = tail call i32 @isInteger(i32 0)
%20 = icmp eq i32 %19, 0
br i1 %20, label %52, label %21
21: ; preds = %18
%22 = tail call i32 @isInteger(i32 0)
%23 = icmp eq i32 %22, 0
br i1 %23, label %52, label %24
24: ; preds = %21
%25 = tail call i32 @isInteger(i32 0)
%26 = icmp eq i32 %25, 0
br i1 %26, label %52, label %27
27: ; preds = %24
%28 = tail call i32 @isInteger(i32 1)
%29 = icmp eq i32 %28, 0
br i1 %29, label %52, label %30
30: ; preds = %27
%31 = tail call i32 @isInteger(i32 8)
%32 = icmp eq i32 %31, 0
br i1 %32, label %52, label %33
33: ; preds = %30, %38
%34 = phi i32 [ %39, %38 ], [ 8, %30 ]
switch i32 %34, label %35 [
i32 1, label %38
i32 0, label %40
]
35: ; preds = %33
%36 = and i32 %34, 1
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %52
38: ; preds = %33, %35
%39 = lshr i32 %34, 1
br label %33
40: ; preds = %33
%41 = tail call i32 @isInteger(i32 0)
%42 = icmp eq i32 %41, 0
br i1 %42, label %52, label %43
43: ; preds = %40
%44 = tail call i32 @isInteger(i32 0)
%45 = icmp eq i32 %44, 0
br i1 %45, label %52, label %46
46: ; preds = %43
%47 = tail call i32 @isInteger(i32 0)
%48 = icmp eq i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = tail call i32 @isInteger(i32 0)
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %35, %49, %46, %43, %40, %30, %27, %24, %21, %18, %15, %12, %9, %6, %3, %0
%53 = phi i8* [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), %0 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), %6 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), %9 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), %12 ], [ getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), %15 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0), %18 ], [ getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0), %21 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), %24 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0), %27 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), %30 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0), %40 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.14, i64 0, i64 0), %43 ], [ getelementptr inbounds ([59 x i8], [59 x i8]* @.str.15, i64 0, i64 0), %46 ], [ getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0), %49 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0), %35 ]
%54 = load i32, i32* @stderr
%55 = tail call i32 @fprintf(i32 %54, i8* %53)
br label %56
56: ; preds = %52, %49
%57 = phi i32 [ 1, %49 ], [ 0, %52 ]
ret i32 %57
}