GithubHelp home page GithubHelp logo

uebersetzerbau-ss23-tests's People

Contributors

sascha8a avatar

Stargazers

 avatar

Watchers

 avatar

uebersetzerbau-ss23-tests's Issues

Infinite loop in test for codeb

Laut meinem Verständnis der Angabe verursacht Testfall u12023145_30.0 eine unendliche Schleife:

int f(object o, int a)
cond
a # 10 -> a<-11; continue;
a # 10 -> a<-12; continue;
end;

RET(c.f(&o, 10) == 10 && c.f(&o, 20) == 12);

Aus der Angabe:

Bei einem Cond wird das Expr des ersten enthaltenen Guarded ausgewertet; wenn das Resultat ungleich 0 ist, werden die enthaltenen Stats ausgeführt, ansonsten wird mit dem nächsten Guarded weitergemacht.

Wenn in einem Guarded das Ende der Stats erreicht wird, springt continue an den Anfang des Conds, break an das Ende.

Wenn a ungleich 20 ist, wird a zu 11 und das continue bewirkt, dass der control flow zum Anfang der condition springt. Dann wird wieder die erste Guarded Expression ausgewertet, 11 != 20, also wird wieder a auf 11 gesetzt und der control flow springt wieder an den Anfang der condition.

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.