#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 */
typedef int /*<<< orphan*/ mp_size_t;
typedef int /*<<< orphan*/ mp_limb_t;
typedef int /*<<< orphan*/ mp_exp_t;

/* Variables and functions */
int __GNU_MP_VERSION;
int __GNU_MP_VERSION_MINOR;
int __GNU_MP_VERSION_PATCHLEVEL;
int /*<<< orphan*/ printf(char *, int, ...);
int main() {
  printf("%i %i %i\n", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
         __GNU_MP_VERSION_PATCHLEVEL);
  printf("%zu %zu\n", sizeof(mp_size_t), sizeof(mp_exp_t));
  printf("%zu\n", sizeof(size_t));
  printf("%zu\n", sizeof(mp_limb_t));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ec2(%rip),%rax
mov    (%rax),%esi
mov    0x2ea1(%rip),%rax
mov    (%rax),%edx
mov    0x2ea0(%rip),%rax
mov    (%rax),%ecx
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ed0(%rip),%rax
mov    (%rax),%esi
mov    0x2eaf(%rip),%rax
mov    (%rax),%edx
mov    0x2eae(%rip),%rax
mov    (%rax),%ecx
lea    0xecd(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x4,%edx
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb5(%rip),%rbx
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%i %i %i\0A\00"
@__GNU_MP_VERSION = global i32 0
@__GNU_MP_VERSION_MINOR = global i32 0
@__GNU_MP_VERSION_PATCHLEVEL = global i32 0
@.str.1 = [9 x i8] c"%zu %zu\0A\00"
@.str.2 = [5 x i8] c"%zu\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @__GNU_MP_VERSION
%3 = load i32, i32* @__GNU_MP_VERSION_MINOR
%4 = load i32, i32* @__GNU_MP_VERSION_PATCHLEVEL
%5 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %4)
%6 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 4, i64 4)
%7 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 8)
%8 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
ret i32 0
}

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