Code Monkey home page Code Monkey logo

Comments (5)

XLiZHI avatar XLiZHI commented on June 2, 2024 1

After my initial investigate, the simplified code is as follows:

What's the original code?

regression/esbmc-cpp/list/list_sort

from esbmc.

fbrausse avatar fbrausse commented on June 2, 2024 1

@XLiZHI Your PR fixed this, didn't it?

from esbmc.

fbrausse avatar fbrausse commented on June 2, 2024

After my initial investigate, the simplified code is as follows:

What's the original code?

from esbmc.

XLiZHI avatar XLiZHI commented on June 2, 2024

commit: a86f3cc

B (c:@S@B@F@B#):
        // 20 file main9.cpp line 1 column 8 function B
        END_FUNCTION // B
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

list (c:@S@list@F@list#):
        // 21 
        FUNCTION_CALL:  B(&this->list[0])
        // 22 file main9.cpp line 5 column 8 function list
        END_FUNCTION // list
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

main (c:@F@main#):
        // 23 no location
        list mylist;
        // 24 
        FUNCTION_CALL:  list(&mylist)
        // 25 file main9.cpp line 13 column 3 function main
        RETURN: 0
        // 26 file main9.cpp line 14 column 1 function main
        END_FUNCTION // main

master:

B (c:@S@B@F@B#):
        // 20 file main9.cpp line 1 column 8 function B
        END_FUNCTION // B
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

list (c:@S@list@F@list#):
        // 21 file main9.cpp line 5 column 8 function list
        struct [10] tmp$1;
        // 22 file main9.cpp line 5 column 8 function list
        tmp$1=NONDET(struct [10]);
        // 23 
        FUNCTION_CALL:  B(&tmp$1[0])
        // 24 
        this->list=tmp$1;
        // 25 file main9.cpp line 5 column 8 function list
        dead tmp$1;
        // 26 file main9.cpp line 5 column 8 function list
        END_FUNCTION // list
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

main (c:@F@main#):
        // 27 file main9.cpp line 12 column 3 function main
        list mylist;
        // 28 file main9.cpp line 12 column 8 function main
        list tmp$1;
        // 29 file main9.cpp line 12 column 8 function main
        tmp$1=NONDET(struct);
        // 30 
        FUNCTION_CALL:  list(&tmp$1)
        // 31 file main9.cpp line 12 column 3 function main
        mylist=tmp$1;
        // 32 file main9.cpp line 13 column 3 function main
        RETURN: 0
        // 33 file main9.cpp line 14 column 1 function main
        END_FUNCTION // main

from esbmc.

XLiZHI avatar XLiZHI commented on June 2, 2024

close via #1736

from esbmc.

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.