void display(no) {
  if (no <= 100) {
    if (no % 3 == 0 && no % 5 == 0) {
      printf(" CracklePop ");
    } else if (no % 3 == 0) {
      printf(" Crackle ");
    } else if (no % 5 == 0) {
      printf(" Pop ");
    } else {
      printf("%d ", no);
    }
    display(no + 1);
  }
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x64,-0x4(%rbp)
jg     11e4 <display+0xc4>
mov    -0x4(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1170 <display+0x50>
mov    -0x4(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1170 <display+0x50>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11d9 <display+0xb9>
mov    -0x4(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1197 <display+0x77>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11d4 <display+0xb4>
mov    -0x4(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11be <display+0x9e>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11cf <display+0xaf>
mov    -0x4(%rbp),%esi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11d4 <display+0xb4>
jmp    11d9 <display+0xb9>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
call   1030 <display@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
cmp    $0x64,%edi
jg     11ca <display+0xba>
mov    %edi,%ebx
lea    0xed5(%rip),%r14
lea    0xedb(%rip),%r15
lea    0xede(%rip),%r12
lea    0xedd(%rip),%r13
jmp    1162 <display+0x52>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x65,%ebx
je     11ca <display+0xba>
movslq %ebx,%rax
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%edx
mov    %eax,%ecx
sub    %edx,%ecx
imul   $0x66666667,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x21,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%eax
mov    %ecx,%edx
or     %eax,%edx
je     1150 <display+0x40>
test   %ecx,%ecx
je     11c0 <display+0xb0>
test   %eax,%eax
je     11c5 <display+0xb5>
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    115a <display+0x4a>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
jmp    1153 <display+0x43>
mov    %r12,%rdi
jmp    1153 <display+0x43>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c" CracklePop \00"
@.str.1 = [10 x i8] c" Crackle \00"
@.str.2 = [6 x i8] c" Pop \00"
@.str.3 = [4 x i8] c"%d \00"
define void @display(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sle i32 %3, 100
br i1 %4, label %5, label %35
5: ; preds = %1
%6 = load i32, i32* %2
%7 = srem i32 %6, 3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %5
%10 = load i32, i32* %2
%11 = srem i32 %10, 5
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %32
15: ; preds = %9, %5
%16 = load i32, i32* %2
%17 = srem i32 %16, 3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %31
21: ; preds = %15
%22 = load i32, i32* %2
%23 = srem i32 %22, 5
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %30
27: ; preds = %21
%28 = load i32, i32* %2
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %28)
br label %30
30: ; preds = %27, %25
br label %31
31: ; preds = %30, %19
br label %32
32: ; preds = %31, %13
%33 = load i32, i32* %2
%34 = add nsw i32 %33, 1
br label %35
35: ; preds = %32, %1
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c" CracklePop \00"
@.str.1 = [10 x i8] c" Crackle \00"
@.str.2 = [6 x i8] c" Pop \00"
@.str.3 = [4 x i8] c"%d \00"
define void @display(i32 %0) {
%2 = icmp slt i32 %0, 101
br i1 %2, label %3, label %24
3: ; preds = %1, %21
%4 = phi i32 [ %22, %21 ], [ %0, %1 ]
%5 = srem i32 %4, 3
%6 = srem i32 %4, 5
%7 = icmp eq i32 %6, 0
%8 = or i32 %5, %6
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %21
12: ; preds = %3
%13 = icmp eq i32 %5, 0
br i1 %13, label %14, label %16
14: ; preds = %12
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %21
16: ; preds = %12
br i1 %7, label %17, label %19
17: ; preds = %16
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %21
19: ; preds = %16
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %4)
br label %21
21: ; preds = %14, %19, %17, %10
%22 = add i32 %4, 1
%23 = icmp eq i32 %22, 101
br i1 %23, label %24, label %3
24: ; preds = %21, %1
ret void
}