#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 pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int continu = 1;
  while (continu) {
    int nb = 0, nb_mist = 0, born_sup = 0, born_inf = 0, nivo = 0, coups = 1,
        aide = 1;
    while (nivo < 1 || nivo > 3) {
      printf("Choix du Niveau: \n1\tFacile (entre 1 et 100)\n2\tMoyen (entre 1 "
             "et 1000)\n3\tDifficile (entre 1 et 10000)\n");
      printf("Votre Choix: ");
      scanf("%ld", &nivo);
    }
    printf("\n\n");
    printf("Voulez vous activer l'aide\n1\toui\n0\tnon\n");
    printf("Votre Choix: ");
    scanf("%ld", &aide);
    born_sup = pow(10, nivo + 1);
    nivo = 0;
    srand(time(NULL));
    nb_mist = (rand() % (born_sup - born_inf + 1)) + born_inf;
    while (nb != nb_mist) {
      printf("\n\nVous devez trouver un nombre entre %ld et %ld\n", born_inf,
             born_sup);
      printf("Proposition: ");
      scanf("%ld", &nb);
      if (born_inf >= nb || nb >= born_sup) {
        printf("Veuillez entrer un nombre entre %ld et %ld", born_inf,
               born_sup);
      } else if (nb_mist < nb) {
        printf("C'est moins!");
        if (aide) {
          born_sup = nb;
        }
      } else if (nb_mist > nb) {
        printf("C'est plus!");
        if (aide) {
          born_inf = nb;
        }
      }
      coups++;
    }
    printf("\n\nBravo vous avez trouver le nombre %ld en %ld coup(s)\n\n",
           nb_mist, coups);
    printf("Voulez vous rejouer?\n1\toui\n0\tnon\n");
    printf("Votre Choix: ");
    scanf("%ld", &continu);
    printf("\n\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)
movl   $0x1,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     13c7 <main+0x267>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x1,-0x2c(%rbp)
movl   $0x1,-0x30(%rbp)
mov    $0x1,%al
cmpl   $0x1,-0x28(%rbp)
mov    %al,-0x31(%rbp)
jl     11d1 <main+0x71>
cmpl   $0x3,-0x28(%rbp)
setg   %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
test   $0x1,%al
jne    11e1 <main+0x81>
jmp    1212 <main+0xb2>
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <scanf@plt>
jmp    11b8 <main+0x58>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x28(%rbp),%esi
add    $0x1,%esi
mov    $0xa,%edi
call   1070 <pow@plt>
mov    %eax,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    $0x0,%al
call   1080 <rand@plt>
mov    -0x20(%rbp),%ecx
sub    -0x24(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
add    -0x24(%rbp),%edx
mov    %edx,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     1374 <main+0x214>
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3e(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12e5 <main+0x185>
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jl     12fe <main+0x19e>
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xde9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1366 <main+0x206>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    132d <main+0x1cd>
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
je     1328 <main+0x1c8>
mov    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1361 <main+0x201>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    135c <main+0x1fc>
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
je     1357 <main+0x1f7>
mov    -0x18(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    135c <main+0x1fc>
jmp    1361 <main+0x201>
jmp    1366 <main+0x206>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    128f <main+0x12f>
mov    -0x1c(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd57(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117d <main+0x1d>
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
sub    $0x18,%rsp
movl   $0x1,0x14(%rsp)
lea    0xf85(%rip),%rbp
lea    0xe6c(%rip),%r14
lea    0xed9(%rip),%r15
lea    0xc(%rsp),%rbx
lea    0xf21(%rip),%r12
jmp    120f <main+0x9f>
nopl   0x0(%rax)
lea    0xeda(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%r14
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
lea    0x14(%rsp),%rsi
call   1070 <scanf@plt>
lea    0xed8(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
cmpl   $0x0,0x14(%rsp)
lea    0xf0e(%rip),%rbp
lea    0xc(%rsp),%rbx
je     1392 <main+0x222>
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x1,0x10(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xfffffffc,%eax
cmp    $0xfffffffd,%eax
jb     1230 <main+0xc0>
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xe62(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rbx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
lea    0x10(%rsp),%rsi
call   1070 <scanf@plt>
mov    0xc(%rsp),%esi
add    $0x1,%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    %eax,%r13d
movl   $0x0,0xc(%rsp)
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   1090 <rand@plt>
lea    0x1(%r13),%ecx
cltd
idiv   %ecx
mov    %edx,%ebp
mov    $0x1,%r14d
cmp    %edx,0x8(%rsp)
je     11b0 <main+0x40>
xor    %r12d,%r12d
mov    $0x1,%r14d
jmp    1304 <main+0x194>
nopl   0x0(%rax)
lea    0xd66(%rip),%rdi
mov    %r12d,%esi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
add    $0x1,%r14d
cmp    %ebp,%eax
je     11b0 <main+0x40>
lea    0xd03(%rip),%rdi
mov    %r12d,%esi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd20(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
lea    0x8(%rsp),%rsi
call   1070 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    %eax,%r12d
jge    12e0 <main+0x170>
cmp    %r13d,%eax
jge    12e0 <main+0x170>
cmp    %eax,%ebp
jge    1370 <main+0x200>
lea    0xd2c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x10(%rsp)
mov    0x8(%rsp),%eax
cmovne %eax,%r13d
jmp    12f8 <main+0x188>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
jle    12f8 <main+0x188>
lea    0xd0c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x10(%rsp)
mov    0x8(%rsp),%eax
cmovne %eax,%r12d
jmp    12f8 <main+0x188>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [102 x i8] c"Choix du Niveau: \0A1\09Facile (entre 1 et 100)\0A2\09Moyen (entre 1 et 1000)\0A3\09Difficile (entre 1 et 10000)\0A\00"
@.str.1 = [14 x i8] c"Votre Choix: \00"
@.str.2 = [4 x i8] c"%ld\00"
@.str.3 = [3 x i8] c"\0A\0A\00"
@.str.4 = [40 x i8] c"Voulez vous activer l'aide\0A1\09oui\0A0\09non\0A\00"
@.str.5 = [49 x i8] c"\0A\0AVous devez trouver un nombre entre %ld et %ld\0A\00"
@.str.6 = [14 x i8] c"Proposition: \00"
@.str.7 = [43 x i8] c"Veuillez entrer un nombre entre %ld et %ld\00"
@.str.8 = [13 x i8] c"C'est moins!\00"
@.str.9 = [12 x i8] c"C'est plus!\00"
@.str.10 = [57 x i8] c"\0A\0ABravo vous avez trouver le nombre %ld en %ld coup(s)\0A\0A\00"
@.str.11 = [34 x i8] c"Voulez vous rejouer?\0A1\09oui\0A0\09non\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
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %14
14: ; preds = %96, %2
%15 = load i32, i32* %6
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %104
17: ; preds = %14
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 1, i32* %12
store i32 1, i32* %13
br label %18
18: ; preds = %26, %17
%19 = load i32, i32* %11
%20 = icmp slt i32 %19, 1
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, i32* %11
%23 = icmp sgt i32 %22, 3
br label %24
24: ; preds = %21, %18
%25 = phi i1 [ true, %18 ], [ %23, %21 ]
br i1 %25, label %26, label %30
26: ; preds = %24
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%29 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %11)
br label %18
30: ; preds = %24
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %13)
%35 = load i32, i32* %11
%36 = add nsw i32 %35, 1
%37 = call i32 @pow(i32 10, i32 %36)
store i32 %37, i32* %9
store i32 0, i32* %11
%38 = call i32 @time(i32* null)
%39 = call i32 @srand(i32 %38)
%40 = call i32 (...) @rand()
%41 = load i32, i32* %9
%42 = load i32, i32* %10
%43 = sub nsw i32 %41, %42
%44 = add nsw i32 %43, 1
%45 = srem i32 %40, %44
%46 = load i32, i32* %10
%47 = add nsw i32 %45, %46
store i32 %47, i32* %8
br label %48
48: ; preds = %93, %30
%49 = load i32, i32* %7
%50 = load i32, i32* %8
%51 = icmp ne i32 %49, %50
br i1 %51, label %52, label %96
52: ; preds = %48
%53 = load i32, i32* %10
%54 = load i32, i32* %9
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0), i32 %53, i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%57 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%58 = load i32, i32* %10
%59 = load i32, i32* %7
%60 = icmp sge i32 %58, %59
br i1 %60, label %65, label %61
61: ; preds = %52
%62 = load i32, i32* %7
%63 = load i32, i32* %9
%64 = icmp sge i32 %62, %63
br i1 %64, label %65, label %69
65: ; preds = %61, %52
%66 = load i32, i32* %10
%67 = load i32, i32* %9
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i32 %66, i32 %67)
br label %93
69: ; preds = %61
%70 = load i32, i32* %8
%71 = load i32, i32* %7
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %80
73: ; preds = %69
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%75 = load i32, i32* %13
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %73
%78 = load i32, i32* %7
store i32 %78, i32* %9
br label %79
79: ; preds = %77, %73
br label %92
80: ; preds = %69
%81 = load i32, i32* %8
%82 = load i32, i32* %7
%83 = icmp sgt i32 %81, %82
br i1 %83, label %84, label %91
84: ; preds = %80
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%86 = load i32, i32* %13
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = load i32, i32* %7
store i32 %89, i32* %10
br label %90
90: ; preds = %88, %84
br label %91
91: ; preds = %90, %80
br label %92
92: ; preds = %91, %79
br label %93
93: ; preds = %92, %65
%94 = load i32, i32* %12
%95 = add nsw i32 %94, 1
store i32 %95, i32* %12
br label %48
96: ; preds = %48
%97 = load i32, i32* %8
%98 = load i32, i32* %12
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0), i32 %97, i32 %98)
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%102 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %14
104: ; preds = %14
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"Votre Choix: \00"
@.str.2 = [4 x i8] c"%ld\00"
@.str.5 = [49 x i8] c"\0A\0AVous devez trouver un nombre entre %ld et %ld\0A\00"
@.str.6 = [14 x i8] c"Proposition: \00"
@.str.7 = [43 x i8] c"Veuillez entrer un nombre entre %ld et %ld\00"
@.str.8 = [13 x i8] c"C'est moins!\00"
@.str.9 = [12 x i8] c"C'est plus!\00"
@.str.10 = [57 x i8] c"\0A\0ABravo vous avez trouver le nombre %ld en %ld coup(s)\0A\0A\00"
@str.12 = [39 x i8] c"Voulez vous activer l'aide\0A1\09oui\0A0\09non\00"
@str.13 = [33 x i8] c"Voulez vous rejouer?\0A1\09oui\0A0\09non\00"
@str.14 = [2 x i8] c"\0A\00"
@str.15 = [101 x i8] c"Choix du Niveau: \0A1\09Facile (entre 1 et 100)\0A2\09Moyen (entre 1 et 1000)\0A3\09Difficile (entre 1 et 10000)\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = bitcast i32* %6 to i8*
br label %11
11: ; preds = %70, %2
store i32 0, i32* %4
store i32 0, i32* %5
store i32 1, i32* %6
br label %12
12: ; preds = %11, %12
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str.15, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%16 = load i32, i32* %5
%17 = add i32 %16, -4
%18 = icmp ult i32 %17, -3
br i1 %18, label %12, label %19
19: ; preds = %12
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.14, i64 0, i64 0))
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.12, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
%26 = call i32 @pow(i32 10, i32 %25)
store i32 0, i32* %5
%27 = call i32 @time(i32* null)
%28 = call i32 @srand(i32 %27)
%29 = call i32 (...) @rand()
%30 = add nsw i32 %26, 1
%31 = srem i32 %29, %30
%32 = load i32, i32* %4
%33 = icmp eq i32 %32, %31
br i1 %33, label %70, label %34
34: ; preds = %19, %64
%35 = phi i32 [ %68, %64 ], [ 1, %19 ]
%36 = phi i32 [ %67, %64 ], [ 0, %19 ]
%37 = phi i32 [ %66, %64 ], [ %26, %19 ]
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0), i32 %36, i32 %37)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%41 = load i32, i32* %4
%42 = icmp slt i32 %36, %41
%43 = icmp slt i32 %41, %37
%44 = and i1 %42, %43
br i1 %44, label %48, label %45
45: ; preds = %34
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i32 %36, i32 %37)
%47 = load i32, i32* %4
br label %64
48: ; preds = %34
%49 = icmp slt i32 %31, %41
br i1 %49, label %50, label %56
50: ; preds = %48
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%52 = load i32, i32* %6
%53 = icmp eq i32 %52, 0
%54 = load i32, i32* %4
%55 = select i1 %53, i32 %37, i32 %54
br label %64
56: ; preds = %48
%57 = icmp sgt i32 %31, %41
br i1 %57, label %58, label %64
58: ; preds = %56
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%60 = load i32, i32* %6
%61 = icmp eq i32 %60, 0
%62 = load i32, i32* %4
%63 = select i1 %61, i32 %36, i32 %62
br label %64
64: ; preds = %58, %50, %56, %45
%65 = phi i32 [ %47, %45 ], [ %41, %56 ], [ %54, %50 ], [ %62, %58 ]
%66 = phi i32 [ %37, %45 ], [ %37, %56 ], [ %55, %50 ], [ %37, %58 ]
%67 = phi i32 [ %36, %45 ], [ %36, %56 ], [ %36, %50 ], [ %63, %58 ]
%68 = add nuw nsw i32 %35, 1
%69 = icmp eq i32 %65, %31
br i1 %69, label %70, label %34
70: ; preds = %64, %19
%71 = phi i32 [ 1, %19 ], [ %68, %64 ]
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0), i32 %31, i32 %71)
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.13, i64 0, i64 0))
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%75 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.14, i64 0, i64 0))
%77 = load i32, i32* %3
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %11
79: ; preds = %70
ret i32 0
}