#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);
void unsignedCase() {
  unsigned int top;
  unsigned 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);
  if (top % 3 == 17) {
    assert(top % 17 == 3);
  }
}


x86 assembly (clang, -O0):
<unsignedCase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x3,%edx
jne    117b <unsignedCase+0x6b>
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x3,%edx
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x3,%edx
je     1171 <unsignedCase+0x61>
movl   $0xc,-0x8(%rbp)
jmp    1176 <unsignedCase+0x66>
jmp    1176 <unsignedCase+0x66>
jmp    117b <unsignedCase+0x6b>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x0,%edx
jne    11de <unsignedCase+0xce>
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x0,%edx
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x0,%edx
je     11d9 <unsignedCase+0xc9>
movl   $0xc,-0x8(%rbp)
jmp    11de <unsignedCase+0xce>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
mov    $0x3,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x11,%edx
jne    1220 <unsignedCase+0x110>
mov    -0x4(%rbp),%eax
mov    $0x11,%ecx
xor    %edx,%edx
div    %ecx
cmp    $0x3,%edx
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unsignedCase>:
push   %rax
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <assert@plt>

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

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