Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
13 months agoMake the sendsend tests at least fail fast to not hinder my workflow
Martin Quinson [Sun, 12 Mar 2023 21:35:53 +0000 (22:35 +0100)]
Make the sendsend tests at least fail fast to not hinder my workflow

13 months agoMC: rename remote/RemoteProcess to sosp/RemoteProcessMemory
Martin Quinson [Sun, 12 Mar 2023 21:16:16 +0000 (22:16 +0100)]
MC: rename remote/RemoteProcess to sosp/RemoteProcessMemory

13 months agoClean leftovers
Martin Quinson [Sun, 12 Mar 2023 20:50:18 +0000 (21:50 +0100)]
Clean leftovers

13 months agoMC: stop reading maxpid in memory, but ask it over the network instead
Martin Quinson [Sat, 11 Mar 2023 00:05:31 +0000 (01:05 +0100)]
MC: stop reading maxpid in memory, but ask it over the network instead

13 months agoOne use less of the global mc_model_checker
Martin Quinson [Fri, 10 Mar 2023 22:44:05 +0000 (23:44 +0100)]
One use less of the global mc_model_checker

13 months agoThis seems to reduce the amount of failure, but I don't know why :(
Martin Quinson [Fri, 10 Mar 2023 22:34:07 +0000 (23:34 +0100)]
This seems to reduce the amount of failure, but I don't know why :(

Not sure I know what I'm doing here :(

13 months agoFix build with -D_GLIBCXX_DEBUG [-Werror=range-loop-construct].
Arnaud Giersch [Sun, 12 Mar 2023 15:16:23 +0000 (16:16 +0100)]
Fix build with -D_GLIBCXX_DEBUG [-Werror=range-loop-construct].

13 months agoFix assert: min and max are both included in interval for MC_random.
Arnaud Giersch [Fri, 10 Mar 2023 16:08:07 +0000 (17:08 +0100)]
Fix assert: min and max are both included in interval for MC_random.

[ci-skip]

13 months agoMerge branch 'udpor-phase5' into 'master'
Martin Quinson [Fri, 10 Mar 2023 21:25:15 +0000 (21:25 +0000)]
Merge branch 'udpor-phase5' into 'master'

Phase 5 of UDPOR Integration: Implementing Conflict Checks

See merge request simgrid/simgrid!138

13 months agoTry to avoid a segfault on assert message
Martin Quinson [Fri, 10 Mar 2023 18:48:33 +0000 (19:48 +0100)]
Try to avoid a segfault on assert message

This is an attempt to fix https://framagit.org/simgrid/simgrid/-/issues/118

13 months agoAdd first test for immediate conflicts edge case
Maxwell Pirtle [Fri, 10 Mar 2023 10:15:36 +0000 (11:15 +0100)]
Add first test for immediate conflicts edge case

Detecting immediate conflicts is much more subtle
than detecting conflicts in general. The subtlety
lies in the fact that the collection of events
in the shared history of the two events under
consideration must itself be a valid configuration:
in other words, the events would not be considered
to be in immediate conflict if somewhere in their
history lies a conflict.

13 months agoAdd first batch of tests for conflict detection among events
Maxwell Pirtle [Fri, 10 Mar 2023 09:06:33 +0000 (10:06 +0100)]
Add first batch of tests for conflict detection among events

Detecting conflicts among a collection of events
is super critical to the proper functioning of
UDPOR (it is primarily used to compute en(C) for
a given configuration). Testing conflicts among
events in an event structure is very important.
Subsequent commits and MRs will continue to add
tests for detecting conflicts among collections
of events.

Detecting immediate conflicts is also critical
when it comes to determining which events UDPOR
decides to keep around after continuing its search.
Immediate conflicts are more subtle and should be
tested with great care.

13 months agore-fixed assert message with up-to-date configuration option name
Henri Casanova [Thu, 9 Mar 2023 19:08:18 +0000 (09:08 -1000)]
re-fixed assert message with up-to-date configuration option name

13 months agoAssert message fix
Henri Casanova [Thu, 9 Mar 2023 18:45:19 +0000 (08:45 -1000)]
Assert message fix

13 months agoAdd implementation for immediate conflicts
Maxwell Pirtle [Thu, 9 Mar 2023 14:34:25 +0000 (15:34 +0100)]
Add implementation for immediate conflicts

Two events are said to be in immediate conflict
if they are conflicting but if the removal of
either event from their shared history would
result in a conflict-free set. That is, if
the only conflict among the set of events in
the history of the two events `e` and `e'`
is between `e` and `e'`, then `e` and `e'`
are in immediate conflict

13 months agoRequire conflict-freedom in is_valid_configuration
Maxwell Pirtle [Thu, 9 Mar 2023 14:19:07 +0000 (15:19 +0100)]
Require conflict-freedom in is_valid_configuration

The method `EventSet::is_valid_configuration()`
was missing the condition that the set of events
need also be free of conflicts (in addition to
being causally closed)

13 months agoAdd src/.../udpor/udpor_tests_private.hpp to CMake
Maxwell Pirtle [Thu, 9 Mar 2023 13:18:56 +0000 (14:18 +0100)]
Add src/.../udpor/udpor_tests_private.hpp to CMake

13 months agoEager mode is for the first case only (thx adegomme).
Arnaud Giersch [Thu, 9 Mar 2023 13:18:32 +0000 (14:18 +0100)]
Eager mode is for the first case only (thx adegomme).

[ci-skip]

13 months agoAdd test to verify topological ordering of EventSet
Maxwell Pirtle [Thu, 9 Mar 2023 13:08:27 +0000 (14:08 +0100)]
Add test to verify topological ordering of EventSet

The topological ordering was moved into EventSet
in a prior commit since it is useful to order
events in an EventSet that reside outside of a
Configuration. This commit adds a stress test
that verifies that the topological orderings
of all possible subsets of a collection of
events obey the topological ordering invariant
after being ordered (in both directions)

13 months agoImprove doc for smpi/buffering.
Arnaud Giersch [Thu, 9 Mar 2023 10:36:49 +0000 (11:36 +0100)]
Improve doc for smpi/buffering.

Describe the behavior like for smpi/send-is-detached-thresh.

13 months agoFix asserts for when received size is 0 (message type is invalid).
Arnaud Giersch [Wed, 8 Mar 2023 22:15:18 +0000 (23:15 +0100)]
Fix asserts for when received size is 0 (message type is invalid).

13 months agoDepreciate unused functions s4u::Comm::copy_{buffer,pointer}_callback().
Arnaud Giersch [Wed, 8 Mar 2023 15:36:45 +0000 (16:36 +0100)]
Depreciate unused functions s4u::Comm::copy_{buffer,pointer}_callback().

13 months agoInline s4u::Comm::copy_pointer_callback which is the default callback.
Arnaud Giersch [Wed, 8 Mar 2023 15:36:13 +0000 (16:36 +0100)]
Inline s4u::Comm::copy_pointer_callback which is the default callback.

13 months agoBegin filling in computations of ex(C) and en(C)
Maxwell Pirtle [Wed, 8 Mar 2023 14:27:43 +0000 (15:27 +0100)]
Begin filling in computations of ex(C) and en(C)

This commit introduces the first steps towards
computing ex(C) and en(C) using many of the
additions of the previous phases. An important
part of the computation is so far missing, however,
viz. the determination of whether or not an action
`a` is enabled at some point in the past. We'll
need to decipher what's going on in tiny_simgrid
to fully determine what to do here; for now, we
simply ignore adding an event entirely and just
say that `a` was disabled at all points in the past.

13 months agoDepreciate ForcefulKillException::try_n_catch().
Arnaud Giersch [Wed, 8 Mar 2023 14:09:13 +0000 (15:09 +0100)]
Depreciate ForcefulKillException::try_n_catch().

It was used by the Java bindings.

13 months agoObvious typo.
Arnaud Giersch [Wed, 8 Mar 2023 13:23:00 +0000 (14:23 +0100)]
Obvious typo.

13 months agoFix logic for mutual conflict between two events
Maxwell Pirtle [Wed, 8 Mar 2023 13:11:39 +0000 (14:11 +0100)]
Fix logic for mutual conflict between two events

Prior to this commit, detecting whether two
events were in conflict involved looking at all
of the events with respect to all others. However,
you must instead *only* look at how the event `e`
and `e'` relate to the other event's history:
we wouldn't care if some other event is in conflict
with `e'` if `e` is not that event

13 months agoAdd conflict-free invariant check to Configuration
Maxwell Pirtle [Wed, 8 Mar 2023 12:12:00 +0000 (13:12 +0100)]
Add conflict-free invariant check to Configuration

When adding events to a configuration, we want to
ensure that the configuration remains both a)
causally closed and b) conflict-free. The latter
required that the tests be modified as they effectively
assumed that the transitions associated with each
event were independent of one another. Since the
`Transition` base class is dependent by default, this
was at odds with the assumptions

13 months agoUse #include <...> for foreign header files.
Arnaud Giersch [Wed, 8 Mar 2023 10:23:17 +0000 (11:23 +0100)]
Use #include <...> for foreign header files.

Files in teshsuite/smpi/mpich3-test/ were not considered.

13 months agoAdd preliminary tests for checking event conflicts
Maxwell Pirtle [Wed, 8 Mar 2023 10:18:50 +0000 (11:18 +0100)]
Add preliminary tests for checking event conflicts

13 months agoAdd conflict detection to EventSet
Maxwell Pirtle [Wed, 8 Mar 2023 08:13:15 +0000 (09:13 +0100)]
Add conflict detection to EventSet

Detecting whether or not a collection of events
are in conflict important for computing en(C)
and for K-partial alternatives. We simply
follow the definition of conflicts. More
esoteric methods may exist that are faster,
but for now let's keep it simple: we can always
add those in later incrementally

13 months agoMerge branch 'udpor-phase4' into 'master'
Martin Quinson [Wed, 8 Mar 2023 00:10:15 +0000 (00:10 +0000)]
Merge branch 'udpor-phase4' into 'master'

Phase 4 of UDPOR Integration: Variable For-loop

See merge request simgrid/simgrid!136

13 months agoAdd ability to restrict maximum subset size
Maxwell Pirtle [Tue, 7 Mar 2023 13:36:03 +0000 (14:36 +0100)]
Add ability to restrict maximum subset size

This commit adds the ability to restrict the
size of the maximal subsets that are produced
by the maximal_subsets_iterator. This filtering
significantly reduces the number of subsets that
need to be searched in more complicated graphs.

The advantage of adding the filtering directly
to the maximal_subsets_iterator over using a
higher-order iterator such as boost::filter_iterator
is that branches can be pruned immediately. Since
the maximal_subsets_iterator performs its search
in depth-first order, something like
boost::filter_iterator, while technically equivalent,
would have to actually perform the iteration over
entire branches that are otherwise useless due to
their size.

Searching maximal subsets of a restricted size is
useful when determining conflicts between sets of
events: we want to look at pairs of maximal events

13 months agoAdd asserts for Configuration vs EventSet
Maxwell Pirtle [Tue, 7 Mar 2023 13:05:01 +0000 (14:05 +0100)]
Add asserts for Configuration vs EventSet

This commit adds two asserts to ensure that
traversing a configuration is equivalent to
traversing the events of that configuration.
That is, the assertions check that a configuration
can effectively be treated as a set of events
when it comes to traversal of maximal sets and
computing a topological ordering

13 months agoAllow iteration over maximal subsets of an EventSet
Maxwell Pirtle [Tue, 7 Mar 2023 12:48:29 +0000 (13:48 +0100)]
Allow iteration over maximal subsets of an EventSet

The maximal_subsets_iterator was updated to allow
traversal over the subsets of events of some set `E`
which are maximal (i.e. causally-free). It is a
simple addition which extends the power of the iterator
to EventSets more generally (as opposed to strictly
for Configurations)

13 months agoMove topological ordering to EventSet
Maxwell Pirtle [Tue, 7 Mar 2023 12:41:41 +0000 (13:41 +0100)]
Move topological ordering to EventSet

The events of an EventSet can be ordered
topologically by considering them as part
of the configuration containing the histories
of all events in the set. The trick is to
ignore adding in an event into the ordering
if the event is not contained in the original
set itself

13 months agoRename `EventSet::is_maximal_event_set()`
Maxwell Pirtle [Tue, 7 Mar 2023 09:05:45 +0000 (10:05 +0100)]
Rename `EventSet::is_maximal_event_set()`

The method `is_maximal_event_set()` was renamed
to simply `is_maximal()`, since the question is
already being asked about some event set (i.e.
the `_event_set` bit is redundant)

13 months agoAdd some basic tests for variable_for_loop
Maxwell Pirtle [Tue, 7 Mar 2023 08:10:58 +0000 (09:10 +0100)]
Add some basic tests for variable_for_loop

Some tests were added to confirm that the
variable_for_loop iterator behaved as expected.

13 months agoFixes in docs/source/tuto_* (untested).
Arnaud Giersch [Mon, 6 Mar 2023 15:16:49 +0000 (16:16 +0100)]
Fixes in docs/source/tuto_* (untested).

13 months agoWrite maximal_subsets_iterator_wrapper with xbt utils
Maxwell Pirtle [Mon, 6 Mar 2023 15:13:50 +0000 (16:13 +0100)]
Write maximal_subsets_iterator_wrapper with xbt utils

13 months agoFix edge cases in variable_for_loop
Maxwell Pirtle [Mon, 6 Mar 2023 14:28:05 +0000 (15:28 +0100)]
Fix edge cases in variable_for_loop

Some tests were added which detected an off-by-one
error in the implementation logic of the variable_for_loop.
Subsequent commits will add more tests to the iterator
for further verification

13 months agoWrite LazyPowerSet in terms of iterator_wrapper
Maxwell Pirtle [Mon, 6 Mar 2023 13:41:24 +0000 (14:41 +0100)]
Write LazyPowerSet in terms of iterator_wrapper

13 months agoAdd iterator_wrapping convenience container
Maxwell Pirtle [Mon, 6 Mar 2023 13:01:48 +0000 (14:01 +0100)]
Add iterator_wrapping convenience container

The iterator_wrapping structure is a light-weight
container whose contents are traversed according
to the behavior of the iterator that it creates
when asked. The wrapping can only construct
a container around an iterator whose termination
condition can be succinctly represented with a
default-constructed argument. It is not always
the case that such a default-constructed iterator
represents the end, so this should be kept in made
(although this is generally the convention).

Creating an instance of a wrapping allows, e.g.,
for the traversal over a collection without explicit
need to construct the iterators/loop manually.
For example, a struct `Iterable` may define a method
`make_complicated_forward_iterator_over_me()`
that can be called and used inside e.g. an auto-based
for-loop. This helps with readability immensely.

13 months agoAdd first implementation of variable for-loop
Maxwell Pirtle [Mon, 6 Mar 2023 09:32:54 +0000 (10:32 +0100)]
Add first implementation of variable for-loop

13 months agoFix clang build and make output more portable/predictible
Martin Quinson [Mon, 6 Mar 2023 09:50:07 +0000 (10:50 +0100)]
Fix clang build and make output more portable/predictible

13 months agoAdd computation for minimally reproducible sets
Maxwell Pirtle [Fri, 3 Mar 2023 12:34:02 +0000 (13:34 +0100)]
Add computation for minimally reproducible sets

A minimally reproducible set of a configuration
is simply the smallest set of events whose
collective histories joint together cover every
event in the configuration. Effecively, it is
the maximal set of C whose history equals C.

The computation builds upon the maximal_subsets_iterator
introduced in a prior phase and exploits all of
the work that already went into computing the
subsets

13 months agosthread: Add a way to verify accesses to non-reentrant data structures
Martin Quinson [Mon, 6 Mar 2023 08:05:55 +0000 (09:05 +0100)]
sthread: Add a way to verify accesses to non-reentrant data structures

The example is very fragile so far, segfaulting 2 times over 3 in
general, so don't activate it.

13 months agoCosmetics in sthread output when not using SMPI
Martin Quinson [Mon, 6 Mar 2023 09:17:42 +0000 (10:17 +0100)]
Cosmetics in sthread output when not using SMPI

13 months agoEnable compile optimizations when tests will be run.
Arnaud Giersch [Mon, 6 Mar 2023 07:49:26 +0000 (08:49 +0100)]
Enable compile optimizations when tests will be run.

[ci-skip]

13 months agoMissing ']'
Arnaud Giersch [Sun, 5 Mar 2023 21:48:50 +0000 (22:48 +0100)]
Missing ']'

[ci-skip]

13 months agoFix compilation error with clang 11.0.1.
Arnaud Giersch [Sun, 5 Mar 2023 20:56:34 +0000 (21:56 +0100)]
Fix compilation error with clang 11.0.1.

Building CXX object CMakeFiles/simgrid.dir/src/mc/explo/udpor/maximal_subsets_iterator.cpp.o
In file included from .../src/mc/explo/udpor/maximal_subsets_iterator.cpp:1:
.../src/mc/explo/udpor/maximal_subsets_iterator.hpp:38:3: error: explicitly defaulted default constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
  maximal_subsets_iterator() = default;
  ^
.../src/mc/explo/udpor/maximal_subsets_iterator.hpp:43:68: note: default constructor of 'maximal_subsets_iterator' is implicitly deleted because field 'config' of const-qualified type 'const std::optional<std::reference_wrapper<const Configuration>>' would not be initialized
  const std::optional<std::reference_wrapper<const Configuration>> config;
                                                                   ^
1 error generated.

13 months agoEnable _GLIBCXX_DEBUG for one of the builds.
Arnaud Giersch [Sun, 5 Mar 2023 20:31:19 +0000 (21:31 +0100)]
Enable _GLIBCXX_DEBUG for one of the builds.

Also run the tests in this case.

13 months agoSonar smells.
Arnaud Giersch [Sun, 5 Mar 2023 16:35:16 +0000 (17:35 +0100)]
Sonar smells.

13 months agoMerge branch 'maximal-subset-search' into 'master'
Martin Quinson [Sun, 5 Mar 2023 20:13:24 +0000 (20:13 +0000)]
Merge branch 'maximal-subset-search' into 'master'

Phase 3 of UDPOR Integration: Iteration Over Maximal Sets of a Configuration

See merge request simgrid/simgrid!135

13 months agoDon't clear flops_amount on ExecImpl::reset.
Arnaud Giersch [Sun, 5 Mar 2023 14:32:32 +0000 (15:32 +0100)]
Don't clear flops_amount on ExecImpl::reset.

Fix failures where flops_amount is not defined anymore in ExecImpl::start
(found by building with CXXFLAGS=-D_GLIBCXX_DEBUG)

13 months agoQuick tests show that currentContainer is always empty at this point.
Arnaud Giersch [Sun, 5 Mar 2023 14:01:22 +0000 (15:01 +0100)]
Quick tests show that currentContainer is always empty at this point.

13 months agoWalking the stack in the forward direction gives the same result, but makes the code...
Arnaud Giersch [Sat, 4 Mar 2023 09:35:59 +0000 (10:35 +0100)]
Walking the stack in the forward direction gives the same result, but makes the code simpler.

13 months agoSimplify assertions.
Arnaud Giersch [Thu, 2 Mar 2023 21:14:38 +0000 (22:14 +0100)]
Simplify assertions.

13 months agotry to use another mattermost action, as the main one is linux only (uses docker)
Augustin Degomme [Sat, 4 Mar 2023 13:13:06 +0000 (14:13 +0100)]
try to use another mattermost action, as the main one is linux only (uses docker)

13 months ago[ci-skpi] fix sending of messages, and do parallel testing on github action
Augustin Degomme [Sat, 4 Mar 2023 12:10:51 +0000 (13:10 +0100)]
[ci-skpi] fix sending of messages, and do parallel testing on github action

13 months agoassume mmap is not functional for us on macos>=11 as memory accesses are restricted...
Augustin Degomme [Sat, 4 Mar 2023 12:09:16 +0000 (13:09 +0100)]
assume mmap is not functional for us on macos>=11 as memory accesses are restricted by default

13 months ago[ci skip] remove spurious line
Augustin Degomme [Sat, 4 Mar 2023 10:51:11 +0000 (11:51 +0100)]
[ci skip] remove spurious line

13 months agoadd macos build to github action, untested
Augustin Degomme [Sat, 4 Mar 2023 10:43:20 +0000 (11:43 +0100)]
add macos build to github action, untested

13 months agoremove ns3 from ubuntu stable and github actions, as 3.35 is broken on 22.04
Augustin Degomme [Sat, 4 Mar 2023 10:42:56 +0000 (11:42 +0100)]
remove ns3 from ubuntu stable and github actions, as 3.35 is broken on 22.04

13 months agoFix a useless change -- and go get some sleep
Martin Quinson [Fri, 3 Mar 2023 23:08:16 +0000 (00:08 +0100)]
Fix a useless change -- and go get some sleep

13 months agoBump cmake to at least 3.12
Martin Quinson [Fri, 3 Mar 2023 22:57:15 +0000 (23:57 +0100)]
Bump cmake to at least 3.12

- It's difficult to search for Python Development component before that version
- This version is available in Debian buster (oldstable)

13 months agopython3-dev is another dependency of the Python bindings
Martin Quinson [Fri, 3 Mar 2023 22:50:05 +0000 (23:50 +0100)]
python3-dev is another dependency of the Python bindings

13 months agoReindent -- almost no real change
Martin Quinson [Fri, 3 Mar 2023 20:21:07 +0000 (21:21 +0100)]
Reindent -- almost no real change

Simply don't traverse an array if debug logs are disabled.

13 months agoForgot to add c++17g to the "ignore" list.
Arnaud Giersch [Fri, 3 Mar 2023 16:32:08 +0000 (17:32 +0100)]
Forgot to add c++17g to the "ignore" list.

[ci-ckip]

13 months agofix MC + gcc builds
Martin Quinson [Fri, 3 Mar 2023 14:31:22 +0000 (15:31 +0100)]
fix MC + gcc builds

13 months agoMove the implem of a function out of the header to reduce issues
Martin Quinson [Fri, 3 Mar 2023 10:45:34 +0000 (11:45 +0100)]
Move the implem of a function out of the header to reduce issues

13 months agoMove the PageStore from ModelChecker to RemoteApp
Martin Quinson [Thu, 2 Mar 2023 23:30:29 +0000 (00:30 +0100)]
Move the PageStore from ModelChecker to RemoteApp

13 months agoCorrect MANIFEST.in according to `make distcheck`
Maxwell Pirtle [Fri, 3 Mar 2023 10:06:54 +0000 (11:06 +0100)]
Correct MANIFEST.in according to `make distcheck`

13 months agoFilter events before performing iteration
Maxwell Pirtle [Fri, 3 Mar 2023 08:00:25 +0000 (09:00 +0100)]
Filter events before performing iteration

A filter can be supplied to the maximal subset
iterator to remove events from consideration in
maximal subsets. Instead of needlessly processing
events that will never be considered, we can
instead remove those events at the beginning while
perserving the relative ordering among events that
we do actually care about. This both simplifies the
bookkeeper's code slightly and reduces the number
of times we need to invoke the filter function drastically
(once per event instead of multiple times per combination).

13 months agoMove the stats of visited_states count from ModelChecker to DFSExplorer where it...
Martin Quinson [Thu, 2 Mar 2023 22:59:14 +0000 (23:59 +0100)]
Move the stats of visited_states count from ModelChecker to DFSExplorer where it belongs

13 months agoMove the dot_output from ModelChecker to Exploration
Martin Quinson [Thu, 2 Mar 2023 22:48:01 +0000 (23:48 +0100)]
Move the dot_output from ModelChecker to Exploration

13 months agoOne reference to the global singleton mc_model_checker that I'd like to kill
Martin Quinson [Thu, 2 Mar 2023 22:31:04 +0000 (23:31 +0100)]
One reference to the global singleton mc_model_checker that I'd like to kill

13 months agoRename some fields to obey our coding standard
Martin Quinson [Thu, 2 Mar 2023 22:22:13 +0000 (23:22 +0100)]
Rename some fields to obey our coding standard

13 months agoAllow to call SMPI_app_instance_start() once the simulation started
Martin Quinson [Thu, 2 Mar 2023 20:53:31 +0000 (21:53 +0100)]
Allow to call SMPI_app_instance_start() once the simulation started

The main trick was to set the needed property before the
Actor::start() using init()->set_property()->start(), so that the
property is here soon enough.

13 months agoZero-initialize more messages.
Arnaud Giersch [Thu, 2 Mar 2023 17:27:15 +0000 (18:27 +0100)]
Zero-initialize more messages.

13 months agoFix subtle implementation bug with maximal set filtering
Maxwell Pirtle [Thu, 2 Mar 2023 15:24:22 +0000 (16:24 +0100)]
Fix subtle implementation bug with maximal set filtering

There was a subtle bug that was resolved involving
traversal over the maximal event set tree of a configuration.
Specifically, it's important to

1. Only pick candidates that satisfy the predicate. This
means that the `bookkeeper` needs to own the reference
to the filter so that is can accurately pick events
correctly

2. At the start, pick the first *viable* candidate, and not simply
the *first* node in the ordering, as the first node may
not satisfy the predicate. Effectively, you pick the
"most recent" node that satisfies the predicate

A possible future addition would be to pre-compute the
predicate for all of the events at the start of the
iterator. This would reduce the number of calls made
to the filter function dramatically, but for now we'll
stick with something simple (the change wouldn't involve
too much intervention if desired)

13 months agoMessage is retrieved as an unsigned long (according to the manual).
Arnaud Giersch [Thu, 2 Mar 2023 14:53:35 +0000 (15:53 +0100)]
Message is retrieved as an unsigned long (according to the manual).

13 months agoAdd working implementation of maximal_subsets_iterator
Maxwell Pirtle [Thu, 2 Mar 2023 13:38:47 +0000 (14:38 +0100)]
Add working implementation of maximal_subsets_iterator

There were a few subtleties in computing traversing
the graph of maximal subsets iteratively. The most
important was the distinction between the case of
expanding the current maximal event set and attempting
to find the newest branch point (i.e. walking back up
the tree after performing the depth-first order).

13 months agoFix a typo found by clang in MC builds
Martin Quinson [Thu, 2 Mar 2023 10:51:50 +0000 (11:51 +0100)]
Fix a typo found by clang in MC builds

13 months agoClean up maximum_subsets_iterator
Maxwell Pirtle [Thu, 2 Mar 2023 10:41:00 +0000 (11:41 +0100)]
Clean up maximum_subsets_iterator

A couple of smaller cosmetic changes were made
to maximum_subsets_iterator, in particular moving
the somewhat complicated while-loop into a dedicated
method (before it had several `break`s contained within
it which acted more like return values from a function
which suggested a dedicated function was called for).

Subsequent commits will add test cases for the iterator,
after which a MR should be ready.

13 months agoReplace memset(..., 0, ...) with zero-initialization.
Arnaud Giersch [Wed, 1 Mar 2023 21:00:05 +0000 (22:00 +0100)]
Replace memset(..., 0, ...) with zero-initialization.

13 months agoZero-initialize messages (essentially their padding bits).
Arnaud Giersch [Wed, 1 Mar 2023 20:55:31 +0000 (21:55 +0100)]
Zero-initialize messages (essentially their padding bits).

This is mainly to clear valgrind errors about uninitialised bytes.

13 months agoHelp to identify null values.
Arnaud Giersch [Wed, 1 Mar 2023 10:04:24 +0000 (11:04 +0100)]
Help to identify null values.

13 months agoLookup only once in map.
Arnaud Giersch [Wed, 1 Mar 2023 10:03:20 +0000 (11:03 +0100)]
Lookup only once in map.

13 months agoUseless assignments to local variable.
Arnaud Giersch [Tue, 28 Feb 2023 15:01:44 +0000 (16:01 +0100)]
Useless assignments to local variable.

13 months agoGH action: build out of sources
Martin Quinson [Thu, 2 Mar 2023 10:04:35 +0000 (11:04 +0100)]
GH action: build out of sources

13 months agoInstall python deps on GHaction + better documentation of build dependencies
Martin Quinson [Thu, 2 Mar 2023 09:13:12 +0000 (10:13 +0100)]
Install python deps on GHaction + better documentation of build dependencies

13 months agoPass references to `const Unfolding*` in most places
Maxwell Pirtle [Thu, 2 Mar 2023 09:00:42 +0000 (10:00 +0100)]
Pass references to `const Unfolding*` in most places

Passing references to `const Unfolding*` is better
style as no methods actually modify events directly:
instead, they perform computations over sets of events,
compute histories, etc, but leave the event instances
themselves otherwise unaffected

13 months agoMais quel débile, punaise
Martin Quinson [Thu, 2 Mar 2023 08:55:34 +0000 (09:55 +0100)]
Mais quel débile, punaise

13 months agoMC builds have specific dependencies
Martin Quinson [Thu, 2 Mar 2023 08:48:45 +0000 (09:48 +0100)]
MC builds have specific dependencies

13 months agoAdd first implementation of maximal_subsets_iterator
Maxwell Pirtle [Thu, 2 Mar 2023 08:28:34 +0000 (09:28 +0100)]
Add first implementation of maximal_subsets_iterator

The maximal_subsets_iterator traverses the subsets
of events of a configuration `C` which are maximal,
viz. those subsets of `C` which are causally-free.

13 months agoGH action: ninja is verbose on error anyway
Martin Quinson [Thu, 2 Mar 2023 08:31:52 +0000 (09:31 +0100)]
GH action: ninja is verbose on error anyway

13 months agoGH action: use the correct package name
Martin Quinson [Thu, 2 Mar 2023 08:27:40 +0000 (09:27 +0100)]
GH action: use the correct package name

13 months agogh action: we need 'sudo' here
Martin Quinson [Thu, 2 Mar 2023 08:20:40 +0000 (09:20 +0100)]
gh action: we need 'sudo' here

13 months agoGH action: install deps
Martin Quinson [Thu, 2 Mar 2023 08:16:13 +0000 (09:16 +0100)]
GH action: install deps