Skip to content

Commit

Permalink
Merge branch 'master' of github.com:UCSD-PL/algorithmic-software-veri…
Browse files Browse the repository at this point in the history
…fication

asdasd
  • Loading branch information
ranjitjhala committed May 2, 2013
2 parents ddb91ad + 71e94ea commit e2e9a09
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
*.log
*.pyc
*.swp
*.swo
*.vc
/assignments/*/tests/logs
/assignments/*/dist*
Empty file.
8 changes: 4 additions & 4 deletions assignments/hw1-nanojs/tests/neg/locks-loop-fun.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ function main(){
var l = create();

while (0 < n){
if (0 < flag){
l = lock(l)
if (0 < flag){
l = acquire(l)
}
if (0 <= flag){
l = unlock(l)
if (0 <= flag){
l = release(l)
}
n = n - 1;
}
Expand Down
4 changes: 2 additions & 2 deletions assignments/hw1-nanojs/tests/neg/locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function release(l){
function main(){
var l = create();
var x = random();
if (0 < x){ l = lock(l); }
if (0 <= x){ l = unlock(l); }
if (0 < x){ l = acquire(l); }
if (0 <= x){ l = release(l); }
assert(l == 0);
}

Expand Down
17 changes: 0 additions & 17 deletions assignments/hw1-nanojs/tests/pos/foo-fun.js

This file was deleted.

0 comments on commit e2e9a09

Please sign in to comment.