Repository navigation
Conversation
A reified float check assigned where it compared, so its branch never ran. Set expression test names printed the relation as a number, and the MaybeType comments were swapped. Zdev-Change-Id: Z6305fbd9964e39543d52b4bd2830daf68ee6af4c47853f2d445eb63ef56cbd0a
MSVC rejects a call through a function-typed template parameter under C++23, so bin packing now takes function pointers. The clang pragmas in core.hpp are guarded, since MSVC warns about them. The Qt consumer smokes use the const reference that Comparator::compare takes now, and the freshness check ignores the numbers on flex's #line directives for its own output, which differ between Debian and Homebrew. Zdev-Change-Id: Z69203daf7cf88277567379d57e3996fd5d0da801830c25c15f15cebfcf3e404d
Shrinking through Space::realloc, Space::rrealloc, and Region::realloc computed the removed tail as m - n, which underflowed. Space::realloc for pointers used the size of the pointed-to type on the old size. val-commit now returns ModEvent values and TFO guards its free. Zdev-Change-Id: Z5872dea6437a9011a18767ce18e6729556e984cbc7ebf62b6f405c49bf145adf
bin_packing with a dimension below one divided by d before any check. It now throws Int::OutOfLimits first. The 2D element overloads accepted an empty array and non-positive or overflowing matrix shapes. They now throw TooFewArguments or ArgumentSizeMismatch, in both the integer and set modules. Zdev-Change-Id: Z565281c0945c5a63b7843b9908ecbac41046a69a829acb84096037fcd419b839
The assign overloads with TieBreak and the FloatValArgs initializer-list constructor were declared without matching definitions. An audit of exported declarations found values_reflect(IntVar), three set value iterator default constructors, and the pbs builder declaration in the same state, and an undefined DFAI(void) that is removed. Plain assign with a variable selection used ViewSelNone and ignored the selection, so a TieBreak call that reduced to one selection ignored it too. All four variable types now expand and use the selection, taking it by value as branch does. Zdev-Change-Id: Z80dbbc163338547c5a4c41c647d65d959c4774e52ffbb17c4957471393701bbb
IntBoolVarBranch passed its decay to VarBranch(Rnd) through the implicit Rnd(unsigned), so decay was lost. It now keeps its decay, Rnd(unsigned) is explicit, and the default branchers follow the -decay option. The set and float value annotations took their relation names by value, so the names never reached the caller. AuxVarBrancher copied only done when cloned, so a clone fell back to default selections. It now copies its selections and disposes them, which also stops leaking the random number generator of a random selection. Zdev-Change-Id: Zcb5ff72b63e0edbd4e44410dbadd56712c19b264e6ea05aac11bb71d1d84c273
Doxygen reported 91 warnings, nearly all from definitions spelled differently from their declarations. The spellings now match, with no change in behaviour. OpenList overflowed a worker stack in a macOS Debug sanitizer build. That is not a Gecode bug: forced inlining at -O0 with ASan gives some propagators a frame of about 400 KiB, and std::thread stacks are 512 KiB. The build reference now says so. The three set value iterator default constructors added earlier are defaulted, which the lint step requires. Zdev-Change-Id: Ze86a35bdb31538eca9f2b216a4cbe8fd644de23511da761ea9a33be912d6fbfe
This was referenced Nov 20, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While putting Gecode 7 together, a number of real bugs and documentation mismatches turned up. I gathered them into this PR so reviewers can inspect actual behavior fixes separately from the large mechanical sweeps around them.
MaybeTypecomments were swapped.core.hppare guarded against MSVC warnings, the Qt consumer smokes matchComparator::compare'sconst¶meter, and generated-source freshness ignores Flex's#linenumbers (which differ between Debian and Homebrew).Space::realloc,Space::rrealloc, andRegion::realloccomputed the freed tail size asm - ninstead ofn - m, which underflowed.Space::reallocfor pointer arrays also scaled the old size bysizeof(T)instead ofsizeof(T*). In the same commit,val-commitreturnsModEventvalues properly andTFOguards its free.bin_packingwith a dimension below 1 divided bydbefore checking it, and now throwsInt::OutOfLimitsfirst. The 2Delementoverloads (integer and set) accepted empty arrays and non-positive or overflowing matrix dimensions; they now throwTooFewArgumentsorArgumentSizeMismatch.assignselections: several exported declarations had no definitions (assignoverloads takingTieBreak,FloatValArgs's initializer-list constructor,values_reflect(IntVar), three set value-iterator default constructors, and thepbsbuilder), and an unusedDFAI(void)declaration is removed. In addition, plainassignwith a variable selection usedViewSelNoneand silently ignored the selection (affecting anyTieBreakcall that collapsed to one selection as well); all four variable types now expand and apply the selection.IntBoolVarBranchsilently passed its decay toVarBranch(Rnd)through the implicitRnd(unsigned)constructor, losing the decay;Rnd(unsigned)is now explicit and default branchers honor-decay. Set and float value annotations took their relation-name output arguments by value, so names never reached callers.AuxVarBranchercopied onlydonewhen cloned, causing clones to fall back to default selections and leak the RNG of random selections; it now copies and disposes its selections properly.OpenListoverflows worker stacks in macOS Debug sanitizer builds: forced inlining at-O0under ASan inflates some propagator frames to about 400 KiB againststd::thread's 512 KiB default stack.Stack
Merge in this order. #242 targets
main, and each later PR builds on the one before it so its diff shows only its own commits. The first four PRs are standalone search and random-number changes; #284 through #274 are the Gecode 7 changes split out of what used to be a single branch.