#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
void dimensionnement(int *n, int *m) {
  do {
    printf("Choisissez le nombre de lignes du tableau : ");
    scanf("%d", n);
    printf("Choisissez le nombre de colonnes du tableau : ");
    scanf("%d", m);
  } while (*n <= 1 || *m <= 1);
}


x86 assembly (clang, -O0):
<dimensionnement>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xee6(%rip),%rdi
call   1040 <scanf@plt>
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xeca(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%rcx
mov    $0x1,%al
cmpl   $0x1,(%rcx)
mov    %al,-0x11(%rbp)
jle    1187 <dimensionnement+0x67>
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
setle  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1130 <dimensionnement+0x10>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dimensionnement>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xeca(%rip),%r15
lea    0xef0(%rip),%r12
lea    0xeec(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%rdi
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    %r13,%rdi
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
cmpl   $0x2,(%rbx)
jl     1150 <dimensionnement+0x30>
cmpl   $0x2,(%r14)
jl     1150 <dimensionnement+0x30>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [45 x i8] c"Choisissez le nombre de lignes du tableau : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [47 x i8] c"Choisissez le nombre de colonnes du tableau : \00"
define void @dimensionnement(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
br label %5
5: ; preds = %20, %2
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%7 = load i32*, i32** %3
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32*, i32** %4
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
br label %12
12: ; preds = %5
%13 = load i32*, i32** %3
%14 = load i32, i32* %13
%15 = icmp sle i32 %14, 1
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i32*, i32** %4
%18 = load i32, i32* %17
%19 = icmp sle i32 %18, 1
br label %20
20: ; preds = %16, %12
%21 = phi i1 [ true, %12 ], [ %19, %16 ]
br i1 %21, label %5, label %22
22: ; preds = %20
ret void
}

LLVM IR (-O2):
@.str = [45 x i8] c"Choisissez le nombre de lignes du tableau : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [47 x i8] c"Choisissez le nombre de colonnes du tableau : \00"
define void @dimensionnement(i32* %0, i32* %1) {
br label %3
3: ; preds = %13, %2
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %0)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %0
%9 = icmp slt i32 %8, 2
br i1 %9, label %13, label %10
10: ; preds = %3
%11 = load i32, i32* %1
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %14
13: ; preds = %10, %3
br label %3
14: ; preds = %10
ret void
}