#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main(int argc, char **argv) {
  int a, b, op, resultat;
  printf("Menu\n");
  printf("1. Suma\n");
  printf("2. Resta\n");
  printf("3. Producte\n");
  printf("4. Quocient\n");
  printf("5. Residu\n");
  printf("Elija una operacion: ");
  scanf("%d", &op);
  switch (op) {
  case 1:
    printf("Introdueix dos numeros per fer la suma: \n");
    scanf("%d %d", &a, &b);
    resultat = a + b;
    printf("Operació: %d + %d = %d", a, b, resultat);
    break;
  case 2:
    printf("Introdueix dos numeros per fer la resta: \n");
    scanf("%d %d", &a, &b);
    resultat = a - b;
    printf("Operació: %d - %d = %d", a, b, resultat);
    break;
  case 3:
    printf("Introdueix dos numeros per fer el producte: \n");
    scanf("%d %d", &a, &b);
    resultat = a * b;
    printf("Operació: %d * %d = %d", a, b, resultat);
    break;
  case 4:
    printf("Introdueix dos numeros per fer el quocient: \n");
    scanf("%d %d", &a, &b);
    resultat = a / b;
    printf("Operació: %d / %d = %d", a, b, resultat);
    break;
  case 5:
    printf("Introdueix dos numeros per fer el residu: \n");
    scanf("%d %d", &a, &b);
    resultat = a % b;
    printf("Operació: %d % %d = %d", a, b, resultat);
    break;
  default:
    printf("No ha triat cap opció: %d", op);
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed7(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x29(%rbp)
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x29(%rbp),%al
lea    0x1030(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x4,%eax
ja     134d <main+0x22d>
mov    -0x28(%rbp),%rax
lea    0xe2c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135e <main+0x23e>
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe57(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135e <main+0x23e>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0e(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135e <main+0x23e>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc4(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x18(%rbp)
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135e <main+0x23e>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd7a(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x18(%rbp)
mov    %edx,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135e <main+0x23e>
mov    -0x1c(%rbp),%esi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c7b(%rip),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe91(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2f(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x14(%rsp),%esi
lea    -0x1(%rsi),%eax
cmp    $0x4,%eax
ja     11f4 <main+0xc4>
lea    0xe50(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0xe5e(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
lea    (%rdx,%rsi,1),%ecx
lea    0xe41(%rip),%rdi
jmp    12fa <main+0x1ca>
lea    0xead(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1301 <main+0x1d1>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xe10(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
mov    %esi,%ecx
sub    %edx,%ecx
lea    0xe0a(%rip),%rdi
jmp    12fa <main+0x1ca>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd4(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
mov    %edx,%ecx
imul   %esi,%ecx
lea    0xde5(%rip),%rdi
jmp    12fa <main+0x1ca>
lea    0xea2(%rip),%rdi
call   1030 <puts@plt>
lea    0xd9a(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%ecx
mov    %esi,%eax
cltd
idiv   %ecx
lea    0xdc3(%rip),%rdi
mov    %ecx,%edx
mov    %eax,%ecx
jmp    12fa <main+0x1ca>
lea    0xe39(%rip),%rdi
call   1030 <puts@plt>
lea    0xd5c(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%r8d
mov    %esi,%eax
cltd
idiv   %r8d
mov    %edx,%ecx
lea    0xd99(%rip),%rdi
mov    %r8d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cd8(%rip),%rax
mov    (%rax),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Menu\0A\00"
@.str.1 = [9 x i8] c"1. Suma\0A\00"
@.str.2 = [10 x i8] c"2. Resta\0A\00"
@.str.3 = [13 x i8] c"3. Producte\0A\00"
@.str.4 = [13 x i8] c"4. Quocient\0A\00"
@.str.5 = [11 x i8] c"5. Residu\0A\00"
@.str.6 = [22 x i8] c"Elija una operacion: \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [42 x i8] c"Introdueix dos numeros per fer la suma: \0A\00"
@.str.9 = [6 x i8] c"%d %d\00"
@.str.10 = [24 x i8] c"Operaci\C3\B3: %d + %d = %d\00"
@.str.11 = [43 x i8] c"Introdueix dos numeros per fer la resta: \0A\00"
@.str.12 = [24 x i8] c"Operaci\C3\B3: %d - %d = %d\00"
@.str.13 = [46 x i8] c"Introdueix dos numeros per fer el producte: \0A\00"
@.str.14 = [24 x i8] c"Operaci\C3\B3: %d * %d = %d\00"
@.str.15 = [46 x i8] c"Introdueix dos numeros per fer el quocient: \0A\00"
@.str.16 = [24 x i8] c"Operaci\C3\B3: %d / %d = %d\00"
@.str.17 = [44 x i8] c"Introdueix dos numeros per fer el residu: \0A\00"
@.str.18 = [24 x i8] c"Operaci\C3\B3: %d % %d = %d\00"
@.str.19 = [27 x i8] c"No ha triat cap opci\C3\B3: %d\00"
@EXIT_SUCCESS = global i32 0
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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %8)
%18 = load i32, i32* %8
switch i32 %18, label %69 [
i32 1, label %19
i32 2, label %29
i32 3, label %39
i32 4, label %49
i32 5, label %59
]
19: ; preds = %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%21 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %6, i32* %7)
%22 = load i32, i32* %6
%23 = load i32, i32* %7
%24 = add nsw i32 %22, %23
store i32 %24, i32* %9
%25 = load i32, i32* %6
%26 = load i32, i32* %7
%27 = load i32, i32* %9
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i32 %25, i32 %26, i32 %27)
br label %72
29: ; preds = %2
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%31 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %6, i32* %7)
%32 = load i32, i32* %6
%33 = load i32, i32* %7
%34 = sub nsw i32 %32, %33
store i32 %34, i32* %9
%35 = load i32, i32* %6
%36 = load i32, i32* %7
%37 = load i32, i32* %9
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %35, i32 %36, i32 %37)
br label %72
39: ; preds = %2
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
%41 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %6, i32* %7)
%42 = load i32, i32* %6
%43 = load i32, i32* %7
%44 = mul nsw i32 %42, %43
store i32 %44, i32* %9
%45 = load i32, i32* %6
%46 = load i32, i32* %7
%47 = load i32, i32* %9
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i32 %45, i32 %46, i32 %47)
br label %72
49: ; preds = %2
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0))
%51 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %6, i32* %7)
%52 = load i32, i32* %6
%53 = load i32, i32* %7
%54 = sdiv i32 %52, %53
store i32 %54, i32* %9
%55 = load i32, i32* %6
%56 = load i32, i32* %7
%57 = load i32, i32* %9
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i32 %55, i32 %56, i32 %57)
br label %72
59: ; preds = %2
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0))
%61 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %6, i32* %7)
%62 = load i32, i32* %6
%63 = load i32, i32* %7
%64 = srem i32 %62, %63
store i32 %64, i32* %9
%65 = load i32, i32* %6
%66 = load i32, i32* %7
%67 = load i32, i32* %9
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i32 %65, i32 %66, i32 %67)
br label %72
69: ; preds = %2
%70 = load i32, i32* %8
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), i32 %70)
br label %72
72: ; preds = %69, %59, %49, %39, %29, %19
%73 = load i32, i32* @EXIT_SUCCESS
ret i32 %73
}

LLVM IR (-O2):
@.str.6 = [22 x i8] c"Elija una operacion: \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.9 = [6 x i8] c"%d %d\00"
@.str.10 = [24 x i8] c"Operaci\C3\B3: %d + %d = %d\00"
@.str.12 = [24 x i8] c"Operaci\C3\B3: %d - %d = %d\00"
@.str.14 = [24 x i8] c"Operaci\C3\B3: %d * %d = %d\00"
@.str.16 = [24 x i8] c"Operaci\C3\B3: %d / %d = %d\00"
@.str.18 = [24 x i8] c"Operaci\C3\B3: %d % %d = %d\00"
@.str.19 = [27 x i8] c"No ha triat cap opci\C3\B3: %d\00"
@EXIT_SUCCESS = global i32 0
@str = [5 x i8] c"Menu\00"
@str.20 = [8 x i8] c"1. Suma\00"
@str.21 = [9 x i8] c"2. Resta\00"
@str.22 = [12 x i8] c"3. Producte\00"
@str.23 = [12 x i8] c"4. Quocient\00"
@str.24 = [10 x i8] c"5. Residu\00"
@str.25 = [43 x i8] c"Introdueix dos numeros per fer el residu: \00"
@str.26 = [45 x i8] c"Introdueix dos numeros per fer el quocient: \00"
@str.27 = [45 x i8] c"Introdueix dos numeros per fer el producte: \00"
@str.28 = [42 x i8] c"Introdueix dos numeros per fer la resta: \00"
@str.29 = [41 x i8] c"Introdueix dos numeros per fer la suma: \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.24, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %5)
%17 = load i32, i32* %5
switch i32 %17, label %53 [
i32 1, label %18
i32 2, label %25
i32 3, label %32
i32 4, label %39
i32 5, label %46
]
18: ; preds = %2
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.29, i64 0, i64 0))
%20 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %3, i32* %4)
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = add nsw i32 %22, %21
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i32 %21, i32 %22, i32 %23)
br label %55
25: ; preds = %2
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.28, i64 0, i64 0))
%27 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %3, i32* %4)
%28 = load i32, i32* %3
%29 = load i32, i32* %4
%30 = sub nsw i32 %28, %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %28, i32 %29, i32 %30)
br label %55
32: ; preds = %2
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.27, i64 0, i64 0))
%34 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %3, i32* %4)
%35 = load i32, i32* %3
%36 = load i32, i32* %4
%37 = mul nsw i32 %36, %35
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i32 %35, i32 %36, i32 %37)
br label %55
39: ; preds = %2
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.26, i64 0, i64 0))
%41 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %3, i32* %4)
%42 = load i32, i32* %3
%43 = load i32, i32* %4
%44 = sdiv i32 %42, %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i32 %42, i32 %43, i32 %44)
br label %55
46: ; preds = %2
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.25, i64 0, i64 0))
%48 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32* %3, i32* %4)
%49 = load i32, i32* %3
%50 = load i32, i32* %4
%51 = srem i32 %49, %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i32 %49, i32 %50, i32 %51)
br label %55
53: ; preds = %2
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), i32 %17)
br label %55
55: ; preds = %53, %46, %39, %32, %25, %18
%56 = load i32, i32* @EXIT_SUCCESS
ret i32 %56
}