#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 multiplicar(int, int);
int /*<<< orphan*/ printf(char *, int);
void main() {
  printf("6x4=%d\n", multiplicar(6, 4));
  printf("6x-4=%d\n", multiplicar(6, -4));
  printf("-6x-4=%d\n", multiplicar(-6, -4));
  printf("-6x4=%d\n", multiplicar(-6, 4));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%edi
mov    $0x4,%esi
call   1040 <multiplicar@plt>
mov    %eax,%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
mov    $0x6,%edi
mov    $0xfffffffc,%esi
call   1040 <multiplicar@plt>
mov    %eax,%esi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
mov    $0xfffffffa,%edi
mov    $0xfffffffc,%esi
call   1040 <multiplicar@plt>
mov    %eax,%esi
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
mov    $0xfffffffa,%edi
mov    $0x4,%esi
call   1040 <multiplicar@plt>
mov    %eax,%esi
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x6,%edi
mov    $0x4,%esi
call   1040 <multiplicar@plt>
lea    0xed4(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x6,%edi
mov    $0xfffffffc,%esi
call   1040 <multiplicar@plt>
lea    0xead(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0xfffffffa,%edi
mov    $0xfffffffc,%esi
call   1040 <multiplicar@plt>
lea    0xe8f(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0xfffffffa,%edi
mov    $0x4,%esi
call   1040 <multiplicar@plt>
lea    0xe7c(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"6x4=%d\0A\00"
@.str.1 = [9 x i8] c"6x-4=%d\0A\00"
@.str.2 = [10 x i8] c"-6x-4=%d\0A\00"
@.str.3 = [9 x i8] c"-6x4=%d\0A\00"
define void @main() {
%1 = call i32 @multiplicar(i32 6, i32 4)
%2 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @multiplicar(i32 6, i32 -4)
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 @multiplicar(i32 -6, i32 -4)
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 @multiplicar(i32 -6, i32 4)
%8 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"6x4=%d\0A\00"
@.str.1 = [9 x i8] c"6x-4=%d\0A\00"
@.str.2 = [10 x i8] c"-6x-4=%d\0A\00"
@.str.3 = [9 x i8] c"-6x4=%d\0A\00"
define void @main() {
%1 = tail call i32 @multiplicar(i32 6, i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @multiplicar(i32 6, i32 -4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @multiplicar(i32 -6, i32 -4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @multiplicar(i32 -6, i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
ret void
}