#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*/ hash(int);
void test(int t) {
  int i0, i1;
  if ((t >= 0) && (t <= 15)) {
    for (i0 = 0; i0 <= 99; i0++) {
      if ((15 * i0 + t) % 16 == 0) {
        {
          hash(1);
          hash(i0);
          hash(t);
        };
      }
    }
  }
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     118a <test+0x7a>
cmpl   $0xf,-0x4(%rbp)
jg     118a <test+0x7a>
movl   $0x0,-0x8(%rbp)
cmpl   $0x63,-0x8(%rbp)
jg     1185 <test+0x75>
imul   $0xf,-0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1172 <test+0x62>
mov    $0x1,%edi
call   1030 <hash@plt>
mov    -0x8(%rbp),%edi
call   1030 <hash@plt>
mov    -0x4(%rbp),%edi
call   1030 <hash@plt>
jmp    1177 <test+0x67>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <test+0x26>
jmp    118a <test+0x7a>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rbp
push   %r14
push   %rbx
cmp    $0xf,%edi
ja     115b <test+0x4b>
mov    %edi,%r14d
xor    %ebp,%ebp
mov    %edi,%ebx
jmp    113b <test+0x2b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebp
add    $0xf,%ebx
cmp    $0x64,%ebp
je     115b <test+0x4b>
test   $0xf,%bl
jne    1130 <test+0x20>
mov    $0x1,%edi
call   1030 <hash@plt>
mov    %ebp,%edi
call   1030 <hash@plt>
mov    %r14d,%edi
call   1030 <hash@plt>
jmp    1130 <test+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @test(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %32
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 15
br i1 %9, label %10, label %32
10: ; preds = %7
store i32 0, i32* %3
br label %11
11: ; preds = %28, %10
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 99
br i1 %13, label %14, label %31
14: ; preds = %11
%15 = load i32, i32* %3
%16 = mul nsw i32 15, %15
%17 = load i32, i32* %2
%18 = add nsw i32 %16, %17
%19 = srem i32 %18, 16
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %14
%22 = call i32 @hash(i32 1)
%23 = load i32, i32* %3
%24 = call i32 @hash(i32 %23)
%25 = load i32, i32* %2
%26 = call i32 @hash(i32 %25)
br label %27
27: ; preds = %21, %14
br label %28
28: ; preds = %27
%29 = load i32, i32* %3
%30 = add nsw i32 %29, 1
store i32 %30, i32* %3
br label %11
31: ; preds = %11
br label %32
32: ; preds = %31, %7, %1
ret void
}

LLVM IR (-O2):
define void @test(i32 %0) {
%2 = icmp ult i32 %0, 16
br i1 %2, label %3, label %16
3: ; preds = %1, %13
%4 = phi i32 [ %14, %13 ], [ 0, %1 ]
%5 = mul nuw nsw i32 %4, 15
%6 = add nsw i32 %5, %0
%7 = and i32 %6, 15
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = tail call i32 @hash(i32 1)
%11 = tail call i32 @hash(i32 %4)
%12 = tail call i32 @hash(i32 %0)
br label %13
13: ; preds = %3, %9
%14 = add nuw nsw i32 %4, 1
%15 = icmp eq i32 %14, 100
br i1 %15, label %16, label %3
16: ; preds = %13, %1
ret void
}