#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*/ printf(char *, char *, char *, char *);
scalar_t__ strlen(char *);
scalar_t__ strspn(char *, char *);
int main() {
  char s[] = "abc";
  char v[] = "cdeabf";
  printf("'%s' %scontém todos os caracteres presentes em '%s'", v,
         (strspn(s, v) == strlen(s)) ? "" : "não ", s);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xec2(%rip),%eax
mov    %eax,-0x4(%rbp)
mov    0xebd(%rip),%eax
mov    %eax,-0xb(%rbp)
mov    0xeb7(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xeaf(%rip),%al
mov    %al,-0x5(%rbp)
lea    -0xb(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x4(%rbp),%rdi
lea    -0xb(%rbp),%rsi
call   1050 <strspn@plt>
mov    %rax,-0x20(%rbp)
lea    -0x4(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rsi
mov    %rax,%rdi
lea    0xeae(%rip),%rdx
lea    0xeac(%rip),%rax
cmp    %rdi,%rcx
cmove  %rax,%rdx
lea    -0x4(%rbp),%rcx
lea    0xe60(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0x636261,0x4(%rsp)
movl   $0x666261,0xb(%rsp)
movl   $0x61656463,0x8(%rsp)
61
lea    0x4(%rsp),%r15
lea    0x8(%rsp),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <strspn@plt>
mov    %rax,%rbx
mov    %r15,%rdi
call   1030 <strlen@plt>
cmp    %rax,%rbx
lea    0xec6(%rip),%rax
lea    0xeba(%rip),%rdx
cmove  %rax,%rdx
lea    0xe7a(%rip),%rdi
mov    %r14,%rsi
mov    %r15,%rcx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s = [4 x i8] c"abc\00"
@__const.main.v = [7 x i8] c"cdeabf\00"
@.str = [53 x i8] c"'%s' %scont\C3\A9m todos os caracteres presentes em '%s'\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [6 x i8] c"n\C3\A3o \00"
define i32 @main() {
%1 = alloca [4 x i8]
%2 = alloca [7 x i8]
%3 = bitcast [4 x i8]* %1 to i8*
%4 = bitcast [7 x i8]* %2 to i8*
%5 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%8 = call i64 @strspn(i8* %6, i8* %7)
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
%10 = call i64 @strlen(i8* %9)
%11 = icmp eq i64 %8, %10
%12 = zext i1 %11 to i64
%13 = select i1 %11, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%14 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
%15 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %13, i8* %14)
ret i32 0
}

LLVM IR (-O2):
@__const.main.v = [7 x i8] c"cdeabf\00"
@.str = [53 x i8] c"'%s' %scont\C3\A9m todos os caracteres presentes em '%s'\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [6 x i8] c"n\C3\A3o \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i8]
%3 = bitcast i32* %1 to i8*
store i32 6513249, i32* %1
%4 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%5 = call i64 @strspn(i8* %3, i8* %4)
%6 = call i64 @strlen(i8* %3)
%7 = icmp eq i64 %5, %6
%8 = select i1 %7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%9 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %8, i8* %3)
ret i32 0
}