#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*/ printdouble(double *);
int /*<<< orphan*/ printf(char *);
void printpoint(double *d) {
  printf("[Mod(");
  printdouble(d);
  printf(",2^127-1),Mod(");
  printdouble(d + 5);
  printf(",2^127-1),Mod(");
  printdouble(d + 10);
  printf(",2^127-1),Mod(");
  printdouble(d + 15);
  printf(",2^127-1)]");
}


x86 assembly (clang, -O0):
<printpoint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <printdouble@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x28,%rdi
call   1040 <printdouble@plt>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x50,%rdi
call   1040 <printdouble@plt>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x78,%rdi
call   1040 <printdouble@plt>
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printpoint>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <printdouble@plt>
lea    0xec4(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
lea    0x28(%rbx),%rdi
call   1040 <printdouble@plt>
mov    %r14,%rdi
call   1030 <printf@plt>
lea    0x50(%rbx),%rdi
call   1040 <printdouble@plt>
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x78,%rbx
mov    %rbx,%rdi
call   1040 <printdouble@plt>
lea    0xe96(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"[Mod(\00"
@.str.1 = [15 x i8] c",2^127-1),Mod(\00"
@.str.2 = [11 x i8] c",2^127-1)]\00"
define void @printpoint(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = load double*, double** %2
%5 = call i32 @printdouble(double* %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%7 = load double*, double** %2
%8 = getelementptr inbounds double, double* %7, i64 5
%9 = call i32 @printdouble(double* %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%11 = load double*, double** %2
%12 = getelementptr inbounds double, double* %11, i64 10
%13 = call i32 @printdouble(double* %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%15 = load double*, double** %2
%16 = getelementptr inbounds double, double* %15, i64 15
%17 = call i32 @printdouble(double* %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"[Mod(\00"
@.str.1 = [15 x i8] c",2^127-1),Mod(\00"
@.str.2 = [11 x i8] c",2^127-1)]\00"
define void @printpoint(double* %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printdouble(double* %0)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = getelementptr inbounds double, double* %0, i64 5
%6 = tail call i32 @printdouble(double* %5)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds double, double* %0, i64 10
%9 = tail call i32 @printdouble(double* %8)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%11 = getelementptr inbounds double, double* %0, i64 15
%12 = tail call i32 @printdouble(double* %11)
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
ret void
}