- Jan 27, 2019
-
-
Matthew Fernandez authored
Github: related to #106 "comparison of complex types"
-
Matthew Fernandez authored
"That's why I got this trace buster buster." With complex types being compared we don't get the double bracketing issue that upsets compilers, so disable this hack. Github: related to #106 "comparison of complex types"
-
Matthew Fernandez authored
Github: related to #106 "comparison of complex types"
-
- Jan 22, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
This applies the same fix as recently done to rules, to startstates. It basically copy and pastes the same code, so could probably do with some refactoring in future. Github: closes #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
This implements the matching code to 37f74279 for the machine readable output. Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
This fixes an issue where counterexample traces that traversed rulesets did not show the values of the parameters to those rulesets. Without these values, debugging such a counterexample trace is virtually impossible. I'm not sure whether this was an oversight or intentional misfeature. The previous code in generate-model.cc (in particular the "<= rule_taken" comparison) implies that I was aware of the counterexample reporting treating all ruleset transitions identically, but I'm not sure if I intended this decision to be a long term behaviour or this was more like an unannotated TODO. Note that this commit does not fully close #105, because startstates within rulesets are still reported without their parameter values. Similarly, the machine readable output shows no parameter values. Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
Github: related to #105 "missing parameters in ruleset trace"
-
Matthew Fernandez authored
It's possible to write quantifiers using ad hoc types that don't have constant bounds. E.g. a range whose upper or lower limit is the value of a local variable. This is generally not a problem, but for the quantifiers used in rulesets we require these bounds to be constant in order to know the length of the loop iteration (the number of contained rules when flattened) in order to print the rule correctly during counterexample trace. This adds some supporting code working towards this. Github: related to #105 "missing parameters in ruleset trace"
-
- Jan 21, 2019
-
-
Matthew Fernandez authored
This never mattered previously, but when it comes to printing counterexample traces the order of the quantifiers determines the order we print them in. This could also conceivably have caused us to find a difference counterexample trace to CMurphi's BFS, but unlikely users would have noticed this discrepancy.
-
Matthew Fernandez authored
-
Matthew Fernandez authored
This reverts commit 63694489.
-
Matthew Fernandez authored
-
Matthew Fernandez authored
Rather than trying to dance around what the Debian packaging scripts expect/do, we'll introduce a cleaner way to override the version in an upcoming commit. This reverts commit 6270a992.
-
- Jan 19, 2019
-
-
Matthew Fernandez authored
The Debian packaging process using git-buildpackage offers the ability to create a Debian version tag, which looks well aligned with what we're trying to achieve here.
-
- Jan 17, 2019
-
-
Matthew Fernandez authored
It looks like the Debian package will end up with a version number like v2019.12.01-1, so we now recognise such strings as valid version tags too. Github: related to #85 "release beta"
-
- Jan 15, 2019
-
-
Matthew Fernandez authored
This was recommended by Debian packaging, but seems like a sensible thing to apply everywhere.
-
- Jan 13, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
I did not realise the semantics of this directive were to timeout the command after 30 minutes of execution, rather than 30 minutes of no output. Hopefully this attempt is more successful.
-
Matthew Fernandez authored
Travis times out a build that doesn't produce output for 10 minutes. Ordinarily this shouldn't be a problem for us, but it seems Travis' build environment is so heavily loaded that some of the regression tests take over 10 minutes. This commit extends the timeout to 30 minutes.
-
- Jan 12, 2019
-
-
Matthew Fernandez authored
Sigh. Regression testing Homebrew on macOS requires so much babysitting, I am surprised users tolerate it. It seems less of a package manager and more of a Russian roulette simulator.
-
- Jan 11, 2019
-
-
Matthew Fernandez authored
-
- Jan 10, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
It seems near impossible to build with -pedantic using GCC 5 on Linux. To avoid locking out users in this situation, drop -pedantic. This reverts commit 958f873b.
-
- Jan 09, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
-
Matthew Fernandez authored
Technically not compatible with C++11.
-
Matthew Fernandez authored
This is one of Debian's lintian rules, but we may as well apply it to all platforms.
-
- Jan 06, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
-
Matthew Fernandez authored
-
Matthew Fernandez authored
-
- Jan 05, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
Due to the reasons explained in the source comments, an atomic read of a 128-bit value on x86-64 was implemented with the idiom: v = __sync_val_compare_and_swap(p, *p, *p); In a race-free scenario, this CAS succeeds. I.e. The existing value of `p` matches the expected value that is passed in and the new value -- which is identical -- is written back. So far, so good. In a racing scenario, the value read through the expression `*p` might *not* match the value read during the CAS due to another thread changing the value in-between. Still fine; the CAS fails, but all we were really after was a read of the current value, which we receive in either case. A third scenario -- which is also OK -- involves a torn read. The expression `*p` evaluates to something that was never the actual value at this address, but rather part of the value at one instance in time and the other part belonging to a second instance in time. Why is this still OK? Well, the CAS either fails (expected case) if the torn read does not match the observed value or succeeds if by coincidence the torn read matches a legitimate value later written into this location. Both cases still yield a correct atomic read of the current value. "OK, cut to the chase, where's the problem?" Consider a compiler that does not optimize the two `*p` expressions into a single read of the memory location. The location is read *twice* before performing the CAS. Ignoring torn reads (which are still possible and further complicate the possible scenarios), it is possible for the first `*p` to evaluate to a value present at one point in time and the second `*p` to evaluate to a value present at a *previous* point in time. "But surely the second expression can't see a value *before* the first?" You would think so, but the order of evaluation of arguments to a function in C is implementation defined, so it is perfectly legal for a compiler to generate code that evaluates the second expression before the first. "What's the damage?" It is possible for this CAS to inadvertently restore a stale value to the memory location while reading from it. To be clear, this was not observed on an x86-64 platform and it seems like it would require both bad luck and a pathological compiler implementation, but your edge case is someone else's happy path. We avoid this whole conundrum by using a static constant that will cause deterministic success or failure without side effects.
-
- Jan 03, 2019
-
-
Matthew Fernandez authored
-
Matthew Fernandez authored
-