#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*/ cevap_karsiliklari(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int soru_sor(int, int);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  srand(time(NULL));
  char devam_edilme_durumu = 'e';
  while (devam_edilme_durumu != 'h') {
    printf("1-Bir basamakli sorular\n");
    printf("2-Iki basamkli sorular\n");
    int soru_seviyesi;
    printf("Sorularin seviye numarasini giriniz: ");
    scanf("%d", &soru_seviyesi);
    printf("1-Toplama işlemleri\n");
    printf("2-Cıkarma islemleri\n");
    printf("3-Carpma islemleri\n");
    printf("4-Bolme islemleri\n");
    printf("5-Karma islemler\n");
    int soru_tipi;
    printf("Soru tipi numarasini giriniz: ");
    scanf("%d", &soru_tipi);
    if (((soru_seviyesi == 1) || (soru_seviyesi == 2)) &&
        ((soru_tipi <= 5) && (soru_tipi >= 1))) {
      int sonsuz_dongu = 0;
      int dogru_cevap_sayisi = 0;
      int yanlis_cevap_sayisi = 0;
      while (sonsuz_dongu < 1) {
        int soru_sonucu;
        soru_sonucu = soru_sor(soru_seviyesi, soru_tipi);
        int girilen_cevap;
        printf("Sonuc = ");
        scanf("%d", &girilen_cevap);
        int cevap_kontrolu;
        if (girilen_cevap == soru_sonucu) {
          cevap_kontrolu = 1;
          cevap_karsiliklari(cevap_kontrolu);
          dogru_cevap_sayisi++;
        } else {
          cevap_kontrolu = 0;
          cevap_karsiliklari(cevap_kontrolu);
          yanlis_cevap_sayisi++;
        }
        if ((dogru_cevap_sayisi + yanlis_cevap_sayisi) == 10) {
          printf("%d sorudan %d dogru cevabiniz %d yanlis cevabiniz var :) \n",
                 10, dogru_cevap_sayisi, yanlis_cevap_sayisi);
          if (yanlis_cevap_sayisi >= (10 * 3) / 10) {
            printf("Daha cok calisman lazim :) \n");
          }
          break;
        }
      }
    } else {
      printf("Seviye numarasini veya Soru tipi numarasini yanlis girdiniz!!\n");
    }
    printf("Yeniden denemek istermisiniz?(e veya h): ");
    scanf(" %c", &devam_edilme_durumu);
  }
  printf("Egitim programindan ciktiniz :)");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
movb   $0x65,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x68,%eax
je     136a <main+0x20a>
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe30(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
cmpl   $0x1,-0xc(%rbp)
je     1246 <main+0xe6>
cmpl   $0x2,-0xc(%rbp)
jne    1337 <main+0x1d7>
cmpl   $0x5,-0x10(%rbp)
jg     1337 <main+0x1d7>
cmpl   $0x1,-0x10(%rbp)
jl     1337 <main+0x1d7>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x1,-0x14(%rbp)
jge    1332 <main+0x1d2>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1080 <soru_sor@plt>
mov    %eax,-0x20(%rbp)
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdbb(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    12d0 <main+0x170>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%edi
call   1030 <cevap_karsiliklari@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12e8 <main+0x188>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%edi
call   1030 <cevap_karsiliklari@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
cmp    $0xa,%eax
jne    132d <main+0x1cd>
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xde3(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x3,-0x1c(%rbp)
jl     1328 <main+0x1c8>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1332 <main+0x1d2>
jmp    126f <main+0x10f>
jmp    1345 <main+0x1e5>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    -0x5(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
jmp    1183 <main+0x23>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
movb   $0x65,0xb(%rsp)
lea    0xf42(%rip),%r14
lea    0xf53(%rip),%r13
lea    0xe5a(%rip),%rbp
lea    0xe79(%rip),%rbx
lea    0xe94(%rip),%r15
lea    0x14(%rsp),%r12
jmp    11f8 <main+0x88>
nopl   0x0(%rax,%rax,1)
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed5(%rip),%rdi
lea    0xb(%rsp),%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
cmpb   $0x68,0xb(%rsp)
je     1354 <main+0x1e4>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xdc5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
mov    0x10(%rsp),%edi
lea    -0x1(%rdi),%eax
cmp    $0x1,%eax
ja     11c0 <main+0x50>
mov    0xc(%rsp),%esi
cmp    $0x5,%esi
jg     11c0 <main+0x50>
test   %esi,%esi
jle    11c0 <main+0x50>
xor    %ebp,%ebp
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
call   1090 <soru_sor@plt>
mov    %eax,%r14d
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
cmp    %r14d,0x14(%rsp)
jne    12f0 <main+0x180>
mov    $0x1,%edi
call   1040 <cevap_karsiliklari@plt>
add    $0x1,%ebp
jmp    12fb <main+0x18b>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edi,%edi
call   1040 <cevap_karsiliklari@plt>
add    $0x1,%r13d
lea    0x0(%r13,%rbp,1),%eax
cmp    $0xa,%eax
je     1310 <main+0x1a0>
mov    0x10(%rsp),%edi
mov    0xc(%rsp),%esi
jmp    12b0 <main+0x140>
nop
lea    0xd3a(%rip),%rdi
mov    $0xa,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x3,%r13d
jl     133a <main+0x1ca>
lea    0xe72(%rip),%rdi
call   1030 <puts@plt>
lea    0xd99(%rip),%r14
lea    0xdaa(%rip),%r13
lea    0xcb1(%rip),%rbp
jmp    11cc <main+0x5c>
lea    0xd5f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"1-Bir basamakli sorular\0A\00"
@.str.1 = [24 x i8] c"2-Iki basamkli sorular\0A\00"
@.str.2 = [38 x i8] c"Sorularin seviye numarasini giriniz: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [22 x i8] c"1-Toplama i\C5\9Flemleri\0A\00"
@.str.5 = [22 x i8] c"2-C\C4\B1karma islemleri\0A\00"
@.str.6 = [20 x i8] c"3-Carpma islemleri\0A\00"
@.str.7 = [19 x i8] c"4-Bolme islemleri\0A\00"
@.str.8 = [18 x i8] c"5-Karma islemler\0A\00"
@.str.9 = [31 x i8] c"Soru tipi numarasini giriniz: \00"
@.str.10 = [9 x i8] c"Sonuc = \00"
@.str.11 = [59 x i8] c"%d sorudan %d dogru cevabiniz %d yanlis cevabiniz var :) \0A\00"
@.str.12 = [29 x i8] c"Daha cok calisman lazim :) \0A\00"
@.str.13 = [63 x i8] c"Seviye numarasini veya Soru tipi numarasini yanlis girdiniz!!\0A\00"
@.str.14 = [42 x i8] c"Yeniden denemek istermisiniz?(e veya h): \00"
@.str.15 = [4 x i8] c" %c\00"
@.str.16 = [32 x i8] c"Egitim programindan ciktiniz :)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = call i32 @time(i32* null)
%12 = call i32 @srand(i32 %11)
store i8 101, i8* %2
br label %13
13: ; preds = %81, %0
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 104
br i1 %16, label %17, label %84
17: ; preds = %13
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%29 = load i32, i32* %3
%30 = icmp eq i32 %29, 1
br i1 %30, label %34, label %31
31: ; preds = %17
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, 2
br i1 %33, label %34, label %79
34: ; preds = %31, %17
%35 = load i32, i32* %4
%36 = icmp sle i32 %35, 5
br i1 %36, label %37, label %79
37: ; preds = %34
%38 = load i32, i32* %4
%39 = icmp sge i32 %38, 1
br i1 %39, label %40, label %79
40: ; preds = %37
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %41
41: ; preds = %77, %40
%42 = load i32, i32* %5
%43 = icmp slt i32 %42, 1
br i1 %43, label %44, label %78
44: ; preds = %41
%45 = load i32, i32* %3
%46 = load i32, i32* %4
%47 = call i32 @soru_sor(i32 %45, i32 %46)
store i32 %47, i32* %8
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %9)
%50 = load i32, i32* %9
%51 = load i32, i32* %8
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %58
53: ; preds = %44
store i32 1, i32* %10
%54 = load i32, i32* %10
%55 = call i32 @cevap_karsiliklari(i32 %54)
%56 = load i32, i32* %6
%57 = add nsw i32 %56, 1
store i32 %57, i32* %6
br label %63
58: ; preds = %44
store i32 0, i32* %10
%59 = load i32, i32* %10
%60 = call i32 @cevap_karsiliklari(i32 %59)
%61 = load i32, i32* %7
%62 = add nsw i32 %61, 1
store i32 %62, i32* %7
br label %63
63: ; preds = %58, %53
%64 = load i32, i32* %6
%65 = load i32, i32* %7
%66 = add nsw i32 %64, %65
%67 = icmp eq i32 %66, 10
br i1 %67, label %68, label %77
68: ; preds = %63
%69 = load i32, i32* %6
%70 = load i32, i32* %7
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0), i32 10, i32 %69, i32 %70)
%72 = load i32, i32* %7
%73 = icmp sge i32 %72, 3
br i1 %73, label %74, label %76
74: ; preds = %68
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
br label %76
76: ; preds = %74, %68
br label %78
77: ; preds = %63
br label %41
78: ; preds = %76, %41
br label %81
79: ; preds = %37, %34, %31
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.13, i64 0, i64 0))
br label %81
81: ; preds = %79, %78
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
%83 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* %2)
br label %13
84: ; preds = %13
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [38 x i8] c"Sorularin seviye numarasini giriniz: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.9 = [31 x i8] c"Soru tipi numarasini giriniz: \00"
@.str.10 = [9 x i8] c"Sonuc = \00"
@.str.11 = [59 x i8] c"%d sorudan %d dogru cevabiniz %d yanlis cevabiniz var :) \0A\00"
@.str.14 = [42 x i8] c"Yeniden denemek istermisiniz?(e veya h): \00"
@.str.15 = [4 x i8] c" %c\00"
@.str.16 = [32 x i8] c"Egitim programindan ciktiniz :)\00"
@str = [24 x i8] c"1-Bir basamakli sorular\00"
@str.17 = [23 x i8] c"2-Iki basamkli sorular\00"
@str.18 = [21 x i8] c"1-Toplama i\C5\9Flemleri\00"
@str.19 = [21 x i8] c"2-C\C4\B1karma islemleri\00"
@str.20 = [19 x i8] c"3-Carpma islemleri\00"
@str.21 = [18 x i8] c"4-Bolme islemleri\00"
@str.22 = [17 x i8] c"5-Karma islemler\00"
@str.23 = [62 x i8] c"Seviye numarasini veya Soru tipi numarasini yanlis girdiniz!!\00"
@str.24 = [28 x i8] c"Daha cok calisman lazim :) \00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = tail call i32 @time(i32* null)
%6 = tail call i32 @srand(i32 %5)
store i8 101, i8* %1
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
br label %10
10: ; preds = %0, %62
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.17, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.18, i64 0, i64 0))
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.20, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.21, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.22, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%22 = load i32, i32* %2
%23 = add i32 %22, -1
%24 = icmp ult i32 %23, 2
%25 = load i32, i32* %3
%26 = icmp slt i32 %25, 6
%27 = select i1 %24, i1 %26, i1 false
%28 = icmp sgt i32 %25, 0
%29 = select i1 %27, i1 %28, i1 false
br i1 %29, label %30, label %60
30: ; preds = %10, %57
%31 = phi i32 [ %59, %57 ], [ %25, %10 ]
%32 = phi i32 [ %58, %57 ], [ %22, %10 ]
%33 = phi i32 [ %47, %57 ], [ 0, %10 ]
%34 = phi i32 [ %48, %57 ], [ 0, %10 ]
%35 = call i32 @soru_sor(i32 %32, i32 %31)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%38 = load i32, i32* %4
%39 = icmp eq i32 %38, %35
br i1 %39, label %40, label %43
40: ; preds = %30
%41 = call i32 @cevap_karsiliklari(i32 1)
%42 = add nsw i32 %33, 1
br label %46
43: ; preds = %30
%44 = call i32 @cevap_karsiliklari(i32 0)
%45 = add nsw i32 %34, 1
br label %46
46: ; preds = %43, %40
%47 = phi i32 [ %42, %40 ], [ %33, %43 ]
%48 = phi i32 [ %34, %40 ], [ %45, %43 ]
%49 = add nsw i32 %48, %47
%50 = icmp eq i32 %49, 10
br i1 %50, label %51, label %57
51: ; preds = %46
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0), i32 10, i32 %47, i32 %48)
%53 = icmp sgt i32 %48, 2
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.24, i64 0, i64 0))
br label %56
56: ; preds = %54, %51
br label %62
57: ; preds = %46
%58 = load i32, i32* %2
%59 = load i32, i32* %3
br label %30
60: ; preds = %10
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.23, i64 0, i64 0))
br label %62
62: ; preds = %56, %60
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
%64 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* %1)
%65 = load i8, i8* %1
%66 = icmp eq i8 %65, 104
br i1 %66, label %67, label %10
67: ; preds = %62
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}