#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 algoritmoEuclide(int, int);
int /*<<< orphan*/ calcoloEquazioneDiofantea(int, int, int);
int /*<<< orphan*/ calcoloIdentitaBezout(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ getchar();
int minimoComuneMultiplo(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
void sceltaRisolutore() {
  char scelta;
  int primoNumero, secondoNumero, terzoNumero;
  short esci = 0;
  getchar();
  while (!esci) {
    printf("1. calcolo del MCD con l'algoritmo di Euclide\n2. ottenimento "
           "identita' di Bezout\n3. risoluzione equazione diofantea\n4. "
           "calcolo del minimo comune multiplo\n");
    printf("e. torna al menu' precedente\n");
    scanf("%c", &scelta);
    switch (scelta) {
    case '1':
      printf("Inserisci il primo numero: ");
      scanf("%d", &primoNumero);
      printf("Inserisci il secondo numero: ");
      scanf("%d", &secondoNumero);
      getchar();
      printf("MCD(%d, %d) = %d\n", primoNumero, secondoNumero,
             algoritmoEuclide(primoNumero, secondoNumero));
      break;
    case '2':
      printf("Data l'equazione della forma am + bn = c.\n");
      printf("Inserire a: ");
      scanf("%d", &primoNumero);
      printf("Inserire b: ");
      scanf("%d", &secondoNumero);
      getchar();
      calcoloIdentitaBezout(primoNumero, secondoNumero, 0);
      break;
    case '3':
      printf("Data l'equazione della forma am + bn = c.\n");
      printf("Inserire a: ");
      scanf("%d", &primoNumero);
      printf("Inserire b: ");
      scanf("%d", &secondoNumero);
      printf("Inserire c: ");
      scanf("%d", &terzoNumero);
      calcoloEquazioneDiofantea(primoNumero, secondoNumero, terzoNumero);
      getchar();
      break;
    case '4':
      printf("Inserisci il primo numero: ");
      scanf("%d", &primoNumero);
      printf("Inserisci il secondo numero: ");
      scanf("%d", &secondoNumero);
      printf("Il minimo comune multiplo tra %d e %d e' %d.\n", primoNumero,
             secondoNumero, minimoComuneMultiplo(primoNumero, secondoNumero));
      getchar();
      break;
    case 'e':
      esci = 1;
      getchar();
      break;
    }
  }
}


x86 assembly (clang, -O0):
<sceltaRisolutore>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movw   $0x0,-0x12(%rbp)
mov    $0x0,%al
call   1070 <getchar@plt>
cmpw   $0x0,-0x12(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    119c <sceltaRisolutore+0x2c>
jmp    141b <sceltaRisolutore+0x2ab>
lea    0xe5d(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x19(%rbp)
call   1050 <printf@plt>
mov    -0x19(%rbp),%al
lea    0xee4(%rip),%rdi
call   1050 <printf@plt>
mov    -0x19(%rbp),%al
lea    0xef3(%rip),%rdi
lea    -0x1(%rbp),%rsi
call   1090 <scanf@plt>
movsbl -0x1(%rbp),%eax
mov    %eax,-0x18(%rbp)
sub    $0x31,%eax
je     1228 <sceltaRisolutore+0xb8>
jmp    11e4 <sceltaRisolutore+0x74>
mov    -0x18(%rbp),%eax
sub    $0x32,%eax
je     12a1 <sceltaRisolutore+0x131>
jmp    11f5 <sceltaRisolutore+0x85>
mov    -0x18(%rbp),%eax
sub    $0x33,%eax
je     1308 <sceltaRisolutore+0x198>
jmp    1206 <sceltaRisolutore+0x96>
mov    -0x18(%rbp),%eax
sub    $0x34,%eax
je     1390 <sceltaRisolutore+0x220>
jmp    1217 <sceltaRisolutore+0xa7>
mov    -0x18(%rbp),%eax
sub    $0x65,%eax
je     1409 <sceltaRisolutore+0x299>
jmp    1416 <sceltaRisolutore+0x2a6>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe9b(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe7b(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <algoritmoEuclide@plt>
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    %eax,%ecx
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1416 <sceltaRisolutore+0x2a6>
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe14(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdf4(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
xor    %edx,%edx
call   1080 <calcoloIdentitaBezout@plt>
jmp    1416 <sceltaRisolutore+0x2a6>
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdad(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd8d(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd6d(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1060 <calcoloEquazioneDiofantea@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
jmp    1416 <sceltaRisolutore+0x2a6>
lea    0xd25(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd33(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    0xd24(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd13(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <minimoComuneMultiplo@plt>
mov    -0x2c(%rbp),%esi
mov    -0x28(%rbp),%edx
mov    %eax,%ecx
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
jmp    1416 <sceltaRisolutore+0x2a6>
movw   $0x1,-0x12(%rbp)
mov    $0x0,%al
call   1070 <getchar@plt>
jmp    1185 <sceltaRisolutore+0x15>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sceltaRisolutore>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %eax,%eax
call   1080 <getchar@plt>
lea    0xf1b(%rip),%r15
lea    0xfae(%rip),%r13
lea    0xe66(%rip),%rbx
lea    0xb(%rsp),%r14
lea    0xe4a(%rip),%rbp
lea    0xe72(%rip),%r12
jmp    1238 <sceltaRisolutore+0xb8>
lea    0xe4d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xe4f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
mov    0x10(%rsp),%ebx
mov    0xc(%rsp),%ebp
mov    %ebx,%edi
mov    %ebp,%esi
call   1050 <minimoComuneMultiplo@plt>
lea    0xe78(%rip),%rdi
mov    %ebx,%esi
lea    0xb(%rsp),%r14
lea    0xdf1(%rip),%rbx
mov    %ebp,%edx
lea    0xdd8(%rip),%rbp
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
movsbl 0xb(%rsp),%eax
lea    -0x31(%rax),%ecx
cmp    $0x3,%ecx
ja     1300 <sceltaRisolutore+0x180>
movslq 0x0(%rbp,%rcx,4),%rax
add    %rbp,%rax
jmp    *%rax
lea    0xd9c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xd9e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
mov    %r13,%rbp
mov    0x10(%rsp),%r13d
mov    0xc(%rsp),%r14d
mov    %r13d,%edi
mov    %r14d,%esi
call   1030 <algoritmoEuclide@plt>
lea    0xd80(%rip),%rdi
mov    %r13d,%esi
mov    %rbp,%r13
lea    0xd23(%rip),%rbp
mov    %r14d,%edx
lea    0xb(%rsp),%r14
lea    0xd24(%rip),%rbx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1238 <sceltaRisolutore+0xb8>
nopw   0x0(%rax,%rax,1)
cmp    $0x65,%eax
jne    1238 <sceltaRisolutore+0xb8>
jmp    13e8 <sceltaRisolutore+0x268>
lea    0xe59(%rip),%rdi
call   1040 <puts@plt>
lea    0xd41(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xd31(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
mov    0x10(%rsp),%edi
mov    0xc(%rsp),%esi
xor    %edx,%edx
call   1090 <calcoloIdentitaBezout@plt>
jmp    1238 <sceltaRisolutore+0xb8>
lea    0xdf8(%rip),%rdi
call   1040 <puts@plt>
lea    0xce0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xcd0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xcc0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
mov    0x10(%rsp),%edi
mov    0xc(%rsp),%esi
mov    0x14(%rsp),%edx
call   1070 <calcoloEquazioneDiofantea@plt>
jmp    1231 <sceltaRisolutore+0xb1>
xor    %eax,%eax
call   1080 <getchar@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [155 x i8] c"1. calcolo del MCD con l'algoritmo di Euclide\0A2. ottenimento identita' di Bezout\0A3. risoluzione equazione diofantea\0A4. calcolo del minimo comune multiplo\0A\00"
@.str.1 = [30 x i8] c"e. torna al menu' precedente\0A\00"
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [28 x i8] c"Inserisci il primo numero: \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [30 x i8] c"Inserisci il secondo numero: \00"
@.str.6 = [18 x i8] c"MCD(%d, %d) = %d\0A\00"
@.str.7 = [43 x i8] c"Data l'equazione della forma am + bn = c.\0A\00"
@.str.8 = [13 x i8] c"Inserire a: \00"
@.str.9 = [13 x i8] c"Inserire b: \00"
@.str.10 = [13 x i8] c"Inserire c: \00"
@.str.11 = [46 x i8] c"Il minimo comune multiplo tra %d e %d e' %d.\0A\00"
define void @sceltaRisolutore() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i16
store i16 0, i16* %5
%6 = call i32 (...) @getchar()
br label %7
7: ; preds = %66, %0
%8 = load i16, i16* %5
%9 = icmp ne i16 %8, 0
%10 = xor i1 %9, true
br i1 %10, label %11, label %67
11: ; preds = %7
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%15 = load i8, i8* %1
%16 = sext i8 %15 to i32
switch i32 %16, label %66 [
i32 49, label %17
i32 50, label %29
i32 51, label %39
i32 52, label %52
i32 101, label %64
]
17: ; preds = %11
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%22 = call i32 (...) @getchar()
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = load i32, i32* %2
%26 = load i32, i32* %3
%27 = call i32 @algoritmoEuclide(i32 %25, i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %23, i32 %24, i32 %27)
br label %66
29: ; preds = %11
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%32 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%35 = call i32 (...) @getchar()
%36 = load i32, i32* %2
%37 = load i32, i32* %3
%38 = call i32 @calcoloIdentitaBezout(i32 %36, i32 %37, i32 0)
br label %66
39: ; preds = %11
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%44 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%46 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = load i32, i32* %4
%50 = call i32 @calcoloEquazioneDiofantea(i32 %47, i32 %48, i32 %49)
%51 = call i32 (...) @getchar()
br label %66
52: ; preds = %11
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = call i32 @minimoComuneMultiplo(i32 %59, i32 %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0), i32 %57, i32 %58, i32 %61)
%63 = call i32 (...) @getchar()
br label %66
64: ; preds = %11
store i16 1, i16* %5
%65 = call i32 (...) @getchar()
br label %66
66: ; preds = %11, %64, %52, %39, %29, %17
br label %7
67: ; preds = %7
ret void
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [28 x i8] c"Inserisci il primo numero: \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [30 x i8] c"Inserisci il secondo numero: \00"
@.str.6 = [18 x i8] c"MCD(%d, %d) = %d\0A\00"
@.str.8 = [13 x i8] c"Inserire a: \00"
@.str.9 = [13 x i8] c"Inserire b: \00"
@.str.10 = [13 x i8] c"Inserire c: \00"
@.str.11 = [46 x i8] c"Il minimo comune multiplo tra %d e %d e' %d.\0A\00"
@str = [154 x i8] c"1. calcolo del MCD con l'algoritmo di Euclide\0A2. ottenimento identita' di Bezout\0A3. risoluzione equazione diofantea\0A4. calcolo del minimo comune multiplo\00"
@str.12 = [29 x i8] c"e. torna al menu' precedente\00"
@str.14 = [42 x i8] c"Data l'equazione della forma am + bn = c.\00"
define void @sceltaRisolutore() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = tail call i32 (...) @getchar()
br label %9
9: ; preds = %15, %0
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([154 x i8], [154 x i8]* @str, i64 0, i64 0))
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.12, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%13 = load i8, i8* %1
%14 = sext i8 %13 to i32
switch i32 %14, label %15 [
i32 49, label %16
i32 50, label %26
i32 51, label %36
i32 52, label %49
i32 101, label %59
]
15: ; preds = %9, %49, %36, %26, %16
br label %9
16: ; preds = %9
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%21 = call i32 (...) @getchar()
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = call i32 @algoritmoEuclide(i32 %22, i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %22, i32 %23, i32 %24)
br label %15
26: ; preds = %9
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.14, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%32 = call i32 (...) @getchar()
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = call i32 @calcoloIdentitaBezout(i32 %33, i32 %34, i32 0)
br label %15
36: ; preds = %9
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.14, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = load i32, i32* %4
%47 = call i32 @calcoloEquazioneDiofantea(i32 %44, i32 %45, i32 %46)
%48 = call i32 (...) @getchar()
br label %15
49: ; preds = %9
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%54 = load i32, i32* %2
%55 = load i32, i32* %3
%56 = call i32 @minimoComuneMultiplo(i32 %54, i32 %55)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0), i32 %54, i32 %55, i32 %56)
%58 = call i32 (...) @getchar()
br label %15
59: ; preds = %9
%60 = call i32 (...) @getchar()
ret void
}