#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*/ Multiplica(char *, char *, char *);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  char SegundoNumero[] = "11111111111111111111111111111111111111111111111111111"
                         "111111111111111111111111111111111";
  char PrimeiroNumero[] = "2";
  char Resultado[2000];
  Multiplica(PrimeiroNumero, SegundoNumero, Resultado);
  printf("%s\n", Resultado);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x840,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x57,%edx
call   1040 <memcpy@plt>
mov    0xef9(%rip),%ax
mov    %ax,-0x62(%rbp)
lea    -0x62(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x840(%rbp),%rdx
call   1050 <Multiplica@plt>
lea    -0x840(%rbp),%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x840,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x840,%rsp
movaps 0xf11(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xebd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x31313131313131,%rax
mov    %rax,0x5f(%rsp)
movw   $0x32,0xe(%rsp)
lea    0xe(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x70(%rsp),%rbx
mov    %rbx,%rdx
call   1040 <Multiplica@plt>
lea    0xebf(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x840,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.SegundoNumero = [87 x i8] c"11111111111111111111111111111111111111111111111111111111111111111111111111111111111111\00"
@__const.main.PrimeiroNumero = [2 x i8] c"2\00"
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [87 x i8]
%3 = alloca [2 x i8]
%4 = alloca [2000 x i8]
store i32 0, i32* %1
%5 = bitcast [87 x i8]* %2 to i8*
%6 = bitcast [2 x i8]* %3 to i8*
%7 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [87 x i8], [87 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [2000 x i8], [2000 x i8]* %4, i64 0, i64 0
%10 = call i32 @Multiplica(i8* %7, i8* %8, i8* %9)
%11 = getelementptr inbounds [2000 x i8], [2000 x i8]* %4, i64 0, i64 0
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %11)
ret i32 0
}

LLVM IR (-O2):
@__const.main.SegundoNumero = [87 x i8] c"11111111111111111111111111111111111111111111111111111111111111111111111111111111111111\00"
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca [87 x i8]
%2 = alloca i16
%3 = alloca [2000 x i8]
%4 = getelementptr inbounds [87 x i8], [87 x i8]* %1, i64 0, i64 0
%5 = bitcast i16* %2 to i8*
store i16 50, i16* %2
%6 = getelementptr inbounds [2000 x i8], [2000 x i8]* %3, i64 0, i64 0
%7 = call i32 @Multiplica(i8* %5, i8* %4, i8* %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %6)
ret i32 0
}