#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, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  typedef struct {
    int p1, p2;
  } pari;
  int i, n;
  pari arrayCoppiePari[100];
  do {
    scanf("%d", &n);
  } while (n <= 0 || n > 100);
  arrayCoppiePari[0].p1 = 2;
  for (i = 0; i < n; i++) {
    arrayCoppiePari[i + 1].p1 = arrayCoppiePari[i].p2 =
        arrayCoppiePari[i].p1 + 2;
    printf("<p1: %d, p2: %d>\n", arrayCoppiePari[i].p1, arrayCoppiePari[i].p2);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    $0x1,%al
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x331(%rbp)
jle    1161 <main+0x41>
cmpl   $0x64,-0xc(%rbp)
setg   %al
mov    %al,-0x331(%rbp)
mov    -0x331(%rbp),%al
test   $0x1,%al
jne    1132 <main+0x12>
movl   $0x2,-0x330(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11e4 <main+0xc4>
movslq -0x8(%rbp),%rax
mov    -0x330(%rbp,%rax,8),%ecx
add    $0x2,%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x32c(%rbp,%rax,8)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x330(%rbp,%rax,8)
movslq -0x8(%rbp),%rax
mov    -0x330(%rbp,%rax,8),%esi
movslq -0x8(%rbp),%rax
mov    -0x32c(%rbp,%rax,8),%edx
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1180 <main+0x60>
xor    %eax,%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xed0(%rip),%r14
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffff9b,%eax
cmp    $0xffffff9c,%eax
jb     1140 <main+0x20>
mov    $0x4,%ebx
xor    %r15d,%r15d
lea    0xe9d(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
lea    -0x2(%rbx),%esi
add    $0x1,%r15
mov    %r14,%rdi
mov    %ebx,%edx
call   1030 <printf@plt>
movslq 0xc(%rsp),%rax
add    $0x2,%ebx
cmp    %rax,%r15
jl     1170 <main+0x50>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.pari = type { i32, i32 }
@.str = [3 x i8] c"%d\00"
@.str.1 = [18 x i8] c"<p1: %d, p2: %d>\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [100 x %struct.pari]
store i32 0, i32* %1
br label %5
5: ; preds = %13, %0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
br label %7
7: ; preds = %5
%8 = load i32, i32* %3
%9 = icmp sle i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, i32* %3
%12 = icmp sgt i32 %11, 100
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
br i1 %14, label %5, label %15
15: ; preds = %13
%16 = getelementptr inbounds [100 x %struct.pari], [100 x %struct.pari]* %4, i64 0, i64 0
%17 = getelementptr inbounds %struct.pari, %struct.pari* %16, i32 0, i32 0
store i32 2, i32* %17
store i32 0, i32* %2
br label %18
18: ; preds = %49, %15
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %52
22: ; preds = %18
%23 = load i32, i32* %2
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x %struct.pari], [100 x %struct.pari]* %4, i64 0, i64 %24
%26 = getelementptr inbounds %struct.pari, %struct.pari* %25, i32 0, i32 0
%27 = load i32, i32* %26
%28 = add nsw i32 %27, 2
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x %struct.pari], [100 x %struct.pari]* %4, i64 0, i64 %30
%32 = getelementptr inbounds %struct.pari, %struct.pari* %31, i32 0, i32 1
store i32 %28, i32* %32
%33 = load i32, i32* %2
%34 = add nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x %struct.pari], [100 x %struct.pari]* %4, i64 0, i64 %35
%37 = getelementptr inbounds %struct.pari, %struct.pari* %36, i32 0, i32 0
store i32 %28, i32* %37
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [100 x %struct.pari], [100 x %struct.pari]* %4, i64 0, i64 %39
%41 = getelementptr inbounds %struct.pari, %struct.pari* %40, i32 0, i32 0
%42 = load i32, i32* %41
%43 = load i32, i32* %2
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x %struct.pari], [100 x %struct.pari]* %4, i64 0, i64 %44
%46 = getelementptr inbounds %struct.pari, %struct.pari* %45, i32 0, i32 1
%47 = load i32, i32* %46
%48 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %42, i32 %47)
br label %49
49: ; preds = %22
%50 = load i32, i32* %2
%51 = add nsw i32 %50, 1
store i32 %51, i32* %2
br label %18
52: ; preds = %18
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [18 x i8] c"<p1: %d, p2: %d>\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
br label %3
3: ; preds = %3, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = add i32 %5, -101
%7 = icmp ult i32 %6, -100
br i1 %7, label %3, label %8
8: ; preds = %3, %8
%9 = phi i32 [ %11, %8 ], [ 2, %3 ]
%10 = phi i64 [ %12, %8 ], [ 0, %3 ]
%11 = add nuw nsw i32 %9, 2
%12 = add nuw nsw i64 %10, 1
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %11)
%14 = load i32, i32* %1
%15 = sext i32 %14 to i64
%16 = icmp slt i64 %12, %15
br i1 %16, label %8, label %17
17: ; preds = %8
ret i32 0
}