#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(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  FILE *fw = fopen("/dev/ttyUSB0", "w");
  FILE *fr = fopen("/dev/ttyUSB0", "r");
  int out = 0;
  int i, f = 0, end = 0;
  int ret;
  if (!fw || !fr) {
    fprintf(stderr, "/dev/ttyUSB0 is not accessible\n");
    exit(1);
  }
  while (out != 0x31) {
    out = fgetc(fr);
    printf("%i ", out);
  }
  printf("Received Start -> ");
  fputc(0x37, fw);
  fputc(0x0a, fw);
  printf("Sent Start\n");
  while (!end) {
    printf("0) Send a buffer\n");
    printf("1) Exit\n");
    scanf("%i", &ret);
    if (ret == 0) {
      while (out != 0x30) {
        out = fgetc(fr);
        printf("%i ", out);
      }
      printf("Received Ready\n");
      fputc(0x36, fw);
      fputc(0x0a, fw);
      printf("Sent Ready\n");
      printf("BUFFER --> ");
      fputc(0x39, fw);
      for (i = 0; i < 9; i++) {
        out = 0x4B + f * 18;
        printf("%i ", out);
        fputc(out, fw);
      }
      printf("\n");
      fputc(0x39, fw);
      fputc(0x0a, fw);
    } else if (ret == 1) {
      end = 1;
    } else {
      printf("Write only valid numbers!\n");
    }
    f++;
    f %= 11;
  }
  fclose(fw);
  fclose(fr);
  printf("Exit\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe63(%rip),%rdi
lea    0xe69(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe4c(%rip),%rdi
lea    0xe54(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11ef <main+0x6f>
cmpq   $0x0,-0x20(%rbp)
jne    120e <main+0x8e>
mov    0x2dea(%rip),%rax
mov    (%rax),%edi
lea    0xe12(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    1213 <main+0x93>
cmpl   $0x31,-0x24(%rbp)
je     123f <main+0xbf>
mov    -0x20(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1213 <main+0x93>
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x37,%edi
call   1060 <fputc@plt>
mov    -0x18(%rbp),%rsi
mov    $0xa,%edi
call   1060 <fputc@plt>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    128d <main+0x10d>
jmp    1402 <main+0x282>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdbf(%rip),%rdi
lea    -0x34(%rbp),%rsi
call   1080 <scanf@plt>
cmpl   $0x0,-0x34(%rbp)
jne    13bd <main+0x23d>
jmp    12c8 <main+0x148>
cmpl   $0x30,-0x24(%rbp)
je     12f4 <main+0x174>
mov    -0x20(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c8 <main+0x148>
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x36,%edi
call   1060 <fputc@plt>
mov    -0x18(%rbp),%rsi
mov    $0xa,%edi
call   1060 <fputc@plt>
lea    0xd5d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x39,%edi
call   1060 <fputc@plt>
movl   $0x0,-0x28(%rbp)
cmpl   $0x9,-0x28(%rbp)
jge    138e <main+0x20e>
imul   $0x12,-0x2c(%rbp),%eax
add    $0x4b,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1060 <fputc@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    134f <main+0x1cf>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x39,%edi
call   1060 <fputc@plt>
mov    -0x18(%rbp),%rsi
mov    $0xa,%edi
call   1060 <fputc@plt>
jmp    13e6 <main+0x266>
cmpl   $0x1,-0x34(%rbp)
jne    13d3 <main+0x253>
movl   $0x1,-0x30(%rbp)
jmp    13e1 <main+0x261>
lea    0xcc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13e6 <main+0x266>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0xb,%ecx
cltd
idiv   %ecx
mov    %edx,-0x2c(%rbp)
jmp    1277 <main+0xf7>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xc4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe4e(%rip),%rbx
lea    0xe54(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
mov    %rax,%r14
lea    0xea4(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %r14,%r14
je     148d <main+0x2ed>
mov    %rax,%rbx
test   %rax,%rax
je     148d <main+0x2ed>
lea    0xe40(%rip),%r15
nop
mov    %rbx,%rdi
call   1070 <fgetc@plt>
mov    %eax,%ebp
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x31,%ebp
jne    11f0 <main+0x50>
lea    0xe21(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x37,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    $0xa,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
lea    0xe1b(%rip),%rdi
call   1040 <puts@plt>
mov    $0x31,%r12d
lea    0xe14(%rip),%rbp
lea    0xddc(%rip),%r15
xor    %r13d,%r13d
jmp    13e1 <main+0x241>
nopl   0x0(%rax,%rax,1)
lea    0xe2c(%rip),%rdi
call   1040 <puts@plt>
mov    $0x36,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    $0xa,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
lea    0xe15(%rip),%rdi
call   1040 <puts@plt>
lea    0xdb0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x39,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
lea    0x0(%r13,%r13,8),%eax
lea    (%rax,%rax,1),%r12d
add    $0x4b,%r12d
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x39,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
mov    $0xa,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
lea    0xca3(%rip),%rbp
add    $0x1,%r13d
movslq %r13d,%r13
imul   $0x2e8ba2e9,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,2),%eax
sub    %eax,%r13d
mov    %rbp,%rdi
call   1040 <puts@plt>
lea    0xc81(%rip),%rdi
call   1040 <puts@plt>
lea    0xc4a(%rip),%rdi
lea    0x4(%rsp),%rsi
call   10a0 <scanf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
je     1430 <main+0x290>
cmp    $0x1,%eax
je     1460 <main+0x2c0>
lea    0xc5f(%rip),%rdi
call   1040 <puts@plt>
jmp    13bd <main+0x21d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0x30,%r12d
je     1260 <main+0xc0>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1070 <fgetc@plt>
mov    %eax,%ebp
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x30,%ebp
jne    1440 <main+0x2a0>
jmp    1260 <main+0xc0>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
lea    0xbfd(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b4c(%rip),%rax
mov    (%rax),%edi
lea    0xb72(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"/dev/ttyUSB0\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [32 x i8] c"/dev/ttyUSB0 is not accessible\0A\00"
@.str.4 = [4 x i8] c"%i \00"
@.str.5 = [19 x i8] c"Received Start -> \00"
@.str.6 = [12 x i8] c"Sent Start\0A\00"
@.str.7 = [18 x i8] c"0) Send a buffer\0A\00"
@.str.8 = [9 x i8] c"1) Exit\0A\00"
@.str.9 = [3 x i8] c"%i\00"
@.str.10 = [16 x i8] c"Received Ready\0A\00"
@.str.11 = [12 x i8] c"Sent Ready\0A\00"
@.str.12 = [12 x i8] c"BUFFER --> \00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [27 x i8] c"Write only valid numbers!\0A\00"
@.str.15 = [6 x i8] c"Exit\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %13, i32** %6
%14 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %14, i32** %7
store i32 0, i32* %8
store i32 0, i32* %10
store i32 0, i32* %11
%15 = load i32*, i32** %6
%16 = icmp ne i32* %15, null
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32*, i32** %7
%19 = icmp ne i32* %18, null
br i1 %19, label %24, label %20
20: ; preds = %17, %2
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %17
br label %25
25: ; preds = %28, %24
%26 = load i32, i32* %8
%27 = icmp ne i32 %26, 49
br i1 %27, label %28, label %33
28: ; preds = %25
%29 = load i32*, i32** %7
%30 = call i32 @fgetc(i32* %29)
store i32 %30, i32* %8
%31 = load i32, i32* %8
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %31)
br label %25
33: ; preds = %25
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%35 = load i32*, i32** %6
%36 = call i32 @fputc(i32 55, i32* %35)
%37 = load i32*, i32** %6
%38 = call i32 @fputc(i32 10, i32* %37)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
br label %40
40: ; preds = %97, %33
%41 = load i32, i32* %11
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
br i1 %43, label %44, label %102
44: ; preds = %40
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %12)
%48 = load i32, i32* %12
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %90
50: ; preds = %44
br label %51
51: ; preds = %54, %50
%52 = load i32, i32* %8
%53 = icmp ne i32 %52, 48
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load i32*, i32** %7
%56 = call i32 @fgetc(i32* %55)
store i32 %56, i32* %8
%57 = load i32, i32* %8
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %57)
br label %51
59: ; preds = %51
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%61 = load i32*, i32** %6
%62 = call i32 @fputc(i32 54, i32* %61)
%63 = load i32*, i32** %6
%64 = call i32 @fputc(i32 10, i32* %63)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%67 = load i32*, i32** %6
%68 = call i32 @fputc(i32 57, i32* %67)
store i32 0, i32* %9
br label %69
69: ; preds = %81, %59
%70 = load i32, i32* %9
%71 = icmp slt i32 %70, 9
br i1 %71, label %72, label %84
72: ; preds = %69
%73 = load i32, i32* %10
%74 = mul nsw i32 %73, 18
%75 = add nsw i32 75, %74
store i32 %75, i32* %8
%76 = load i32, i32* %8
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %76)
%78 = load i32, i32* %8
%79 = load i32*, i32** %6
%80 = call i32 @fputc(i32 %78, i32* %79)
br label %81
81: ; preds = %72
%82 = load i32, i32* %9
%83 = add nsw i32 %82, 1
store i32 %83, i32* %9
br label %69
84: ; preds = %69
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%86 = load i32*, i32** %6
%87 = call i32 @fputc(i32 57, i32* %86)
%88 = load i32*, i32** %6
%89 = call i32 @fputc(i32 10, i32* %88)
br label %97
90: ; preds = %44
%91 = load i32, i32* %12
%92 = icmp eq i32 %91, 1
br i1 %92, label %93, label %94
93: ; preds = %90
store i32 1, i32* %11
br label %96
94: ; preds = %90
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
br label %96
96: ; preds = %94, %93
br label %97
97: ; preds = %96, %84
%98 = load i32, i32* %10
%99 = add nsw i32 %98, 1
store i32 %99, i32* %10
%100 = load i32, i32* %10
%101 = srem i32 %100, 11
store i32 %101, i32* %10
br label %40
102: ; preds = %40
%103 = load i32*, i32** %6
%104 = call i32 @fclose(i32* %103)
%105 = load i32*, i32** %7
%106 = call i32 @fclose(i32* %105)
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"/dev/ttyUSB0\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [32 x i8] c"/dev/ttyUSB0 is not accessible\0A\00"
@.str.4 = [4 x i8] c"%i \00"
@.str.5 = [19 x i8] c"Received Start -> \00"
@.str.9 = [3 x i8] c"%i\00"
@.str.12 = [12 x i8] c"BUFFER --> \00"
@str = [11 x i8] c"Sent Start\00"
@str.16 = [5 x i8] c"Exit\00"
@str.17 = [17 x i8] c"0) Send a buffer\00"
@str.18 = [8 x i8] c"1) Exit\00"
@str.19 = [26 x i8] c"Write only valid numbers!\00"
@str.20 = [15 x i8] c"Received Ready\00"
@str.21 = [11 x i8] c"Sent Ready\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = bitcast i32* %3 to i8*
%7 = icmp ne i32* %4, null
%8 = icmp ne i32* %5, null
%9 = and i1 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %2, %14
%15 = tail call i32 @fgetc(i32* %5)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %15)
%17 = icmp eq i32 %15, 49
br i1 %17, label %18, label %14
18: ; preds = %14
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%20 = tail call i32 @fputc(i32 55, i32* %4)
%21 = tail call i32 @fputc(i32 10, i32* %4)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
br label %23
23: ; preds = %68, %18
%24 = phi i32 [ 0, %18 ], [ %71, %68 ]
%25 = phi i32 [ 49, %18 ], [ %69, %68 ]
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.17, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.18, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %3)
%29 = load i32, i32* %3
switch i32 %29, label %66 [
i32 0, label %30
i32 1, label %72
]
30: ; preds = %23
%31 = icmp eq i32 %25, 48
br i1 %31, label %36, label %32
32: ; preds = %30, %32
%33 = call i32 @fgetc(i32* %5)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = icmp eq i32 %33, 48
br i1 %35, label %36, label %32
36: ; preds = %32, %30
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.20, i64 0, i64 0))
%38 = call i32 @fputc(i32 54, i32* %4)
%39 = call i32 @fputc(i32 10, i32* %4)
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.21, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%42 = call i32 @fputc(i32 57, i32* %4)
%43 = mul nsw i32 %24, 18
%44 = add nsw i32 %43, 75
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = call i32 @fputc(i32 %44, i32* %4)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%48 = call i32 @fputc(i32 %44, i32* %4)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%50 = call i32 @fputc(i32 %44, i32* %4)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%52 = call i32 @fputc(i32 %44, i32* %4)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%54 = call i32 @fputc(i32 %44, i32* %4)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%56 = call i32 @fputc(i32 %44, i32* %4)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%58 = call i32 @fputc(i32 %44, i32* %4)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%60 = call i32 @fputc(i32 %44, i32* %4)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%62 = call i32 @fputc(i32 %44, i32* %4)
%63 = call i32 @putchar(i32 10)
%64 = call i32 @fputc(i32 57, i32* %4)
%65 = call i32 @fputc(i32 10, i32* %4)
br label %68
66: ; preds = %23
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.19, i64 0, i64 0))
br label %68
68: ; preds = %66, %36
%69 = phi i32 [ %44, %36 ], [ %25, %66 ]
%70 = add nsw i32 %24, 1
%71 = srem i32 %70, 11
br label %23
72: ; preds = %23
%73 = call i32 @fclose(i32* %4)
%74 = call i32 @fclose(i32* %5)
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.16, i64 0, i64 0))
ret i32 0
}