#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, int, int);
int main() {
  int i, a, b, c;
  a = b = c = 0;
  for (i = 0; i < 200; i++) {
    a += 1;
    if (i % 10 == 0)
      continue;
    b += 2;
    if (i % 10 == 5)
      continue;
    c += 3;
  }
  printf("a:%d b:%d c:%d\n", a, b, c);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xc8,-0x8(%rbp)
jge    11b3 <main+0x93>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117a <main+0x5a>
jmp    11a5 <main+0x85>
mov    -0x10(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x5,%edx
jne    119c <main+0x7c>
jmp    11a5 <main+0x85>
mov    -0x14(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    114b <main+0x2b>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
xor    %ecx,%ecx
mov    $0xc8,%r9d
mov    $0xcccccccd,%r8d
xor    %edx,%edx
xor    %r10d,%r10d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r10d,%esi
imul   %r8,%rsi
shr    $0x23,%rsi
lea    (%rsi,%rsi,4),%esi
lea    (%r9,%rsi,2),%esi
lea    0x3(%rcx),%eax
cmp    $0xc3,%sil
cmove  %ecx,%eax
lea    0x2(%rdx),%edi
cmp    $0xc8,%sil
cmove  %edx,%edi
cmove  %ecx,%eax
add    $0x2,%r10d
lea    0x3(%rax),%ecx
cmp    $0xc4,%sil
cmove  %eax,%ecx
lea    0x2(%rdi),%edx
cmp    $0xc9,%sil
cmove  %edi,%edx
cmove  %eax,%ecx
add    $0xfffffffe,%r9d
jne    1140 <main+0x20>
push   %rax
lea    0xe6e(%rip),%rdi
mov    $0xc8,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@.str = [16 x i8] c"a:%d b:%d c:%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 0, %0 ], [ %24, %1 ]
%3 = phi i32 [ 0, %0 ], [ %22, %1 ]
%4 = phi i32 [ 0, %0 ], [ %14, %1 ]
%5 = trunc i32 %4 to i8
%6 = urem i8 %5, 10
%7 = icmp eq i8 %6, 0
%8 = add nsw i32 %3, 2
%9 = icmp eq i8 %6, 5
%10 = add nsw i32 %2, 3
%11 = select i1 %7, i32 %3, i32 %8
%12 = or i1 %7, %9
%13 = select i1 %12, i32 %2, i32 %10
%14 = add nuw nsw i32 %4, 2
%15 = trunc i32 %4 to i8
%16 = or i8 %15, 1
%17 = urem i8 %16, 10
%18 = icmp eq i8 %17, 0
%19 = add nsw i32 %11, 2
%20 = icmp eq i8 %17, 5
%21 = add nsw i32 %13, 3
%22 = select i1 %18, i32 %11, i32 %19
%23 = or i1 %18, %20
%24 = select i1 %23, i32 %13, i32 %21
%25 = icmp eq i32 %14, 200
br i1 %25, label %26, label %1
26: ; preds = %1
%27 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 200, i32 %22, i32 %24)
%28 = tail call i32 @exit(i32 0)
unreachable
}