#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*/ getch();
int primepow(int, int);
int /*<<< orphan*/ printf(char *, int);
main() {
  int num;
  num = 60;
  int i, j;
  i = primepow(num, 2);
  j = primepow(num, 5);
  if (i < j) {
    printf("The no of zeros are\n%d", i);
  } else if (i > j) {
    printf("The no of zeroes are\n%d", j);
  }
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3c,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1040 <primepow@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x5,%esi
call   1040 <primepow@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1186 <main+0x56>
mov    -0xc(%rbp),%esi
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
jmp    11a6 <main+0x76>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11a1 <main+0x71>
mov    -0x10(%rbp),%esi
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
jmp    11a6 <main+0x76>
mov    $0x0,%al
call   1050 <getch@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x3c,%edi
mov    $0x2,%esi
call   1040 <primepow@plt>
mov    %eax,%ebx
mov    $0x3c,%edi
mov    $0x5,%esi
call   1040 <primepow@plt>
cmp    %eax,%ebx
jge    1160 <main+0x30>
lea    0xea4(%rip),%rdi
mov    %ebx,%esi
jmp    116b <main+0x3b>
jle    1170 <main+0x40>
lea    0xeae(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1050 <getch@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"The no of zeros are\0A%d\00"
@.str.1 = [24 x i8] c"The no of zeroes are\0A%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 60, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @primepow(i32 %5, i32 2)
store i32 %6, i32* %3
%7 = load i32, i32* %2
%8 = call i32 @primepow(i32 %7, i32 5)
store i32 %8, i32* %4
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %13)
br label %23
15: ; preds = %0
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, i32* %4
%21 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %20)
br label %22
22: ; preds = %19, %15
br label %23
23: ; preds = %22, %12
%24 = call i32 (...) @getch()
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
@.str = [23 x i8] c"The no of zeros are\0A%d\00"
@.str.1 = [24 x i8] c"The no of zeroes are\0A%d\00"
define i32 @main() {
%1 = tail call i32 @primepow(i32 60, i32 2)
%2 = tail call i32 @primepow(i32 60, i32 5)
%3 = icmp slt i32 %1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
br label %10
6: ; preds = %0
%7 = icmp sgt i32 %1, %2
br i1 %7, label %8, label %10
8: ; preds = %6
%9 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %2)
br label %10
10: ; preds = %6, %8, %4
%11 = tail call i32 (...) @getch()
ret i32 0
}