#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 */
scalar_t__ accept(char);
bool notzero(void) {
  return accept('1') || accept('2') || accept('3') || accept('4') ||
         accept('5') || accept('6') || accept('7') || accept('8') ||
         accept('9');
}


x86 assembly (clang, -O0):
<notzero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x31,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x32,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x33,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x34,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x35,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x36,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x37,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x38,%edi
call   1030 <accept@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    120c <notzero+0xfc>
mov    $0x39,%edi
call   1030 <accept@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<notzero>:
push   %rbx
mov    $0x31,%edi
call   1030 <accept@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x32,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x33,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x34,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x35,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x36,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x37,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x38,%edi
call   1030 <accept@plt>
test   %rax,%rax
jne    11a0 <notzero+0x90>
mov    $0x39,%edi
call   1030 <accept@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @notzero() {
%1 = call i64 @accept(i8 signext 49)
%2 = icmp ne i64 %1, 0
br i1 %2, label %27, label %3
3: ; preds = %0
%4 = call i64 @accept(i8 signext 50)
%5 = icmp ne i64 %4, 0
br i1 %5, label %27, label %6
6: ; preds = %3
%7 = call i64 @accept(i8 signext 51)
%8 = icmp ne i64 %7, 0
br i1 %8, label %27, label %9
9: ; preds = %6
%10 = call i64 @accept(i8 signext 52)
%11 = icmp ne i64 %10, 0
br i1 %11, label %27, label %12
12: ; preds = %9
%13 = call i64 @accept(i8 signext 53)
%14 = icmp ne i64 %13, 0
br i1 %14, label %27, label %15
15: ; preds = %12
%16 = call i64 @accept(i8 signext 54)
%17 = icmp ne i64 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %15
%19 = call i64 @accept(i8 signext 55)
%20 = icmp ne i64 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = call i64 @accept(i8 signext 56)
%23 = icmp ne i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = call i64 @accept(i8 signext 57)
%26 = icmp ne i64 %25, 0
br label %27
27: ; preds = %24, %21, %18, %15, %12, %9, %6, %3, %0
%28 = phi i1 [ true, %21 ], [ true, %18 ], [ true, %15 ], [ true, %12 ], [ true, %9 ], [ true, %6 ], [ true, %3 ], [ true, %0 ], [ %26, %24 ]
%29 = zext i1 %28 to i32
ret i32 %29
}

LLVM IR (-O2):
define i32 @notzero() {
%1 = tail call i64 @accept(i8 signext 49)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %28
3: ; preds = %0
%4 = tail call i64 @accept(i8 signext 50)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %28
6: ; preds = %3
%7 = tail call i64 @accept(i8 signext 51)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %28
9: ; preds = %6
%10 = tail call i64 @accept(i8 signext 52)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = tail call i64 @accept(i8 signext 53)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %12
%16 = tail call i64 @accept(i8 signext 54)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %28
18: ; preds = %15
%19 = tail call i64 @accept(i8 signext 55)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = tail call i64 @accept(i8 signext 56)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = tail call i64 @accept(i8 signext 57)
%26 = icmp ne i64 %25, 0
%27 = zext i1 %26 to i32
br label %28
28: ; preds = %24, %21, %18, %15, %12, %9, %6, %3, %0
%29 = phi i32 [ 1, %21 ], [ 1, %18 ], [ 1, %15 ], [ 1, %12 ], [ 1, %9 ], [ 1, %6 ], [ 1, %3 ], [ 1, %0 ], [ %27, %24 ]
ret i32 %29
}