model-checker.git
8 years agoWork around changes in newer versions of glibc
bdemsky [Thu, 24 Nov 2016 20:40:03 +0000 (12:40 -0800)]
Work around changes in newer versions of glibc

8 years agobug in fence support fixed
bdemsky [Wed, 24 Feb 2016 00:07:39 +0000 (16:07 -0800)]
bug in fence support fixed

9 years agoIncrease size of bootstrap bytes as some Linux distributions need more space.
bdemsky [Thu, 17 Dec 2015 08:37:52 +0000 (00:37 -0800)]
Increase size of bootstrap bytes as some Linux distributions need more space.

9 years agoedits
Peizhao Ou [Wed, 9 Sep 2015 18:47:28 +0000 (11:47 -0700)]
edits

9 years agoAdd SCFence analysis oopsla2015
bdemsky [Tue, 4 Aug 2015 18:22:44 +0000 (11:22 -0700)]
Add SCFence analysis

9 years agobug fix for atomic adds/subtracts on pointers
bdemsky [Mon, 22 Jun 2015 18:47:36 +0000 (11:47 -0700)]
bug fix for atomic adds/subtracts on pointers

9 years agomove thread stack to thread allocator
bdemsky [Thu, 9 Apr 2015 06:03:47 +0000 (23:03 -0700)]
move thread stack to thread allocator

10 years agoSC Reads can read from things mo'd before the last sc write, they just can't happen...
bdemsky [Fri, 18 Jul 2014 21:59:59 +0000 (14:59 -0700)]
SC Reads can read from things mo'd before the last sc write, they just can't happen before it

10 years agoBug fixes from running Coverity
bdemsky [Tue, 6 May 2014 20:13:36 +0000 (16:13 -0400)]
Bug fixes from running Coverity

10 years agofix signed/unsigned warning
bdemsky [Tue, 6 May 2014 17:25:57 +0000 (13:25 -0400)]
fix signed/unsigned warning

10 years agobug fix with missing coherence condition for promises
bdemsky [Wed, 16 Apr 2014 22:01:00 +0000 (15:01 -0700)]
bug fix with missing coherence condition for promises

10 years agoBug fix for broken treatment of promises + coherence based pruning to regain pruning...
bdemsky [Sat, 25 Jan 2014 22:11:22 +0000 (14:11 -0800)]
Bug fix for broken treatment of promises + coherence based pruning to regain pruning lost by bug fix

10 years agoSupport for -x option
bdemsky [Sat, 25 Jan 2014 22:07:08 +0000 (14:07 -0800)]
Support for -x option

10 years agoAnnotation Support
bdemsky [Sat, 25 Jan 2014 22:04:13 +0000 (14:04 -0800)]
Annotation Support

11 years agoMerge remote-tracking branch 'origin/master'
Brian Norris [Wed, 4 Sep 2013 02:19:25 +0000 (19:19 -0700)]
Merge remote-tracking branch 'origin/master'

11 years agorun.sh: support running from a different directory
Brian Norris [Wed, 4 Sep 2013 02:03:44 +0000 (19:03 -0700)]
run.sh: support running from a different directory

11 years agoREADME.md: use HTML URL, not PHP
Brian Norris [Thu, 15 Aug 2013 19:04:59 +0000 (12:04 -0700)]
README.md: use HTML URL, not PHP

11 years agoREADME.md: move copyright down
Brian Norris [Wed, 14 Aug 2013 17:02:36 +0000 (10:02 -0700)]
README.md: move copyright down

11 years agoREADME.md: add detail for benchmarks
Brian Norris [Wed, 14 Aug 2013 17:01:08 +0000 (10:01 -0700)]
README.md: add detail for benchmarks

11 years agoREADME.md: improve wording
Brian Norris [Wed, 14 Aug 2013 16:59:03 +0000 (09:59 -0700)]
README.md: improve wording

11 years agoREADME.md: add more fairness notes
Brian Norris [Wed, 14 Aug 2013 06:29:20 +0000 (23:29 -0700)]
README.md: add more fairness notes

11 years agoMakefile: add README.pdf target
Brian Norris [Wed, 14 Aug 2013 06:24:13 +0000 (23:24 -0700)]
Makefile: add README.pdf target

Using pandoc:

  http://johnmacfarlane.net/pandoc/

11 years agoREADME.md: remove <pre></pre> tags
Brian Norris [Wed, 14 Aug 2013 05:38:39 +0000 (22:38 -0700)]
README.md: remove <pre></pre> tags

It's better to just use pure Markdown.

11 years agothreads: kill clang warnings about struct/class Thread
Brian Norris [Wed, 14 Aug 2013 05:16:20 +0000 (22:16 -0700)]
threads: kill clang warnings about struct/class Thread

We just need an opaque pointer for C, so we can retain the type safety
for C++ by conditionally compiling a '__thread_identifier' type as
'class Thread' for C++.

The warning:

  clang++ -MMD -MF .threads.o.d -fPIC -c threads.cc -Wall -g -O3 -Iinclude -I.
  In file included from schedule.cc:4:
  ./threads-model.h:41:1: warning: 'Thread' defined as a class here but previously declared as a struct [-Wmismatched-tags]
  class Thread {
  ^
  include/threads.h:9:1: note: did you mean class here?
  struct Thread; /* actually, class; but this is safe */
  ^~~~~~
  class

11 years agomalloc: modify compiler warning workarounds
Brian Norris [Wed, 14 Aug 2013 05:05:23 +0000 (22:05 -0700)]
malloc: modify compiler warning workarounds

clang will complain when (in a function like this) we try to silence
"unused" warnings with a self-assignment. It's equivalently useless to
just cast to (void), and I think it will still silence the warning it
was originally trying to silence.

11 years agoimpatomic: silence more clang warnings
Brian Norris [Wed, 14 Aug 2013 04:51:56 +0000 (21:51 -0700)]
impatomic: silence more clang warnings

These 'return' values produce unused value warnings when the value
returned by _ATOMIC_STORE_, _ATOMIC_INIT_, and _ATOMIC_MODIFY_ aren't
used. Silence these warnings (but leave the ones for _ATOMIC_LOAD_)
because we expect that the result of RMW's or stores may rightly be
discarded in many cases.

11 years agotest: silence some unused-value warnings
Brian Norris [Wed, 14 Aug 2013 04:49:55 +0000 (21:49 -0700)]
test: silence some unused-value warnings

clang gives some warnings for unused values, like the following:

  clang -MMD -MF ./.rmw2prog.o.d -o rmw2prog.o rmw2prog.c -Wall -g -O3 -I.. -I../include -L.. -lmodel
  nestedpromise.c:14:2: warning: expression result unused [-Wunused-value]
          atomic_load_explicit(&z, memory_order_relaxed); // this is only for schedule control
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../include/impatomic.h:2901:46: note: expanded from:
  #define atomic_load_explicit( __a__, __x__ ) \
                                               ^
  ../include/impatomic.h:85:17: note: expanded from:
                  __r__; })
                  ^~~~~
  1 warning generated.

11 years agoREADME.md: have to include our headers
Brian Norris [Wed, 14 Aug 2013 04:16:34 +0000 (21:16 -0700)]
README.md: have to include our headers

11 years agoREADME.md: reverse store/load
Brian Norris [Wed, 14 Aug 2013 04:13:14 +0000 (21:13 -0700)]
README.md: reverse store/load

11 years agoREADME.md: add supported API section
Brian Norris [Wed, 14 Aug 2013 04:09:30 +0000 (21:09 -0700)]
README.md: add supported API section

11 years agoREADME.md: add End of Execution Summary section
Brian Norris [Wed, 14 Aug 2013 01:00:56 +0000 (18:00 -0700)]
README.md: add End of Execution Summary section

11 years agoREADME.md: reporting multiple data races for the same access?
Brian Norris [Wed, 14 Aug 2013 00:33:22 +0000 (17:33 -0700)]
README.md: reporting multiple data races for the same access?

11 years agomodel: only print 'Total nodes' for verbose printing
Brian Norris [Wed, 14 Aug 2013 00:32:43 +0000 (17:32 -0700)]
model: only print 'Total nodes' for verbose printing

Average users don't need to see this.

11 years agoREADME.md: reformat
Brian Norris [Wed, 14 Aug 2013 00:13:55 +0000 (17:13 -0700)]
README.md: reformat

11 years agoREADME.md: add linux locks example
Brian Norris [Wed, 14 Aug 2013 00:12:06 +0000 (17:12 -0700)]
README.md: add linux locks example

11 years agoREADME.md: update title
Brian Norris [Wed, 14 Aug 2013 00:08:34 +0000 (17:08 -0700)]
README.md: update title

11 years agoREADME.md: point non-git users to gitweb
Brian Norris [Wed, 14 Aug 2013 00:04:24 +0000 (17:04 -0700)]
README.md: point non-git users to gitweb

11 years agoREADME.md: push URLs down to See Also section
Brian Norris [Tue, 13 Aug 2013 23:50:17 +0000 (16:50 -0700)]
README.md: push URLs down to See Also section

11 years agoREADME.md: add extra blank lines
Brian Norris [Tue, 13 Aug 2013 23:50:03 +0000 (16:50 -0700)]
README.md: add extra blank lines

11 years agoREADME.md: update much of the README
Brian Norris [Tue, 13 Aug 2013 23:43:08 +0000 (16:43 -0700)]
README.md: update much of the README

Integrate some info from the website and the OOPSLA artifact submission,
and improve the whole thing to be a single reference document.

11 years agomain: suggest thrd_yield() for -y fairness
Brian Norris [Tue, 13 Aug 2013 22:42:47 +0000 (15:42 -0700)]
main: suggest thrd_yield() for -y fairness

11 years agorun.sh: set Mac OSX DYLD_LIBRARY_PATH
Brian Norris [Tue, 13 Aug 2013 22:34:22 +0000 (15:34 -0700)]
run.sh: set Mac OSX DYLD_LIBRARY_PATH

DYLD_LIBRARY_PATH is the Mac OSX equivalent of Unix LD_LIBRARY_PATH.

11 years agodelete README symlink
Brian Norris [Tue, 13 Aug 2013 22:11:12 +0000 (15:11 -0700)]
delete README symlink

Readers should just look at README.md, or the generated README.html.

11 years agoLICENSE: add newline at end of file
Brian Norris [Tue, 13 Aug 2013 22:09:36 +0000 (15:09 -0700)]
LICENSE: add newline at end of file

11 years agotest: insanesync: consolidate lines oopsla2013-final
Brian Norris [Wed, 17 Jul 2013 02:31:20 +0000 (19:31 -0700)]
test: insanesync: consolidate lines

11 years agotest: insanesync: remove unnecessary casting
Brian Norris [Wed, 17 Jul 2013 02:28:35 +0000 (19:28 -0700)]
test: insanesync: remove unnecessary casting

11 years agotest: insanesync: convert to C++
Brian Norris [Wed, 17 Jul 2013 02:22:52 +0000 (19:22 -0700)]
test: insanesync: convert to C++

The syntax is clearer this way, and I can make it more consistent with
the other satisfaction cycle examples I wrote.

11 years agotest: addr-satcycle: add new address-based sat. cycle example
Brian Norris [Tue, 16 Jul 2013 20:22:43 +0000 (13:22 -0700)]
test: addr-satcycle: add new address-based sat. cycle example

See the comments and assertion in the program for the description.

11 years agorun.sh: don't silently ignore a non-executable file argument
Brian Norris [Wed, 10 Jul 2013 01:44:19 +0000 (18:44 -0700)]
run.sh: don't silently ignore a non-executable file argument

If we use a file which exists but is not executable as an argument to
run.sh, run.sh will silently ignore it. This is wrong.

Instead, just check for existence of the file (or directory), and error
out with a "Permission denied" message later, when we try to run it.

11 years agotest: mo-satcycle: add new MO satisfaction cycle example
Brian Norris [Wed, 10 Jul 2013 01:33:33 +0000 (18:33 -0700)]
test: mo-satcycle: add new MO satisfaction cycle example

See the comments at the top of the file.

11 years agotest: uninit: typo
Brian Norris [Wed, 10 Jul 2013 01:18:07 +0000 (18:18 -0700)]
test: uninit: typo

11 years agoexecution: remove redundant condition, reword doc for promises_may_allow
Brian Norris [Thu, 6 Jun 2013 00:25:30 +0000 (17:25 -0700)]
execution: remove redundant condition, reword doc for promises_may_allow

promises_may_allow() doesn't actually need to check for
promises.empty(), as the loop bounds take care of that. In the same
spirit, we can reword the comments/documentation so that

 (1) it is not redundant (condition (a) is subsumed by (b))
 (2) we are more explicit about what we actually mean by "crossing
     promises"

11 years agoexecution: document additional mo_may_allow() optimization
Brian Norris [Thu, 6 Jun 2013 00:14:32 +0000 (17:14 -0700)]
execution: document additional mo_may_allow() optimization

mo_may_allow() actually performs two optimizations, not just the one
that is documented in its header.

11 years agoexecution: document promises list; it is assumed to be sorted
Brian Norris [Thu, 6 Jun 2013 00:13:55 +0000 (17:13 -0700)]
execution: document promises list; it is assumed to be sorted

Document the assumptions made about the 'promises' list.

11 years agomodel: remove redundant code (is_enabled)
Brian Norris [Wed, 5 Jun 2013 23:31:41 +0000 (16:31 -0700)]
model: remove redundant code (is_enabled)

These members should just stay implemented in execution.{cc,h}, not
model.{cc,h}.

11 years agodocs: improve Doxygen documentation
Brian Norris [Wed, 5 Jun 2013 02:06:35 +0000 (19:06 -0700)]
docs: improve Doxygen documentation

* Fix the PROJECT_NAME title

* Add include/ to documentation

* Include our generated README.html as the main page in the docs

  - NOTE: Doxygen 1.8.0+ can directly generate documentation from the
    Markdown format (i.e., README.md). This may be useful in the future
    to get more integrated support, but for now, the
    separately-generated HTML is good enough

11 years agoREADME: use markdown format for direct URL link
Brian Norris [Wed, 5 Jun 2013 01:20:42 +0000 (18:20 -0700)]
README: use markdown format for direct URL link

11 years agoREADME: more formatting, correct statement about bench.sh
Brian Norris [Tue, 4 Jun 2013 23:32:39 +0000 (16:32 -0700)]
README: more formatting, correct statement about bench.sh

11 years agoREADME: a few more formatting issues
Brian Norris [Tue, 4 Jun 2013 23:30:00 +0000 (16:30 -0700)]
README: a few more formatting issues

11 years agoMerge branch 'markdown'
Brian Norris [Tue, 4 Jun 2013 23:14:18 +0000 (16:14 -0700)]
Merge branch 'markdown'

11 years agoREADME: add more `code` formatting
Brian Norris [Tue, 4 Jun 2013 23:04:56 +0000 (16:04 -0700)]
README: add more `code` formatting

11 years agoAdd example from java showing legit satisfaction cycle
Brian Demsky [Mon, 3 Jun 2013 19:02:19 +0000 (12:02 -0700)]
Add example from java showing legit satisfaction cycle

11 years ago.gitignore: fixup VIM swapfile ignore
Brian Norris [Sun, 2 Jun 2013 00:07:37 +0000 (17:07 -0700)]
.gitignore: fixup VIM swapfile ignore

11 years agoREADME: convert to Markdown format
Brian Norris [Sun, 2 Jun 2013 00:06:33 +0000 (17:06 -0700)]
README: convert to Markdown format

Now we can easily generate an HTML version, while retaining readability
as a simple text file.

11 years agoMarkdown: add Markdown tool
Brian Norris [Sun, 2 Jun 2013 00:04:41 +0000 (17:04 -0700)]
Markdown: add Markdown tool

For conversion of Markdown format to HTML.

From:

  http://daringfireball.net/projects/markdown/

License terms are easy to comply with (see doc/Markdown/License.text).

11 years agoREADME: add bit on MODEL_ASSERT() macro oopsla2013
Brian Norris [Sat, 1 Jun 2013 23:08:16 +0000 (16:08 -0700)]
README: add bit on MODEL_ASSERT() macro

11 years agoREADME: extra "from"
Brian Norris [Sat, 1 Jun 2013 00:46:34 +0000 (17:46 -0700)]
README: extra "from"

11 years agoREADME: updated help text
Brian Norris [Sat, 1 Jun 2013 00:44:03 +0000 (17:44 -0700)]
README: updated help text

11 years agomodel: cosmetic output improvements
Brian Norris [Fri, 31 May 2013 23:50:40 +0000 (16:50 -0700)]
model: cosmetic output improvements

A few cosmetic improvements:

* Provide more uniform newlines

* Clearly show which output is produced by the test program

* Provide clear heading to show which output belongs to which program
  execution

* Label the program trace if it has bugs

I'm sure there's more that could be improved, but that's it for now.

11 years agoparams: add multi-level verbosity
Brian Norris [Fri, 31 May 2013 23:45:42 +0000 (16:45 -0700)]
params: add multi-level verbosity

Now we can have --verbose=[012], so that the default (0) is still quiet,
the easy verbose flag (--verbose or -v) is noisy but useful (1), and if
you really want some extra noise, you can choose (2). Right now, there
is some minimal extra noise in (2), but this may be expanded if we want
more run-time debuggability, rather than recompiling with 'make debug'.

11 years agoREADME: add LICENSE note
Brian Norris [Fri, 31 May 2013 22:37:30 +0000 (15:37 -0700)]
README: add LICENSE note

11 years agoREADME: improve sections, provide better intro
Brian Norris [Fri, 31 May 2013 22:32:39 +0000 (15:32 -0700)]
README: improve sections, provide better intro

11 years agoMerge remote-tracking branch 'origin/master'
Brian Norris [Wed, 29 May 2013 02:03:14 +0000 (19:03 -0700)]
Merge remote-tracking branch 'origin/master'

11 years agoREADME: add a few sections
Brian Norris [Wed, 29 May 2013 02:01:52 +0000 (19:01 -0700)]
README: add a few sections

11 years agoexecution: reformat execution traces
Brian Norris [Wed, 29 May 2013 01:32:19 +0000 (18:32 -0700)]
execution: reformat execution traces

The execution printouts were getting too wide and weren't too easy to
read. This improves the situation marginally.

11 years agoREADME: update help text
Brian Norris [Wed, 29 May 2013 01:07:35 +0000 (18:07 -0700)]
README: update help text

11 years agomain: 'plug ins' -> 'plugins'
Brian Norris [Wed, 29 May 2013 01:05:00 +0000 (18:05 -0700)]
main: 'plug ins' -> 'plugins'

11 years agotests: Makefile: add dependency information
Brian Norris [Wed, 29 May 2013 00:59:58 +0000 (17:59 -0700)]
tests: Makefile: add dependency information

Now tests will be re-compiled whenever their include files are modified.

11 years agoMakefile: remove more deferred variables
Brian Norris [Wed, 29 May 2013 00:31:44 +0000 (17:31 -0700)]
Makefile: remove more deferred variables

11 years agotests: Makefile: eliminate (some) recursive make
Brian Norris [Wed, 29 May 2013 00:01:47 +0000 (17:01 -0700)]
tests: Makefile: eliminate (some) recursive make

11 years agoexecution: bugfix - resolved promises should propagate synchronization
Brian Norris [Wed, 8 May 2013 17:09:52 +0000 (10:09 -0700)]
execution: bugfix - resolved promises should propagate synchronization

A new write ModelAction may resolve a Promise, completing a release
sequence and updating the read's clock vector. This update should be
propagated to any ModelAction later in the execution order which had
previously "happened after" the read.

11 years agoexecution: refactor common CV propagation into its own function
Brian Norris [Wed, 8 May 2013 17:05:44 +0000 (10:05 -0700)]
execution: refactor common CV propagation into its own function

There are a few occasions where we want to "fixup" a series of clock
vectors after establishing lazy synchronization (and one place where we
currently have a bug). Refactor this out to its own function so I can
reuse it elsewhere.

11 years agotypos
Brian Demsky [Mon, 6 May 2013 23:32:41 +0000 (16:32 -0700)]
typos

11 years agoprint some stats in SC Analysis
Brian Demsky [Mon, 6 May 2013 23:28:44 +0000 (16:28 -0700)]
print some stats in SC Analysis

11 years agodocument and extend trace analysis interface
Brian Demsky [Mon, 6 May 2013 20:25:00 +0000 (13:25 -0700)]
document and extend trace analysis interface

11 years agocleanup plugin interface a little more.
Brian Demsky [Mon, 6 May 2013 20:06:53 +0000 (13:06 -0700)]
cleanup plugin interface a little more.
add support for options for SCAnalysis

11 years agoadd support for analysis with options
Brian Demsky [Mon, 6 May 2013 10:05:50 +0000 (03:05 -0700)]
add support for analysis with options

11 years agoadd traceanalysis support
Brian Demsky [Mon, 6 May 2013 09:50:49 +0000 (02:50 -0700)]
add traceanalysis support

11 years agoMerge demsky's SC analysis fixup
Brian Norris [Fri, 3 May 2013 16:51:20 +0000 (09:51 -0700)]
Merge demsky's SC analysis fixup

11 years agoscanalysis: don't rely on greedy search
Brian Demsky [Fri, 26 Apr 2013 23:50:30 +0000 (16:50 -0700)]
scanalysis: don't rely on greedy search

Fix infrastructure to use search in cases where a greedy search is not
sufficient.

11 years agoscanalysis: fixup spacing
Brian Norris [Fri, 26 Apr 2013 22:37:36 +0000 (15:37 -0700)]
scanalysis: fixup spacing

11 years agotest: sctest: fix warnings
Brian Norris [Fri, 26 Apr 2013 22:29:26 +0000 (15:29 -0700)]
test: sctest: fix warnings

Perhaps we wanted to print these variables? Anyway, just make them
global, so the warnings will go away:

  gcc -o sctest.o sctest.c -Wall -g -O3 -I.. -I../include -L.. -lmodel
  sctest.c: In function ‘b’:
  sctest.c:20:6: warning: unused variable ‘r1’ [-Wunused-variable]
  sctest.c: In function ‘c’:
  sctest.c:26:6: warning: unused variable ‘r2’ [-Wunused-variable]
  sctest.c: In function ‘d’:
  sctest.c:33:6: warning: unused variable ‘r3’ [-Wunused-variable]

11 years agoFix bug that prevents graph generation from compiling.
Brian Demsky [Fri, 26 Apr 2013 20:46:35 +0000 (13:46 -0700)]
Fix bug that prevents graph generation from compiling.
Check in test case that shows theorem that I've been trying to prove for 2 days is in fact not true (and thus difficult to prove).

11 years agoaction: improve "unintialized load" bug print
Brian Norris [Wed, 24 Apr 2013 17:28:34 +0000 (10:28 -0700)]
action: improve "unintialized load" bug print

11 years agoaction: add get_{type,mo}_str() accessors
Brian Norris [Wed, 24 Apr 2013 17:11:16 +0000 (10:11 -0700)]
action: add get_{type,mo}_str() accessors

The big switch/case statements can be shortened and separated into their
own functions.

11 years agoMerge remote-tracking branch 'private/master'
Brian Norris [Tue, 23 Apr 2013 01:43:20 +0000 (18:43 -0700)]
Merge remote-tracking branch 'private/master'

11 years agoREADME: update text
Brian Norris [Tue, 23 Apr 2013 01:42:51 +0000 (18:42 -0700)]
README: update text

11 years agobug...will sometimes print SC traces in a bad order
Brian Demsky [Tue, 23 Apr 2013 00:19:25 +0000 (17:19 -0700)]
bug...will sometimes print SC traces in a bad order

11 years agocleanup printing
Brian Demsky [Mon, 22 Apr 2013 23:00:56 +0000 (16:00 -0700)]
cleanup printing

11 years agoRework how we present non-SC traces...previous presentation didn't make reasons clear.
Brian Demsky [Mon, 22 Apr 2013 22:59:22 +0000 (15:59 -0700)]
Rework how we present non-SC traces...previous presentation didn't make reasons clear.