#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
void quaddobl_read_point(int n, double *x) {
  int k;
  for (k = 0; k < n; k++) {
    printf("Give the real part for x[%d] : ", k);
    scanf("%lf", &x[8 * k]);
    scanf("%lf", &x[8 * k + 1]);
    scanf("%lf", &x[8 * k + 2]);
    scanf("%lf", &x[8 * k + 3]);
    printf("Give the imaginary part for x[%d] : ", k);
    scanf("%lf", &x[8 * k + 4]);
    scanf("%lf", &x[8 * k + 5]);
    scanf("%lf", &x[8 * k + 6]);
    scanf("%lf", &x[8 * k + 7]);
  }
  if (1 > 0) {
    printf("The coordinates of the point :\n");
    for (k = 0; k < n; k++)
      printf("x[%d] = %.15e  %.15e  %.15e  %.15e %.15e  %.15e  %.15e  %.15e\n",
             k, x[4 * k], x[4 * k + 1], x[4 * k + 2], x[4 * k + 3],
             x[4 * k + 4], x[4 * k + 5], x[4 * k + 6], x[4 * k + 7]);
  }
}


x86 assembly (clang, -O0):
<quaddobl_read_point>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    127f <quaddobl_read_point+0x15f>
mov    -0x14(%rbp),%esi
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xeb3(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe91(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x2,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe6f(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x3,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe4d(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x14(%rbp),%esi
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x4,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe1a(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x5,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xdf8(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x6,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xdd6(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x3,%eax
add    $0x7,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    0xdb4(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1136 <quaddobl_read_point+0x16>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1364 <quaddobl_read_point+0x244>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm4
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm5
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm6
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    $0x7,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm7
lea    0xd1a(%rip),%rdi
mov    $0x8,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1294 <quaddobl_read_point+0x174>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quaddobl_read_point>:
test   %edi,%edi
jle    128f <quaddobl_read_point+0x15f>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,0xc(%rsp)
mov    %edi,%eax
mov    %rax,0x10(%rsp)
lea    0x0(,%rax,8),%r14
lea    0xebd(%rip),%r13
lea    0xeba(%rip),%r12
xor    %r15d,%r15d
xor    %ebp,%ebp
nop
lea    0xe89(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
lea    0x1(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
lea    0x2(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
lea    0x3(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
lea    0x5(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
lea    0x6(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
lea    0x7(%r15),%eax
lea    (%rbx,%rax,8),%rsi
mov    %r13,%rdi
call   1050 <scanf@plt>
add    $0x1,%ebp
add    $0x8,%r15
cmp    %r15,%r14
jne    1170 <quaddobl_read_point+0x40>
lea    0xe66(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x10(%rsp),%r15
jle    1280 <quaddobl_read_point+0x150>
add    $0x38,%rbx
xor    %ebp,%ebp
lea    0xe09(%rip),%r14
movsd  -0x38(%rbx),%xmm0
movsd  -0x30(%rbx),%xmm1
movsd  -0x28(%rbx),%xmm2
movsd  -0x20(%rbx),%xmm3
movsd  -0x18(%rbx),%xmm4
movsd  -0x10(%rbx),%xmm5
movsd  -0x8(%rbx),%xmm6
movsd  (%rbx),%xmm7
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x8,%al
call   1040 <printf@plt>
add    $0x1,%rbp
add    $0x20,%rbx
cmp    %rbp,%r15
jne    1240 <quaddobl_read_point+0x110>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdf2(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Give the real part for x[%d] : \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [37 x i8] c"Give the imaginary part for x[%d] : \00"
@.str.3 = [32 x i8] c"The coordinates of the point :\0A\00"
@.str.4 = [63 x i8] c"x[%d] = %.15e %.15e %.15e %.15e %.15e %.15e %.15e %.15e\0A\00"
define void @quaddobl_read_point(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca double*
%5 = alloca i32
store i32 %0, i32* %3
store double* %1, double** %4
store i32 0, i32* %5
br label %6
6: ; preds = %70, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %3
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %73
10: ; preds = %6
%11 = load i32, i32* %5
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load double*, double** %4
%14 = load i32, i32* %5
%15 = mul nsw i32 8, %14
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, double* %13, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %17)
%19 = load double*, double** %4
%20 = load i32, i32* %5
%21 = mul nsw i32 8, %20
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, double* %19, i64 %23
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %24)
%26 = load double*, double** %4
%27 = load i32, i32* %5
%28 = mul nsw i32 8, %27
%29 = add nsw i32 %28, 2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %26, i64 %30
%32 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %31)
%33 = load double*, double** %4
%34 = load i32, i32* %5
%35 = mul nsw i32 8, %34
%36 = add nsw i32 %35, 3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %33, i64 %37
%39 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %38)
%40 = load i32, i32* %5
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %40)
%42 = load double*, double** %4
%43 = load i32, i32* %5
%44 = mul nsw i32 8, %43
%45 = add nsw i32 %44, 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %42, i64 %46
%48 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %47)
%49 = load double*, double** %4
%50 = load i32, i32* %5
%51 = mul nsw i32 8, %50
%52 = add nsw i32 %51, 5
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %49, i64 %53
%55 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %54)
%56 = load double*, double** %4
%57 = load i32, i32* %5
%58 = mul nsw i32 8, %57
%59 = add nsw i32 %58, 6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %56, i64 %60
%62 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %61)
%63 = load double*, double** %4
%64 = load i32, i32* %5
%65 = mul nsw i32 8, %64
%66 = add nsw i32 %65, 7
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %63, i64 %67
%69 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %68)
br label %70
70: ; preds = %10
%71 = load i32, i32* %5
%72 = add nsw i32 %71, 1
store i32 %72, i32* %5
br label %6
73: ; preds = %6
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %75
75: ; preds = %137, %73
%76 = load i32, i32* %5
%77 = load i32, i32* %3
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %140
79: ; preds = %75
%80 = load i32, i32* %5
%81 = load double*, double** %4
%82 = load i32, i32* %5
%83 = mul nsw i32 4, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %81, i64 %84
%86 = load double, double* %85
%87 = load double*, double** %4
%88 = load i32, i32* %5
%89 = mul nsw i32 4, %88
%90 = add nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %87, i64 %91
%93 = load double, double* %92
%94 = load double*, double** %4
%95 = load i32, i32* %5
%96 = mul nsw i32 4, %95
%97 = add nsw i32 %96, 2
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %94, i64 %98
%100 = load double, double* %99
%101 = load double*, double** %4
%102 = load i32, i32* %5
%103 = mul nsw i32 4, %102
%104 = add nsw i32 %103, 3
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %101, i64 %105
%107 = load double, double* %106
%108 = load double*, double** %4
%109 = load i32, i32* %5
%110 = mul nsw i32 4, %109
%111 = add nsw i32 %110, 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %108, i64 %112
%114 = load double, double* %113
%115 = load double*, double** %4
%116 = load i32, i32* %5
%117 = mul nsw i32 4, %116
%118 = add nsw i32 %117, 5
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %115, i64 %119
%121 = load double, double* %120
%122 = load double*, double** %4
%123 = load i32, i32* %5
%124 = mul nsw i32 4, %123
%125 = add nsw i32 %124, 6
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %122, i64 %126
%128 = load double, double* %127
%129 = load double*, double** %4
%130 = load i32, i32* %5
%131 = mul nsw i32 4, %130
%132 = add nsw i32 %131, 7
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, double* %129, i64 %133
%135 = load double, double* %134
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i32 %80, double %86, double %93, double %100, double %107, double %114, double %121, double %128, double %135)
br label %137
137: ; preds = %79
%138 = load i32, i32* %5
%139 = add nsw i32 %138, 1
store i32 %139, i32* %5
br label %75
140: ; preds = %75
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"Give the real part for x[%d] : \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [37 x i8] c"Give the imaginary part for x[%d] : \00"
@.str.4 = [63 x i8] c"x[%d] = %.15e %.15e %.15e %.15e %.15e %.15e %.15e %.15e\0A\00"
@str = [31 x i8] c"The coordinates of the point :\00"
define void @quaddobl_read_point(i32 %0, double* %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
br label %81
6: ; preds = %2
%7 = zext i32 %0 to i64
br label %8
8: ; preds = %6, %8
%9 = phi i64 [ 0, %6 ], [ %45, %8 ]
%10 = trunc i64 %9 to i32
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = shl nsw i32 %10, 3
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds double, double* %1, i64 %13
%15 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %14)
%16 = or i32 %12, 1
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds double, double* %1, i64 %17
%19 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %18)
%20 = or i32 %12, 2
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds double, double* %1, i64 %21
%23 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %22)
%24 = or i32 %12, 3
%25 = zext i32 %24 to i64
%26 = getelementptr inbounds double, double* %1, i64 %25
%27 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %26)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%29 = or i32 %12, 4
%30 = zext i32 %29 to i64
%31 = getelementptr inbounds double, double* %1, i64 %30
%32 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %31)
%33 = or i32 %12, 5
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds double, double* %1, i64 %34
%36 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %35)
%37 = or i32 %12, 6
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds double, double* %1, i64 %38
%40 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %39)
%41 = or i32 %12, 7
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds double, double* %1, i64 %42
%44 = tail call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %43)
%45 = add nuw nsw i64 %9, 1
%46 = icmp eq i64 %45, %7
br i1 %46, label %47, label %8
47: ; preds = %8
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
br i1 %3, label %49, label %81
49: ; preds = %47
%50 = zext i32 %0 to i64
br label %51
51: ; preds = %49, %51
%52 = phi i64 [ 0, %49 ], [ %79, %51 ]
%53 = shl nsw i64 %52, 2
%54 = getelementptr inbounds double, double* %1, i64 %53
%55 = load double, double* %54
%56 = or i64 %53, 1
%57 = getelementptr inbounds double, double* %1, i64 %56
%58 = load double, double* %57
%59 = or i64 %53, 2
%60 = getelementptr inbounds double, double* %1, i64 %59
%61 = load double, double* %60
%62 = or i64 %53, 3
%63 = getelementptr inbounds double, double* %1, i64 %62
%64 = load double, double* %63
%65 = add nuw nsw i64 %53, 4
%66 = getelementptr inbounds double, double* %1, i64 %65
%67 = load double, double* %66
%68 = add nuw nsw i64 %53, 5
%69 = getelementptr inbounds double, double* %1, i64 %68
%70 = load double, double* %69
%71 = add nuw nsw i64 %53, 6
%72 = getelementptr inbounds double, double* %1, i64 %71
%73 = load double, double* %72
%74 = add nuw nsw i64 %53, 7
%75 = getelementptr inbounds double, double* %1, i64 %74
%76 = load double, double* %75
%77 = trunc i64 %52 to i32
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i32 %77, double %55, double %58, double %61, double %64, double %67, double %70, double %73, double %76)
%79 = add nuw nsw i64 %52, 1
%80 = icmp eq i64 %79, %50
br i1 %80, label %81, label %51
81: ; preds = %51, %4, %47
ret void
}