#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ F_OK;
scalar_t__ access(char *, int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/);
int /*<<< orphan*/ freopen(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, int *, ...);
int /*<<< orphan*/ stdin;
int main(int argc, char **argv) {
  int num;
  int budget;
  int hotel;
  int week;
  int price;
  int beds[18][13];
  int cost[18];
  int min;
  int available;
  int i, k;
  if (argc != 2) {
    printf("Usage: %s INPUT_FILE\n\n", argv[0]);
    exit(-1);
  }
  if (access(argv[1], F_OK)) {
    printf("Error: INPUT_FILE %s does not exist\n\n", argv[1]);
    exit(-1);
  }
  freopen(argv[1], "r", stdin);
  while (scanf("%d %d %d %d", &num, &budget, &hotel, &week) == 4) {
    min = -1;
    for (i = 0; i < hotel; ++i) {
      scanf("%d", &price);
      available = 0;
      for (k = 0; k < week; ++k) {
        scanf("%d", &beds[i][k]);
        if (beds[i][k] >= num)
          available = 1;
      }
      if (!available) {
        cost[i] = -1;
      } else {
        cost[i] = num * price;
      }
      if ((min < 0) || (cost[i] > 0 && cost[i] < min))
        min = cost[i];
    }
    if (min > 0 && min < budget)
      printf("%d\n", min);
    else
      printf("stay home\n");
  }
  fclose(stdin);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11a2 <main+0x42>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e1f(%rip),%rax
mov    (%rax),%esi
call   1070 <access@plt>
cmp    $0x0,%rax
je     11e2 <main+0x82>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2df7(%rip),%rax
mov    (%rax),%edx
lea    0xe43(%rip),%rsi
call   1050 <freopen@plt>
lea    0xe39(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
mov    $0x0,%al
call   1060 <scanf@plt>
cmp    $0x4,%eax
jne    13e4 <main+0x284>
movl   $0xffffffff,-0x424(%rbp)
ff ff ff
movl   $0x0,-0x42c(%rbp)
mov    -0x42c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    139c <main+0x23c>
lea    0xdf8(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movl   $0x0,-0x428(%rbp)
movl   $0x0,-0x430(%rbp)
mov    -0x430(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    12fa <main+0x19a>
movslq -0x42c(%rbp),%rax
lea    -0x3d0(%rbp),%rsi
imul   $0x34,%rax,%rax
add    %rax,%rsi
movslq -0x430(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
movslq -0x42c(%rbp),%rcx
lea    -0x3d0(%rbp),%rax
imul   $0x34,%rcx,%rcx
add    %rcx,%rax
movslq -0x430(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x14(%rbp),%eax
jl     12e1 <main+0x181>
movl   $0x1,-0x428(%rbp)
jmp    12e6 <main+0x186>
mov    -0x430(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x430(%rbp)
jmp    126f <main+0x10f>
cmpl   $0x0,-0x428(%rbp)
jne    131e <main+0x1be>
movslq -0x42c(%rbp),%rax
movl   $0xffffffff,-0x420(%rbp,%rax,4)
ff ff ff ff
jmp    1333 <main+0x1d3>
mov    -0x14(%rbp),%ecx
imul   -0x24(%rbp),%ecx
movslq -0x42c(%rbp),%rax
mov    %ecx,-0x420(%rbp,%rax,4)
cmpl   $0x0,-0x424(%rbp)
jl     136f <main+0x20f>
movslq -0x42c(%rbp),%rax
cmpl   $0x0,-0x420(%rbp,%rax,4)
jle    1383 <main+0x223>
movslq -0x42c(%rbp),%rax
mov    -0x420(%rbp,%rax,4),%eax
cmp    -0x424(%rbp),%eax
jge    1383 <main+0x223>
movslq -0x42c(%rbp),%rax
mov    -0x420(%rbp,%rax,4),%eax
mov    %eax,-0x424(%rbp)
jmp    1388 <main+0x228>
mov    -0x42c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x42c(%rbp)
jmp    123a <main+0xda>
cmpl   $0x0,-0x424(%rbp)
jle    13d1 <main+0x271>
mov    -0x424(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13d1 <main+0x271>
mov    -0x424(%rbp),%esi
lea    0xc86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13df <main+0x27f>
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11ff <main+0x9f>
mov    0x2bfd(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3c8,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    135c <main+0x1ec>
mov    0x8(%rbx),%rdi
mov    0x2e38(%rip),%rax
mov    (%rax),%esi
call   1080 <access@plt>
mov    0x8(%rbx),%rcx
test   %rax,%rax
jne    1368 <main+0x1f8>
mov    0x2e35(%rip),%rax
mov    (%rax),%edx
lea    0xe81(%rip),%rsi
mov    %rcx,%rdi
call   1060 <freopen@plt>
lea    0xe74(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x4(%rsp),%rcx
mov    %rsp,%r8
xor    %eax,%eax
call   1070 <scanf@plt>
cmp    $0x4,%eax
jne    133a <main+0x1ca>
lea    0xe54(%rip),%rbx
mov    $0x1,%r15d
jmp    1235 <main+0xc5>
nopl   0x0(%rax)
lea    0xe48(%rip),%rdi
call   1030 <puts@plt>
lea    0xe2c(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x4(%rsp),%rcx
mov    %rsp,%r8
xor    %eax,%eax
call   1070 <scanf@plt>
cmp    $0x4,%eax
jne    133a <main+0x1ca>
cmpl   $0x0,0x4(%rsp)
jle    1200 <main+0x90>
mov    $0xffffffff,%r12d
lea    0x20(%rsp),%rbp
xor    %r14d,%r14d
jmp    1269 <main+0xf9>
nopl   0x0(%rax)
mov    %eax,%r12d
add    $0x1,%r14
movslq 0x4(%rsp),%rax
add    $0x34,%rbp
cmp    %rax,%r14
jge    1310 <main+0x1a0>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
cmpl   $0x0,(%rsp)
mov    $0xffffffff,%eax
jle    12e6 <main+0x176>
mov    %r12d,0x10(%rsp)
xor    %r13d,%r13d
mov    %rbp,0x18(%rsp)
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x0(%rbp),%eax
cmp    0x8(%rsp),%eax
cmovge %r15d,%r12d
add    $0x1,%r13
movslq (%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%r13
jl     12a0 <main+0x130>
mov    $0xffffffff,%eax
test   %r12d,%r12d
mov    0x10(%rsp),%r12d
mov    0x18(%rsp),%rbp
je     12e6 <main+0x176>
mov    0x14(%rsp),%eax
imul   0x8(%rsp),%eax
test   %r12d,%r12d
js     1250 <main+0xe0>
test   %eax,%eax
jle    1253 <main+0xe3>
cmp    %r12d,%eax
jl     1250 <main+0xe0>
jmp    1253 <main+0xe3>
cs nopw 0x0(%rax,%rax,1)
nop
test   %r12d,%r12d
jle    1200 <main+0x90>
cmp    0xc(%rsp),%r12d
jge    1200 <main+0x90>
lea    0xd20(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    120c <main+0x9c>
mov    0x2ca7(%rip),%rax
mov    (%rax),%edi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x3c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%rsi
lea    0xc9a(%rip),%rdi
jmp    1372 <main+0x202>
lea    0xca8(%rip),%rdi
mov    %rcx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

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

LLVM IR (-O2):
@.str = [23 x i8] c"Usage: %s INPUT_FILE\0A\0A\00"
@F_OK = global i32 0
@.str.1 = [38 x i8] c"Error: INPUT_FILE %s does not exist\0A\0A\00"
@.str.2 = [2 x i8] c"r\00"
@stdin = global i32 0
@.str.3 = [12 x i8] c"%d %d %d %d\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@str = [10 x i8] c"stay home\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [18 x [13 x i32]]
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = bitcast [18 x [13 x i32]]* %8 to i8*
%15 = icmp eq i32 %0, 2
br i1 %15, label %20, label %16
16: ; preds = %2
%17 = load i8*, i8** %1
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = tail call i32 @exit(i32 -1)
unreachable
20: ; preds = %2
%21 = getelementptr inbounds i8*, i8** %1, i64 1
%22 = load i8*, i8** %21
%23 = load i32, i32* @F_OK
%24 = tail call i64 @access(i8* %22, i32 %23)
%25 = icmp eq i64 %24, 0
%26 = load i8*, i8** %21
br i1 %25, label %30, label %27
27: ; preds = %20
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%29 = tail call i32 @exit(i32 -1)
unreachable
30: ; preds = %20
%31 = load i32, i32* @stdin
%32 = tail call i32 @freopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%33 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32* %3, i32* %4, i32* %5, i32* %6)
%34 = icmp eq i32 %33, 4
br i1 %34, label %35, label %89
35: ; preds = %30, %86
%36 = load i32, i32* %5
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %84
38: ; preds = %35, %71
%39 = phi i64 [ %73, %71 ], [ 0, %35 ]
%40 = phi i32 [ %72, %71 ], [ -1, %35 ]
%41 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%42 = load i32, i32* %6
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %63
44: ; preds = %38, %44
%45 = phi i64 [ %53, %44 ], [ 0, %38 ]
%46 = phi i32 [ %52, %44 ], [ 0, %38 ]
%47 = getelementptr inbounds [18 x [13 x i32]], [18 x [13 x i32]]* %8, i64 0, i64 %39, i64 %45
%48 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %47)
%49 = load i32, i32* %47
%50 = load i32, i32* %3
%51 = icmp slt i32 %49, %50
%52 = select i1 %51, i32 %46, i32 1
%53 = add nuw nsw i64 %45, 1
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = icmp slt i64 %53, %55
br i1 %56, label %44, label %57
57: ; preds = %44
%58 = icmp eq i32 %52, 0
br i1 %58, label %63, label %59
59: ; preds = %57
%60 = load i32, i32* %3
%61 = load i32, i32* %7
%62 = mul nsw i32 %61, %60
br label %63
63: ; preds = %38, %57, %59
%64 = phi i32 [ %62, %59 ], [ -1, %57 ], [ -1, %38 ]
%65 = icmp slt i32 %40, 0
br i1 %65, label %70, label %66
66: ; preds = %63
%67 = icmp sgt i32 %64, 0
%68 = icmp slt i32 %64, %40
%69 = select i1 %67, i1 %68, i1 false
br i1 %69, label %70, label %71
70: ; preds = %66, %63
br label %71
71: ; preds = %66, %70
%72 = phi i32 [ %64, %70 ], [ %40, %66 ]
%73 = add nuw nsw i64 %39, 1
%74 = load i32, i32* %5
%75 = sext i32 %74 to i64
%76 = icmp slt i64 %73, %75
br i1 %76, label %38, label %77
77: ; preds = %71
%78 = icmp sgt i32 %72, 0
%79 = load i32, i32* %4
%80 = icmp slt i32 %72, %79
%81 = select i1 %78, i1 %80, i1 false
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %72)
br label %86
84: ; preds = %35, %77
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
br label %86
86: ; preds = %84, %82
%87 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32* %3, i32* %4, i32* %5, i32* %6)
%88 = icmp eq i32 %87, 4
br i1 %88, label %35, label %89
89: ; preds = %86, %30
%90 = load i32, i32* @stdin
%91 = call i32 @fclose(i32 %90)
ret i32 0
}