name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
ly_ctx_load_sub_module | const struct lys_module *
ly_ctx_load_sub_module(struct ly_ctx *ctx, struct lys_module *module, const char *name, const char *revision,
int implement, struct unres_schema *unres)
{
const struct lys_module *mod;
char *module_data;
int i;
void (*module_data_free)(void *module_data) ... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movq %rcx, %r13
movq %rdx, %r15
movq %rdi, %r14
movq $0x0, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
testq %rsi, %rsi
je 0x104d0
movq 0x6060(%r14), %rax
testq %rax, %rax
je 0x105b5
testq %rsi, %rsi
movq %rsi, -0x3... | /RIFTIO[P]libyang/src/context.c |
lys_set_enabled | API int
lys_set_enabled(const struct lys_module *module)
{
struct ly_ctx *ctx; /* shortcut */
struct lys_module *mod;
struct ly_set *mods, *disabled;
int i;
unsigned int u, v;
if (!module) {
ly_errno = LY_EINVAL;
return EXIT_FAILURE;
} else if (!module->disabled) {
/... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
testq %rdi, %rdi
je 0x10a5b
movq %rdi, %r15
xorl %eax, %eax
testb $0x40, 0x40(%rdi)
je 0x10a8c
movq (%r15), %r14
movq 0x6040(%r14), %rax
xorl %ecx, %ecx
cmpq %r15, (%rax,%rcx,8)
je 0x10a68
incq %rcx
cmpq $0x5, %rcx
jne 0x... | /RIFTIO[P]libyang/src/context.c |
ctx_modules_undo_backlinks | static void
ctx_modules_undo_backlinks(struct ly_ctx *ctx, struct ly_set *mods)
{
int o;
uint8_t j;
unsigned int u, v;
struct lys_module *mod;
struct lys_node *elem, *next;
struct lys_node_leaf *leaf;
/* maintain backlinks (start with internal ietf-yang-library which have leafs as possible ... | cmpl $0x5, 0x603c(%rdi)
jl 0x10f95
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r13
movl $0x4, %eax
movq %rdi, -0x30(%rbp)
movq %rax, %rcx
movq 0x6040(%r13), %rax
movq %rcx, -0x38(%rbp)
movq (%rax,%rcx,8), %r12
cmpb $0x0, 0x47(%r12)
je 0x... | /RIFTIO[P]libyang/src/context.c |
ly_log_dbg | void
ly_log_dbg(LY_LOG_DBG_GROUP group, const char *format, ...)
{
char *dbg_format;
const char *str_group;
va_list ap;
if (!(ly_log_dbg_groups & group)) {
return;
}
switch (group) {
case LY_LDGDICT:
str_group = "DICT";
break;
case LY_LDGYANG:
str_group ... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xd8, %rsp
movq %rdx, -0xd0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %r8, -0xc0(%rbp)
movq %r9, -0xb8(%rbp)
testb %al, %al
je 0x11d35
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60... | /RIFTIO[P]libyang/src/log.c |
ly_vlog | void
ly_vlog(LY_ECODE code, enum LY_VLOG_ELEM elem_type, const void *elem, ...)
{
va_list ap;
const char *fmt;
char* path = NULL;
uint16_t *index = NULL;
ly_errno = LY_EVALID;
if ((code == LYE_PATH) && !path_flag) {
return;
}
if (code > 0) {
ly_vecode = ecode2vecode[cod... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r15
movl %esi, %r13d
movl %edi, %r14d
movq %rcx, -0xe8(%rbp)
movq %r8, -0xe0(%rbp)
movq %r9, -0xd8(%rbp)
testb %al, %al
je 0x1272e
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
... | /RIFTIO[P]libyang/src/log.c |
parse_schema_nodeid | int
parse_schema_nodeid(const char *id, const char **mod_name, int *mod_name_len, const char **name, int *nam_len,
int *is_relative, int *has_predicate)
{
int parsed = 0, ret;
assert(id);
assert(is_relative);
if (mod_name) {
*mod_name = NULL;
}
if (mod_name_len) {
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x13233
testq %r9, %r9
je 0x13252
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
testq %rsi, %rsi
je 0x1315f
movq $0x0, (%r13)
testq %r12, %r12
je 0x1316c
movl $0x0, (%r12)
testq %r15, %r15
... | /RIFTIO[P]libyang/src/resolve.c |
iff_getop | uint8_t
iff_getop(uint8_t *list, int pos)
{
uint8_t *item;
uint8_t mask = 3, result;
assert(pos >= 0);
item = &list[pos / 4];
result = (*item) & (mask << 2 * (pos % 4));
return result >> 2 * (pos % 4);
} | testl %esi, %esi
js 0x137b8
movl %esi, %ecx
movl %esi, %edx
addl %esi, %ecx
andb $0x6, %cl
movl $0x3, %eax
shll %cl, %eax
shrl $0x2, %edx
movzbl (%rdi,%rdx), %edx
andl %edx, %eax
shrl %cl, %eax
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x771c6(%rip), %rdi # 0x8a989
leaq 0x77076(%rip), %rsi # 0x8a840
leaq 0x771c1(%ri... | /RIFTIO[P]libyang/src/resolve.c |
schema_nodeid_siblingcheck | static int
schema_nodeid_siblingcheck(const struct lys_node *sibling, int8_t *shorthand, const char *id,
const struct lys_module *module, const char *mod_name, int mod_name_len,
int implemented_mod, const struct lys_node **start_parent)
{
const struct lys_module... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r8, %rcx
movl %r9d, %r8d
callq 0xd230
movq %rax, %r12
testq %rax, %rax
sete %al
cmpl $0x0, 0x10(%rbp)
sete %cl
orb %al, %cl
jne 0x14de1
movq %r12, ... | /RIFTIO[P]libyang/src/resolve.c |
resolve_json_nodeid | const struct lys_node *
resolve_json_nodeid(const char *nodeid, struct ly_ctx *ctx, const struct lys_node *start)
{
char *module_name = ly_buf(), *buf_backup = NULL, *str;
const char *name, *mod_name, *id;
const struct lys_node *sibling, *start_parent;
int r, nam_len, mod_name_len, is_relative = -1, has... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
callq 0xc3b0
movq %rax, -0x68(%rbp)
movl $0xffffffff, -0x4c(%rbp) # imm = 0xFFFFFFFF
testq %r14, %r14
je 0x1568b
movq %r15, %rax
orq %r12, %rax
je 0x1568b
testq %r15, %r15
j... | /RIFTIO[P]libyang/src/resolve.c |
resolve_partial_json_data_nodeid | struct lyd_node *
resolve_partial_json_data_nodeid(const char *nodeid, const char *llist_value, struct lyd_node *start, int options,
int *parsed)
{
char *module_name = ly_buf(), *buf_backup = NULL, *str;
const char *id, *mod_name, *name, *pred_name, *data_val;
int r, ret, mo... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, %rbx
movl %ecx, -0xb4(%rbp)
movq %rdx, %r14
movq %rdi, %r15
movq %rsi, -0xb0(%rbp)
callq 0xc3b0
movq %rax, -0xc8(%rbp)
movl $0xffffffff, -0x4c(%rbp) # imm = 0xFFFFFFFF
testq %r15, %r15
je 0x160fc
testq %r14, %r1... | /RIFTIO[P]libyang/src/resolve.c |
lys_check_xpath | int
lys_check_xpath(struct lys_node *node, int check_place, int warn_on_fwd_ref)
{
struct lys_node *parent, *elem;
struct lyxp_set set;
uint32_t i;
int ret;
if (check_place) {
parent = node;
while (parent) {
if (parent->nodetype == LYS_GROUPING) {
/* unre... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
testl %esi, %esi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x1704a
movq %rbx, %rax
movl 0x38(%rax), %ecx
cmpl $0x2000, %ecx # imm = 0x2000
je 0x17035
cmpl $0x800, %ecx # imm ... | /RIFTIO[P]libyang/src/resolve.c |
resolve_when_ctx_snode | void
resolve_when_ctx_snode(const struct lys_node *schema, struct lys_node **ctx_snode, enum lyxp_node_type *ctx_snode_type)
{
const struct lys_node *sparent;
/* find a not schema-only node */
*ctx_snode_type = LYXP_NODE_ELEM;
while (schema->nodetype & (LYS_USES | LYS_CHOICE | LYS_CASE | LYS_AUGMENT | ... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl $0x2, (%rdx)
movq %rdi, %rax
movl 0x38(%rdi), %ecx
testl $0x3642, %ecx # imm = 0x3642
je 0x17559
leaq 0x40(%rax), %rsi
leaq 0x58(%rax), %rdi
cmpl $0x2000, %ecx # imm = 0x2000
cmoveq %rdi, %rsi
movq (%rsi), %rdi
testq %rdi, %rdi
jn... | /RIFTIO[P]libyang/src/resolve.c |
resolve_applies_must | int
resolve_applies_must(const struct lyd_node *node)
{
int ret = 0;
uint8_t must_size;
struct lys_node *schema, *iter;
assert(node);
schema = node->schema;
/* their own must */
switch (schema->nodetype) {
case LYS_CONTAINER:
must_size = ((struct lys_node_container *)schema)->... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x17606
movq %rdi, %rax
movq (%rdi), %rdi
movl 0x38(%rdi), %edx
xorl %ecx, %ecx
cmpl $0xf, %edx
jle 0x17593
cmpl $0x7f, %edx
jg 0x175a4
cmpl $0x10, %edx
je 0x175ea
cmpl $0x20, %edx
je 0x175b4
jmp 0x175b7
cmpl $0x1, %edx
je 0x175e5
cmpl $0x4, %edx
je 0... | /RIFTIO[P]libyang/src/resolve.c |
resolve_when_ctx_node | static int
resolve_when_ctx_node(struct lyd_node *node, struct lys_node *schema, struct lyd_node **ctx_node,
enum lyxp_node_type *ctx_node_type)
{
struct lyd_node *parent;
struct lys_node *sparent;
enum lyxp_node_type node_type;
uint16_t i, data_depth, schema_depth;
resolve_wh... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %rax
movq %rdi, %r15
leaq -0x28(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x2c(%rbp), %r12
movq %rax, %rdi
movq %r12, %rdx
callq 0xd030
movl (%r12), %ecx
cmpl $0x2, %ecx
jne 0x17d11
xorl %edx, %e... | /RIFTIO[P]libyang/src/resolve.c |
resolve_instid | static int
resolve_instid(struct lyd_node *data, const char *path, int req_inst, struct lyd_node **ret)
{
int i = 0, j;
const struct lys_module *mod;
struct ly_ctx *ctx = data->schema->module->ctx;
const char *model, *name;
char *str;
int mod_len, name_len, has_predicate;
struct unres_data n... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq (%rdi), %rax
movq 0x30(%rax), %rax
movq (%rax), %rax
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movq %rax, -0x80(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
movq %rax, (%rcx)
movq %rdi, %rax
movq 0x28(%rdi), %rdi
... | /RIFTIO[P]libyang/src/resolve.c |
resolve_must | static int
resolve_must(struct lyd_node *node, int inout_parent, int ignore_fail)
{
int node_flags;
uint8_t i, must_size;
struct lys_node *schema;
struct lys_restr *must;
struct lyxp_set set;
assert(node);
memset(&set, 0, sizeof set);
if (inout_parent) {
for (schema = lys_paren... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x1be51
movl %edx, %r14d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movq (%rdi), %rax
testl %esi, %esi
je 0x1bc6b
movq %rax, %rdi
c... | /RIFTIO[P]libyang/src/resolve.c |
check_default | static int
check_default(struct lys_type *type, const char **value, struct lys_module *module, int tpdf)
{
struct lys_tpdf *base_tpdf = NULL;
struct lyd_node_leaf_list node;
const char *dflt = NULL;
int ret = EXIT_SUCCESS;
assert(value);
if (type->base <= LY_TYPE_DER) {
/* the type was... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq $0x0, -0x30(%rbp)
testq %rsi, %rsi
je 0x1d56a
movq %rdi, %r15
movl 0x8(%rdi), %ebx
testl %ebx, %ebx
jle 0x1d29d
cmpl $0x9, %ebx
sete %al
testl %ecx, %ecx
setne %cl
xorl %r13d, %r13d
testb %al, %cl
jne 0x1d2a3
movq %r... | /RIFTIO[P]libyang/src/resolve.c |
resolve_uses_schema_nodeid | static int
resolve_uses_schema_nodeid(const char *nodeid, const struct lys_node *start, const struct lys_node_grp **ret)
{
const struct lys_module *module;
const char *mod_prefix, *name;
int i, mod_prefix_len, nam_len;
/* parse the identifier, it must be parsed on one call */
if (((i = parse_node_i... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq -0x30(%rbp), %rsi
leaq -0x1c(%rbp), %rdx
leaq -0x28(%rbp), %rcx
leaq -0x34(%rbp), %r8
callq 0x13271
testl %eax, %eax
jle 0x1e228
movl %eax, %ecx
cmpb $0x0, (%r15,%rcx)
je 0x1e23c
movl $0x1, ... | /RIFTIO[P]libyang/src/resolve.c |
lyxml_get_ns | lyxml_ns *
lyxml_get_ns(const struct lyxml_elem *elem, const char *prefix)
{
struct lyxml_attr *attr;
if (!elem) {
return NULL;
}
for (attr = elem->attr; attr; attr = attr->next) {
if (attr->type != LYXML_ATTR_NS) {
continue;
}
if (!attr->name) {
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
testq %r15, %r15
je 0x200a5
movq 0x10(%r15), %rbx
testq %rbx, %rbx
je 0x20092
cmpl $0x2, (%rbx)
jne 0x2008c
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x20087
testq %r14, %r14
je 0x2008c
movq %r14, %rsi
callq 0xcbb0
te... | /RIFTIO[P]libyang/src/xml.c |
lyxml_dup_attr | static struct lyxml_attr *
lyxml_dup_attr(struct ly_ctx *ctx, struct lyxml_elem *parent, struct lyxml_attr *attr)
{
struct lyxml_attr *result, *a;
if (!attr || !parent) {
return NULL;
}
if (attr->type == LYXML_ATTR_NS) {
/* this is correct, despite that all attributes seems like a stan... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x20266
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %edi
movl $0x28, %esi
callq 0xcb70
testq %rax, %rax
je 0x2026a
movq %rax, %rbx
movq 0x20(%r12), %rsi
movq %r15, %... | /RIFTIO[P]libyang/src/xml.c |
lyxml_free_elem | static void
lyxml_free_elem(struct ly_ctx *ctx, struct lyxml_elem *elem)
{
struct lyxml_elem *e, *next;
if (!elem) {
return;
}
lyxml_free_attrs(ctx, elem);
LY_TREE_FOR_SAFE(elem->child, next, e) {
lyxml_free_elem(ctx, e);
}
lydict_remove(ctx, elem->name);
lydict_remove(... | testq %rsi, %rsi
je 0x206ec
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0xd1f0
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x206b0
movq 0x20(%rsi), %r15
testq %rsi, %rsi
je 0x206c2
movq %r14, %rdi
callq 0x20689
movq %r15, %rsi
jmp 0x206a7
movq 0x30(%rbx), %... | /RIFTIO[P]libyang/src/xml.c |
dump_siblings | static int
dump_siblings(struct lyout *out, const struct lyxml_elem *e, int options)
{
const struct lyxml_elem *start, *iter, *next;
int ret = 0;
if (e->parent) {
start = e->parent->child;
} else {
start = e;
while(start->prev && start->prev->next) {
start = start->p... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rdi, %r14
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x22416
movq 0x18(%rcx), %rsi
jmp 0x2242c
movq %rsi, %rax
movq %rax, %rsi
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x2242c
cmpq $0x0, 0x20(%rax)
jne 0x22419
xorl %r15d, %r15d
... | /RIFTIO[P]libyang/src/xml.c |
lyxml_print_mem | API int
lyxml_print_mem(char **strp, const struct lyxml_elem *elem, int options)
{
struct lyout out;
int r;
if (!strp || !elem) {
return 0;
}
out.type = LYOUT_MEMORY;
out.method.mem.buf = NULL;
out.method.mem.len = 0;
out.method.mem.size = 0;
if (options & LYXML_PRINT_SIBL... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movl %edx, %ecx
movq %rdi, %rbx
testq %rdi, %rdi
sete %dl
testq %rsi, %rsi
sete %dil
xorl %eax, %eax
orb %dl, %dil
jne 0x228f9
movl $0x2, -0x28(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rbp)
movq $0x0, -0x10(%rbp)
leaq -0x28(%rbp), %rdi
testb $0x10, %cl
jne 0x2... | /RIFTIO[P]libyang/src/xml.c |
lyp_mmap | void *
lyp_mmap(int fd, size_t addsize, size_t *length)
{
struct stat sb;
long pagesize;
size_t m;
void *addr;
assert(fd >= 0);
ly_errno = LY_SUCCESS;
if (fstat(fd, &sb) == -1) {
LOGERR(LY_ESYS, "Failed to stat the file descriptor (%s) for the mmap().", strerror(errno));
re... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
testl %edi, %edi
js 0x22b66
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebx
callq 0xd7a0
movl $0x0, (%rax)
leaq -0xb0(%rbp), %rsi
movl %ebx, %edi
callq 0xd8c0
cmpl $-0x1, %eax
je 0x22aac
movl $0xf000, %eax # imm = 0xF000
a... | /RIFTIO[P]libyang/src/parser.c |
check_number | static void
check_number(const char *str_num, const char **num_end, LY_DATA_TYPE base)
{
if (!isdigit(str_num[0]) && (str_num[0] != '-') && (str_num[0] != '+')) {
*num_end = str_num;
return;
}
if ((str_num[0] == '-') || (str_num[0] == '+')) {
++str_num;
}
while (isdigit(str... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
callq 0xd9c0
movq (%rax), %rax
movsbq (%r14), %rdx
movzbl %dl, %ecx
movzwl (%rax,%rdx,2), %edx
btl $0xb, %edx
jb 0x2391b
cmpl $0x2b, %ecx
je 0x23925
cmpl $0x2d, %ecx
je 0x23925
jmp 0x2395b
cmpl $0x2d,... | /RIFTIO[P]libyang/src/parser.c |
dup_identities_check | int
dup_identities_check(const char *id, struct lys_module *module)
{
struct lys_module *mainmod;
int i;
if (dup_identity_check(id, module->ident, module->ident_size)) {
LOGVAL(LYE_DUPID, LY_VLOG_NONE, NULL, "identity", id);
return EXIT_FAILURE;
}
/* check identity in submodules */... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzwl 0x44(%rsi), %ecx
testq %rcx, %rcx
je 0x261cc
movq 0x70(%rsi), %rax
shll $0x3, %ecx
leaq (%rcx,%rcx,8), %rcx
xorl %edx, %edx
cmpq %rbx, (%rax,%rdx)
je 0x26228
addq $0x48, %rdx
cmpq %rdx, %rcx
jne 0x261bd
movq %rsi, %rdi
callq 0xd290
movzbl 0x43(%rax... | /RIFTIO[P]libyang/src/parser.c |
lyp_check_status | int
lyp_check_status(uint16_t flags1, struct lys_module *mod1, const char *name1,
uint16_t flags2, struct lys_module *mod2, const char *name2,
const struct lys_node *node)
{
uint16_t flg1, flg2;
flg1 = (flags1 & LYS_STATUS_MASK) ? (flags1 & LYS_STATUS_MASK) : LYS_STATUS_CURR;
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r15d
movl %edi, %r12d
andl $0x38, %r12d
movl $0x8, %eax
cmovel %eax, %r12d
andl $0x38, %r15d
cmovel %eax, %r15d
xorl %ebx, %ebx
cmpw %r15w, %r12w
jae 0x26bfc
movq %r8, %r13
movq %r9, -0x30(%rbp)
movq %rdx, -0x... | /RIFTIO[P]libyang/src/parser.c |
lyp_check_circmod_add | int
lyp_check_circmod_add(struct lys_module *module)
{
struct ly_modules_list *models = &module->ctx->models;
/* storing - enlarge the list of modules being currently parsed */
++models->parsing_sub_modules_count;
models->parsing_sub_modules = ly_realloc(models->parsing_sub_modules,
... | pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movb 0x6058(%r14), %al
incb %al
movb %al, 0x6058(%r14)
movq 0x6048(%r14), %rdi
movzbl %al, %esi
shll $0x3, %esi
callq 0xcf50
movq %rax, 0x6048(%r14)
testq %rax, %rax
je 0x26cf5
movzbl 0x6058(%r14), %ecx
movq %rbx, -0x8(%rax,%rcx,8)
xorl ... | /RIFTIO[P]libyang/src/parser.c |
lyp_check_circmod | static int
lyp_check_circmod(struct lys_module *module, const char *value, int type)
{
LY_ECODE code = type ? LYE_CIRC_IMPORTS : LYE_CIRC_INCLUDES;
struct ly_modules_list *models = &module->ctx->models;
uint8_t i;
/* include/import itself */
if (ly_strequal(module->name, value, 1)) {
LOGVAL... | pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rdi, %rsi
xorl %eax, %eax
cmpl $0x1, %edx
movl $0x0, %edi
adcl $0x28, %edi
cmpq %rcx, 0x8(%rsi)
je 0x270e5
movq (%rsi), %rsi
movzbl 0x6058(%rsi), %edx
testq %rdx, %rdx
je 0x270f5
movq 0x6048(%rsi), %rax
xorl %esi, %esi
movq (%rax,%rsi,8), %r8
cmpq %rcx, 0x8(%r8)
je 0x270... | /RIFTIO[P]libyang/src/parser.c |
lyp_check_import | int
lyp_check_import(struct lys_module *module, const char *value, struct lys_import *imp)
{
int i;
struct lys_module *dup = NULL;
/* check for importing a single module in multiple revisions */
for (i = 0; i < module->imp_size; i++) {
if (!module->imp[i].module) {
/* skip the not y... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movzbl 0x42(%rdi), %ecx
testq %rcx, %rcx
je 0x273bd
movq 0x58(%r14), %rax
imulq $0x38, %rcx, %rcx
xorl %edx, %edx
movq (%rax,%rdx), %r13
testq %r13, %r13
je 0x273b4
cmpq %rbx, 0x8... | /RIFTIO[P]libyang/src/parser.c |
yylex_init_extra | int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
{
struct yyguts_t dummy_yyguts;
yyset_extra (yy_user_defined, &dummy_yyguts);
if (ptr_yy_globals == NULL){
errno = EINVAL;
return 1;
}
*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x4c279
movq %rsi, %rbx
movq %rdi, %r14
movl $0xa0, %edi
callq 0xced0
movq %rax, (%rbx)
testq %rax, %rax
je 0x4c286
movq %rax, %r15
xorl %ebx, %ebx
movl $0xa0, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0xc930
movq %r14, (%r15)
m... | /RIFTIO[P]libyang/src/parser_yang_lex.c |
yylex_destroy | int yylex_destroy (yyscan_t yyscanner)
{
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state(yyscanner);
}
/* Destroy t... | pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x4c2ec
movq 0x18(%rbx), %rax
movq (%rdi,%rax,8), %rax
testq %rax, %rax
je 0x4c2ec
movq %rax, %rdi
movq %rbx, %rsi
callq 0xce70
movq 0x18(%rbx), %rax
movq 0x28(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
movq %rbx, %rdi
... | /RIFTIO[P]libyang/src/parser_yang_lex.c |
yyrealloc | void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
{
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
(void)yyg;
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latt... | pushq %rbp
movq %rsp, %rbp
popq %rbp
jmp 0xd180
nopl (%rax)
| /RIFTIO[P]libyang/src/parser_yang_lex.c |
yang_read_common | int
yang_read_common(struct lys_module *module, char *value, enum yytokentype type)
{
int ret = 0;
switch (type) {
case MODULE_KEYWORD:
module->name = lydict_insert_zc(module->ctx, value);
break;
case NAMESPACE_KEYWORD:
ret = yang_check_string(module, &module->ns, "namespace", "... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %r8
movq %rdi, %rbx
cmpl $0x136, %edx # imm = 0x136
jg 0x4c36f
cmpl $0x11b, %edx # imm = 0x11B
je 0x4c3c7
cmpl $0x135, %edx # imm = 0x135
jne 0x4c38c
movq (%rbx), %rdi
movq %r8, %rsi
callq 0xc050
movq %rax, 0x8(%rbx)
xorl %eax,... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_version | int
yang_check_version(struct lys_module *module, struct lys_submodule *submodule, char *value, int repeat)
{
int ret = EXIT_SUCCESS;
if (repeat) {
LOGVAL(LYE_TOOMANY, LY_VLOG_NONE, NULL, "yang version", "module");
ret = EXIT_FAILURE;
} else {
if (!strcmp(value, "1")) {
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
testl %ecx, %ecx
je 0x4c499
leaq 0x51be4(%rip), %rcx # 0x9e04a
leaq 0x52738(%rip), %r8 # 0x9eba5
movl $0xe, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0xd540
movl $0x1, %r14d
movq %rbx, %rdi
callq 0xc0c0
movl... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_reference | int
yang_read_reference(struct lys_module *module, void *node, char *value, char *where, enum yytokentype type)
{
int ret;
char *ref = "reference";
switch (type) {
case MODULE_KEYWORD:
ret = yang_check_string(module, &module->ref, ref, "module", value, NULL);
break;
case REVISION_KE... | pushq %rbp
movq %rsp, %rbp
movq %rdx, %rax
movq %rsi, %r9
cmpl $0x134, %r8d # imm = 0x134
jle 0x4c667
cmpl $0x163, %r8d # imm = 0x163
je 0x4c67f
cmpl $0x145, %r8d # imm = 0x145
je 0x4c68f
cmpl $0x135, %r8d # imm = 0x135
jne 0x4c69b
leaq 0x20(%rdi), %rsi
leaq 0x40ab9(%rip), %r... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_fill_iffeature | int
yang_fill_iffeature(struct lys_module *module, struct lys_iffeature *iffeature, void *parent,
char *value, struct unres_schema *unres, int parent_is_feature)
{
const char *exp;
int ret;
if ((module->version != 2) && ((value[0] == '(') || strchr(value, ' '))) {
LOGVAL(LYE_INA... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r13d
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, %r14
movb 0x40(%rdi), %al
andb $0xe, %al
cmpb $0x4, %al
jne 0x4c72d
movq %r12, -0x30(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_when | void *
yang_read_when(struct lys_module *module, struct lys_node *node, enum yytokentype type, char *value)
{
struct lys_when *retval;
retval = calloc(1, sizeof *retval);
if (!retval) {
LOGMEM;
free(value);
return NULL;
}
retval->cond = transform_schema2json(module, value);
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r12
movl $0x1, %edi
movl $0x28, %esi
callq 0xcb70
testq %rax, %rax
je 0x4c915
movq %rax, %r14
movq %r12, %rdi
movq %rbx, %rsi
callq 0xd220
movq %rax, (%r14)
testq %ra... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_node | void *
yang_read_node(struct lys_module *module, struct lys_node *parent, struct lys_node **root,
char *value, int nodetype, int sizeof_struct)
{
struct lys_node *node, **child;
node = calloc(1, sizeof_struct);
if (!node) {
free(value);
LOGMEM;
return NULL;
}
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r15d
movq %rcx, %r13
movq %rdx, -0x30(%rbp)
movq %rsi, %r12
movq %rdi, %r14
movslq %r9d, %rsi
movl $0x1, %edi
callq 0xcb70
testq %rax, %rax
je 0x4cb36
movq %rax, %rbx
movq 0x634c5(%rip), %rax # 0xaff98
movb (%ra... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_default | int
yang_read_default(struct lys_module *module, void *node, char *value, enum yytokentype type)
{
int ret;
switch (type) {
case LEAF_KEYWORD:
ret = yang_check_string(module, &((struct lys_node_leaf *) node)->dflt, "default", "leaf", value, node);
break;
case TYPEDEF_KEYWORD:
re... | movq %rdx, %r8
movq %rsi, %r9
cmpl $0x14b, %ecx # imm = 0x14B
je 0x4cbad
cmpl $0x12e, %ecx # imm = 0x12E
jne 0x4cbca
leaq 0xc0(%r9), %rsi
leaq 0x3fc4f(%rip), %rdx # 0x8c7f0
leaq 0x5392a(%rip), %rcx # 0xa04d2
jmp 0x4c3f7
addq $0x78, %r9
leaq 0x3fc38(%rip), %rdx # 0x8c7f0
leaq 0x42c63(%r... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_units | int
yang_read_units(struct lys_module *module, void *node, char *value, enum yytokentype type)
{
int ret;
switch (type) {
case LEAF_KEYWORD:
ret = yang_check_string(module, &((struct lys_node_leaf *) node)->units, "units", "leaf", value, node);
break;
case LEAF_LIST_KEYWORD:
ret... | movq %rdx, %r8
movq %rsi, %r9
cmpl $0x152, %ecx # imm = 0x152
jg 0x4cc42
cmpl $0x12e, %ecx # imm = 0x12E
je 0x4cc77
cmpl $0x12f, %ecx # imm = 0x12F
je 0x4cccb
cmpl $0x14b, %ecx # imm = 0x14B
jne 0x4cc91
addq $0x28, %r9
leaq 0x40703(%rip), %rdx # 0x8d33c
leaq 0x42be2(%rip)... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_fill_unique | int
yang_fill_unique(struct lys_module *module, struct lys_node_list *list, struct lys_unique *unique, char *value, struct unres_schema *unres)
{
int i, j;
char *vaux;
struct unres_list_uniq *unique_info;
/* count the number of unique leafs in the value */
vaux = value;
while ((vaux = strpbrk(v... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, -0x50(%rbp)
movq %rcx, %r13
movq %rdx, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, -0x48(%rbp)
leaq 0x3f636(%rip), %rsi # 0x8c467
movq %rcx, %rdi
callq 0xd010
testq %rax, %rax
je 0x4ce89
movq %rax, %r14
ca... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_require_instance | int
yang_read_require_instance(struct yang_type *stype, int req)
{
if (stype->base && (stype->base != LY_TYPE_LEAFREF)) {
LOGVAL(LYE_INSTMT, LY_VLOG_NONE, NULL, "require-instance");
return EXIT_FAILURE;
}
if (stype->type->info.lref.req) {
LOGVAL(LYE_TOOMANY, LY_VLOG_NONE, NULL, "requ... | pushq %rbp
movq %rsp, %rbp
movl 0x4(%rdi), %eax
testl %eax, %eax
je 0x4d159
cmpl $0x9, %eax
jne 0x4d183
movq 0x10(%rdi), %rax
cmpb $0x0, 0x38(%rax)
je 0x4d1a1
leaq 0x401ee(%rip), %rcx # 0x8d358
leaq 0x41dd9(%rip), %r8 # 0x8ef4a
movl $0xe, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0xd540
jmp 0x... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_length | void *
yang_read_length(struct lys_module *module, struct yang_type *stype, char *value, int is_ext_instance)
{
struct lys_restr *length;
if (is_ext_instance) {
length = (struct lys_restr *)stype;
} else {
if (stype->base == 0 || stype->base == LY_TYPE_STRING) {
stype->base = LY... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testl %ecx, %ecx
je 0x4df33
movq (%r15), %rdi
movq %rbx, %rsi
callq 0xc050
movq %rax, (%r14)
jmp 0x4dfdb
movl 0x4(%r14), %eax
cmpl $0xa, %eax
je 0x4df40
testl %eax, %eax
jne 0x4df74
movl $0xa, 0x4(%r14... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_pattern | int
yang_read_pattern(struct lys_module *module, struct lys_restr *pattern, char *value, char modifier)
{
char *buf;
size_t len;
if (lyp_check_pattern(value, NULL)) {
free(value);
return EXIT_FAILURE;
}
len = strlen(value);
buf = malloc((len + 2) * sizeof *buf); /* modifier byt... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
xorl %esi, %esi
callq 0xc2f0
testl %eax, %eax
je 0x4e01e
movq %rbx, %rdi
callq 0xc0c0
movl $0x1, %eax
jmp 0x4e060
movq %rbx, %rdi
callq 0xc670
lea... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_range | void *
yang_read_range(struct lys_module *module, struct yang_type *stype, char *value, int is_ext_instance)
{
struct lys_restr * range;
if (is_ext_instance) {
range = (struct lys_restr *)stype;
} else {
if (stype->base != 0 && stype->base != LY_TYPE_DEC64) {
LOGVAL(LYE_SPEC, L... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testl %ecx, %ecx
je 0x4e0c1
movq (%r15), %rdi
movq %rbx, %rsi
callq 0xc050
movq %rax, (%r14)
jmp 0x4e166
testl $0xfffffffb, 0x4(%r14) # imm = 0xFFFFFFFB
jne 0x4e0ff
movl $0x4, 0x4(%r14)
movq 0x10(%r14... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_fraction | int
yang_read_fraction(struct yang_type *typ, uint32_t value)
{
if (typ->base == 0 || typ->base == LY_TYPE_DEC64) {
typ->base = LY_TYPE_DEC64;
} else {
LOGVAL(LYE_SPEC, LY_VLOG_NONE, NULL, "Unexpected fraction-digits statement.");
goto error;
}
if (typ->type->info.dec64.dig) {
... | pushq %rbp
movq %rsp, %rbp
testl $0xfffffffb, 0x4(%rdi) # imm = 0xFFFFFFFB
jne 0x4e1b0
movl $0x4, 0x4(%rdi)
movq 0x10(%rdi), %rax
cmpb $0x0, 0x30(%rax)
je 0x4e1c9
leaq 0x3f1f0(%rip), %rcx # 0x8d387
leaq 0x40dac(%rip), %r8 # 0x8ef4a
movl $0xe, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0xd540
j... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_deviate_unsupported | void *
yang_read_deviate_unsupported(struct lys_deviation *dev)
{
if (dev->deviate_size) {
LOGVAL(LYE_SPEC, LY_VLOG_NONE, NULL, "\"not-supported\" deviation cannot be combined with any other deviation.");
return NULL;
}
dev->deviate = calloc(1, sizeof *dev->deviate);
if (!dev->deviate) {... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movzbl 0x20(%rdi), %r15d
testq %r15, %r15
je 0x4e555
leaq 0x40e1b(%rip), %rcx # 0x8f35c
xorl %ebx, %ebx
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0xd540
jmp 0x4e5a9
movq %rdi, %r14
movl... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_deviate | void *
yang_read_deviate(struct lys_deviation *dev, LYS_DEVIATE_TYPE mod)
{
struct lys_deviate *deviate;
if (dev->deviate_size && dev->deviate[0].mod == LY_DEVIATE_NO) {
LOGVAL(LYE_INSTMT, LY_VLOG_NONE, NULL, "not-supported");
LOGVAL(LYE_SPEC, LY_VLOG_NONE, NULL, "\"not-supported\" deviation ca... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movzbl 0x20(%rdi), %eax
testl %eax, %eax
je 0x4e5d8
movq 0x28(%rbx), %rcx
cmpl $0x0, (%rcx)
je 0x4e630
testb $0x7, %al
jne 0x4e615
movq 0x28(%rbx), %rdi
leaq (%rax,%rax,8), %rax
leaq 0x240(,%rax,8), %rsi
callq 0xd180... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_deviate_units | int
yang_read_deviate_units(struct ly_ctx *ctx, struct lys_deviate *deviate, struct lys_node *dev_target)
{
const char **stritem;
int j;
/* check target node type */
if (dev_target->nodetype == LYS_LEAFLIST) {
stritem = &((struct lys_node_leaflist *)dev_target)->units;
} else if (dev_target... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl 0x38(%rdx), %eax
cmpl $0x4, %eax
je 0x4e6ba
cmpl $0x8, %eax
jne 0x4e6fe
movl (%r15), %eax
movq 0xb8(%rbx), %rsi
cmpl $0x1, %eax
je 0x4e721
cmpl $0x3, %eax
jne 0x4e749
movq 0x... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_deviate_unique | int
yang_read_deviate_unique(struct lys_deviate *deviate, struct lys_node *dev_target)
{
struct lys_node_list *list;
struct lys_unique *unique;
/* check target node type */
if (dev_target->nodetype != LYS_LIST) {
LOGVAL(LYE_INSTMT, LY_VLOG_NONE, NULL, "unique");
LOGVAL(LYE_SPEC, LY_VLOG... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x10, 0x38(%rsi)
jne 0x4e88c
movq %rdi, %rbx
xorl %r15d, %r15d
cmpl $0x1, (%rdi)
jne 0x4e8c0
movq %rsi, %r14
movq 0x88(%rsi), %rdi
movzbl 0xa(%rbx), %eax
movzbl 0x1f(%rsi), %esi
addl %eax, %esi
shll $0x4, %esi
callq 0xcf50
testq %rax, %rax
je ... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_deviate_default | int
yang_read_deviate_default(struct lys_module *module, struct lys_deviate *deviate,
struct lys_node *dev_target, struct ly_set * dflt_check)
{
int i;
struct lys_node_leaflist *llist;
const char **dflt;
/* check target node type */
if (module->version < 2 && dev_target->n... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
testb $0xc, 0x40(%rdi)
jne 0x4ed17
cmpl $0x8, 0x38(%rbx)
je 0x4ed95
movzbl 0x5(%r15), %esi
cmpq $0x2, %rsi
jb 0x4ed2c
cmpl $0x8, 0x38(%rbx)
jne 0x4edb5
movl 0x38(%... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_deviate_mandatory | int
yang_check_deviate_mandatory(struct lys_deviate *deviate, struct lys_node *dev_target)
{
struct lys_node *parent;
/* check target node type */
if (!(dev_target->nodetype & (LYS_LEAF | LYS_CHOICE | LYS_ANYDATA))) {
LOGVAL(LYE_INSTMT, LY_VLOG_NONE, NULL, "mandatory");
LOGVAL(LYE_SPEC, LY_... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl 0x38(%rsi), %eax
testl $0x8026, %eax # imm = 0x8026
je 0x4efdb
cmpl $0x1, (%rdi)
movzwl 0x18(%rsi), %ecx
jne 0x4effe
testb $-0x40, %cl
je 0x4f057
leaq 0x3d348(%rip), %rcx # 0x8c307
movl $0x5, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_deviate_must | int
yang_check_deviate_must(struct lys_module *module, struct unres_schema *unres,
struct lys_deviate *deviate, struct lys_node *dev_target)
{
int i, j, erase_must = 1;
struct lys_restr **trg_must, *must;
uint8_t *trg_must_size;
/* check target node type */
switch (dev_targe... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %rcx
movq %rdi, %r14
movl 0x38(%r15), %eax
movl $0x1f, %r8d
cmpl $0xf, %eax
jg 0x4f292
cmpl $0x1, %eax
je 0x4f2c6
cmpl $0x4, %eax
je 0x4f2d4
cmpl $0x8, %eax
je 0x4f2d4
jmp 0x4f2a... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_deviate_delete_unique | int
yang_deviate_delete_unique(struct lys_module *module, struct lys_deviate *deviate,
struct lys_node_list *list, int index, char * value)
{
int i, j, k;
/* find unique structures to delete */
for (i = 0; i < list->unique_size; i++) {
if (list->unique[i].expr_size != dev... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movzbl 0x1f(%rdx), %eax
testq %rax, %rax
je 0x4f65f
movq 0x88(%rdx), %rbx
movq 0x20(%rsi), %rsi
movslq %ecx, %r9
shlq $0x4, %r9
leaq (%rsi,%r9), %rcx
movzbl 0x8(%rsi,%r9), %esi
xorl %r15d, %r15d
movq %rdi, -0x30(%rbp)
mov... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_ext | void *
yang_read_ext(struct lys_module *module, void *actual, char *ext_name, char *ext_arg,
enum yytokentype actual_type, enum yytokentype backup_type, int is_ext_instance)
{
struct lys_ext_instance *instance;
LY_STMT stmt = LY_STMT_UNKNOWN;
if (backup_type != NODE) {
instance = yang... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %r15d
movl %r8d, %r12d
movq %rcx, %r13
movq %rdx, -0x38(%rbp)
movq %rdi, %r14
movl 0x10(%rbp), %edx
cmpl $0x162, %r9d # imm = 0x162
movq %rsi, -0x40(%rbp)
movq %rsi, %rdi
jne 0x4fbf4
movl %r12d, %esi... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_parse_mem | int
yang_parse_mem(struct lys_module *module, struct lys_submodule *submodule, struct unres_schema *unres,
const char *data, unsigned int size_data, struct lys_node **node)
{
unsigned int size;
YY_BUFFER_STATE bp;
yyscan_t scanner = NULL;
int ret = 0;
struct lys_module *trg;
struc... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, -0x40(%rbp)
movl %r8d, %r13d
movq %rcx, %r14
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, %rbx
movq $0x0, -0x30(%rbp)
testl %r8d, %r8d
jne 0x500ec
movq %r14, %rdi
callq 0xc670
movq %rax, %r13
addl $0x2, %r1... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_module | struct lys_module *
yang_read_module(struct ly_ctx *ctx, const char* data, unsigned int size, const char *revision, int implement)
{
struct lys_module *module = NULL, *tmp_mod;
struct unres_schema *unres = NULL;
struct lys_node *node = NULL;
int ret;
unres = calloc(1, sizeof *unres);
if (!unre... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r14d
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, -0x38(%rbp)
xorl %eax, %eax
movq %rax, -0x30(%rbp)
movq %rax, -0x40(%rbp)
movl $0x1, %edi
movl $0x28, %esi
callq 0xcb70
movq %rax, -0x30(%rbp)
t... | /RIFTIO[P]libyang/src/parser_yang.c |
free_yang_common | static void
free_yang_common(struct lys_module *module, struct lys_node *node)
{
uint i;
yang_tpdf_free(module->ctx, module->tpdf, 0, module->tpdf_size);
module->tpdf_size = 0;
yang_free_ident_base(module->ident, 0, module->ident_size);
yang_free_nodes(module->ctx, node);
for (i = 0; i < module-... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x68(%rbx), %rsi
movzbl 0x46(%rbx), %ecx
xorl %edx, %edx
callq 0x5340c
movb $0x0, 0x46(%rbx)
movq 0x70(%rbx), %rdi
movzwl 0x44(%rbx), %edx
xorl %esi, %esi
callq 0x53cd1
movq (%rbx), %rdi
movq %r... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_sub_module | static int
yang_check_sub_module(struct lys_module *module, struct unres_schema *unres, struct lys_node *node)
{
uint i, erase_identities = 1, erase_nodes = 1, aug_size, dev_size = 0;
aug_size = module->augment_size;
module->augment_size = 0;
dev_size = module->deviation_size;
module->deviation_siz... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, -0x68(%rbp)
movq %rsi, %r12
movq %rdi, %rbx
movzbl 0x48(%rdi), %r13d
movzbl 0x49(%rdi), %r14d
movw $0x0, 0x48(%rdi)
xorl %esi, %esi
movq %r12, %rdx
callq 0xc880
xorl %ecx, %ecx
movl $0x0, %r15d
testl %eax, %eax... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_submodule | struct lys_submodule *
yang_read_submodule(struct lys_module *module, const char *data, unsigned int size, struct unres_schema *unres)
{
struct lys_submodule *submodule;
struct lys_node *node = NULL;
submodule = calloc(1, sizeof *submodule);
if (!submodule) {
LOGMEM;
goto error;
}
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r14
movq %rcx, -0x30(%rbp)
movq $0x0, -0x28(%rbp)
movl $0x1, %edi
movl $0xa8, %esi
callq 0xcb70
movq %rax, %rbx
testq %rax, %rax
je 0x5250b
movq (%r14), %rax
movq %rax, (%rbx)
orb $0x1, 0... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_type_free | void
yang_type_free(struct ly_ctx *ctx, struct lys_type *type)
{
struct yang_type *stype = (struct yang_type *)type->der;
int i;
if (!stype) {
return ;
}
if (type->base == LY_TYPE_DER || type->base == LY_TYPE_ERR || type->base == LY_TYPE_UNION) {
lydict_remove(ctx, stype->name);
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %r15
testq %r15, %r15
je 0x528ef
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rsi), %eax
incl %eax
cmpl $0xc, %eax
ja 0x528d1
movl $0x1003, %ecx # imm = 0x1003
btl %eax, %ecx
jae 0x528d1
movq 0x8(%r15), ... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_ext_instance | int
yang_check_ext_instance(struct lys_module *module, struct lys_ext_instance ***ext, uint size,
void *parent, struct unres_schema *unres)
{
struct unres_ext *info;
uint i;
for (i = 0; i < size; ++i) {
info = malloc(sizeof *info);
info->data.yang = (*ext)[i]->parent... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, -0x30(%rbp)
testl %edx, %edx
je 0x529e3
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl %edx, %r13d
xorl %ebx, %ebx
movl $0x30, %edi
callq 0xced0
movq (%r15), %rcx
movq (%rcx,%rbx,8), %rdx
movq 0x8(%rdx), %rdx
mo... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_imports | int
yang_check_imports(struct lys_module *module, struct unres_schema *unres)
{
struct lys_import *imp;
struct lys_include *inc;
uint8_t imp_size, inc_size, j = 0, i = 0;
char *s;
imp = module->imp;
imp_size = module->imp_size;
inc = module->inc;
inc_size = module->inc_size;
if (im... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r13
movq %rdi, %r12
movq 0x58(%rdi), %r14
movq 0x60(%rdi), %rbx
movzbl 0x42(%rdi), %edi
movzbl 0x43(%r12), %r15d
testq %rdi, %rdi
movq %r15, -0x40(%rbp)
movq %rdi, -0x30(%rbp)
movq %rbx, -0x50(%rbp)
movq %r14,... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_fill_type | int
yang_fill_type(struct lys_module *module, struct lys_type *type, struct yang_type *stype,
void *parent, struct unres_schema *unres)
{
int i;
type->parent = parent;
if (yang_check_ext_instance(module, &type->ext, type->ext_size, type, unres)) {
return EXIT_FAILURE;
}
switc... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movq %rcx, %r13
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq %rcx, 0x20(%rsi)
addq $0x10, %rsi
movzbl 0xc(%r12), %edx
movq %r12, %rcx
callq 0xc320
movl $0x1, -0x34(%rbp)
testl %eax, %eax
jne 0x530b0... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_check_typedef | int
yang_check_typedef(struct lys_module *module, struct lys_node *parent, struct unres_schema *unres)
{
struct lys_tpdf *tpdf;
uint8_t i, tpdf_size, *ptr_tpdf_size;
if (!parent) {
tpdf = module->tpdf;
ptr_tpdf_size = &module->tpdf_size;
} else {
switch (parent->nodetype) {
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x60(%rbp)
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
je 0x53231
movl 0x38(%r14), %eax
cmpl $0x1ff, %eax # imm = 0x1FF
jg 0x5323b
cmpl $0x7f, %eax
jg 0x53255
cmpl $0x1, %eax
je 0x5328a
cmpl $0... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_read_extcomplex_str | int
yang_read_extcomplex_str(struct lys_module *module, struct lys_ext_instance_complex *ext, const char *arg_name,
const char *parent_name, char *value, int parent_stmt, LY_STMT stmt)
{
int c;
const char **str, ***p = NULL;
void *reallocated;
struct lyext_substmt *info;
c ... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movq %rdi, %r13
movl 0x10(%rbp), %r14d
movl %r14d, %eax
xorl $0xd, %eax
xorl $0x3, %r9d
orl %eax, %r9d
jne 0x53523
leaq -0x38(%rbp), %r14
movl $0x3, %edi
movq %r14, %rdx
callq 0xc6e0
movq %rax, %rbx
movq (%... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_fill_extcomplex_module | int
yang_fill_extcomplex_module(struct ly_ctx *ctx, struct lys_ext_instance_complex *ext,
char *parent_name, char **values, int implemented)
{
int c, i;
struct lys_module **modules, ***p, *reallocated, **pp;
struct lyext_substmt *info;
if (!values) {
return EXIT_SUCC... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, -0x2c(%rbp)
movq %rdi, -0x48(%rbp)
xorl %r13d, %r13d
testq %rcx, %rcx
je 0x53c85
movq %rcx, %r15
movq %rdx, %rbx
leaq -0x50(%rbp), %rdx
movl $0x20, %edi
callq 0xc6e0
testq %rax, %rax
je 0x53c65
cmpq $0x0, (%r15... | /RIFTIO[P]libyang/src/parser_yang.c |
yang_free_deviate | static void
yang_free_deviate(struct ly_ctx *ctx, struct lys_deviation *dev, uint index)
{
uint i, j;
for (i = index; i < dev->deviate_size; ++i) {
lydict_remove(ctx, dev->deviate[i].units);
if (dev->deviate[i].type) {
yang_type_free(ctx, dev->deviate[i].type);
}
f... | movzbl 0x20(%rsi), %eax
cmpl %edx, %eax
jbe 0x53ef0
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %r15d
movq 0x28(%rbx), %rax
leaq (,%r15,8), %rcx
leaq (%rcx,%rcx,8), %r12
movq 0x30(%rax,%r12), %rsi
movq %r14, %rdi
callq 0xd910
mo... | /RIFTIO[P]libyang/src/parser_yang.c |
lys_is_disabled | lys_node *
lys_is_disabled(const struct lys_node *node, int recursive)
{
int i;
if (!node) {
return NULL;
}
check:
if (node->nodetype != LYS_INPUT && node->nodetype != LYS_OUTPUT) {
/* input/output does not have if-feature, so skip them */
/* check local if-features */
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x541a0
movl %esi, %r14d
movq %rdi, %rbx
movl 0x38(%rbx), %eax
cmpl $0x200, %eax # imm = 0x200
je 0x54177
cmpl $0x400, %eax # imm = 0x400
je 0x54177
cmpb $0x0, 0x1b(%rbx)
je 0x54177
xorl %r15d, %r15d
xorl %r... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_node_unlink | void
lys_node_unlink(struct lys_node *node)
{
struct lys_node *parent, *first, **pp;
struct lys_module *main_module;
if (!node) {
return;
}
/* unlink from data model if necessary */
if (node->module) {
/* get main module with data tree */
main_module = lys_node_module(n... | testq %rdi, %rdi
je 0x54adc
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x54a03
testb $0x1, 0x40(%rax)
je 0x549ef
movq 0xa0(%rax), %rax
cmpq %rbx, 0xa0(%rax)
jne 0x54a03
movq 0x50(%rbx), %rcx
movq %rcx, 0xa0(%rax)
movq 0x40(%rbx), %r14
testq %r14, %r14
je 0... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_check_id | int
lys_check_id(struct lys_node *node, struct lys_node *parent, struct lys_module *module)
{
struct lys_node *start, *stop, *iter;
struct lys_node_grp *grp;
int down, up;
assert(node);
if (!parent) {
assert(module);
} else {
module = parent->module;
}
module = lys_main... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x54f89
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x54bca
movq 0x30(%r14), %rdx
jmp 0x54bd3
testq %rdx, %rdx
je 0x54fa8
xorl %r15d, %r15d
testq %rdx, %rdx
je 0x54bea
testb $0x1, 0x40(%rdx)
je 0x54b... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_node_addchild | int
lys_node_addchild(struct lys_node *parent, struct lys_module *module, struct lys_node *child)
{
struct lys_node *iter, *next, **pchild;
struct lys_node_inout *in, *out, *inout;
struct lys_node_case *c;
int type, shortcase = 0;
void *p;
struct lyext_substmt *info = NULL;
assert(child);
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq $0x0, -0x30(%rbp)
testq %rdx, %rdx
je 0x55612
movq %rdx, %r14
movq %rdi, %rbx
testq %rdi, %rdi
je 0x54ffb
movl 0x38(%rbx), %r15d
movq 0x30(%rbx), %r12
jmp 0x55015
movq %rsi, %r12
testq %rsi, %rsi
je 0x55631
xorl %r15d, %r1... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_sub_parse_mem | struct lys_submodule *
lys_sub_parse_mem(struct lys_module *module, const char *data, LYS_INFORMAT format, struct unres_schema *unres)
{
char *enlarged_data = NULL;
struct lys_submodule *submod = NULL;
unsigned int len;
assert(module);
assert(data);
if (format == LYS_IN_YANG) {
/* enla... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x564bd
movq %rsi, %r13
testq %rsi, %rsi
je 0x564dc
movl %edx, %r12d
movq %rdi, %r14
cmpl $0x1, %edx
jne 0x5643c
movq %rcx, -0x30(%rbp)
movq %r13, %rdi
callq 0xc670
movq %rax, %rbx
leal 0x2(%rax), %edi
callq... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_parse_path | lys_module *
lys_parse_path(struct ly_ctx *ctx, const char *path, LYS_INFORMAT format)
{
int fd;
const struct lys_module *ret;
const char *rev, *dot, *filename;
size_t len;
if (!ctx || !path) {
LOGERR(LY_EINVAL, "%s: Invalid parameter.", __func__);
return NULL;
}
fd = open(... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
je 0x5667d
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0xd420
cmpl $-0x1, %eax
je 0x566a4
mov... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_ext_dup | int
lys_ext_dup(struct lys_module *mod, struct lys_ext_instance **orig, uint8_t size,
void *parent, LYEXT_PAR parent_type, struct lys_ext_instance ***new, struct unres_schema *unres)
{
int i;
uint8_t u = 0;
struct lys_ext_instance **result;
struct unres_ext *info, *info_orig;
assert(new... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, -0x48(%rbp)
movq %rsi, -0x38(%rbp)
movq %r9, -0x30(%rbp)
testq %r9, %r9
je 0x56c96
testb %dl, %dl
je 0x56c06
movl %r8d, %r12d
movq %rdi, %r14
movzbl %dl, %edi
movl $0x8, %esi
movq %rdi, -0x50(%rbp)
callq 0xcb70... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_extension_instances_free | void
lys_extension_instances_free(struct ly_ctx *ctx, struct lys_ext_instance **e, unsigned int size)
{
unsigned int i, j, k;
struct lyext_substmt *substmt;
void **pp, **start;
struct lys_node *siter, *snext;
#define EXTCOMPLEX_FREE_STRUCT(STMT, TYPE, FUNC, FREE, ARGS...) ... | testl %edx, %edx
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x573ba
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
cmpq $0x0, (%rsi)
je 0x573ac
movq %rdi, -0x48(%rbp)
movl %edx, %r12d
xorl %r13d, %r13d
movq %r15, -0x40(%rbp)
movq %r12, -0x58(%... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_type_free | void
lys_type_free(struct ly_ctx *ctx, struct lys_type *type)
{
int i;
assert(ctx);
if (!type) {
return;
}
lydict_remove(ctx, type->module_name);
lys_extension_instances_free(ctx, type->ext, type->ext_size);
switch (type->base) {
case LY_TYPE_BINARY:
lys_restr_free(ct... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x57c72
movq %rsi, %rbx
testq %rsi, %rsi
je 0x57ad2
movq %rdi, %r14
movq (%rbx), %rsi
callq 0xd910
movq 0x10(%rbx), %rsi
movzbl 0xc(%rbx), %edx
movq %r14, %rdi
callq 0xc5a0
movl 0x8(%rbx), %eax
decl %eax
cmpl $0x12, %eax
ja 0x57a... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_ext_instance_substmt | API const void *
lys_ext_instance_substmt(const struct lys_ext_instance *ext)
{
if (!ext) {
return NULL;
}
switch (ext->insubstmt) {
case LYEXT_SUBSTMT_SELF:
case LYEXT_SUBSTMT_MODIFIER:
case LYEXT_SUBSTMT_VERSION:
return NULL;
case LYEXT_SUBSTMT_ARGUMENT:
if (ext->p... | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x57cba
movzbl 0x1c(%rdi), %eax
cmpq $0x1f, %rax
ja 0x58161
leaq 0x469f3(%rip), %rcx # 0x9e6a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %ebx, %ebx
jmp 0x5818a
movzbl 0x1d(%rdi), %eax
cmpl $0xe, %eax
je 0x58077
cmpl $0xc, %eax
je ... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_implemented_module | lys_module *
lys_implemented_module(const struct lys_module *mod)
{
struct ly_ctx *ctx;
int i;
if (!mod || mod->implemented) {
/* invalid argument or the module itself is implemented */
return (struct lys_module *)mod;
}
ctx = mod->ctx;
for (i = 0; i < ctx->models.used; i++) {
... | testq %rdi, %rdi
je 0x5823b
cmpb $0x0, 0x40(%rdi)
js 0x5823b
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movslq 0x603c(%rax), %rcx
testq %rcx, %rcx
jle 0x58236
movq 0x6040(%rax), %rdx
xorl %esi, %esi
movq (%rdx,%rsi,8), %rax
cmpb $0x0, 0x40(%rax)
jns 0x5822e
movq 0x8(%rdi), %r8
cmpq 0x8(%rax), %r8
je 0x58239
incq %rsi... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_get_import_module_ns | const struct lys_module *
lys_get_import_module_ns(const struct lys_module *module, const char *ns)
{
int i;
assert(module && ns);
if (module->type) {
/* the module is actually submodule and to get the namespace, we need the main module */
if (ly_strequal(((struct lys_submodule *)module)->... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x582f1
movq %rsi, %r14
testq %rsi, %rsi
je 0x582f1
movq %rdi, %rbx
testb $0x1, 0x40(%rdi)
jne 0x5827d
movq 0xa8(%rbx), %rdi
movq %r14, %rsi
callq 0xc710
testl %eax, %eax
jne 0x582e5
jmp 0x582a0
movq 0xa0(%rbx), %rax
movq 0xa8(%r... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_submodule_free | void
lys_submodule_free(struct lys_submodule *submodule, void (*private_destructor)(const struct lys_node *node, void *priv))
{
if (!submodule) {
return;
}
/* common part with struct ly_module */
module_free_common((struct lys_module *)submodule, private_destructor);
/* no specific items t... | testq %rdi, %rdi
je 0x5858f
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x58590
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xc0c0
retq
| /RIFTIO[P]libyang/src/tree_schema.c |
module_free_common | static void
module_free_common(struct lys_module *module, void (*private_destructor)(const struct lys_node *node, void *priv))
{
struct ly_ctx *ctx;
struct lys_node *next, *iter;
unsigned int i;
assert(module->ctx);
ctx = module->ctx;
/* just free the import array, imported modules will stay i... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq (%rdi), %r13
testq %r13, %r13
je 0x58d2f
movq %rsi, %r15
movq %rdi, %r12
cmpb $0x0, 0x42(%rdi)
je 0x5861d
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x58(%r12), %rax
movq 0x8(%rax,%rbx), %rsi
movq %r13, %rdi
callq 0xd910... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_has_xpath | int
lys_has_xpath(const struct lys_node *node)
{
assert(node);
switch (node->nodetype) {
case LYS_AUGMENT:
if (((struct lys_node_augment *)node)->when) {
return 1;
}
break;
case LYS_CASE:
if (((struct lys_node_case *)node)->when) {
return 1;
... | testq %rdi, %rdi
je 0x58e11
movl 0x38(%rdi), %eax
cmpl $0x7f, %eax
jg 0x58d8b
leal -0x1(%rax), %ecx
cmpl $0x7, %ecx
ja 0x58de4
leaq 0x45a46(%rip), %rax # 0x9e7b4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x1, %eax
cmpq $0x0, 0x68(%rdi)
jne 0x58dcf
cmpb $0x0, 0x1e(%rdi)
jne 0x58dcf
jmp 0x58dfa
cmpl... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_node_dup | struct lys_node *
lys_node_dup(struct lys_module *module, struct lys_node *parent, const struct lys_node *node,
struct unres_schema *unres, int shallow)
{
struct lys_node *p = NULL;
int finalize = 0;
struct lys_node *result, *iter, *next;
if (!shallow) {
/* get know where in schema... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
testl %r8d, %r8d
je 0x58fad
movq %r14, %rdi
movq %rbx, %rcx
movl %r12d, %r9d
callq 0x59017
movq %rax, %r15
testl %r12d, %r12d
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_node_dup_recursion | static struct lys_node *
lys_node_dup_recursion(struct lys_module *module, struct lys_node *parent, const struct lys_node *node,
struct unres_schema *unres, int shallow, int finalize)
{
struct lys_node *retval = NULL, *iter, *p;
struct lys_module *tmp_mod;
struct ly_ctx *ctx = module-... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r8d, -0x70(%rbp)
movq %rcx, %r15
movq %rdx, %r13
movq %rdi, %r12
movq (%rdi), %r14
movq %rdx, -0x58(%rbp)
movl 0x38(%rdx), %eax
cmpl $0x7f, %eax
movq %rsi, -0x90(%rbp)
movl %r9d, -0x94(%rbp)
jg 0x590a1
cmpl $0xf, %e... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_features_change | static int
lys_features_change(const struct lys_module *module, const char *name, int op)
{
int all = 0;
int i, j, k;
int progress, faili, failj, failk;
uint8_t fsize;
struct lys_feature *f;
if (!module || !name || !strlen(name)) {
return EXIT_FAILURE;
}
if (!strcmp(name, "*")... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r13d
testq %rdi, %rdi
sete %dl
testq %rsi, %rsi
sete %cl
movl $0x1, %eax
orb %dl, %cl
jne 0x5a37a
movq %rsi, %r14
cmpb $0x0, (%rsi)
je 0x5a37a
movq %rdi, %rbx
leaq 0x3354f(%rip), %rsi # 0x8d6f7
movq %r14, ... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_features_list | API const char **
lys_features_list(const struct lys_module *module, uint8_t **states)
{
const char **result = NULL;
int i, j;
unsigned int count;
if (!module) {
return NULL;
}
count = module->features_size;
for (i = 0; i < module->inc_size; i++) {
count += module->inc[i].s... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x5a623
movq %rsi, %rbx
movq %rdi, %r14
movzbl 0x47(%rdi), %r12d
movzbl 0x43(%rdi), %ecx
testq %rcx, %rcx
je 0x5a4e0
movq 0x60(%r14), %rax
shll $0x4, %ecx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
movq (%rax,%rdx), %rsi
movzbl 0x4... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_set_private | API void *
lys_set_private(const struct lys_node *node, void *priv)
{
void *prev;
if (!node) {
LOGERR(LY_EINVAL, "%s: Invalid parameter.", __func__);
return NULL;
}
prev = node->priv;
((struct lys_node *)node)->priv = priv;
return prev;
} | pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5a647
movq 0x60(%rdi), %rbx
movq %rsi, 0x60(%rdi)
jmp 0x5a66b
callq 0xd7a0
movl $0x3, (%rax)
leaq 0x32920(%rip), %rsi # 0x8cf79
leaq 0x44a5c(%rip), %rdx # 0x9f0bc
xorl %ebx, %ebx
xorl %edi, %edi
xorl %eax, %eax
callq 0xc570
movq %rbx, %rax
a... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_leaf_add_leafref_target | int
lys_leaf_add_leafref_target(struct lys_node_leaf *leafref_target, struct lys_node *leafref)
{
struct lys_node_leaf *iter = leafref_target;
if (!(leafref_target->nodetype & (LYS_LEAF | LYS_LEAFLIST))) {
LOGINT;
return -1;
}
/* check for config flag */
if (((struct lys_node_leaf*... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testb $0xc, 0x38(%rdi)
je 0x5a6f6
movq %rsi, %rbx
movq %rdi, %r14
cmpb $-0x1, 0xb0(%rsi)
je 0x5a6a5
testb $0x1, 0x18(%rbx)
je 0x5a6a5
testb $0x2, 0x18(%r14)
jne 0x5a735
testq %r14, %r14
je 0x5a6c7
movq %r14, %rax
cmpl $0x9, 0x80(%rax)
jne 0x5a6c7
cm... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_find_xpath | ly_set *
lys_find_xpath(struct ly_ctx *ctx, const struct lys_node *node, const char *expr, int options)
{
struct lyxp_set set;
struct ly_set *ret_set;
uint32_t i;
int opts;
if ((!ctx && !node) || !expr) {
ly_errno = LY_EINVAL;
return NULL;
}
if (!node) {
node = ly_c... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %ecx, %r15d
movq %rdi, %rax
orq %rsi, %rax
setne %al
testq %rdx, %rdx
setne %cl
testb %cl, %al
je 0x5a844
movq %rdx, %rbx
movq %rsi, %r14
testq %rsi, %rsi
jne 0x5a7f0
leaq 0x4490b(%rip), %rdx # 0x9f0e8
xorl %esi, %esi
callq 0xd1c0
mov... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_xpath_atomize | ly_set *
lys_xpath_atomize(const struct lys_node *cur_snode, enum lyxp_node_type cur_snode_type, const char *expr, int options)
{
struct lyxp_set set;
struct ly_set *ret_set;
uint32_t i;
if (!cur_snode || !expr) {
return NULL;
}
/* adjust the root */
if ((cur_snode_type == LYXP_NOD... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %ecx, %r14d
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x5aa7e
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r12
cmpl $0x1, %esi
ja 0x5a9a4
testq %r12, %r12
je 0x5a986
movq 0x30(%r12), %rdx
testb $0x1, ... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_node_xpath_atomize | ly_set *
lys_node_xpath_atomize(const struct lys_node *node, int options)
{
const struct lys_node *next, *elem, *parent, *tmp;
struct lyxp_set set;
struct ly_set *ret_set;
uint16_t i;
if (!node) {
return NULL;
}
for (parent = node; parent && !(parent->nodetype & (LYS_NOTIF | LYS_IN... | testq %rdi, %rdi
je 0x5aaf9
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %r14d
movq %rdi, %r12
xorl %eax, %eax
movq %rdi, %r15
movl 0x38(%r15), %ecx
testl $0x680, %ecx # imm = 0x680
jne 0x5aafc
cmpl $0x10000, %ecx # imm = 0x10000
jne 0... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_switch_deviation | static void
lys_switch_deviation(struct lys_deviation *dev, const struct lys_module *module)
{
int ret;
char *parent_path;
struct lys_node *target = NULL, *parent;
if (!dev->deviate) {
return ;
}
if (dev->deviate[0].mod == LY_DEVIATE_NO) {
if (dev->orig_node) {
/* r... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq $0x0, -0x30(%rbp)
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x5afe5
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, (%rax)
je 0x5ae26
movq (%rbx), %rdi
leaq -0x30(%rbp), %r15
xorl %esi, %esi
movq %r14, %rdx
movl $0x1, %ecx
movq... | /RIFTIO[P]libyang/src/tree_schema.c |
apply_aug | static void
apply_aug(struct lys_node_augment *augment)
{
struct lys_node *last;
assert(augment->target && (augment->flags & LYS_NOTAPPLIED));
/* reconnect augmenting data into the target - add them to the target child list */
if (augment->target->child) {
last = augment->target->child->prev;
... | movq 0x58(%rdi), %rcx
testq %rcx, %rcx
je 0x5b1ab
movzwl 0x18(%rdi), %eax
testb $0x1, %al
je 0x5b1ab
movq 0x48(%rcx), %rdx
testq %rdx, %rdx
je 0x5b199
movq 0x58(%rdx), %rcx
movq 0x48(%rdi), %rsi
movq %rsi, 0x50(%rcx)
movq 0x58(%rsi), %r8
movq %r8, 0x58(%rdx)
movq %rcx, 0x58(%rsi)
jmp 0x5b1a1
movq 0x48(%rdi), %rdx
movq ... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_sub_module_remove_devs_augs | void
lys_sub_module_remove_devs_augs(struct lys_module *module)
{
uint8_t u, v;
/* remove applied deviations */
for (u = 0; u < module->deviation_size; ++u) {
remove_dev(&module->deviation[u], module);
}
/* remove applied augments */
for (u = 0; u < module->augment_size; ++u) {
... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x49(%rdi)
je 0x5b20d
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x88(%rbx), %rdi
addq %r14, %rdi
movq %rbx, %rsi
callq 0x5b312
incq %r15
movzbl 0x49(%rbx), %eax
addq $0x38, %r14
cmpq %rax, %r15
jb 0x5b... | /RIFTIO[P]libyang/src/tree_schema.c |
remove_aug | static void
remove_aug(struct lys_node_augment *augment)
{
struct lys_node *last, *elem;
if (!augment->target || (augment->flags & LYS_NOTAPPLIED)) {
/* skip not resolved augments OR already not applied augment */
return;
}
elem = augment->child;
if (elem) {
LY_TREE_FOR(ele... | movq 0x58(%rdi), %rcx
testq %rcx, %rcx
je 0x5b4d4
movzwl 0x18(%rdi), %eax
testb $0x1, %al
jne 0x5b4d4
pushq %rbp
movq %rsp, %rbp
movq 0x48(%rdi), %rdx
testq %rdx, %rdx
je 0x5b4cc
movq %rdx, %r8
movq %r8, %rsi
movq 0x50(%r8), %r8
testq %r8, %r8
je 0x5b491
cmpq %rdi, 0x40(%r8)
je 0x5b47f
cmpq %rdx, 0x48(%rcx)
jne 0x5b49b... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_set_implemented | API int
lys_set_implemented(const struct lys_module *module)
{
struct ly_ctx *ctx;
struct unres_schema *unres;
int i, j, disabled = 0;
if (!module) {
ly_errno = LY_EINVAL;
return EXIT_FAILURE;
}
module = lys_main_module(module);
if (module->disabled) {
disabled = 1... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x5b733
movq %rdi, %rbx
testb $0x1, 0x40(%rdi)
je 0x5b4ff
movq 0xa0(%rbx), %rbx
movb 0x40(%rbx), %r14b
testb $0x40, %r14b
je 0x5b511
movq %rbx, %rdi
callq 0xc5e0
movb 0x40(%rbx), %al
xorl %r15d, %r15d
... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_tpdf_free | static void
lys_tpdf_free(struct ly_ctx *ctx, struct lys_tpdf *tpdf)
{
assert(ctx);
if (!tpdf) {
return;
}
lydict_remove(ctx, tpdf->name);
lydict_remove(ctx, tpdf->dsc);
lydict_remove(ctx, tpdf->ref);
lys_type_free(ctx, &tpdf->type);
lydict_remove(ctx, tpdf->units);
lydict... | pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x5ba4b
movq %rsi, %r14
testq %rsi, %rsi
je 0x5ba46
movq %rdi, %rbx
movq (%r14), %rsi
callq 0xd910
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0xd910
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0xd910
leaq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0xd1a0
... | /RIFTIO[P]libyang/src/tree_schema.c |
lys_restr_dup | static struct lys_restr *
lys_restr_dup(struct lys_module *mod, struct lys_restr *old, int size, struct unres_schema *unres)
{
struct lys_restr *result;
int i;
if (!size) {
return NULL;
}
result = calloc(size, sizeof *result);
if (!result) {
LOGMEM;
return NULL;
}
... | testl %edx, %edx
je 0x5bb66
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r12
movslq %edx, %rdi
movl $0x38, %esi
callq 0xcb70
testq %rax, %rax
je 0x5bb69
testl %r13d, %r13d
jle 0x5bb8d
movl %r13d, %ecx
imul... | /RIFTIO[P]libyang/src/tree_schema.c |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.