ABC: A System for Sequential Synthesis and Verification
Loading...
Searching...
No Matches
utilities.c
Go to the documentation of this file.
1
#include "
utilities.h
"
2
3
#include <string.h>
4
5
ABC_NAMESPACE_IMPL_START
6
7
bool
kissat_has_suffix
(
const
char
*str,
const
char
*suffix) {
8
const
char
*
p
= str;
9
while
(*
p
)
10
p
++;
11
const
char
*q = suffix;
12
while
(*q)
13
q++;
14
while
(
p
> str && q > suffix)
15
if
(*--
p
!= *--q)
16
return
false
;
17
return
q == suffix;
18
}
19
20
ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_START
Definition
abc_namespaces.h:54
ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_END
Definition
abc_namespaces.h:55
p
Cube * p
Definition
exorList.c:222
kissat_has_suffix
ABC_NAMESPACE_IMPL_START bool kissat_has_suffix(const char *str, const char *suffix)
Definition
utilities.c:7
utilities.h
src
sat
kissat
utilities.c
Generated by Doxygen 1.13.2 © 2025 EPTansuo. All rights reserved.
鲁ICP备2021046540号