#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 */
double divisionBy10(int);
double divisionBy17(int);
scalar_t__ evenOdd(int);
scalar_t__ multipleBy19(int);
scalar_t__ multipleBy3(int);
scalar_t__ multipleBy5(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *, int *, int *, int *, int *,
                         int *, int *, int *, int *);
int main() {
  int inputNumbers[10];
  int i = 0;
  printf("Please enter 10 numbers.\n");
  scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", &inputNumbers[0], &inputNumbers[1],
        &inputNumbers[2], &inputNumbers[3], &inputNumbers[4], &inputNumbers[5],
        &inputNumbers[6], &inputNumbers[7], &inputNumbers[8], &inputNumbers[9]);
  for (i = 0; i < 10; i++) {
    printf("%d - ", inputNumbers[i]);
    if (evenOdd(inputNumbers[i])) {
      printf("even, ");
    } else {
      printf("odd, ");
    }
    if (multipleBy3(inputNumbers[i])) {
      printf("yes, ");
    } else {
      printf("no, ");
    }
    if (multipleBy5(inputNumbers[i])) {
      printf("yes, ");
    } else {
      printf("no, ");
    }
    if (multipleBy19(inputNumbers[i])) {
      printf("yes, ");
    } else {
      printf("no, ");
    }
    printf("%f, %f \n", divisionBy10(inputNumbers[i]),
           divisionBy17(inputNumbers[i]));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x44(%rbp)
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    -0x40(%rbp),%rdx
add    $0x4,%rdx
lea    -0x40(%rbp),%rcx
add    $0x8,%rcx
lea    -0x40(%rbp),%r8
add    $0xc,%r8
lea    -0x40(%rbp),%r9
add    $0x10,%r9
lea    -0x40(%rbp),%r14
add    $0x14,%r14
lea    -0x40(%rbp),%rbx
add    $0x18,%rbx
lea    -0x40(%rbp),%r11
add    $0x1c,%r11
lea    -0x40(%rbp),%r10
add    $0x20,%r10
lea    -0x40(%rbp),%rax
add    $0x24,%rax
lea    0xe20(%rip),%rdi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1090 <scanf@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    1361 <main+0x1e1>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   10a0 <evenOdd@plt>
cmp    $0x0,%rax
je     1268 <main+0xe8>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1276 <main+0xf6>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1080 <multipleBy3@plt>
cmp    $0x0,%rax
je     12a0 <main+0x120>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12ae <main+0x12e>
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1070 <multipleBy5@plt>
cmp    $0x0,%rax
je     12d8 <main+0x158>
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e6 <main+0x166>
lea    0xd72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1030 <multipleBy19@plt>
cmp    $0x0,%rax
je     1310 <main+0x190>
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    131e <main+0x19e>
lea    0xd3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1050 <divisionBy10@plt>
movsd  %xmm0,-0x50(%rbp)
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1060 <divisionBy17@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
lea    0xd0a(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    121e <main+0x9e>
mov    -0x14(%rbp),%eax
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xea0(%rip),%rdi
call   1040 <puts@plt>
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
lea    0x14(%rsp),%r10
lea    0x18(%rsp),%r11
lea    0x1c(%rsp),%rbx
lea    0x20(%rsp),%rax
lea    0x24(%rsp),%rbp
sub    $0x8,%rsp
lea    0xe1e(%rip),%rdi
lea    0x8(%rsp),%rsi
push   %rbp
push   %rax
push   %rbx
push   %r11
push   %r10
call   10a0 <scanf@plt>
add    $0x30,%rsp
lea    0xe20(%rip),%r14
lea    0xe1f(%rip),%r12
lea    0xe2b(%rip),%rbx
lea    0xe1e(%rip),%rbp
lea    0xe22(%rip),%r13
xor    %r15d,%r15d
nopl   (%rax)
mov    (%rsp,%r15,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%r15,4),%edi
call   10b0 <evenOdd@plt>
test   %rax,%rax
mov    %r12,%rdi
lea    0xde7(%rip),%rax
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%r15,4),%edi
call   1090 <multipleBy3@plt>
test   %rax,%rax
mov    %rbp,%rdi
cmove  %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%r15,4),%edi
call   1080 <multipleBy5@plt>
test   %rax,%rax
mov    %rbp,%rdi
cmove  %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%r15,4),%edi
call   1030 <multipleBy19@plt>
test   %rax,%rax
mov    %rbp,%rdi
cmove  %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%r15,4),%edi
call   1060 <divisionBy10@plt>
movsd  %xmm0,0x30(%rsp)
mov    (%rsp,%r15,4),%edi
call   1070 <divisionBy17@plt>
movaps %xmm0,%xmm1
mov    %r13,%rdi
movsd  0x30(%rsp),%xmm0
mov    $0x2,%al
call   1050 <printf@plt>
add    $0x1,%r15
cmp    $0xa,%r15
jne    1220 <main+0x90>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Please enter 10 numbers.\0A\00"
@.str.1 = [30 x i8] c"%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\00"
@.str.2 = [6 x i8] c"%d - \00"
@.str.3 = [7 x i8] c"even, \00"
@.str.4 = [6 x i8] c"odd, \00"
@.str.5 = [6 x i8] c"yes, \00"
@.str.6 = [5 x i8] c"no, \00"
@.str.7 = [9 x i8] c"%f, %f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
%15 = call i32 @scanf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14)
store i32 0, i32* %3
br label %16
16: ; preds = %80, %0
%17 = load i32, i32* %3
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %83
19: ; preds = %16
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %21
%23 = load i32, i32* %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = call i64 @evenOdd(i32 %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %19
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %35
33: ; preds = %19
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %35
35: ; preds = %33, %31
%36 = load i32, i32* %3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = call i64 @multipleBy3(i32 %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %35
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %46
44: ; preds = %35
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %46
46: ; preds = %44, %42
%47 = load i32, i32* %3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = call i64 @multipleBy5(i32 %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %46
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %57
55: ; preds = %46
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %57
57: ; preds = %55, %53
%58 = load i32, i32* %3
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = call i64 @multipleBy19(i32 %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %57
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %68
66: ; preds = %57
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %68
68: ; preds = %66, %64
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = call double @divisionBy10(i32 %72)
%74 = load i32, i32* %3
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = call double @divisionBy17(i32 %77)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), double %73, double %78)
br label %80
80: ; preds = %68
%81 = load i32, i32* %3
%82 = add nsw i32 %81, 1
store i32 %82, i32* %3
br label %16
83: ; preds = %16
%84 = load i32, i32* %1
ret i32 %84
}

LLVM IR (-O2):
@.str.1 = [30 x i8] c"%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\00"
@.str.2 = [6 x i8] c"%d - \00"
@.str.3 = [7 x i8] c"even, \00"
@.str.4 = [6 x i8] c"odd, \00"
@.str.5 = [6 x i8] c"yes, \00"
@.str.6 = [5 x i8] c"no, \00"
@.str.7 = [9 x i8] c"%f, %f \0A\00"
@str = [25 x i8] c"Please enter 10 numbers.\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%4 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%14 = call i32 @scanf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13)
br label %15
15: ; preds = %0, %15
%16 = phi i64 [ 0, %0 ], [ %45, %15 ]
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %17
%21 = call i64 @evenOdd(i32 %20)
%22 = icmp eq i64 %21, 0
%23 = select i1 %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %23)
%25 = load i32, i32* %17
%26 = call i64 @multipleBy3(i32 %25)
%27 = icmp eq i64 %26, 0
%28 = select i1 %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %28)
%30 = load i32, i32* %17
%31 = call i64 @multipleBy5(i32 %30)
%32 = icmp eq i64 %31, 0
%33 = select i1 %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %33)
%35 = load i32, i32* %17
%36 = call i64 @multipleBy19(i32 %35)
%37 = icmp eq i64 %36, 0
%38 = select i1 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %38)
%40 = load i32, i32* %17
%41 = call double @divisionBy10(i32 %40)
%42 = load i32, i32* %17
%43 = call double @divisionBy17(i32 %42)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), double %41, double %43)
%45 = add nuw nsw i64 %16, 1
%46 = icmp eq i64 %45, 10
br i1 %46, label %47, label %15
47: ; preds = %15
ret i32 0
}