Made the report function concretize using the minimizer, so that eventually we'll be able to compare inputs generated across tools
This commit is contained in:
@@ -66,6 +66,9 @@ extern void *DeepState_ConcretizeData(void *begin, void *end);
|
||||
/* Return a symbolic C string of length `len`. */
|
||||
extern char *DeepState_CStr(size_t len);
|
||||
|
||||
/* Symbolize a C string */
|
||||
void DeepState_SymbolizeCStr(char *begin);
|
||||
|
||||
/* Concretize a C string. Returns a pointer to the beginning of the
|
||||
* concretized C string. */
|
||||
extern const char *DeepState_ConcretizeCStr(const char *begin);
|
||||
|
||||
@@ -107,6 +107,13 @@ char *DeepState_CStr(size_t len) {
|
||||
return str;
|
||||
}
|
||||
|
||||
/* Symbolize a C string */
|
||||
void DeepState_SymbolizeCStr(char *begin) {
|
||||
if (begin && begin[0]) {
|
||||
DeepState_SymbolizeData(begin, begin + strlen(begin));
|
||||
}
|
||||
}
|
||||
|
||||
/* Concretize a C string */
|
||||
const char *DeepState_ConcretizeCStr(const char *begin) {
|
||||
return begin;
|
||||
|
||||
Reference in New Issue
Block a user