#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int fscanf(int /*<<< orphan*/ *, char *, int *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int strtol(char *, char **, int);
int /*<<< orphan*/ usage(char *, int);
int main(int argc, char *argv[]) {
  FILE *fp;
  int brightness;
  char *endptr;
  if (argc == 1) {
    usage(argv[0], 0);
  } else if ((fp = fopen("/sys/class/leds/asus::kbd_backlight/brightness",
                         "r+")) == NULL) {
    perror("/sys/class/leds/asus::kbd_backlight/brightness");
    return 1;
  } else if (fscanf(fp, "%d", &brightness) != 1) {
    fprintf(stderr, "Could not read %s\n",
            "/sys/class/leds/asus::kbd_backlight/brightness");
    return 1;
  } else if (strcmp(argv[1], "--") == 0) {
    brightness =
        (((((((brightness - 1)) < ((3))) ? ((brightness - 1)) : ((3)))) > ((0)))
             ? (((((brightness - 1)) < ((3))) ? ((brightness - 1)) : ((3))))
             : ((0)));
  } else if (strcmp(argv[1], "++") == 0) {
    brightness =
        (((((((brightness + 1)) < ((3))) ? ((brightness + 1)) : ((3)))) > ((0)))
             ? (((((brightness + 1)) < ((3))) ? ((brightness + 1)) : ((3))))
             : ((0)));
  } else {
    brightness = strtol(argv[1], &endptr, 10);
    if (endptr != argv[1] + 1 || brightness < 0 || brightness > 3) {
      fprintf(stderr, "Bad brightness value\n");
      usage(argv[0], 1);
    }
  }
  rewind(fp);
  fprintf(fp, "%d\n", brightness);
  fclose(fp);
  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)
cmpl   $0x1,-0x8(%rbp)
jne    11c3 <main+0x33>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1090 <usage@plt>
jmp    1408 <main+0x278>
lea    0xe36(%rip),%rdi
lea    0xe5e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11fc <main+0x6c>
lea    0xe15(%rip),%rdi
call   10b0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1436 <main+0x2a6>
mov    -0x18(%rbp),%rdi
lea    0xe2b(%rip),%rsi
lea    -0x1c(%rbp),%rdx
call   1050 <fscanf@plt>
cmp    $0x1,%eax
je     1244 <main+0xb4>
mov    0x2dc0(%rip),%rax
movslq (%rax),%rdi
lea    0xe0b(%rip),%rsi
lea    0xdcf(%rip),%rdx
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1436 <main+0x2a6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdf5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12e2 <main+0x152>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cmp    $0x3,%eax
jge    127f <main+0xef>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    128c <main+0xfc>
mov    $0x3,%eax
mov    %eax,-0x2c(%rbp)
jmp    128c <main+0xfc>
mov    -0x2c(%rbp),%eax
cmp    $0x0,%eax
jle    12cd <main+0x13d>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cmp    $0x3,%eax
jge    12b5 <main+0x125>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12c2 <main+0x132>
mov    $0x3,%eax
mov    %eax,-0x30(%rbp)
jmp    12c2 <main+0x132>
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    12d7 <main+0x147>
xor    %eax,%eax
mov    %eax,-0x34(%rbp)
jmp    12d7 <main+0x147>
mov    -0x34(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    13f9 <main+0x269>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5a(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1380 <main+0x1f0>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cmp    $0x3,%eax
jge    131d <main+0x18d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    132a <main+0x19a>
mov    $0x3,%eax
mov    %eax,-0x38(%rbp)
jmp    132a <main+0x19a>
mov    -0x38(%rbp),%eax
cmp    $0x0,%eax
jle    136b <main+0x1db>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cmp    $0x3,%eax
jge    1353 <main+0x1c3>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1360 <main+0x1d0>
mov    $0x3,%eax
mov    %eax,-0x3c(%rbp)
jmp    1360 <main+0x1d0>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    1375 <main+0x1e5>
xor    %eax,%eax
mov    %eax,-0x40(%rbp)
jmp    1375 <main+0x1e5>
mov    -0x40(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    13f4 <main+0x264>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x28(%rbp),%rsi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    0x8(%rcx),%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13c6 <main+0x236>
cmpl   $0x0,-0x1c(%rbp)
jl     13c6 <main+0x236>
cmpl   $0x3,-0x1c(%rbp)
jle    13ef <main+0x25f>
mov    0x2c13(%rip),%rax
movslq (%rax),%rdi
lea    0xc77(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    $0x1,%esi
call   1090 <usage@plt>
jmp    13f4 <main+0x264>
jmp    13f9 <main+0x269>
jmp    13fe <main+0x26e>
jmp    1403 <main+0x273>
jmp    1408 <main+0x278>
mov    -0x18(%rbp),%rdi
call   1040 <rewind@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xc45(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
cmp    $0x1,%edi
jne    11e6 <main+0x46>
mov    (%r14),%rdi
xor    %esi,%esi
call   1090 <usage@plt>
mov    %rbx,%rdi
call   1040 <rewind@plt>
mov    0x4(%rsp),%edx
lea    0xe97(%rip),%rsi
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
jmp    12dd <main+0x13d>
lea    0xe13(%rip),%rdi
lea    0xe3b(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     132d <main+0x18d>
mov    %rax,%rbx
lea    0xe26(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rax,%rdi
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    12b9 <main+0x119>
mov    0x8(%r14),%rdi
lea    0xe1b(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12e8 <main+0x148>
mov    0x8(%r14),%rdi
lea    0xe05(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     130b <main+0x16b>
mov    0x8(%r14),%rdi
lea    0x8(%rsp),%rsi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %eax,0x4(%rsp)
mov    0x8(%r14),%rcx
add    $0x1,%rcx
cmp    %rcx,0x8(%rsp)
jne    1287 <main+0xe7>
test   %eax,%eax
js     1287 <main+0xe7>
cmp    $0x4,%eax
jl     11ba <main+0x1a>
mov    0x2d52(%rip),%rax
movslq (%rax),%rcx
lea    0xdb6(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
call   10c0 <fwrite@plt>
mov    (%r14),%rdi
mov    $0x1,%esi
call   1090 <usage@plt>
jmp    11ba <main+0x1a>
mov    0x2d20(%rip),%rax
movslq (%rax),%rdi
lea    0xd6b(%rip),%rsi
lea    0xd2f(%rip),%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
mov    $0x4,%ecx
cmovl  %eax,%ecx
lea    -0x1(%rcx),%eax
xor    %edx,%edx
cmp    $0x2,%ecx
cmovge %eax,%edx
mov    %edx,0x4(%rsp)
jmp    11ba <main+0x1a>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
mov    $0x2,%ecx
cmovl  %eax,%ecx
lea    0x1(%rcx),%eax
xor    %edx,%edx
test   %ecx,%ecx
cmovns %eax,%edx
mov    %edx,0x4(%rsp)
jmp    11ba <main+0x1a>
lea    0xccc(%rip),%rdi
call   10b0 <perror@plt>
jmp    12d8 <main+0x138>

LLVM IR (-O0):
@.str = [47 x i8] c"/sys/class/leds/asus::kbd_backlight/brightness\00"
@.str.1 = [3 x i8] c"r+\00"
@.str.2 = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.3 = [19 x i8] c"Could not read %s\0A\00"
@.str.4 = [3 x i8] c"--\00"
@.str.5 = [3 x i8] c"++\00"
@.str.6 = [22 x i8] c"Bad brightness value\0A\00"
@.str.7 = [4 x i8] c"%d\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 i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i32 @usage(i8* %14, i32 0)
br label %121
16: ; preds = %2
%17 = call i32* @fopen(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %17, i32** %6
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @perror(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %129
21: ; preds = %16
%22 = load i32*, i32** %6
%23 = call i32 @fscanf(i32* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i32, i32* @stderr
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to i32*
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %129
30: ; preds = %21
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %60
36: ; preds = %30
%37 = load i32, i32* %7
%38 = sub nsw i32 %37, 1
%39 = icmp slt i32 %38, 3
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, i32* %7
%42 = sub nsw i32 %41, 1
br label %44
43: ; preds = %36
br label %44
44: ; preds = %43, %40
%45 = phi i32 [ %42, %40 ], [ 3, %43 ]
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %57
47: ; preds = %44
%48 = load i32, i32* %7
%49 = sub nsw i32 %48, 1
%50 = icmp slt i32 %49, 3
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = load i32, i32* %7
%53 = sub nsw i32 %52, 1
br label %55
54: ; preds = %47
br label %55
55: ; preds = %54, %51
%56 = phi i32 [ %53, %51 ], [ 3, %54 ]
br label %58
57: ; preds = %44
br label %58
58: ; preds = %57, %55
%59 = phi i32 [ %56, %55 ], [ 0, %57 ]
store i32 %59, i32* %7
br label %118
60: ; preds = %30
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %90
66: ; preds = %60
%67 = load i32, i32* %7
%68 = add nsw i32 %67, 1
%69 = icmp slt i32 %68, 3
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = load i32, i32* %7
%72 = add nsw i32 %71, 1
br label %74
73: ; preds = %66
br label %74
74: ; preds = %73, %70
%75 = phi i32 [ %72, %70 ], [ 3, %73 ]
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %87
77: ; preds = %74
%78 = load i32, i32* %7
%79 = add nsw i32 %78, 1
%80 = icmp slt i32 %79, 3
br i1 %80, label %81, label %84
81: ; preds = %77
%82 = load i32, i32* %7
%83 = add nsw i32 %82, 1
br label %85
84: ; preds = %77
br label %85
85: ; preds = %84, %81
%86 = phi i32 [ %83, %81 ], [ 3, %84 ]
br label %88
87: ; preds = %74
br label %88
88: ; preds = %87, %85
%89 = phi i32 [ %86, %85 ], [ 0, %87 ]
store i32 %89, i32* %7
br label %117
90: ; preds = %60
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 1
%93 = load i8*, i8** %92
%94 = call i32 @strtol(i8* %93, i8** %8, i32 10)
store i32 %94, i32* %7
%95 = load i8*, i8** %8
%96 = load i8**, i8*** %5
%97 = getelementptr inbounds i8*, i8** %96, i64 1
%98 = load i8*, i8** %97
%99 = getelementptr inbounds i8, i8* %98, i64 1
%100 = icmp ne i8* %95, %99
br i1 %100, label %107, label %101
101: ; preds = %90
%102 = load i32, i32* %7
%103 = icmp slt i32 %102, 0
br i1 %103, label %107, label %104
104: ; preds = %101
%105 = load i32, i32* %7
%106 = icmp sgt i32 %105, 3
br i1 %106, label %107, label %116
107: ; preds = %104, %101, %90
%108 = load i32, i32* @stderr
%109 = sext i32 %108 to i64
%110 = inttoptr i64 %109 to i32*
%111 = call i32 (i32*, i8*, ...) @fprintf(i32* %110, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%112 = load i8**, i8*** %5
%113 = getelementptr inbounds i8*, i8** %112, i64 0
%114 = load i8*, i8** %113
%115 = call i32 @usage(i8* %114, i32 1)
br label %116
116: ; preds = %107, %104
br label %117
117: ; preds = %116, %88
br label %118
118: ; preds = %117, %58
br label %119
119: ; preds = %118
br label %120
120: ; preds = %119
br label %121
121: ; preds = %120, %11
%122 = load i32*, i32** %6
%123 = call i32 @rewind(i32* %122)
%124 = load i32*, i32** %6
%125 = load i32, i32* %7
%126 = call i32 (i32*, i8*, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %125)
%127 = load i32*, i32** %6
%128 = call i32 @fclose(i32* %127)
store i32 0, i32* %3
br label %129
129: ; preds = %121, %25, %19
%130 = load i32, i32* %3
ret i32 %130
}

LLVM IR (-O2):
@.str = [47 x i8] c"/sys/class/leds/asus::kbd_backlight/brightness\00"
@.str.1 = [3 x i8] c"r+\00"
@.str.2 = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.3 = [19 x i8] c"Could not read %s\0A\00"
@.str.4 = [3 x i8] c"--\00"
@.str.5 = [3 x i8] c"++\00"
@.str.6 = [22 x i8] c"Bad brightness value\0A\00"
@.str.7 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = bitcast i32* %3 to i8*
%6 = bitcast i8** %4 to i8*
%7 = icmp eq i32 %0, 1
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 @usage(i8* %9, i32 0)
br label %65
11: ; preds = %2
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = tail call i32 @perror(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
br label %71
16: ; preds = %11
%17 = call i32 @fscanf(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%18 = icmp eq i32 %17, 1
br i1 %18, label %24, label %19
19: ; preds = %16
%20 = load i32, i32* @stderr
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i32*
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
br label %71
24: ; preds = %16
%25 = getelementptr inbounds i8*, i8** %1, i64 1
%26 = load i8*, i8** %25
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %36
29: ; preds = %24
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 4
%32 = select i1 %31, i32 %30, i32 4
%33 = icmp sgt i32 %32, 1
%34 = add nsw i32 %32, -1
%35 = select i1 %33, i32 %34, i32 0
store i32 %35, i32* %3
br label %65
36: ; preds = %24
%37 = load i8*, i8** %25
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = load i32, i32* %3
%42 = icmp slt i32 %41, 2
%43 = select i1 %42, i32 %41, i32 2
%44 = add nsw i32 %43, 1
%45 = icmp slt i32 %43, 0
%46 = select i1 %45, i32 0, i32 %44
store i32 %46, i32* %3
br label %65
47: ; preds = %36
%48 = load i8*, i8** %25
%49 = call i32 @strtol(i8* %48, i8** %4, i32 10)
store i32 %49, i32* %3
%50 = load i8*, i8** %4
%51 = load i8*, i8** %25
%52 = getelementptr inbounds i8, i8* %51, i64 1
%53 = icmp ne i8* %50, %52
%54 = icmp slt i32 %49, 0
%55 = select i1 %53, i1 true, i1 %54
%56 = icmp sgt i32 %49, 3
%57 = select i1 %55, i1 true, i1 %56
br i1 %57, label %58, label %65
58: ; preds = %47
%59 = load i32, i32* @stderr
%60 = sext i32 %59 to i64
%61 = inttoptr i64 %60 to i32*
%62 = call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i64 21, i64 1, i32* %61)
%63 = load i8*, i8** %1
%64 = call i32 @usage(i8* %63, i32 1)
br label %65
65: ; preds = %29, %58, %47, %40, %8
%66 = phi i32* [ undef, %8 ], [ %12, %29 ], [ %12, %40 ], [ %12, %58 ], [ %12, %47 ]
%67 = call i32 @rewind(i32* %66)
%68 = load i32, i32* %3
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %68)
%70 = call i32 @fclose(i32* %66)
br label %71
71: ; preds = %65, %19, %14
%72 = phi i32 [ 0, %65 ], [ 1, %14 ], [ 1, %19 ]
ret i32 %72
}