#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ assert(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, char *, int);
int strlen(char *);
char *strstr(char *, char *);
int style_check(char *path) {
  char *strict = strstr(path, "/devices/");
  FILE *fp = fopen(path, "r");
  assert(fp);
  if (!fp)
    exit(EXIT_FAILURE);
  int read_errors = 0;
  int long_errors = 0;
  int crlf_errors = 0;
  int tabs_errors = 0;
  int memc_errors = 0;
  int leading_tabs = 0;
  int leading_spcs = 0;
  int use_stdout = 0;
  int use_printf = 0;
  int need_cond = 0;
  char str[1024];
  while (fgets(str, 1024, fp)) {
    int len = strlen(str);
    if (len <= 0) {
      read_errors++;
      continue;
    }
    if (len >= 1024 - 1) {
      long_errors++;
    }
    if (str[len - 1] == '\r' || (len > 1 && str[len - 2] == '\r')) {
      crlf_errors++;
    }
    if (str[0] == '\t') {
      leading_tabs++;
    }
    if (len >= 4 && str[0] == ' ' && str[1] == ' ' && str[2] == ' ' &&
        str[3] == ' ') {
      leading_spcs++;
    }
    if (strstr(str, "stdout")) {
      use_stdout++;
    }
    char *p;
    if ((p = strstr(str, "printf"))) {
      if (p == str || p[-1] < '_' || p[-1] > 'z') {
        use_printf++;
      }
    }
    if (need_cond && !strstr(str, "if (!")) {
      memc_errors++;
    }
    need_cond = 0;
    if (strstr(str, "alloc(") && !strstr(str, "alloc()")) {
      need_cond++;
    }
    if (strstr(str, "strdup(") && !strstr(str, "strdup()")) {
      need_cond++;
    }
  }
  if (leading_tabs && leading_spcs) {
    tabs_errors = leading_tabs > leading_spcs ? leading_spcs : leading_tabs;
  }
  if (read_errors)
    printf("File \"%s\" has %d READ errors.\n", path, read_errors);
  if (long_errors)
    printf("File \"%s\" has %d LONG line errors.\n", path, long_errors);
  if (crlf_errors)
    printf("File \"%s\" has %d CRLF errors.\n", path, crlf_errors);
  if (tabs_errors)
    printf("File \"%s\" has %d MIXED tab/spaces errors.\n", path, tabs_errors);
  if (memc_errors)
    printf("File \"%s\" has %d ALLOC check errors.\n", path, memc_errors);
  if (leading_tabs)
    printf("File \"%s\" has %d TAB indented lines.\n", path, leading_tabs);
  if (strict && use_stdout)
    printf("File \"%s\" has %d STDOUT lines.\n", path, use_stdout);
  if (strict && use_printf)
    printf("File \"%s\" has %d PRINTF lines.\n", path, use_printf);
  return read_errors + long_errors + crlf_errors + tabs_errors + leading_tabs +
         (strict ? use_stdout + use_printf : 0) + memc_errors;
}


x86 assembly (clang, -O0):
<style_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe76(%rip),%rsi
call   1090 <strstr@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe6c(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <assert@plt>
cmpq   $0x0,-0x18(%rbp)
jne    11c9 <style_check+0x59>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
lea    -0x440(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x400,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     148a <style_check+0x31a>
lea    -0x440(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x444(%rbp)
cmpl   $0x0,-0x444(%rbp)
jg     125b <style_check+0xeb>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    120f <style_check+0x9f>
cmpl   $0x3ff,-0x444(%rbp)
jl     1274 <style_check+0x104>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x440(%rbp,%rax,1),%eax
ff
cmp    $0xd,%eax
je     12b9 <style_check+0x149>
cmpl   $0x1,-0x444(%rbp)
jle    12c2 <style_check+0x152>
mov    -0x444(%rbp),%eax
sub    $0x2,%eax
cltq
movsbl -0x440(%rbp,%rax,1),%eax
ff
cmp    $0xd,%eax
jne    12c2 <style_check+0x152>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
movsbl -0x440(%rbp),%eax
cmp    $0x9,%eax
jne    12db <style_check+0x16b>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x4,-0x444(%rbp)
jl     1331 <style_check+0x1c1>
movsbl -0x440(%rbp),%eax
cmp    $0x20,%eax
jne    1331 <style_check+0x1c1>
movsbl -0x43f(%rbp),%eax
cmp    $0x20,%eax
jne    1331 <style_check+0x1c1>
movsbl -0x43e(%rbp),%eax
cmp    $0x20,%eax
jne    1331 <style_check+0x1c1>
movsbl -0x43d(%rbp),%eax
cmp    $0x20,%eax
jne    1331 <style_check+0x1c1>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
lea    -0x440(%rbp),%rdi
lea    0xccd(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x0,%rax
je     1357 <style_check+0x1e7>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
lea    -0x440(%rbp),%rdi
lea    0xcae(%rip),%rsi
call   1090 <strstr@plt>
mov    %rax,-0x450(%rbp)
cmp    $0x0,%rax
je     13c8 <style_check+0x258>
mov    -0x450(%rbp),%rax
lea    -0x440(%rbp),%rcx
cmp    %rcx,%rax
je     13ba <style_check+0x24a>
mov    -0x450(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0x5f,%eax
jl     13ba <style_check+0x24a>
mov    -0x450(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0x7a,%eax
jle    13c3 <style_check+0x253>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13c8 <style_check+0x258>
cmpl   $0x0,-0x40(%rbp)
je     13f8 <style_check+0x288>
lea    -0x440(%rbp),%rdi
lea    0xc3a(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x0,%rax
jne    13f8 <style_check+0x288>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x40(%rbp)
lea    -0x440(%rbp),%rdi
lea    0xc13(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x0,%rax
je     1442 <style_check+0x2d2>
lea    -0x440(%rbp),%rdi
lea    0xbfd(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x0,%rax
jne    1442 <style_check+0x2d2>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
lea    -0x440(%rbp),%rdi
lea    0xbdf(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x0,%rax
je     1485 <style_check+0x315>
lea    -0x440(%rbp),%rdi
lea    0xbca(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x0,%rax
jne    1485 <style_check+0x315>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    120f <style_check+0x9f>
cmpl   $0x0,-0x30(%rbp)
je     14ca <style_check+0x35a>
cmpl   $0x0,-0x34(%rbp)
je     14ca <style_check+0x35a>
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
jle    14b8 <style_check+0x348>
mov    -0x34(%rbp),%eax
mov    %eax,-0x454(%rbp)
jmp    14c1 <style_check+0x351>
mov    -0x30(%rbp),%eax
mov    %eax,-0x454(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     14e7 <style_check+0x377>
mov    -0x8(%rbp),%rsi
mov    -0x1c(%rbp),%edx
lea    0xb5e(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
je     1504 <style_check+0x394>
mov    -0x8(%rbp),%rsi
mov    -0x20(%rbp),%edx
lea    0xb60(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x24(%rbp)
je     1521 <style_check+0x3b1>
mov    -0x8(%rbp),%rsi
mov    -0x24(%rbp),%edx
lea    0xb67(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x28(%rbp)
je     153e <style_check+0x3ce>
mov    -0x8(%rbp),%rsi
mov    -0x28(%rbp),%edx
lea    0xb69(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x2c(%rbp)
je     155b <style_check+0x3eb>
mov    -0x8(%rbp),%rsi
mov    -0x2c(%rbp),%edx
lea    0xb77(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
je     1578 <style_check+0x408>
mov    -0x8(%rbp),%rsi
mov    -0x30(%rbp),%edx
lea    0xb80(%rip),%rdi
call   1040 <printf@plt>
cmpq   $0x0,-0x10(%rbp)
je     15a0 <style_check+0x430>
cmpl   $0x0,-0x38(%rbp)
je     15a0 <style_check+0x430>
mov    -0x8(%rbp),%rsi
mov    -0x38(%rbp),%edx
lea    0xb7e(%rip),%rdi
call   1040 <printf@plt>
cmpq   $0x0,-0x10(%rbp)
je     15c8 <style_check+0x458>
cmpl   $0x0,-0x3c(%rbp)
je     15c8 <style_check+0x458>
mov    -0x8(%rbp),%rsi
mov    -0x3c(%rbp),%edx
lea    0xb76(%rip),%rdi
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
add    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
add    -0x28(%rbp),%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x458(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     15f9 <style_check+0x489>
mov    -0x38(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x45c(%rbp)
jmp    1606 <style_check+0x496>
xor    %eax,%eax
mov    %eax,-0x45c(%rbp)
jmp    1606 <style_check+0x496>
mov    -0x458(%rbp),%eax
mov    -0x45c(%rbp),%ecx
add    %ecx,%eax
add    -0x2c(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<style_check>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x448,%rsp
mov    %rdi,%rbp
lea    0xe75(%rip),%rsi
call   1090 <strstr@plt>
mov    %rax,%rbx
lea    0xe70(%rip),%rsi
mov    %rbp,%rdi
call   1070 <fopen@plt>
mov    %rax,%r14
mov    %rax,%rdi
call   1060 <assert@plt>
test   %r14,%r14
je     156f <style_check+0x3ff>
mov    %rbp,0x28(%rsp)
mov    %rbx,0x30(%rsp)
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1408 <style_check+0x298>
movl   $0x0,0x1c(%rsp)
xor    %r12d,%r12d
movl   $0x0,0x18(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x14(%rsp)
xor    %r15d,%r15d
xor    %r13d,%r13d
movl   $0x0,0x4(%rsp)
xor    %ebx,%ebx
mov    %r14,0x38(%rsp)
jmp    123e <style_check+0xce>
nopl   0x0(%rax,%rax,1)
addl   $0x1,0x1c(%rsp)
mov    %rbp,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1433 <style_check+0x2c3>
mov    %rbp,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    1220 <style_check+0xb0>
cmp    $0x3ff,%eax
sbb    $0xffffffff,%r12d
lea    -0x1(%rax),%ecx
cmpb   $0xd,0x40(%rsp,%rcx,1)
mov    %r13d,0x20(%rsp)
mov    %r15d,0x24(%rsp)
je     1280 <style_check+0x110>
cmp    $0x2,%eax
jb     1290 <style_check+0x120>
lea    -0x2(%rax),%ecx
cmpb   $0xd,0x40(%rsp,%rcx,1)
jne    1290 <style_check+0x120>
cs nopw 0x0(%rax,%rax,1)
mov    %r12d,%r14d
add    $0x1,%ebx
mov    %ebx,0xc(%rsp)
jmp    1297 <style_check+0x127>
nopl   0x0(%rax)
mov    %ebx,0xc(%rsp)
mov    %r12d,%r14d
movzbl 0x40(%rsp),%ecx
xor    %ebx,%ebx
cmp    $0x9,%cl
sete   0x13(%rsp)
cmp    $0x4,%eax
setae  %al
cmp    $0x20,%cl
sete   %r15b
and    %al,%r15b
cmpb   $0x20,0x41(%rsp)
sete   %al
cmpb   $0x20,0x42(%rsp)
sete   %r12b
and    %al,%r12b
cmpb   $0x20,0x43(%rsp)
sete   %r13b
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
lea    0xd2a(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x1,%rax
sbbl   $0xffffffff,0x14(%rsp)
mov    %rbp,%rdi
lea    0xd19(%rip),%rsi
call   1090 <strstr@plt>
test   %rax,%rax
je     1320 <style_check+0x1b0>
cmp    %rbp,%rax
mov    0x8(%rsp),%ecx
je     1317 <style_check+0x1a7>
movzbl -0x1(%rax),%eax
add    $0x85,%al
cmp    $0xe3,%al
ja     1324 <style_check+0x1b4>
add    $0x1,%ecx
jmp    1324 <style_check+0x1b4>
nopl   0x0(%rax)
mov    0x8(%rsp),%ecx
mov    %ecx,0x8(%rsp)
and    %r12b,%r15b
cmpl   $0x0,0x18(%rsp)
je     1360 <style_check+0x1f0>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
lea    0xcd9(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x1,%rax
adcl   $0x0,0x4(%rsp)
mov    %r14d,%r12d
jmp    1368 <style_check+0x1f8>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14d,%r12d
lea    0x40(%rsp),%rbp
and    %r13b,%r15b
mov    %rbp,%rdi
lea    0xcab(%rip),%rsi
call   1090 <strstr@plt>
test   %rax,%rax
mov    0x38(%rsp),%r14
je     13b0 <style_check+0x240>
mov    %rbp,%rdi
lea    0xc99(%rip),%rsi
call   1090 <strstr@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,0x18(%rsp)
jmp    13b8 <style_check+0x248>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movl   $0x0,0x18(%rsp)
mov    0x20(%rsp),%r13d
movzbl 0x13(%rsp),%eax
mov    %al,%bl
add    %ebx,%r13d
movzbl %r15b,%eax
mov    0x24(%rsp),%r15d
add    %eax,%r15d
mov    %rbp,%rdi
lea    0xc52(%rip),%rsi
call   1090 <strstr@plt>
test   %rax,%rax
je     13ff <style_check+0x28f>
mov    %rbp,%rdi
lea    0xc46(%rip),%rsi
call   1090 <strstr@plt>
cmp    $0x1,%rax
adcl   $0x0,0x18(%rsp)
mov    0xc(%rsp),%ebx
jmp    1225 <style_check+0xb5>
xor    %ebx,%ebx
movl   $0x0,0x4(%rsp)
xor    %r13d,%r13d
xor    %r15d,%r15d
movl   $0x0,0x14(%rsp)
movl   $0x0,0x8(%rsp)
xor    %r12d,%r12d
movl   $0x0,0x1c(%rsp)
mov    %ebx,0xc(%rsp)
cmp    %r15d,%r13d
mov    %r13d,%r14d
cmovg  %r15d,%r14d
test   %r15d,%r15d
cmove  %r15d,%r14d
test   %r13d,%r13d
cmove  %r13d,%r14d
mov    0x1c(%rsp),%r15d
test   %r15d,%r15d
mov    0x28(%rsp),%rbp
je     1470 <style_check+0x300>
lea    0xbdb(%rip),%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
call   1040 <printf@plt>
test   %r12d,%r12d
mov    0x30(%rsp),%rbx
je     148c <style_check+0x31c>
lea    0xbde(%rip),%rdi
mov    %rbp,%rsi
mov    %r12d,%edx
call   1040 <printf@plt>
mov    0xc(%rsp),%edx
test   %edx,%edx
je     14a3 <style_check+0x333>
lea    0xbe8(%rip),%rdi
mov    %rbp,%rsi
call   1040 <printf@plt>
test   %r14d,%r14d
je     14ba <style_check+0x34a>
lea    0xbf3(%rip),%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
je     14d9 <style_check+0x369>
lea    0xc04(%rip),%rdi
mov    %rbp,%rsi
mov    0x4(%rsp),%edx
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
test   %r13d,%r13d
je     14f4 <style_check+0x384>
lea    0xc0e(%rip),%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
test   %rbx,%rbx
je     1517 <style_check+0x3a7>
cmpl   $0x0,0x14(%rsp)
je     1517 <style_check+0x3a7>
lea    0xc12(%rip),%rdi
mov    %rbp,%rsi
mov    0x14(%rsp),%edx
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
test   %rbx,%rbx
mov    0x8(%rsp),%edx
je     153f <style_check+0x3cf>
test   %edx,%edx
je     153f <style_check+0x3cf>
lea    0xc0e(%rip),%rdi
mov    %rbp,%rsi
mov    0x8(%rsp),%edx
call   1040 <printf@plt>
mov    0x8(%rsp),%edx
mov    0x4(%rsp),%eax
add    0x14(%rsp),%edx
xor    %ecx,%ecx
test   %rbx,%rbx
cmovne %edx,%ecx
add    0xc(%rsp),%eax
add    %r13d,%eax
add    %r14d,%eax
add    %r12d,%eax
add    %ecx,%eax
add    %r15d,%eax
add    $0x448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2a6a(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"/devices/\00"
@.str.1 = [2 x i8] c"r\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [7 x i8] c"stdout\00"
@.str.3 = [7 x i8] c"printf\00"
@.str.4 = [6 x i8] c"if (!\00"
@.str.5 = [7 x i8] c"alloc(\00"
@.str.6 = [8 x i8] c"alloc()\00"
@.str.7 = [8 x i8] c"strdup(\00"
@.str.8 = [9 x i8] c"strdup()\00"
@.str.9 = [31 x i8] c"File \22%s\22 has %d READ errors.\0A\00"
@.str.10 = [36 x i8] c"File \22%s\22 has %d LONG line errors.\0A\00"
@.str.11 = [31 x i8] c"File \22%s\22 has %d CRLF errors.\0A\00"
@.str.12 = [43 x i8] c"File \22%s\22 has %d MIXED tab/spaces errors.\0A\00"
@.str.13 = [38 x i8] c"File \22%s\22 has %d ALLOC check errors.\0A\00"
@.str.14 = [38 x i8] c"File \22%s\22 has %d TAB indented lines.\0A\00"
@.str.15 = [32 x i8] c"File \22%s\22 has %d STDOUT lines.\0A\00"
@.str.16 = [32 x i8] c"File \22%s\22 has %d PRINTF lines.\0A\00"
define i32 @style_check(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [1024 x i8]
%16 = alloca i32
%17 = alloca i8*
store i8* %0, i8** %2
%18 = load i8*, i8** %2
%19 = call i8* @strstr(i8* %18, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i8* %19, i8** %3
%20 = load i8*, i8** %2
%21 = call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %21, i32** %4
%22 = load i32*, i32** %4
%23 = call i32 @assert(i32* %22)
%24 = load i32*, i32** %4
%25 = icmp ne i32* %24, null
br i1 %25, label %29, label %26
26: ; preds = %1
%27 = load i32, i32* @EXIT_FAILURE
%28 = call i32 @exit(i32 %27)
unreachable
29: ; preds = %1
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
br label %30
30: ; preds = %168, %40, %29
%31 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%32 = load i32*, i32** %4
%33 = call i64 @fgets(i8* %31, i32 1024, i32* %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %169
35: ; preds = %30
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%37 = call i32 @strlen(i8* %36)
store i32 %37, i32* %16
%38 = load i32, i32* %16
%39 = icmp sle i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %30
43: ; preds = %35
%44 = load i32, i32* %16
%45 = icmp sge i32 %44, 1023
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, i32* %6
%48 = add nsw i32 %47, 1
store i32 %48, i32* %6
br label %49
49: ; preds = %46, %43
%50 = load i32, i32* %16
%51 = sub nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 %52
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 13
br i1 %56, label %68, label %57
57: ; preds = %49
%58 = load i32, i32* %16
%59 = icmp sgt i32 %58, 1
br i1 %59, label %60, label %71
60: ; preds = %57
%61 = load i32, i32* %16
%62 = sub nsw i32 %61, 2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 13
br i1 %67, label %68, label %71
68: ; preds = %60, %49
%69 = load i32, i32* %7
%70 = add nsw i32 %69, 1
store i32 %70, i32* %7
br label %71
71: ; preds = %68, %60, %57
%72 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%73 = load i8, i8* %72
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 9
br i1 %75, label %76, label %79
76: ; preds = %71
%77 = load i32, i32* %10
%78 = add nsw i32 %77, 1
store i32 %78, i32* %10
br label %79
79: ; preds = %76, %71
%80 = load i32, i32* %16
%81 = icmp sge i32 %80, 4
br i1 %81, label %82, label %105
82: ; preds = %79
%83 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 32
br i1 %86, label %87, label %105
87: ; preds = %82
%88 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 1
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 32
br i1 %91, label %92, label %105
92: ; preds = %87
%93 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 2
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 32
br i1 %96, label %97, label %105
97: ; preds = %92
%98 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 3
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 32
br i1 %101, label %102, label %105
102: ; preds = %97
%103 = load i32, i32* %11
%104 = add nsw i32 %103, 1
store i32 %104, i32* %11
br label %105
105: ; preds = %102, %97, %92, %87, %82, %79
%106 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%107 = call i8* @strstr(i8* %106, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%108 = icmp ne i8* %107, null
br i1 %108, label %109, label %112
109: ; preds = %105
%110 = load i32, i32* %12
%111 = add nsw i32 %110, 1
store i32 %111, i32* %12
br label %112
112: ; preds = %109, %105
%113 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%114 = call i8* @strstr(i8* %113, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
store i8* %114, i8** %17
%115 = icmp ne i8* %114, null
br i1 %115, label %116, label %136
116: ; preds = %112
%117 = load i8*, i8** %17
%118 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%119 = icmp eq i8* %117, %118
br i1 %119, label %132, label %120
120: ; preds = %116
%121 = load i8*, i8** %17
%122 = getelementptr inbounds i8, i8* %121, i64 -1
%123 = load i8, i8* %122
%124 = sext i8 %123 to i32
%125 = icmp slt i32 %124, 95
br i1 %125, label %132, label %126
126: ; preds = %120
%127 = load i8*, i8** %17
%128 = getelementptr inbounds i8, i8* %127, i64 -1
%129 = load i8, i8* %128
%130 = sext i8 %129 to i32
%131 = icmp sgt i32 %130, 122
br i1 %131, label %132, label %135
132: ; preds = %126, %120, %116
%133 = load i32, i32* %13
%134 = add nsw i32 %133, 1
store i32 %134, i32* %13
br label %135
135: ; preds = %132, %126
br label %136
136: ; preds = %135, %112
%137 = load i32, i32* %14
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %146
139: ; preds = %136
%140 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%141 = call i8* @strstr(i8* %140, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%142 = icmp ne i8* %141, null
br i1 %142, label %146, label %143
143: ; preds = %139
%144 = load i32, i32* %9
%145 = add nsw i32 %144, 1
store i32 %145, i32* %9
br label %146
146: ; preds = %143, %139, %136
store i32 0, i32* %14
%147 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%148 = call i8* @strstr(i8* %147, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%149 = icmp ne i8* %148, null
br i1 %149, label %150, label %157
150: ; preds = %146
%151 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%152 = call i8* @strstr(i8* %151, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%153 = icmp ne i8* %152, null
br i1 %153, label %157, label %154
154: ; preds = %150
%155 = load i32, i32* %14
%156 = add nsw i32 %155, 1
store i32 %156, i32* %14
br label %157
157: ; preds = %154, %150, %146
%158 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%159 = call i8* @strstr(i8* %158, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%160 = icmp ne i8* %159, null
br i1 %160, label %161, label %168
161: ; preds = %157
%162 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%163 = call i8* @strstr(i8* %162, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%164 = icmp ne i8* %163, null
br i1 %164, label %168, label %165
165: ; preds = %161
%166 = load i32, i32* %14
%167 = add nsw i32 %166, 1
store i32 %167, i32* %14
br label %168
168: ; preds = %165, %161, %157
br label %30
169: ; preds = %30
%170 = load i32, i32* %10
%171 = icmp ne i32 %170, 0
br i1 %171, label %172, label %185
172: ; preds = %169
%173 = load i32, i32* %11
%174 = icmp ne i32 %173, 0
br i1 %174, label %175, label %185
175: ; preds = %172
%176 = load i32, i32* %10
%177 = load i32, i32* %11
%178 = icmp sgt i32 %176, %177
br i1 %178, label %179, label %181
179: ; preds = %175
%180 = load i32, i32* %11
br label %183
181: ; preds = %175
%182 = load i32, i32* %10
br label %183
183: ; preds = %181, %179
%184 = phi i32 [ %180, %179 ], [ %182, %181 ]
store i32 %184, i32* %8
br label %185
185: ; preds = %183, %172, %169
%186 = load i32, i32* %5
%187 = icmp ne i32 %186, 0
br i1 %187, label %188, label %192
188: ; preds = %185
%189 = load i8*, i8** %2
%190 = load i32, i32* %5
%191 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i8* %189, i32 %190)
br label %192
192: ; preds = %188, %185
%193 = load i32, i32* %6
%194 = icmp ne i32 %193, 0
br i1 %194, label %195, label %199
195: ; preds = %192
%196 = load i8*, i8** %2
%197 = load i32, i32* %6
%198 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8* %196, i32 %197)
br label %199
199: ; preds = %195, %192
%200 = load i32, i32* %7
%201 = icmp ne i32 %200, 0
br i1 %201, label %202, label %206
202: ; preds = %199
%203 = load i8*, i8** %2
%204 = load i32, i32* %7
%205 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i8* %203, i32 %204)
br label %206
206: ; preds = %202, %199
%207 = load i32, i32* %8
%208 = icmp ne i32 %207, 0
br i1 %208, label %209, label %213
209: ; preds = %206
%210 = load i8*, i8** %2
%211 = load i32, i32* %8
%212 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0), i8* %210, i32 %211)
br label %213
213: ; preds = %209, %206
%214 = load i32, i32* %9
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %220
216: ; preds = %213
%217 = load i8*, i8** %2
%218 = load i32, i32* %9
%219 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), i8* %217, i32 %218)
br label %220
220: ; preds = %216, %213
%221 = load i32, i32* %10
%222 = icmp ne i32 %221, 0
br i1 %222, label %223, label %227
223: ; preds = %220
%224 = load i8*, i8** %2
%225 = load i32, i32* %10
%226 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i8* %224, i32 %225)
br label %227
227: ; preds = %223, %220
%228 = load i8*, i8** %3
%229 = icmp ne i8* %228, null
br i1 %229, label %230, label %237
230: ; preds = %227
%231 = load i32, i32* %12
%232 = icmp ne i32 %231, 0
br i1 %232, label %233, label %237
233: ; preds = %230
%234 = load i8*, i8** %2
%235 = load i32, i32* %12
%236 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0), i8* %234, i32 %235)
br label %237
237: ; preds = %233, %230, %227
%238 = load i8*, i8** %3
%239 = icmp ne i8* %238, null
br i1 %239, label %240, label %247
240: ; preds = %237
%241 = load i32, i32* %13
%242 = icmp ne i32 %241, 0
br i1 %242, label %243, label %247
243: ; preds = %240
%244 = load i8*, i8** %2
%245 = load i32, i32* %13
%246 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.16, i64 0, i64 0), i8* %244, i32 %245)
br label %247
247: ; preds = %243, %240, %237
%248 = load i32, i32* %5
%249 = load i32, i32* %6
%250 = add nsw i32 %248, %249
%251 = load i32, i32* %7
%252 = add nsw i32 %250, %251
%253 = load i32, i32* %8
%254 = add nsw i32 %252, %253
%255 = load i32, i32* %10
%256 = add nsw i32 %254, %255
%257 = load i8*, i8** %3
%258 = icmp ne i8* %257, null
br i1 %258, label %259, label %263
259: ; preds = %247
%260 = load i32, i32* %12
%261 = load i32, i32* %13
%262 = add nsw i32 %260, %261
br label %264
263: ; preds = %247
br label %264
264: ; preds = %263, %259
%265 = phi i32 [ %262, %259 ], [ 0, %263 ]
%266 = add nsw i32 %256, %265
%267 = load i32, i32* %9
%268 = add nsw i32 %266, %267
ret i32 %268
}

LLVM IR (-O2):
@.str = [10 x i8] c"/devices/\00"
@.str.1 = [2 x i8] c"r\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [7 x i8] c"stdout\00"
@.str.3 = [7 x i8] c"printf\00"
@.str.4 = [6 x i8] c"if (!\00"
@.str.5 = [7 x i8] c"alloc(\00"
@.str.6 = [8 x i8] c"alloc()\00"
@.str.7 = [8 x i8] c"strdup(\00"
@.str.8 = [9 x i8] c"strdup()\00"
@.str.9 = [31 x i8] c"File \22%s\22 has %d READ errors.\0A\00"
@.str.10 = [36 x i8] c"File \22%s\22 has %d LONG line errors.\0A\00"
@.str.11 = [31 x i8] c"File \22%s\22 has %d CRLF errors.\0A\00"
@.str.12 = [43 x i8] c"File \22%s\22 has %d MIXED tab/spaces errors.\0A\00"
@.str.13 = [38 x i8] c"File \22%s\22 has %d ALLOC check errors.\0A\00"
@.str.14 = [38 x i8] c"File \22%s\22 has %d TAB indented lines.\0A\00"
@.str.15 = [32 x i8] c"File \22%s\22 has %d STDOUT lines.\0A\00"
@.str.16 = [32 x i8] c"File \22%s\22 has %d PRINTF lines.\0A\00"
define i32 @style_check(i8* %0) {
%2 = alloca [1024 x i8]
%3 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @assert(i32* %4)
%6 = icmp eq i32* %4, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %1
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%12 = call i64 @fgets(i8* %11, i32 1024, i32* %4)
%13 = icmp eq i64 %12, 0
br i1 %13, label %123, label %14
14: ; preds = %10
%15 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 1
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 2
%17 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 3
br label %18
18: ; preds = %14, %111
%19 = phi i32 [ 0, %14 ], [ %120, %111 ]
%20 = phi i32 [ 0, %14 ], [ %119, %111 ]
%21 = phi i32 [ 0, %14 ], [ %118, %111 ]
%22 = phi i32 [ 0, %14 ], [ %117, %111 ]
%23 = phi i32 [ 0, %14 ], [ %116, %111 ]
%24 = phi i32 [ 0, %14 ], [ %115, %111 ]
%25 = phi i32 [ 0, %14 ], [ %114, %111 ]
%26 = phi i32 [ 0, %14 ], [ %113, %111 ]
%27 = phi i32 [ 0, %14 ], [ %112, %111 ]
%28 = call i32 @strlen(i8* %11)
%29 = icmp slt i32 %28, 1
br i1 %29, label %30, label %32
30: ; preds = %18
%31 = add nsw i32 %19, 1
br label %111
32: ; preds = %18
%33 = icmp ugt i32 %28, 1022
%34 = zext i1 %33 to i32
%35 = add nsw i32 %20, %34
%36 = add nsw i32 %28, -1
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = icmp eq i8 %39, 13
br i1 %40, label %49, label %41
41: ; preds = %32
%42 = icmp ugt i32 %28, 1
br i1 %42, label %43, label %51
43: ; preds = %41
%44 = add nsw i32 %28, -2
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, 13
br i1 %48, label %49, label %51
49: ; preds = %43, %32
%50 = add nsw i32 %27, 1
br label %51
51: ; preds = %49, %43, %41
%52 = phi i32 [ %50, %49 ], [ %27, %43 ], [ %27, %41 ]
%53 = load i8, i8* %11
%54 = icmp eq i8 %53, 9
%55 = zext i1 %54 to i32
%56 = add nsw i32 %25, %55
%57 = icmp ugt i32 %28, 3
%58 = icmp eq i8 %53, 32
%59 = select i1 %57, i1 %58, i1 false
%60 = load i8, i8* %15
%61 = icmp eq i8 %60, 32
%62 = select i1 %59, i1 %61, i1 false
%63 = load i8, i8* %16
%64 = icmp eq i8 %63, 32
%65 = select i1 %62, i1 %64, i1 false
%66 = load i8, i8* %17
%67 = icmp eq i8 %66, 32
%68 = select i1 %65, i1 %67, i1 false
%69 = zext i1 %68 to i32
%70 = add nsw i32 %24, %69
%71 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%72 = icmp ne i8* %71, null
%73 = zext i1 %72 to i32
%74 = add nsw i32 %23, %73
%75 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%76 = icmp eq i8* %75, null
br i1 %76, label %86, label %77
77: ; preds = %51
%78 = icmp eq i8* %75, %11
br i1 %78, label %84, label %79
79: ; preds = %77
%80 = getelementptr inbounds i8, i8* %75, i64 -1
%81 = load i8, i8* %80
%82 = add i8 %81, -123
%83 = icmp ult i8 %82, -28
br i1 %83, label %84, label %86
84: ; preds = %79, %77
%85 = add nsw i32 %22, 1
br label %86
86: ; preds = %79, %84, %51
%87 = phi i32 [ %85, %84 ], [ %22, %51 ], [ %22, %79 ]
%88 = icmp eq i32 %21, 0
br i1 %88, label %94, label %89
89: ; preds = %86
%90 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%91 = icmp eq i8* %90, null
%92 = zext i1 %91 to i32
%93 = add nsw i32 %26, %92
br label %94
94: ; preds = %89, %86
%95 = phi i32 [ %26, %86 ], [ %93, %89 ]
%96 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%97 = icmp eq i8* %96, null
br i1 %97, label %102, label %98
98: ; preds = %94
%99 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%100 = icmp eq i8* %99, null
%101 = zext i1 %100 to i32
br label %102
102: ; preds = %98, %94
%103 = phi i32 [ 0, %94 ], [ %101, %98 ]
%104 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%105 = icmp eq i8* %104, null
br i1 %105, label %111, label %106
106: ; preds = %102
%107 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%108 = icmp eq i8* %107, null
%109 = zext i1 %108 to i32
%110 = add nuw nsw i32 %103, %109
br label %111
111: ; preds = %106, %102, %30
%112 = phi i32 [ %27, %30 ], [ %52, %106 ], [ %52, %102 ]
%113 = phi i32 [ %26, %30 ], [ %95, %106 ], [ %95, %102 ]
%114 = phi i32 [ %25, %30 ], [ %56, %106 ], [ %56, %102 ]
%115 = phi i32 [ %24, %30 ], [ %70, %106 ], [ %70, %102 ]
%116 = phi i32 [ %23, %30 ], [ %74, %106 ], [ %74, %102 ]
%117 = phi i32 [ %22, %30 ], [ %87, %106 ], [ %87, %102 ]
%118 = phi i32 [ %21, %30 ], [ %110, %106 ], [ %103, %102 ]
%119 = phi i32 [ %20, %30 ], [ %35, %106 ], [ %35, %102 ]
%120 = phi i32 [ %31, %30 ], [ %19, %106 ], [ %19, %102 ]
%121 = call i64 @fgets(i8* %11, i32 1024, i32* %4)
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %18
123: ; preds = %111, %10
%124 = phi i32 [ 0, %10 ], [ %112, %111 ]
%125 = phi i32 [ 0, %10 ], [ %113, %111 ]
%126 = phi i32 [ 0, %10 ], [ %114, %111 ]
%127 = phi i32 [ 0, %10 ], [ %115, %111 ]
%128 = phi i32 [ 0, %10 ], [ %116, %111 ]
%129 = phi i32 [ 0, %10 ], [ %117, %111 ]
%130 = phi i32 [ 0, %10 ], [ %119, %111 ]
%131 = phi i32 [ 0, %10 ], [ %120, %111 ]
%132 = icmp ne i32 %126, 0
%133 = icmp ne i32 %127, 0
%134 = select i1 %132, i1 %133, i1 false
%135 = icmp sgt i32 %126, %127
%136 = select i1 %135, i32 %127, i32 %126
%137 = select i1 %134, i32 %136, i32 0
%138 = icmp eq i32 %131, 0
br i1 %138, label %141, label %139
139: ; preds = %123
%140 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i8* %0, i32 %131)
br label %141
141: ; preds = %139, %123
%142 = icmp eq i32 %130, 0
br i1 %142, label %145, label %143
143: ; preds = %141
%144 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8* %0, i32 %130)
br label %145
145: ; preds = %143, %141
%146 = icmp eq i32 %124, 0
br i1 %146, label %149, label %147
147: ; preds = %145
%148 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i8* %0, i32 %124)
br label %149
149: ; preds = %147, %145
%150 = icmp eq i32 %137, 0
br i1 %150, label %153, label %151
151: ; preds = %149
%152 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0), i8* %0, i32 %137)
br label %153
153: ; preds = %151, %149
%154 = icmp eq i32 %125, 0
br i1 %154, label %157, label %155
155: ; preds = %153
%156 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0), i8* %0, i32 %125)
br label %157
157: ; preds = %155, %153
br i1 %132, label %158, label %160
158: ; preds = %157
%159 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i8* %0, i32 %126)
br label %160
160: ; preds = %158, %157
%161 = icmp ne i8* %3, null
%162 = icmp ne i32 %128, 0
%163 = select i1 %161, i1 %162, i1 false
br i1 %163, label %164, label %166
164: ; preds = %160
%165 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0), i8* %0, i32 %128)
br label %166
166: ; preds = %164, %160
%167 = icmp ne i32 %129, 0
%168 = select i1 %161, i1 %167, i1 false
br i1 %168, label %169, label %171
169: ; preds = %166
%170 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.16, i64 0, i64 0), i8* %0, i32 %129)
br label %171
171: ; preds = %169, %166
%172 = add nsw i32 %129, %128
%173 = select i1 %161, i32 %172, i32 0
%174 = add i32 %125, %124
%175 = add i32 %174, %126
%176 = add i32 %175, %137
%177 = add i32 %176, %130
%178 = add i32 %177, %173
%179 = add i32 %178, %131
ret i32 %179
}