07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18 Run-Time Verification 531<br />

Monitor [ML97] enables the specification of Real-time Logic [JG90] assertions.<br />

Assertion mechanisms have been def<strong>in</strong>ed also for other languages such as Eiffel<br />

[Mey92] (the language where assertions were orig<strong>in</strong>ally <strong>in</strong>troduced), C [TJ98]<br />

and Ada [SM93].<br />

class MyClass {<br />

static void foo(<strong>in</strong>t x) {<br />

/*TRBeg<strong>in</strong><br />

TRAssert{ Always{x < 0} } =><br />

{System.out.pr<strong>in</strong>tln("Violated the assertion x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!