smack icon indicating copy to clipboard operation
smack copied to clipboard

Let function definitions in SMACK's libraries override these defined in input files

Open shaobo-he opened this issue 4 years ago • 1 comments

Some real-world examples contain definitions of malloc, memcpy, memset, etc. If we just link them in, symbol conflicts arise. I think maybe we should set higher priorities for SMACK's definitions (i.e., let them override their counterparts in input files) via the --override flag of llvm-link.

shaobo-he avatar Apr 12 '21 22:04 shaobo-he

If we decide to do so, we have to make sure that our implementation of malloc returns before the actual body. I saw interesting bug like the custom malloc calls foo whereas foo I defined calls malloc.

shaobo-he avatar Apr 12 '21 23:04 shaobo-he