source: CIVL/examples/library/civlc/assertBad.cvl

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 241 bytes
RevLine 
[5d1eb5a]1#include<civlc.cvh>
2
[b881a0e]3int check(int a, int b, int c, int d){
[fd6d345]4 $assert((a+b) == (c+d), "assertion failed!\n");
[b881a0e]5}
6
7int thread($proc x){
8 $wait(x);
9}
10
[5d1eb5a]11int main(){
12 int a = 1, b = 2, c = 3, d = 4;
13
[b881a0e]14 $spawn thread($self);
15 check(a,b,c,d);
[5d1eb5a]16}
17
Note: See TracBrowser for help on using the repository browser.