#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 *, int *);
void Task3() {
  int n, d, f;
  printf("Enter value for N: ");
  scanf("%d", &n);
  f = 0;
  do {
    d = n % 10;
    n /= 10;
    if (d % 2 > 0)
      f++;
  } while (n > 0);
  printf("%s\n", (f == 0) ? "False" : "True");
}


x86 assembly (clang, -O0):
<Task3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jle    1186 <Task3+0x66>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118b <Task3+0x6b>
cmpl   $0x0,-0x4(%rbp)
jg     114d <Task3+0x2d>
mov    -0xc(%rbp),%ecx
lea    0xe82(%rip),%rsi
lea    0xe75(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Task3>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
nopw   0x0(%rax,%rax,1)
movslq %eax,%rcx
imul   $0x66666667,%rcx,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rax
add    %edx,%eax
lea    (%rax,%rax,1),%edx
lea    (%rdx,%rdx,4),%edx
mov    %ecx,%esi
sub    %edx,%esi
and    $0x80000001,%esi
xor    %edx,%edx
cmp    $0x1,%esi
sete   %dl
add    %edx,%ebx
cmp    $0x9,%ecx
jg     1160 <Task3+0x30>
mov    %eax,0xc(%rsp)
test   %ebx,%ebx
lea    0xe74(%rip),%rax
lea    0xe73(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Enter value for N: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [6 x i8] c"False\00"
@.str.4 = [5 x i8] c"True\00"
define void @Task3() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
store i32 0, i32* %3
br label %6
6: ; preds = %18, %0
%7 = load i32, i32* %1
%8 = srem i32 %7, 10
store i32 %8, i32* %2
%9 = load i32, i32* %1
%10 = sdiv i32 %9, 10
store i32 %10, i32* %1
%11 = load i32, i32* %2
%12 = srem i32 %11, 2
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %6
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
br label %17
17: ; preds = %14, %6
br label %18
18: ; preds = %17
%19 = load i32, i32* %1
%20 = icmp sgt i32 %19, 0
br i1 %20, label %6, label %21
21: ; preds = %18
%22 = load i32, i32* %3
%23 = icmp eq i32 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %25)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Enter value for N: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [6 x i8] c"False\00"
@.str.4 = [5 x i8] c"True\00"
define void @Task3() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
br label %6
6: ; preds = %6, %0
%7 = phi i32 [ %5, %0 ], [ %10, %6 ]
%8 = phi i32 [ 0, %0 ], [ %14, %6 ]
%9 = srem i32 %7, 10
%10 = sdiv i32 %7, 10
%11 = and i32 %9, -2147483647
%12 = icmp eq i32 %11, 1
%13 = zext i1 %12 to i32
%14 = add nuw nsw i32 %8, %13
%15 = icmp sgt i32 %7, 9
br i1 %15, label %6, label %16
16: ; preds = %6
store i32 %10, i32* %1
%17 = icmp eq i32 %14, 0
%18 = select i1 %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0)
%19 = call i32 @puts(i8* dereferenceable(1) %18)
ret void
}