#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 get_min(int);
void test() {
  assert(3 == get_min(2));
  assert(5 == get_min(3));
  assert(33 == get_min(5));
  assert(33 == get_min(23));
  assert(33 == get_min(32));
  assert(35 == get_min(33));
  assert(53 == get_min(35));
  assert(333 == get_min(123));
  assert(333 == get_min(321));
  assert(553 == get_min(543));
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x3,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x3,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x5,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x5,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x21,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x17,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x21,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x20,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x21,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x21,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x23,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x23,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x35,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x7b,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x14d,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x141,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x14d,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x21f,%edi
call   1030 <get_min@plt>
mov    %eax,%ecx
mov    $0x229,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
mov    $0x2,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x3,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x3,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x5,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x21,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x17,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x21,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x20,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x21,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x21,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x23,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x23,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x35,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x7b,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x14d,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x141,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x14d,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x21f,%edi
call   1030 <get_min@plt>
xor    %edi,%edi
cmp    $0x229,%eax
sete   %dil
pop    %rax
jmp    1040 <assert@plt>

LLVM IR (-O0):
define void @test() {
%1 = call i32 @get_min(i32 2)
%2 = icmp eq i32 3, %1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 %3)
%5 = call i32 @get_min(i32 3)
%6 = icmp eq i32 5, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = call i32 @get_min(i32 5)
%10 = icmp eq i32 33, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = call i32 @get_min(i32 23)
%14 = icmp eq i32 33, %13
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = call i32 @get_min(i32 32)
%18 = icmp eq i32 33, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = call i32 @get_min(i32 33)
%22 = icmp eq i32 35, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = call i32 @get_min(i32 35)
%26 = icmp eq i32 53, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = call i32 @get_min(i32 123)
%30 = icmp eq i32 333, %29
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 %31)
%33 = call i32 @get_min(i32 321)
%34 = icmp eq i32 333, %33
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = call i32 @get_min(i32 543)
%38 = icmp eq i32 553, %37
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
ret void
}

LLVM IR (-O2):
define void @test() {
%1 = tail call i32 @get_min(i32 2)
%2 = icmp eq i32 %1, 3
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @get_min(i32 3)
%6 = icmp eq i32 %5, 5
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @get_min(i32 5)
%10 = icmp eq i32 %9, 33
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @get_min(i32 23)
%14 = icmp eq i32 %13, 33
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i32 @get_min(i32 32)
%18 = icmp eq i32 %17, 33
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @get_min(i32 33)
%22 = icmp eq i32 %21, 35
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = tail call i32 @get_min(i32 35)
%26 = icmp eq i32 %25, 53
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = tail call i32 @get_min(i32 123)
%30 = icmp eq i32 %29, 333
%31 = zext i1 %30 to i32
%32 = tail call i32 @assert(i32 %31)
%33 = tail call i32 @get_min(i32 321)
%34 = icmp eq i32 %33, 333
%35 = zext i1 %34 to i32
%36 = tail call i32 @assert(i32 %35)
%37 = tail call i32 @get_min(i32 543)
%38 = icmp eq i32 %37, 553
%39 = zext i1 %38 to i32
%40 = tail call i32 @assert(i32 %39)
ret void
}