#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*/ cal(char *, char *, char *);
int /*<<< orphan*/ puts(char *);
int main() {
  char number_x[(100)] = "172";
  char number_y[(100)] = "39";
  char number_result[(100) * 2] = {' '};
  cal(number_x, number_y, number_result);
  puts(number_result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
movb   $0x31,-0x70(%rbp)
movb   $0x37,-0x6f(%rbp)
movb   $0x32,-0x6e(%rbp)
lea    -0xe0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
movb   $0x33,-0xe0(%rbp)
movb   $0x39,-0xdf(%rbp)
lea    -0x1b0(%rbp),%rdi
xor    %esi,%esi
mov    $0xc8,%edx
call   1040 <memset@plt>
movb   $0x20,-0x1b0(%rbp)
lea    -0x70(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
lea    -0x1b0(%rbp),%rdx
call   1050 <cal@plt>
lea    -0x1b0(%rbp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x1b0,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movl   $0x0,0x60(%rsp)
movw   $0x3731,(%rsp)
movb   $0x32,0x2(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movl   $0x0,0xd0(%rsp)
movw   $0x3933,0x70(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0x190(%rsp)
movaps %xmm0,0x180(%rsp)
movaps %xmm0,0x170(%rsp)
movaps %xmm0,0x160(%rsp)
movaps %xmm0,0x150(%rsp)
movaps %xmm0,0x140(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movq   $0x0,0x1a0(%rsp)
movb   $0x20,0xe0(%rsp)
20
mov    %rsp,%rdi
lea    0x70(%rsp),%rsi
lea    0xe0(%rsp),%rbx
mov    %rbx,%rdx
call   1040 <cal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [200 x i8]
store i32 0, i32* %1
%5 = bitcast [100 x i8]* %2 to i8*
%6 = bitcast i8* %5 to [100 x i8]*
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i32 0, i32 0
store i8 49, i8* %7
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i32 0, i32 1
store i8 55, i8* %8
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i32 0, i32 2
store i8 50, i8* %9
%10 = bitcast [100 x i8]* %3 to i8*
%11 = bitcast i8* %10 to [100 x i8]*
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i32 0, i32 0
store i8 51, i8* %12
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i32 0, i32 1
store i8 57, i8* %13
%14 = bitcast [200 x i8]* %4 to i8*
%15 = bitcast i8* %14 to <{ i8, [199 x i8] }>*
%16 = getelementptr inbounds <{ i8, [199 x i8] }>, <{ i8, [199 x i8] }>* %15, i32 0, i32 0
store i8 32, i8* %16
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%19 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%20 = call i32 @cal(i8* %17, i8* %18, i8* %19)
%21 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%22 = call i32 @puts(i8* %21)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = alloca [200 x i8]
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8 49, i8* %4
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 1
store i8 55, i8* %5
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 2
store i8 50, i8* %6
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
store i8 51, i8* %7
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 1
store i8 57, i8* %8
%9 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
store i8 32, i8* %9
%10 = call i32 @cal(i8* %4, i8* %7, i8* %9)
%11 = call i32 @puts(i8* %9)
ret i32 0
}