Skip to content

A logic question in duplicate_tracer #286

@wegank

Description

@wegank

In the following file:

/* position of non redundant elements in Gbasis */
btrace[i]->lmps = (bl_t *)calloc((unsigned long)btrace[0]->lml,
sizeof(bl_t));
memcpy(btrace[i]->lmps, btrace[0]->lmps,
(unsigned long)btrace[0]->lml * sizeof(bl_t));
/* non-redundant lead mon. as short divmask */
btrace[i]->lm = (sdm_t *)calloc((unsigned long)btrace[0]->lml,
sizeof(sdm_t));
memcpy(btrace[0]->lm, btrace[i]->lm,
(unsigned long)btrace[0]->lml * sizeof(sdm_t));

why is the second memcpy in the opposite direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions