#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*/ assert(int);
int main() {
  int top;
  int i = 0;
  if (top % 17 == 3) {
    assert(top % 17 == 3);
    if (top % 17 != 3) {
      i = 12;
    } else {
    }
  }
  assert(i == 0);
  if (top % 17 == 0) {
    assert(top % 17 == 0);
    if (top % 17 != 0) {
      i = 12;
    }
  }
  assert(i == 0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
jne    117f <main+0x6f>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
je     1175 <main+0x65>
movl   $0xc,-0xc(%rbp)
jmp    117a <main+0x6a>
jmp    117a <main+0x6a>
jmp    117f <main+0x6f>
cmpl   $0x0,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11df <main+0xcf>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11da <main+0xca>
movl   $0xc,-0xc(%rbp)
jmp    11df <main+0xcf>
cmpl   $0x0,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
%4 = load i32, i32* %2
%5 = srem i32 %4, 17
%6 = icmp eq i32 %5, 3
br i1 %6, label %7, label %19
7: ; preds = %0
%8 = load i32, i32* %2
%9 = srem i32 %8, 17
%10 = icmp eq i32 %9, 3
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = load i32, i32* %2
%14 = srem i32 %13, 17
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %17
16: ; preds = %7
store i32 12, i32* %3
br label %18
17: ; preds = %7
br label %18
18: ; preds = %17, %16
br label %19
19: ; preds = %18, %0
%20 = load i32, i32* %3
%21 = icmp eq i32 %20, 0
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = load i32, i32* %2
%25 = srem i32 %24, 17
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %38
27: ; preds = %19
%28 = load i32, i32* %2
%29 = srem i32 %28, 17
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 %31)
%33 = load i32, i32* %2
%34 = srem i32 %33, 17
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %27
store i32 12, i32* %3
br label %37
37: ; preds = %36, %27
br label %38
38: ; preds = %37, %19
%39 = load i32, i32* %3
%40 = icmp eq i32 %39, 0
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = load i32, i32* %1
ret i32 %43
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @assert(i32 1)
%3 = tail call i32 @assert(i32 1)
ret i32 0
}