#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*/ add_cint(char *, char *);
int /*<<< orphan*/ max_cint(char *, char *);
int /*<<< orphan*/ min_cint(char *, char *);
int /*<<< orphan*/ print_cint(int /*<<< orphan*/);
int /*<<< orphan*/ print_compiler_version();
int /*<<< orphan*/ print_eml_version();
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ putchar(char);
int main() {
  print_eml_version();
  print_compiler_version();
  char a[] = "11111111797532757262748259798327728181981789179879817987498279827"
             "357394875984379658745769879878734534534534534";
  char b[] = "91111111112384359874395792798187618481798417498732985798437598743"
             "985749687984379843769457698674645986984598956";
  printf("\n%s%s", a, "\n");
  printf("%s%s", b, "\n");
  printf("\n%s\n", "Sum :");
  print_cint(add_cint(a, b));
  putchar('\n');
  putchar('\n');
  char c[] =
      "163248722222222222222222222222222226472198479328759743509743987598437598"
      "743589739475934754730957920375093745907430975934750973405743097507435097"
      "430975093740957430975439053709750943759074309753648932984298769834369834"
      "9843986439869843769843698369837986798643674398798637698437";
  char d[] =
      "911111111123843598743957927981876184817984174987329857984375987439857496"
      "879843798437694576986746459869845989563298498359863298659832659898236983"
      "265986982365983689526986598659865986985698569863259869832698325698632986"
      "59832659832658965329863289658923686582658965868568632563258653286";
  printf("\n%s\n", "Max :");
  print_cint(max_cint(c, d));
  putchar('\n');
  printf("\n%s\n", "Min :");
  print_cint(min_cint(c, d));
  putchar('\n');
  printf("\n%s\n", "Sum :");
  print_cint(add_cint(c, d));
  putchar('\n');
  putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10b0 <print_eml_version@plt>
mov    $0x0,%al
call   1090 <print_compiler_version@plt>
lea    -0x80(%rbp),%rdi
lea    0xe45(%rip),%rsi
mov    $0x6f,%edx
call   1060 <memcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xe9d(%rip),%rsi
mov    $0x6f,%edx
call   1060 <memcpy@plt>
lea    -0x80(%rbp),%rsi
lea    0x1132(%rip),%rdi
lea    0x1134(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xf0(%rbp),%rsi
lea    0x1117(%rip),%rdi
lea    0x1118(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x1107(%rip),%rdi
lea    0x1105(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x80(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1040 <add_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x210(%rbp),%rdi
lea    0xe80(%rip),%rsi
mov    $0x113,%edx
call   1060 <memcpy@plt>
lea    -0x330(%rbp),%rdi
lea    0xf88(%rip),%rsi
mov    $0x11a,%edx
call   1060 <memcpy@plt>
lea    0x1097(%rip),%rdi
lea    0x109b(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x210(%rbp),%rdi
lea    -0x330(%rbp),%rsi
call   1080 <max_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x105e(%rip),%rdi
lea    0x1068(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x210(%rbp),%rdi
lea    -0x330(%rbp),%rsi
call   1070 <min_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1025(%rip),%rdi
lea    0x1023(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x210(%rbp),%rdi
lea    -0x330(%rbp),%rsi
call   1040 <add_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x320,%rsp
xor    %eax,%eax
call   10b0 <print_eml_version@plt>
xor    %eax,%eax
call   1090 <print_compiler_version@plt>
movups 0xeaa(%rip),%xmm0
movups %xmm0,0xcf(%rsp)
movaps 0xe8c(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe6d(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xe4e(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe2f(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe10(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xdf1(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movups 0xeb4(%rip),%xmm0
movups %xmm0,0x5f(%rsp)
movaps 0xe99(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe7d(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe61(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe45(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe29(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe0d(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x10ac(%rip),%rdi
lea    0x10ae(%rip),%rbx
lea    0x70(%rsp),%r12
mov    %r12,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x108d(%rip),%rdi
mov    %rsp,%r13
mov    %r13,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x107b(%rip),%r15
lea    0x1079(%rip),%r14
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <add_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdfa(%rip),%rsi
lea    0xe0(%rsp),%r12
mov    $0x113,%edx
mov    %r12,%rdi
call   1060 <memcpy@plt>
lea    0xefe(%rip),%rsi
lea    0x200(%rsp),%rbx
mov    $0x11a,%edx
mov    %rbx,%rdi
call   1060 <memcpy@plt>
lea    0x100d(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1080 <max_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfe6(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1070 <min_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <add_cint@plt>
mov    %eax,%edi
call   10a0 <print_cint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x320,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.a = [111 x i8] c"11111111797532757262748259798327728181981789179879817987498279827357394875984379658745769879878734534534534534\00"
@__const.main.b = [111 x i8] c"91111111112384359874395792798187618481798417498732985798437598743985749687984379843769457698674645986984598956\00"
@.str = [6 x i8] c"\0A%s%s\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [5 x i8] c"%s%s\00"
@.str.3 = [5 x i8] c"\0A%s\0A\00"
@.str.4 = [6 x i8] c"Sum :\00"
@__const.main.c = [275 x i8] c"1632487222222222222222222222222222264721984793287597435097439875984375987435897394759347547309579203750937459074309759347509734057430975074350974309750937409574309754390537097509437590743097536489329842987698343698349843986439869843769843698369837986798643674398798637698437\00"
@__const.main.d = [282 x i8] c"91111111112384359874395792798187618481798417498732985798437598743985749687984379843769457698674645986984598956329849835986329865983265989823698326598698236598368952698659865986598698569856986325986983269832569863298659832659832658965329863289658923686582658965868568632563258653286\00"
@.str.5 = [6 x i8] c"Max :\00"
@.str.6 = [6 x i8] c"Min :\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [111 x i8]
%3 = alloca [111 x i8]
%4 = alloca [275 x i8]
%5 = alloca [282 x i8]
store i32 0, i32* %1
%6 = call i32 (...) @print_eml_version()
%7 = call i32 (...) @print_compiler_version()
%8 = bitcast [111 x i8]* %2 to i8*
%9 = bitcast [111 x i8]* %3 to i8*
%10 = getelementptr inbounds [111 x i8], [111 x i8]* %2, i64 0, i64 0
%11 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [111 x i8], [111 x i8]* %3, i64 0, i64 0
%13 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%15 = getelementptr inbounds [111 x i8], [111 x i8]* %2, i64 0, i64 0
%16 = getelementptr inbounds [111 x i8], [111 x i8]* %3, i64 0, i64 0
%17 = call i32 @add_cint(i8* %15, i8* %16)
%18 = call i32 @print_cint(i32 %17)
%19 = call i32 @putchar(i8 signext 10)
%20 = call i32 @putchar(i8 signext 10)
%21 = bitcast [275 x i8]* %4 to i8*
%22 = bitcast [282 x i8]* %5 to i8*
%23 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%24 = getelementptr inbounds [275 x i8], [275 x i8]* %4, i64 0, i64 0
%25 = getelementptr inbounds [282 x i8], [282 x i8]* %5, i64 0, i64 0
%26 = call i32 @max_cint(i8* %24, i8* %25)
%27 = call i32 @print_cint(i32 %26)
%28 = call i32 @putchar(i8 signext 10)
%29 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%30 = getelementptr inbounds [275 x i8], [275 x i8]* %4, i64 0, i64 0
%31 = getelementptr inbounds [282 x i8], [282 x i8]* %5, i64 0, i64 0
%32 = call i32 @min_cint(i8* %30, i8* %31)
%33 = call i32 @print_cint(i32 %32)
%34 = call i32 @putchar(i8 signext 10)
%35 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%36 = getelementptr inbounds [275 x i8], [275 x i8]* %4, i64 0, i64 0
%37 = getelementptr inbounds [282 x i8], [282 x i8]* %5, i64 0, i64 0
%38 = call i32 @add_cint(i8* %36, i8* %37)
%39 = call i32 @print_cint(i32 %38)
%40 = call i32 @putchar(i8 signext 10)
%41 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [111 x i8] c"11111111797532757262748259798327728181981789179879817987498279827357394875984379658745769879878734534534534534\00"
@__const.main.b = [111 x i8] c"91111111112384359874395792798187618481798417498732985798437598743985749687984379843769457698674645986984598956\00"
@.str = [6 x i8] c"\0A%s%s\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [5 x i8] c"%s%s\00"
@.str.3 = [5 x i8] c"\0A%s\0A\00"
@.str.4 = [6 x i8] c"Sum :\00"
@__const.main.c = [275 x i8] c"1632487222222222222222222222222222264721984793287597435097439875984375987435897394759347547309579203750937459074309759347509734057430975074350974309750937409574309754390537097509437590743097536489329842987698343698349843986439869843769843698369837986798643674398798637698437\00"
@__const.main.d = [282 x i8] c"91111111112384359874395792798187618481798417498732985798437598743985749687984379843769457698674645986984598956329849835986329865983265989823698326598698236598368952698659865986598698569856986325986983269832569863298659832659832658965329863289658923686582658965868568632563258653286\00"
@.str.5 = [6 x i8] c"Max :\00"
@.str.6 = [6 x i8] c"Min :\00"
define i32 @main() {
%1 = alloca [111 x i8]
%2 = alloca [111 x i8]
%3 = alloca [275 x i8]
%4 = alloca [282 x i8]
%5 = tail call i32 (...) @print_eml_version()
%6 = tail call i32 (...) @print_compiler_version()
%7 = getelementptr inbounds [111 x i8], [111 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [111 x i8], [111 x i8]* %2, i64 0, i64 0
%9 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @add_cint(i8* %7, i8* %8)
%13 = call i32 @print_cint(i32 %12)
%14 = call i32 @putchar(i8 signext 10)
%15 = call i32 @putchar(i8 signext 10)
%16 = getelementptr inbounds [275 x i8], [275 x i8]* %3, i64 0, i64 0
%17 = getelementptr inbounds [282 x i8], [282 x i8]* %4, i64 0, i64 0
%18 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 @max_cint(i8* %16, i8* %17)
%20 = call i32 @print_cint(i32 %19)
%21 = call i32 @putchar(i8 signext 10)
%22 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 @min_cint(i8* %16, i8* %17)
%24 = call i32 @print_cint(i32 %23)
%25 = call i32 @putchar(i8 signext 10)
%26 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 @add_cint(i8* %16, i8* %17)
%28 = call i32 @print_cint(i32 %27)
%29 = call i32 @putchar(i8 signext 10)
%30 = call i32 @putchar(i8 signext 10)
ret i32 0
}