Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024

The complete list of CREST_int, CREST_unsigned_char, etc., can be found in 
header file 
//src/libcrest/crest.h.  (This file can be viewed online at 
http://code.google.com/p/crest/source/browse/trunk/src/libcrest/crest.h .)

Currently, there are six such functions for getting symbolic inputs, one for 
each of char, unsigned char, 
short, unsigned short, int, and unsigned int.  Each is used by passing an 
lvalue of the appropriate type to 
indicate that the lvalue is a symbolic input for CREST.

Please let me know if this is the information you were looking for or if you 
have any further questions.

 -- Jacob

Original comment by [email protected] on 29 Mar 2010 at 7:47

  • Changed state: Done

from crest.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
So currently CREST cannot handle "structure" and/or "enum" data types?

Thanks,
Xiao

Original comment by [email protected] on 29 Mar 2010 at 7:58

from crest.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024

CREST has no way to mark an entire struct as symbolic.  For structures with 
only numeric fields, one can 
write something like:

    struct point {
        int x, y;
    };

    void CREST_point(struct point* p) {
       CREST_int(p->x);
       CREST_int(p->y);
    }


For structs with pointer members, however, there is no effective way to have 
CREST handle the structure symbolically.  For example, consider a binary tree:

    struct node {
        struct node* left;
        struct node* right;
        int data;
    }

Unlike in some previous symbolic execution tools (e.g., CUTE), CREST cannot 
treat the entire tree as 
symbolic and solve for a whole tree structure needed to cover some path or 
branch.

 -- Jacob

Original comment by [email protected] on 29 Mar 2010 at 8:12

from crest.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024

CREST does not have any special handling for enums.  enums can sometimes be 
treated as integers -- e.g.:

    enum example {
        A, B, C, D, E, F;
    } letter;

    int main(void) {
        letter x;
        CREST_int(x);
        if (x < A || x > F)
            exit(0);
        ...
    }

This approach is less effective when the enumerated values are not contiguous.

 -- Jacob


Original comment by [email protected] on 29 Mar 2010 at 8:18

from crest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.