#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 main() {
  struct abc {
    int i;
    int a[100];
  } xyz;
  printf("\n....................list of numbers are.....................\n");
  for (xyz.i = 1; xyz.i <= 100; (xyz.i)++)
    printf(" %d \t ", xyz.a[xyz.i] = xyz.i);
  printf(
      "\n....................list of Even numbers are.....................\n");
  for (xyz.i = 1; xyz.i <= 100; (xyz.i)++)
    if (xyz.a[xyz.i] % 2 == 0)
      printf(" %d \t ", xyz.a[xyz.i]);
  printf(
      "\n...................list of  odd numbers are......................\n");
  for (xyz.i = 1; xyz.i <= 100; (xyz.i)++)
    if (xyz.a[xyz.i] % 2 != 0)
      printf(" %d \t ", xyz.a[xyz.i]);
  printf("\n..................list of numbers  after adding 5 to each "
         "..........\n");
  for (xyz.i = 1; xyz.i <= 100; (xyz.i)++)
    printf(" %d \t ", xyz.a[xyz.i] += 5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x198(%rbp)
cmpl   $0x64,-0x198(%rbp)
jg     117d <main+0x6d>
mov    -0x198(%rbp),%esi
movslq -0x198(%rbp),%rax
mov    %esi,-0x194(%rbp,%rax,4)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    113a <main+0x2a>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x198(%rbp)
cmpl   $0x64,-0x198(%rbp)
jg     11f6 <main+0xe6>
movslq -0x198(%rbp),%rax
mov    -0x194(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11dd <main+0xcd>
movslq -0x198(%rbp),%rax
mov    -0x194(%rbp,%rax,4),%esi
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e2 <main+0xd2>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    1195 <main+0x85>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x198(%rbp)
cmpl   $0x64,-0x198(%rbp)
jg     126f <main+0x15f>
movslq -0x198(%rbp),%rax
mov    -0x194(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1256 <main+0x146>
movslq -0x198(%rbp),%rax
mov    -0x194(%rbp,%rax,4),%esi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    125b <main+0x14b>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    120e <main+0xfe>
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x198(%rbp)
cmpl   $0x64,-0x198(%rbp)
jg     12ce <main+0x1be>
movslq -0x198(%rbp),%rax
mov    -0x194(%rbp,%rax,4),%esi
add    $0x5,%esi
mov    %esi,-0x194(%rbp,%rax,4)
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    1287 <main+0x177>
mov    -0x4(%rbp),%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x198,%rsp
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,(%rsp)
mov    $0x1,%eax
lea    0xeb7(%rip),%rbx
nopl   0x0(%rax)
movslq %eax,%rsi
mov    %esi,0x4(%rsp,%rsi,4)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0x64,%ecx
jl     1150 <main+0x30>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2,%ebx
lea    0xe79(%rip),%r14
jmp    119a <main+0x7a>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    $0x66,%rbx
je     11af <main+0x8f>
mov    (%rsp,%rbx,4),%esi
test   $0x1,%sil
jne    1190 <main+0x70>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1190 <main+0x70>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2,%ebx
lea    0xe39(%rip),%r14
jmp    11da <main+0xba>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    $0x66,%rbx
je     11ef <main+0xcf>
mov    (%rsp,%rbx,4),%esi
test   $0x1,%sil
je     11d0 <main+0xb0>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11d0 <main+0xb0>
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,(%rsp)
mov    $0x1,%eax
lea    0xdf2(%rip),%rbx
xchg   %ax,%ax
cltq
mov    0x4(%rsp,%rax,4),%esi
add    $0x5,%esi
mov    %esi,0x4(%rsp,%rax,4)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,(%rsp)
cmp    $0x64,%ecx
jl     1210 <main+0xf0>
xor    %eax,%eax
add    $0x198,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.abc = type { i32, [100 x i32] }
@.str = [63 x i8] c"\0A....................list of numbers are.....................\0A\00"
@.str.1 = [7 x i8] c" %d \09 \00"
@.str.2 = [68 x i8] c"\0A....................list of Even numbers are.....................\0A\00"
@.str.3 = [68 x i8] c"\0A...................list of odd numbers are......................\0A\00"
@.str.4 = [71 x i8] c"\0A..................list of numbers after adding 5 to each ..........\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.abc
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
store i32 1, i32* %4
br label %5
5: ; preds = %18, %0
%6 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%7 = load i32, i32* %6
%8 = icmp sle i32 %7, 100
br i1 %8, label %9, label %22
9: ; preds = %5
%10 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%11 = load i32, i32* %10
%12 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 1
%13 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%14 = load i32, i32* %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [100 x i32], [100 x i32]* %12, i64 0, i64 %15
store i32 %11, i32* %16
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %11)
br label %18
18: ; preds = %9
%19 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%20 = load i32, i32* %19
%21 = add nsw i32 %20, 1
store i32 %21, i32* %19
br label %5
22: ; preds = %5
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%24 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
store i32 1, i32* %24
br label %25
25: ; preds = %47, %22
%26 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%27 = load i32, i32* %26
%28 = icmp sle i32 %27, 100
br i1 %28, label %29, label %51
29: ; preds = %25
%30 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 1
%31 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%32 = load i32, i32* %31
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i32], [100 x i32]* %30, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = srem i32 %35, 2
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %29
%39 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 1
%40 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%41 = load i32, i32* %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i32], [100 x i32]* %39, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %44)
br label %46
46: ; preds = %38, %29
br label %47
47: ; preds = %46
%48 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%49 = load i32, i32* %48
%50 = add nsw i32 %49, 1
store i32 %50, i32* %48
br label %25
51: ; preds = %25
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0))
%53 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
store i32 1, i32* %53
br label %54
54: ; preds = %76, %51
%55 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%56 = load i32, i32* %55
%57 = icmp sle i32 %56, 100
br i1 %57, label %58, label %80
58: ; preds = %54
%59 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 1
%60 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%61 = load i32, i32* %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [100 x i32], [100 x i32]* %59, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = srem i32 %64, 2
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %75
67: ; preds = %58
%68 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 1
%69 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%70 = load i32, i32* %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [100 x i32], [100 x i32]* %68, i64 0, i64 %71
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %67, %58
br label %76
76: ; preds = %75
%77 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%78 = load i32, i32* %77
%79 = add nsw i32 %78, 1
store i32 %79, i32* %77
br label %54
80: ; preds = %54
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%82 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
store i32 1, i32* %82
br label %83
83: ; preds = %96, %80
%84 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%85 = load i32, i32* %84
%86 = icmp sle i32 %85, 100
br i1 %86, label %87, label %100
87: ; preds = %83
%88 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 1
%89 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%90 = load i32, i32* %89
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [100 x i32], [100 x i32]* %88, i64 0, i64 %91
%93 = load i32, i32* %92
%94 = add nsw i32 %93, 5
store i32 %94, i32* %92
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %94)
br label %96
96: ; preds = %87
%97 = getelementptr inbounds %struct.abc, %struct.abc* %2, i32 0, i32 0
%98 = load i32, i32* %97
%99 = add nsw i32 %98, 1
store i32 %99, i32* %97
br label %83
100: ; preds = %83
%101 = load i32, i32* %1
ret i32 %101
}

LLVM IR (-O2):
%struct.abc = type { i32, [100 x i32] }
@.str.1 = [7 x i8] c" %d \09 \00"
@str = [62 x i8] c"\0A....................list of numbers are.....................\00"
@str.5 = [67 x i8] c"\0A....................list of Even numbers are.....................\00"
@str.6 = [67 x i8] c"\0A...................list of odd numbers are......................\00"
@str.7 = [70 x i8] c"\0A..................list of numbers after adding 5 to each ..........\00"
define i32 @main() {
%1 = alloca %struct.abc
%2 = bitcast %struct.abc* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%4 = getelementptr inbounds %struct.abc, %struct.abc* %1, i64 0, i32 0
store i32 1, i32* %4
br label %5
5: ; preds = %0, %5
%6 = phi i32 [ 1, %0 ], [ %11, %5 ]
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds %struct.abc, %struct.abc* %1, i64 0, i32 1, i64 %7
store i32 %6, i32* %8
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%10 = load i32, i32* %4
%11 = add nsw i32 %10, 1
store i32 %11, i32* %4
%12 = icmp slt i32 %10, 100
br i1 %12, label %5, label %13
13: ; preds = %5
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.5, i64 0, i64 0))
br label %15
15: ; preds = %13, %23
%16 = phi i64 [ 1, %13 ], [ %24, %23 ]
%17 = getelementptr inbounds %struct.abc, %struct.abc* %1, i64 0, i32 1, i64 %16
%18 = load i32, i32* %17
%19 = and i32 %18, 1
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %18)
br label %23
23: ; preds = %15, %21
%24 = add nuw nsw i64 %16, 1
%25 = icmp eq i64 %24, 101
br i1 %25, label %26, label %15
26: ; preds = %23
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.6, i64 0, i64 0))
br label %28
28: ; preds = %26, %36
%29 = phi i64 [ 1, %26 ], [ %37, %36 ]
%30 = getelementptr inbounds %struct.abc, %struct.abc* %1, i64 0, i32 1, i64 %29
%31 = load i32, i32* %30
%32 = and i32 %31, 1
%33 = icmp eq i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %28
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %31)
br label %36
36: ; preds = %28, %34
%37 = add nuw nsw i64 %29, 1
%38 = icmp eq i64 %37, 101
br i1 %38, label %39, label %28
39: ; preds = %36
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.7, i64 0, i64 0))
store i32 1, i32* %4
br label %41
41: ; preds = %39, %41
%42 = phi i32 [ 1, %39 ], [ %49, %41 ]
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds %struct.abc, %struct.abc* %1, i64 0, i32 1, i64 %43
%45 = load i32, i32* %44
%46 = add nsw i32 %45, 5
store i32 %46, i32* %44
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %4
%49 = add nsw i32 %48, 1
store i32 %49, i32* %4
%50 = icmp slt i32 %48, 100
br i1 %50, label %41, label %51
51: ; preds = %41
ret i32 0
}