#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*/ clang_analyzer_eval(int);
int ispunct(int);
void test_ispunct(int x) {
  clang_analyzer_eval(ispunct(' '));
  clang_analyzer_eval(ispunct(-1));
  clang_analyzer_eval(ispunct('#'));
  clang_analyzer_eval(ispunct('_'));
  if (ispunct(x))
    clang_analyzer_eval(x < 127);
}


x86 assembly (clang, -O0):
<test_ispunct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x20,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    $0xffffffff,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    $0x23,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    $0x5f,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    -0x4(%rbp),%edi
call   1030 <ispunct@plt>
cmp    $0x0,%eax
je     1191 <test_ispunct+0x71>
cmpl   $0x7f,-0x4(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_ispunct>:
push   %rbx
mov    %edi,%ebx
mov    $0x20,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    $0xffffffff,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    $0x23,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    $0x5f,%edi
call   1030 <ispunct@plt>
mov    %eax,%edi
call   1040 <clang_analyzer_eval@plt>
mov    %ebx,%edi
call   1030 <ispunct@plt>
test   %eax,%eax
je     1181 <test_ispunct+0x61>
xor    %edi,%edi
cmp    $0x7f,%ebx
setl   %dil
pop    %rbx
jmp    1040 <clang_analyzer_eval@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @test_ispunct(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @ispunct(i32 32)
%4 = call i32 @clang_analyzer_eval(i32 %3)
%5 = call i32 @ispunct(i32 -1)
%6 = call i32 @clang_analyzer_eval(i32 %5)
%7 = call i32 @ispunct(i32 35)
%8 = call i32 @clang_analyzer_eval(i32 %7)
%9 = call i32 @ispunct(i32 95)
%10 = call i32 @clang_analyzer_eval(i32 %9)
%11 = load i32, i32* %2
%12 = call i32 @ispunct(i32 %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %1
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 127
%17 = zext i1 %16 to i32
%18 = call i32 @clang_analyzer_eval(i32 %17)
br label %19
19: ; preds = %14, %1
ret void
}

LLVM IR (-O2):
define void @test_ispunct(i32 %0) {
%2 = tail call i32 @ispunct(i32 32)
%3 = tail call i32 @clang_analyzer_eval(i32 %2)
%4 = tail call i32 @ispunct(i32 -1)
%5 = tail call i32 @clang_analyzer_eval(i32 %4)
%6 = tail call i32 @ispunct(i32 35)
%7 = tail call i32 @clang_analyzer_eval(i32 %6)
%8 = tail call i32 @ispunct(i32 95)
%9 = tail call i32 @clang_analyzer_eval(i32 %8)
%10 = tail call i32 @ispunct(i32 %0)
%11 = icmp eq i32 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %1
%13 = icmp slt i32 %0, 127
%14 = zext i1 %13 to i32
%15 = tail call i32 @clang_analyzer_eval(i32 %14)
br label %16
16: ; preds = %12, %1
ret void
}