This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/gecode/dev/extractor/xml/sequential_2path_8hh.xml
Vitor Santos Costa a8eda03305 4.2.1 support
2014-01-22 09:41:47 +00:00

1012 lines
118 KiB
XML

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
<compounddef id="sequential_2path_8hh" kind="file">
<compoundname>path.hh</compoundname>
<includes refid="search_8hh" local="no">gecode/search.hh</includes>
<includes refid="search_2support_8hh" local="no">gecode/search/support.hh</includes>
<includes refid="worker_8hh" local="no">gecode/search/worker.hh</includes>
<includes refid="nogoods_8hh" local="no">gecode/search/meta/nogoods.hh</includes>
<includedby refid="sequential_2bab_8hh" local="no">/usr/include/gecode/search/sequential/bab.hh</includedby>
<includedby refid="sequential_2dfs_8hh" local="no">/usr/include/gecode/search/sequential/dfs.hh</includedby>
<incdepgraph>
<node id="29662">
<label>gecode/support/cast.hpp</label>
<link refid="cast_8hpp_source"/>
</node>
<node id="29728">
<label>gecode/search/cutoff.hpp</label>
<link refid="cutoff_8hpp_source"/>
</node>
<node id="29719">
<label>gecode/kernel/brancher-val-sel-commit.hpp</label>
<link refid="brancher-val-sel-commit_8hpp_source"/>
</node>
<node id="29680">
<label>gecode/support/static-stack.hpp</label>
<link refid="static-stack_8hpp_source"/>
</node>
<node id="29721">
<label>gecode/kernel/var-imp.hpp</label>
<link refid="kernel_2var-imp_8hpp_source"/>
</node>
<node id="29678">
<label>gecode/support/random.hpp</label>
<link refid="random_8hpp_source"/>
</node>
<node id="29723">
<label>limits</label>
</node>
<node id="29696">
<label>gecode/kernel/var.hpp</label>
<link refid="kernel_2var_8hpp_source"/>
</node>
<node id="29681">
<label>gecode/support/thread/none.hpp</label>
<link refid="none_8hpp_source"/>
</node>
<node id="29700">
<label>iterator</label>
</node>
<node id="29683">
<label>gecode/support/timer.hpp</label>
<link refid="timer_8hpp_source"/>
</node>
<node id="29682">
<label>gecode/support/thread/thread.hpp</label>
<link refid="thread_2thread_8hpp_source"/>
</node>
<node id="29718">
<label>gecode/kernel/brancher-val-commit.hpp</label>
<link refid="brancher-val-commit_8hpp_source"/>
</node>
<node id="29708">
<label>gecode/kernel/afc.hpp</label>
<link refid="kernel_2afc_8hpp_source"/>
</node>
<node id="29692">
<label>gecode/kernel/var-type.hpp</label>
<link refid="var-type_8hpp_source"/>
</node>
<node id="29684">
<label>gecode/support/hw-rnd.hpp</label>
<link refid="hw-rnd_8hpp_source"/>
</node>
<node id="29671">
<label>cmath</label>
</node>
<node id="29655">
<label>cassert</label>
</node>
<node id="29715">
<label>gecode/kernel/brancher-view-sel.hpp</label>
<link refid="brancher-view-sel_8hpp_source"/>
</node>
<node id="29722">
<label>gecode/kernel/allocators.hpp</label>
<link refid="allocators_8hpp_source"/>
<childnode refid="29723" relation="include">
</childnode>
</node>
<node id="29650">
<label>gecode/search.hh</label>
<link refid="search_8hh_source"/>
<childnode refid="29651" relation="include">
</childnode>
<childnode refid="29658" relation="include">
</childnode>
<childnode refid="29724" relation="include">
</childnode>
<childnode refid="29725" relation="include">
</childnode>
<childnode refid="29726" relation="include">
</childnode>
<childnode refid="29727" relation="include">
</childnode>
<childnode refid="29728" relation="include">
</childnode>
<childnode refid="29729" relation="include">
</childnode>
<childnode refid="29730" relation="include">
</childnode>
<childnode refid="29731" relation="include">
</childnode>
<childnode refid="29732" relation="include">
</childnode>
</node>
<node id="29699">
<label>cstdarg</label>
</node>
<node id="29669">
<label>gecode/support/bitset-base.hpp</label>
<link refid="bitset-base_8hpp_source"/>
<childnode refid="29668" relation="include">
</childnode>
</node>
<node id="29703">
<label>gecode/kernel/shared-array.hpp</label>
<link refid="shared-array_8hpp_source"/>
<childnode refid="29699" relation="include">
</childnode>
<childnode refid="29673" relation="include">
</childnode>
<childnode refid="29702" relation="include">
</childnode>
</node>
<node id="29693">
<label>gecode/kernel/modevent.hpp</label>
<link refid="modevent_8hpp_source"/>
</node>
<node id="29731">
<label>gecode/search/bab.hpp</label>
<link refid="bab_8hpp_source"/>
</node>
<node id="29686">
<label>gecode/kernel/memory-config.hpp</label>
<link refid="memory-config_8hpp_source"/>
</node>
<node id="29667">
<label>gecode/support/int-type.hpp</label>
<link refid="int-type_8hpp_source"/>
<childnode refid="29668" relation="include">
</childnode>
</node>
<node id="29660">
<label>gecode/support/exception.hpp</label>
<link refid="support_2exception_8hpp_source"/>
<childnode refid="29661" relation="include">
</childnode>
</node>
<node id="29661">
<label>exception</label>
</node>
<node id="29727">
<label>gecode/search/stop.hpp</label>
<link refid="stop_8hpp_source"/>
</node>
<node id="29695">
<label>gecode/kernel/region.hpp</label>
<link refid="region_8hpp_source"/>
</node>
<node id="29666">
<label>gecode/support/marked-pointer.hpp</label>
<link refid="marked-pointer_8hpp_source"/>
<childnode refid="29652" relation="include">
</childnode>
</node>
<node id="29663">
<label>gecode/support/thread.hpp</label>
<link refid="thread_8hpp_source"/>
<childnode refid="29652" relation="include">
</childnode>
</node>
<node id="29651">
<label>gecode/kernel.hh</label>
<link refid="kernel_8hh_source"/>
<childnode refid="29652" relation="include">
</childnode>
<childnode refid="29653" relation="include">
</childnode>
<childnode refid="29654" relation="include">
</childnode>
<childnode refid="29655" relation="include">
</childnode>
<childnode refid="29656" relation="include">
</childnode>
<childnode refid="29658" relation="include">
</childnode>
<childnode refid="29685" relation="include">
</childnode>
<childnode refid="29686" relation="include">
</childnode>
<childnode refid="29687" relation="include">
</childnode>
<childnode refid="29688" relation="include">
</childnode>
<childnode refid="29689" relation="include">
</childnode>
<childnode refid="29690" relation="include">
</childnode>
<childnode refid="29691" relation="include">
</childnode>
<childnode refid="29693" relation="include">
</childnode>
<childnode refid="29694" relation="include">
</childnode>
<childnode refid="29695" relation="include">
</childnode>
<childnode refid="29696" relation="include">
</childnode>
<childnode refid="29697" relation="include">
</childnode>
<childnode refid="29698" relation="include">
</childnode>
<childnode refid="29703" relation="include">
</childnode>
<childnode refid="29704" relation="include">
</childnode>
<childnode refid="29706" relation="include">
</childnode>
<childnode refid="29707" relation="include">
</childnode>
<childnode refid="29708" relation="include">
</childnode>
<childnode refid="29709" relation="include">
</childnode>
<childnode refid="29710" relation="include">
</childnode>
<childnode refid="29711" relation="include">
</childnode>
<childnode refid="29712" relation="include">
</childnode>
<childnode refid="29713" relation="include">
</childnode>
<childnode refid="29714" relation="include">
</childnode>
<childnode refid="29715" relation="include">
</childnode>
<childnode refid="29716" relation="include">
</childnode>
<childnode refid="29717" relation="include">
</childnode>
<childnode refid="29718" relation="include">
</childnode>
<childnode refid="29719" relation="include">
</childnode>
<childnode refid="29720" relation="include">
</childnode>
<childnode refid="29721" relation="include">
</childnode>
<childnode refid="29722" relation="include">
</childnode>
</node>
<node id="29709">
<label>gecode/kernel/branch-traits.hpp</label>
<link refid="branch-traits_8hpp_source"/>
</node>
<node id="29698">
<label>gecode/kernel/array.hpp</label>
<link refid="kernel_2array_8hpp_source"/>
<childnode refid="29699" relation="include">
</childnode>
<childnode refid="29673" relation="include">
</childnode>
<childnode refid="29700" relation="include">
</childnode>
<childnode refid="29701" relation="include">
</childnode>
<childnode refid="29702" relation="include">
</childnode>
</node>
<node id="29713">
<label>gecode/kernel/branch-val.hpp</label>
<link refid="branch-val_8hpp_source"/>
</node>
<node id="29730">
<label>gecode/search/dfs.hpp</label>
<link refid="dfs_8hpp_source"/>
</node>
<node id="29677">
<label>gecode/support/dynamic-stack.hpp</label>
<link refid="dynamic-stack_8hpp_source"/>
</node>
<node id="29689">
<label>gecode/kernel/archive.hpp</label>
<link refid="archive_8hpp_source"/>
</node>
<node id="29694">
<label>gecode/kernel/range-list.hpp</label>
<link refid="range-list_8hpp_source"/>
</node>
<node id="29726">
<label>gecode/search/options.hpp</label>
<link refid="search_2options_8hpp_source"/>
</node>
<node id="29714">
<label>gecode/kernel/brancher-merit.hpp</label>
<link refid="brancher-merit_8hpp_source"/>
</node>
<node id="29657">
<label>gecode/support/config.hpp</label>
<link refid="support_2config_8hpp_source"/>
</node>
<node id="29735">
<label>gecode/search/worker.hh</label>
<link refid="worker_8hh_source"/>
<childnode refid="29650" relation="include">
</childnode>
</node>
<node id="29711">
<label>gecode/kernel/branch-var.hpp</label>
<link refid="branch-var_8hpp_source"/>
</node>
<node id="29687">
<label>gecode/kernel/memory-manager.hpp</label>
<link refid="memory-manager_8hpp_source"/>
</node>
<node id="29676">
<label>gecode/support/dynamic-queue.hpp</label>
<link refid="dynamic-queue_8hpp_source"/>
</node>
<node id="29688">
<label>gecode/kernel/macros.hpp</label>
<link refid="kernel_2macros_8hpp_source"/>
</node>
<node id="29705">
<label>ctime</label>
</node>
<node id="29701">
<label>vector</label>
</node>
<node id="29734">
<label>gecode/search/meta/rbs.hh</label>
<link refid="rbs_8hh_source"/>
<childnode refid="29650" relation="include">
</childnode>
</node>
<node id="29707">
<label>gecode/kernel/advisor.hpp</label>
<link refid="advisor_8hpp_source"/>
</node>
<node id="29720">
<label>gecode/kernel/brancher-view-val.hpp</label>
<link refid="brancher-view-val_8hpp_source"/>
</node>
<node id="29702">
<label>sstream</label>
</node>
<node id="29717">
<label>gecode/kernel/brancher-val-sel.hpp</label>
<link refid="brancher-val-sel_8hpp_source"/>
</node>
<node id="29706">
<label>gecode/kernel/propagator.hpp</label>
<link refid="kernel_2propagator_8hpp_source"/>
</node>
<node id="29674">
<label>gecode/support/block-allocator.hpp</label>
<link refid="block-allocator_8hpp_source"/>
</node>
<node id="29729">
<label>gecode/search/engine-base.hpp</label>
<link refid="engine-base_8hpp_source"/>
</node>
<node id="29649">
<label>/usr/include/gecode/search/sequential/path.hh</label>
<link refid="sequential/path.hh"/>
<childnode refid="29650" relation="include">
</childnode>
<childnode refid="29733" relation="include">
</childnode>
<childnode refid="29735" relation="include">
</childnode>
<childnode refid="29736" relation="include">
</childnode>
</node>
<node id="29732">
<label>gecode/search/rbs.hpp</label>
<link refid="rbs_8hpp_source"/>
<childnode refid="29733" relation="include">
</childnode>
<childnode refid="29734" relation="include">
</childnode>
</node>
<node id="29710">
<label>gecode/kernel/activity.hpp</label>
<link refid="kernel_2activity_8hpp_source"/>
</node>
<node id="29653">
<label>cstdlib</label>
</node>
<node id="29670">
<label>gecode/support/bitset.hpp</label>
<link refid="bitset_8hpp_source"/>
<childnode refid="29668" relation="include">
</childnode>
<childnode refid="29671" relation="include">
</childnode>
</node>
<node id="29658">
<label>gecode/support/auto-link.hpp</label>
<link refid="auto-link_8hpp_source"/>
</node>
<node id="29673">
<label>iostream</label>
</node>
<node id="29685">
<label>gecode/kernel/exception.hpp</label>
<link refid="kernel_2exception_8hpp_source"/>
</node>
<node id="29736">
<label>gecode/search/meta/nogoods.hh</label>
<link refid="nogoods_8hh_source"/>
<childnode refid="29650" relation="include">
</childnode>
</node>
<node id="29659">
<label>gecode/support/macros.hpp</label>
<link refid="support_2macros_8hpp_source"/>
</node>
<node id="29697">
<label>gecode/kernel/view.hpp</label>
<link refid="kernel_2view_8hpp_source"/>
</node>
<node id="29712">
<label>gecode/kernel/branch-tiebreak.hpp</label>
<link refid="branch-tiebreak_8hpp_source"/>
</node>
<node id="29652">
<label>cstddef</label>
</node>
<node id="29668">
<label>climits</label>
</node>
<node id="29724">
<label>gecode/search/exception.hpp</label>
<link refid="search_2exception_8hpp_source"/>
</node>
<node id="29691">
<label>gecode/kernel/core.hpp</label>
<link refid="core_8hpp_source"/>
<childnode refid="29673" relation="include">
</childnode>
<childnode refid="29692" relation="include">
</childnode>
</node>
<node id="29656">
<label>gecode/support.hh</label>
<link refid="support_8hh_source"/>
<childnode refid="29655" relation="include">
</childnode>
<childnode refid="29657" relation="include">
</childnode>
<childnode refid="29658" relation="include">
</childnode>
<childnode refid="29659" relation="include">
</childnode>
<childnode refid="29660" relation="include">
</childnode>
<childnode refid="29662" relation="include">
</childnode>
<childnode refid="29663" relation="include">
</childnode>
<childnode refid="29664" relation="include">
</childnode>
<childnode refid="29666" relation="include">
</childnode>
<childnode refid="29667" relation="include">
</childnode>
<childnode refid="29669" relation="include">
</childnode>
<childnode refid="29670" relation="include">
</childnode>
<childnode refid="29672" relation="include">
</childnode>
<childnode refid="29674" relation="include">
</childnode>
<childnode refid="29675" relation="include">
</childnode>
<childnode refid="29676" relation="include">
</childnode>
<childnode refid="29677" relation="include">
</childnode>
<childnode refid="29678" relation="include">
</childnode>
<childnode refid="29679" relation="include">
</childnode>
<childnode refid="29680" relation="include">
</childnode>
<childnode refid="29681" relation="include">
</childnode>
<childnode refid="29682" relation="include">
</childnode>
<childnode refid="29683" relation="include">
</childnode>
<childnode refid="29684" relation="include">
</childnode>
</node>
<node id="29725">
<label>gecode/search/statistics.hpp</label>
<link refid="statistics_8hpp_source"/>
<childnode refid="29665" relation="include">
</childnode>
</node>
<node id="29675">
<label>gecode/support/dynamic-array.hpp</label>
<link refid="dynamic-array_8hpp_source"/>
<childnode refid="29665" relation="include">
</childnode>
</node>
<node id="29679">
<label>gecode/support/sort.hpp</label>
<link refid="support_2sort_8hpp_source"/>
<childnode refid="29665" relation="include">
</childnode>
<childnode refid="29668" relation="include">
</childnode>
</node>
<node id="29704">
<label>gecode/kernel/rnd.hpp</label>
<link refid="rnd_8hpp_source"/>
<childnode refid="29705" relation="include">
</childnode>
</node>
<node id="29665">
<label>algorithm</label>
</node>
<node id="29716">
<label>gecode/kernel/brancher-view.hpp</label>
<link refid="brancher-view_8hpp_source"/>
</node>
<node id="29690">
<label>gecode/kernel/global-afc.hpp</label>
<link refid="global-afc_8hpp_source"/>
<childnode refid="29671" relation="include">
</childnode>
</node>
<node id="29733">
<label>gecode/search/support.hh</label>
<link refid="search_2support_8hh_source"/>
<childnode refid="29650" relation="include">
</childnode>
</node>
<node id="29654">
<label>cstring</label>
</node>
<node id="29672">
<label>gecode/support/bitset-offset.hpp</label>
<link refid="bitset-offset_8hpp_source"/>
<childnode refid="29668" relation="include">
</childnode>
<childnode refid="29671" relation="include">
</childnode>
<childnode refid="29673" relation="include">
</childnode>
</node>
<node id="29664">
<label>gecode/support/heap.hpp</label>
<link refid="heap_8hpp_source"/>
<childnode refid="29654" relation="include">
</childnode>
<childnode refid="29653" relation="include">
</childnode>
<childnode refid="29665" relation="include">
</childnode>
</node>
</incdepgraph>
<invincdepgraph>
<node id="29738">
<label>/usr/include/gecode/search/sequential/bab.hh</label>
<link refid="sequential_2bab_8hh_source"/>
</node>
<node id="29739">
<label>/usr/include/gecode/search/sequential/dfs.hh</label>
<link refid="sequential_2dfs_8hh_source"/>
</node>
<node id="29737">
<label>/usr/include/gecode/search/sequential/path.hh</label>
<link refid="sequential/path.hh"/>
<childnode refid="29738" relation="include">
</childnode>
<childnode refid="29739" relation="include">
</childnode>
</node>
</invincdepgraph>
<innerclass refid="classGecode_1_1Search_1_1Sequential_1_1Path" prot="public">Gecode::Search::Sequential::Path</innerclass>
<innerclass refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" prot="public">Gecode::Search::Sequential::Path::Edge</innerclass>
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
<innernamespace refid="namespaceGecode_1_1Search">Gecode::Search</innernamespace>
<innernamespace refid="namespaceGecode_1_1Search_1_1Sequential">Gecode::Search::Sequential</innernamespace>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="comment">/*<sp/>-*-<sp/>mode:<sp/>C++;<sp/>c-basic-offset:<sp/>2;<sp/>indent-tabs-mode:<sp/>nil<sp/>-*-<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>Main<sp/>authors:</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte<sp/>&lt;schulte@gecode.org&gt;</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte,<sp/>2003</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2013-07-12<sp/>18:20:11<sp/>+0200<sp/>(Fri,<sp/>12<sp/>Jul<sp/>2013)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13877<sp/>$</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>Gecode,<sp/>the<sp/>generic<sp/>constraint</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/>Permission<sp/>is<sp/>hereby<sp/>granted,<sp/>free<sp/>of<sp/>charge,<sp/>to<sp/>any<sp/>person<sp/>obtaining</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>*<sp/><sp/>a<sp/>copy<sp/>of<sp/>this<sp/>software<sp/>and<sp/>associated<sp/>documentation<sp/>files<sp/>(the</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/>&quot;Software&quot;),<sp/>to<sp/>deal<sp/>in<sp/>the<sp/>Software<sp/>without<sp/>restriction,<sp/>including</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/><sp/>without<sp/>limitation<sp/>the<sp/>rights<sp/>to<sp/>use,<sp/>copy,<sp/>modify,<sp/>merge,<sp/>publish,</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/><sp/>distribute,<sp/>sublicense,<sp/>and/or<sp/>sell<sp/>copies<sp/>of<sp/>the<sp/>Software,<sp/>and<sp/>to</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/><sp/>permit<sp/>persons<sp/>to<sp/>whom<sp/>the<sp/>Software<sp/>is<sp/>furnished<sp/>to<sp/>do<sp/>so,<sp/>subject<sp/>to</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/><sp/>The<sp/>above<sp/>copyright<sp/>notice<sp/>and<sp/>this<sp/>permission<sp/>notice<sp/>shall<sp/>be</highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/><sp/>included<sp/>in<sp/>all<sp/>copies<sp/>or<sp/>substantial<sp/>portions<sp/>of<sp/>the<sp/>Software.</highlight></codeline>
<codeline lineno="27"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="28"><highlight class="comment"><sp/>*<sp/><sp/>THE<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>&quot;AS<sp/>IS&quot;,<sp/>WITHOUT<sp/>WARRANTY<sp/>OF<sp/>ANY<sp/>KIND,</highlight></codeline>
<codeline lineno="29"><highlight class="comment"><sp/>*<sp/><sp/>EXPRESS<sp/>OR<sp/>IMPLIED,<sp/>INCLUDING<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO<sp/>THE<sp/>WARRANTIES<sp/>OF</highlight></codeline>
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
<codeline lineno="31"><highlight class="comment"><sp/>*<sp/><sp/>NONINFRINGEMENT.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>AUTHORS<sp/>OR<sp/>COPYRIGHT<sp/>HOLDERS<sp/>BE</highlight></codeline>
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/><sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>CLAIM,<sp/>DAMAGES<sp/>OR<sp/>OTHER<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>AN<sp/>ACTION</highlight></codeline>
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/><sp/>OF<sp/>CONTRACT,<sp/>TORT<sp/>OR<sp/>OTHERWISE,<sp/>ARISING<sp/>FROM,<sp/>OUT<sp/>OF<sp/>OR<sp/>IN<sp/>CONNECTION</highlight></codeline>
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/><sp/>WITH<sp/>THE<sp/>SOFTWARE<sp/>OR<sp/>THE<sp/>USE<sp/>OR<sp/>OTHER<sp/>DEALINGS<sp/>IN<sp/>THE<sp/>SOFTWARE.</highlight></codeline>
<codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>__GECODE_SEARCH_SEQUENTIAL_PATH_HH__</highlight></codeline>
<codeline lineno="39"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>__GECODE_SEARCH_SEQUENTIAL_PATH_HH__</highlight></codeline>
<codeline lineno="40"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;gecode/search.hh&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;gecode/search/support.hh&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="43"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;gecode/search/worker.hh&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;gecode/search/meta/nogoods.hh&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Search<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Sequential<sp/>{</highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
<codeline lineno="61" refid="classGecode_1_1Search_1_1Sequential_1_1Path" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path" kindref="compound">Path</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1NoGoods" kindref="compound">NoGoods</ref><sp/>{</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Search_1_1Meta_1_1NoGoodsProp" kindref="compound">Search::Meta::NoGoodsProp</ref>;</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="65" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" kindref="compound">Edge</ref><sp/>{</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="68" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a5f72975d1613a2a37adb2f1d071907ba" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a5f72975d1613a2a37adb2f1d071907ba" kindref="member">_space</ref>;</highlight></codeline>
<codeline lineno="70" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad2515dbf61bc6fbdd2fa669edd2f3c58" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad2515dbf61bc6fbdd2fa669edd2f3c58" kindref="member">_alt</ref>;</highlight></codeline>
<codeline lineno="72" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ae14f7d6e1ee6e4a10ff34ccdc7cebf78" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Choice" kindref="compound">Choice</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ae14f7d6e1ee6e4a10ff34ccdc7cebf78" kindref="member">_choice</ref>;</highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8c270480efbc9abe6aa526f244e169ee" kindref="member">Edge</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8c270480efbc9abe6aa526f244e169ee" kindref="member">Edge</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s,<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>c);</highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a6c77cd9d9c8f45629dd40a1c0d8d144b" kindref="member">space</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a6c77cd9d9c8f45629dd40a1c0d8d144b" kindref="member">space</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s);</highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Choice" kindref="compound">Choice</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ace42061df7bae3cab9f2fde99848e0a9" kindref="member">choice</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad7ac8192e59f417213ac0569b945f25b" kindref="member">alt</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a462f6da84be70cff0f092283cdf7c14b" kindref="member">truealt</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a45148161e8e1b2b086fdb96edd6dcc1e" kindref="member">leftmost</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a56346d428756b0d5b25ad1c76943158d" kindref="member">rightmost</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad95980be15f0e866f6a3142c6cca290f" kindref="member">next</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8e2372d3ee578eaff08b7c9bf5953a72" kindref="member">lao</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1afbf5f00340c4d7393ae1ddf38e087bc3" kindref="member">dispose</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/>};</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="105" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Support_1_1DynamicStack" kindref="compound">Support::DynamicStack&lt;Edge,Heap&gt;</ref><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>;</highlight></codeline>
<codeline lineno="107" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa6bf1b1eada7e4dc8b591427eccea6e4" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa6bf1b1eada7e4dc8b591427eccea6e4" kindref="member">_ngdl</ref>;</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa2fca31acd144c6feb41aa0c243f5c87" kindref="member">Path</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l);</highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" kindref="member">ngdl</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" kindref="member">ngdl</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l);</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Choice" kindref="compound">Choice</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a050f123019eb045ed9d688ff3af5d9fc" kindref="member">push</ref>(<ref refid="classGecode_1_1Search_1_1Worker" kindref="compound">Worker</ref>&amp;<sp/>stat,<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s,<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>c);</highlight></codeline>
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a7ca7c2604c754b56b8af2c9cc650d049" kindref="member">next</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" kindref="compound">Edge</ref>&amp;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a7f731b597fa86c2544c8696480253348" kindref="member">top</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1af64a30030f831410cca72f122105599a" kindref="member">empty</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" kindref="member">lc</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a2a159b56eac57e080aa79a1a95aafedf" kindref="member">unwind</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l);</highlight></codeline>
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1adb103b2131d24a8ca64834c73e0f7018" kindref="member">recompute</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&amp;<sp/>d,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>a_d,<sp/><ref refid="classGecode_1_1Search_1_1Worker" kindref="compound">Worker</ref>&amp;<sp/>s);</highlight></codeline>
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1adb103b2131d24a8ca64834c73e0f7018" kindref="member">recompute</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&amp;<sp/>d,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>a_d,<sp/><ref refid="classGecode_1_1Search_1_1Worker" kindref="compound">Worker</ref>&amp;<sp/>s,</highlight></codeline>
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>best,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&amp;<sp/>mark);</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1ae0d78873b844045a0b35363019bf2971" kindref="member">entries</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a3089a3f62fab6d9d1145411926302ab1" kindref="member">reset</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa2e087f343fbf65631b025e43bc81916" kindref="member">post</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home);</highlight></codeline>
<codeline lineno="140"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="141"><highlight class="normal"></highlight></codeline>
<codeline lineno="142"><highlight class="normal"></highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="144"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Edge<sp/>for<sp/>recomputation</highlight></codeline>
<codeline lineno="145"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="146"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="148" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8c270480efbc9abe6aa526f244e169ee" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8c270480efbc9abe6aa526f244e169ee" kindref="member">Path::Edge::Edge</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{}</highlight></codeline>
<codeline lineno="149"><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="151" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1abc9918eacb7b0fb8ceba4f7e79cf4ef7" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8c270480efbc9abe6aa526f244e169ee" kindref="member">Path::Edge::Edge</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s,<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>c)</highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>_space(c),<sp/>_alt(0),<sp/>_choice(s-&gt;choice())<sp/>{}</highlight></codeline>
<codeline lineno="153"><highlight class="normal"></highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*</highlight></codeline>
<codeline lineno="155" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a6c77cd9d9c8f45629dd40a1c0d8d144b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a6c77cd9d9c8f45629dd40a1c0d8d144b" kindref="member">Path::Edge::space</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_space;</highlight></codeline>
<codeline lineno="157"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="158"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="159" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1abc2fb94ac015dc87bfc2228f781a32a6" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a6c77cd9d9c8f45629dd40a1c0d8d144b" kindref="member">Path::Edge::space</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s)<sp/>{</highlight></codeline>
<codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/>_space<sp/>=<sp/>s;</highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="162"><highlight class="normal"></highlight></codeline>
<codeline lineno="163"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="164" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad7ac8192e59f417213ac0569b945f25b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad7ac8192e59f417213ac0569b945f25b" kindref="member">Path::Edge::alt</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_alt;</highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="167"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="168" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a462f6da84be70cff0f092283cdf7c14b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a462f6da84be70cff0f092283cdf7c14b" kindref="member">Path::Edge::truealt</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(_alt<sp/>&lt;<sp/>_choice-&gt;alternatives());</highlight></codeline>
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_alt;</highlight></codeline>
<codeline lineno="171"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="173" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a45148161e8e1b2b086fdb96edd6dcc1e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a45148161e8e1b2b086fdb96edd6dcc1e" kindref="member">Path::Edge::leftmost</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_alt<sp/>==<sp/>0;</highlight></codeline>
<codeline lineno="175"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="177" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a56346d428756b0d5b25ad1c76943158d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a56346d428756b0d5b25ad1c76943158d" kindref="member">Path::Edge::rightmost</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_alt+1<sp/>&gt;=<sp/>_choice-&gt;alternatives();</highlight></codeline>
<codeline lineno="179"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="180"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="181" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8e2372d3ee578eaff08b7c9bf5953a72" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1a8e2372d3ee578eaff08b7c9bf5953a72" kindref="member">Path::Edge::lao</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_alt<sp/>&gt;=<sp/>_choice-&gt;alternatives();</highlight></codeline>
<codeline lineno="183"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="184"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="185" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad95980be15f0e866f6a3142c6cca290f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad95980be15f0e866f6a3142c6cca290f" kindref="member">Path::Edge::next</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/>_alt++;</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="188"><highlight class="normal"></highlight></codeline>
<codeline lineno="189"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Choice" kindref="compound">Choice</ref>*</highlight></codeline>
<codeline lineno="190" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ace42061df7bae3cab9f2fde99848e0a9" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ace42061df7bae3cab9f2fde99848e0a9" kindref="member">Path::Edge::choice</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_choice;</highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="193"><highlight class="normal"></highlight></codeline>
<codeline lineno="194"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="195" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1afbf5f00340c4d7393ae1ddf38e087bc3" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1afbf5f00340c4d7393ae1ddf38e087bc3" kindref="member">Path::Edge::dispose</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/>_space;</highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/>_choice;</highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="199"><highlight class="normal"></highlight></codeline>
<codeline lineno="200"><highlight class="normal"></highlight></codeline>
<codeline lineno="201"><highlight class="normal"></highlight></codeline>
<codeline lineno="202"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="203"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Depth-first<sp/>stack<sp/>with<sp/>recomputation</highlight></codeline>
<codeline lineno="204"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="205"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="206"><highlight class="normal"></highlight></codeline>
<codeline lineno="207"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="208" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa2fca31acd144c6feb41aa0c243f5c87" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa2fca31acd144c6feb41aa0c243f5c87" kindref="member">Path::Path</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l)<sp/></highlight></codeline>
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>(<ref refid="namespaceGecode_1a6595368d634d0db095ad8dee79f14d2c" kindref="member">heap</ref>),<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa6bf1b1eada7e4dc8b591427eccea6e4" kindref="member">_ngdl</ref>(l)<sp/>{}</highlight></codeline>
<codeline lineno="210"><highlight class="normal"></highlight></codeline>
<codeline lineno="211"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="212" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" kindref="member">Path::ngdl</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa6bf1b1eada7e4dc8b591427eccea6e4" kindref="member">_ngdl</ref>;</highlight></codeline>
<codeline lineno="214"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="215"><highlight class="normal"></highlight></codeline>
<codeline lineno="216"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="217" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a01fa6d2e5107ac3004c3aa922a55d136" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" kindref="member">Path::ngdl</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l)<sp/>{</highlight></codeline>
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1aa6bf1b1eada7e4dc8b591427eccea6e4" kindref="member">_ngdl</ref><sp/>=<sp/>l;</highlight></codeline>
<codeline lineno="219"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="220"><highlight class="normal"></highlight></codeline>
<codeline lineno="221"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Choice" kindref="compound">Choice</ref>*</highlight></codeline>
<codeline lineno="222" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a050f123019eb045ed9d688ff3af5d9fc" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a050f123019eb045ed9d688ff3af5d9fc" kindref="member">Path::push</ref>(<ref refid="classGecode_1_1Search_1_1Worker" kindref="compound">Worker</ref>&amp;<sp/>stat,<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s,<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>c)<sp/>{</highlight></codeline>
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty()<sp/>&amp;&amp;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().lao())<sp/>{</highlight></codeline>
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Topmost<sp/>stack<sp/>entry<sp/>was<sp/>LAO<sp/>-&gt;<sp/>reuse</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.pop().dispose();</highlight></codeline>
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" kindref="compound">Edge</ref><sp/>sn(s,c);</highlight></codeline>
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.push(sn);</highlight></codeline>
<codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/>stat.<ref refid="classGecode_1_1Search_1_1Worker_1aea8297027ebf65274ee7246e31bccd45" kindref="member">stack_depth</ref>(static_cast&lt;unsigned<sp/>long<sp/>int&gt;(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()));</highlight></codeline>
<codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>sn.<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ace42061df7bae3cab9f2fde99848e0a9" kindref="member">choice</ref>();</highlight></codeline>
<codeline lineno="231"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="232"><highlight class="normal"></highlight></codeline>
<codeline lineno="233"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="234" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a7ca7c2604c754b56b8af2c9cc650d049" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a7ca7c2604c754b56b8af2c9cc650d049" kindref="member">Path::next</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(!<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty())</highlight></codeline>
<codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().rightmost())<sp/>{</highlight></codeline>
<codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.pop().dispose();</highlight></codeline>
<codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().next();</highlight></codeline>
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="243"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="244"><highlight class="normal"></highlight></codeline>
<codeline lineno="245"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" kindref="compound">Path::Edge</ref>&amp;</highlight></codeline>
<codeline lineno="246" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a7f731b597fa86c2544c8696480253348" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a7f731b597fa86c2544c8696480253348" kindref="member">Path::top</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(!<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty());</highlight></codeline>
<codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top();</highlight></codeline>
<codeline lineno="249"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="250"><highlight class="normal"></highlight></codeline>
<codeline lineno="251"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="252" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1af64a30030f831410cca72f122105599a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1af64a30030f831410cca72f122105599a" kindref="member">Path::empty</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty();</highlight></codeline>
<codeline lineno="254"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="255"><highlight class="normal"></highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="257" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">Path::commit</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge" kindref="compound">Edge</ref>&amp;<sp/><ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref><sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[i];</highlight></codeline>
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/>s-&gt;<ref refid="classGecode_1_1Space_1af6c5acd20d04168a04b0025da458882a" kindref="member">commit</ref>(*n.<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ace42061df7bae3cab9f2fde99848e0a9" kindref="member">choice</ref>(),n.<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1_1Edge_1ad7ac8192e59f417213ac0569b945f25b" kindref="member">alt</ref>());</highlight></codeline>
<codeline lineno="260"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="261"><highlight class="normal"></highlight></codeline>
<codeline lineno="262"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="263" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" kindref="member">Path::lc</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()-1;</highlight></codeline>
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[l].space()<sp/>==<sp/>NULL)</highlight></codeline>
<codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>l--;</highlight></codeline>
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>l;</highlight></codeline>
<codeline lineno="268"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="269"><highlight class="normal"></highlight></codeline>
<codeline lineno="270"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="271" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1ae0d78873b844045a0b35363019bf2971" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1ae0d78873b844045a0b35363019bf2971" kindref="member">Path::entries</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries();</highlight></codeline>
<codeline lineno="273"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="274"><highlight class="normal"></highlight></codeline>
<codeline lineno="275"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="276" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a2a159b56eac57e080aa79a1a95aafedf" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a2a159b56eac57e080aa79a1a95aafedf" kindref="member">Path::unwind</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l)<sp/>{</highlight></codeline>
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/>assert((<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[l].space()<sp/>==<sp/>NULL)<sp/>||<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[l].space()-&gt;failed());</highlight></codeline>
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref><sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries();</highlight></codeline>
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=l;<sp/>i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>;<sp/>i++)</highlight></codeline>
<codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.pop().dispose();</highlight></codeline>
<codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()<sp/>==<sp/>l);</highlight></codeline>
<codeline lineno="282"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="283"><highlight class="normal"></highlight></codeline>
<codeline lineno="284"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="285" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a3089a3f62fab6d9d1145411926302ab1" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a3089a3f62fab6d9d1145411926302ab1" kindref="member">Path::reset</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(!<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty())</highlight></codeline>
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.pop().dispose();</highlight></codeline>
<codeline lineno="288"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="289"><highlight class="normal"></highlight></codeline>
<codeline lineno="290"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*</highlight></codeline>
<codeline lineno="291" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1adb103b2131d24a8ca64834c73e0f7018" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1adb103b2131d24a8ca64834c73e0f7018" kindref="member">Path::recompute</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&amp;<sp/>d,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>a_d,<sp/><ref refid="classGecode_1_1Search_1_1Worker" kindref="compound">Worker</ref>&amp;<sp/>stat)<sp/>{</highlight></codeline>
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(!<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty());</highlight></codeline>
<codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Recompute<sp/>space<sp/>according<sp/>to<sp/>path</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Also<sp/>say<sp/>distance<sp/>to<sp/>copy<sp/>(d<sp/>==<sp/>0)<sp/>requires<sp/>immediate<sp/>copying</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="295"><highlight class="normal"></highlight></codeline>
<codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>for<sp/>LAO</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().space()<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().rightmost())<sp/>{</highlight></codeline>
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().space();</highlight></codeline>
<codeline lineno="299"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>s-&gt;<ref refid="classGecode_1_1Space_1af6c5acd20d04168a04b0025da458882a" kindref="member">commit</ref>(*<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().choice(),<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().alt());</highlight></codeline>
<codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()-1<sp/>==<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" kindref="member">lc</ref>());</highlight></codeline>
<codeline lineno="301"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().space(NULL);</highlight></codeline>
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Mark<sp/>as<sp/>reusable</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()<sp/>&gt;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" kindref="member">ngdl</ref>())</highlight></codeline>
<codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().next();</highlight></codeline>
<codeline lineno="305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>s;</highlight></codeline>
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>General<sp/>case<sp/>for<sp/>recomputation</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" kindref="member">lc</ref>();<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Position<sp/>of<sp/>last<sp/>clone</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref><sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries();<sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Number<sp/>of<sp/>stack<sp/>entries</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>New<sp/>distance,<sp/>if<sp/>no<sp/>adaptive<sp/>recomputation</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/>d<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(n<sp/>-<sp/>l);</highlight></codeline>
<codeline lineno="313"><highlight class="normal"></highlight></codeline>
<codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[l].space()-&gt;clone();<sp/></highlight><highlight class="comment">//<sp/>Last<sp/>clone</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="315"><highlight class="normal"></highlight></codeline>
<codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d<sp/>&lt;<sp/>a_d)<sp/>{</highlight></codeline>
<codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>No<sp/>adaptive<sp/>recomputation</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="318"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=l;<sp/>i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>;<sp/>i++)</highlight></codeline>
<codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="321"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>m<sp/>=<sp/>l<sp/>+<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(d<sp/>&gt;&gt;<sp/>1);<sp/></highlight><highlight class="comment">//<sp/>Middle<sp/>between<sp/>copy<sp/>and<sp/>top</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>l;<sp/></highlight><highlight class="comment">//<sp/>To<sp/>iterate<sp/>over<sp/>all<sp/>entries</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Recompute<sp/>up<sp/>to<sp/>middle</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>i&lt;m;<sp/>i++<sp/>)</highlight></codeline>
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Skip<sp/>over<sp/>all<sp/>rightmost<sp/>branches</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>(i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>)<sp/>&amp;&amp;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[i].rightmost();<sp/>i++)</highlight></codeline>
<codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Is<sp/>there<sp/>any<sp/>point<sp/>to<sp/>make<sp/>a<sp/>copy?</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i&lt;n-1)<sp/>{</highlight></codeline>
<codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Propagate<sp/>to<sp/>fixpoint</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1af2c31e4405deb7f40175130957c30585" kindref="member">SpaceStatus</ref><sp/>ss<sp/>=<sp/>s-&gt;<ref refid="classGecode_1_1Space_1a3812fd0a475b63341694c44faa5e8b36" kindref="member">status</ref>(stat);</highlight></codeline>
<codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="334"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>Again,<sp/>the<sp/>space<sp/>might<sp/>already<sp/>propagate<sp/>to<sp/>failure<sp/>(due<sp/>to</highlight></codeline>
<codeline lineno="335"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>weakly<sp/>monotonic<sp/>propagators).</highlight></codeline>
<codeline lineno="336"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ss<sp/>==<sp/><ref refid="namespaceGecode_1af2c31e4405deb7f40175130957c30585ad86f84f8e703789baf93668526a38ae0" kindref="member">SS_FAILED</ref>)<sp/>{</highlight></codeline>
<codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>s<sp/>must<sp/>be<sp/>deleted<sp/>as<sp/>it<sp/>is<sp/>not<sp/>on<sp/>the<sp/>stack</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/>s;</highlight></codeline>
<codeline lineno="340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stat.<ref refid="classGecode_1_1Search_1_1Statistics_1abd709acc7f8a83851f063987ceb87731" kindref="member">fail</ref>++;</highlight></codeline>
<codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a2a159b56eac57e080aa79a1a95aafedf" kindref="member">unwind</ref>(i);</highlight></codeline>
<codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="343"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="344"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[i].space(s-&gt;<ref refid="classGecode_1_1Space_1a54f69f4d73d434c2dcea056a7e678d23" kindref="member">clone</ref>());</highlight></codeline>
<codeline lineno="345"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>d<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(n-i);</highlight></codeline>
<codeline lineno="346"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="347"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Finally<sp/>do<sp/>the<sp/>remaining<sp/>commits</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="348"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>;<sp/>i++)</highlight></codeline>
<codeline lineno="349"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="350"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="351"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>s;</highlight></codeline>
<codeline lineno="352"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="353"><highlight class="normal"></highlight></codeline>
<codeline lineno="354"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*</highlight></codeline>
<codeline lineno="355" refid="classGecode_1_1Search_1_1Sequential_1_1Path_1afec2ed3989a571419964b124b031bc70" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1adb103b2131d24a8ca64834c73e0f7018" kindref="member">Path::recompute</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&amp;<sp/>d,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>a_d,<sp/><ref refid="classGecode_1_1Search_1_1Worker" kindref="compound">Worker</ref>&amp;<sp/>stat,</highlight></codeline>
<codeline lineno="356"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>best,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&amp;<sp/>mark)<sp/>{</highlight></codeline>
<codeline lineno="357"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(!<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.empty());</highlight></codeline>
<codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Recompute<sp/>space<sp/>according<sp/>to<sp/>path</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="359"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Also<sp/>say<sp/>distance<sp/>to<sp/>copy<sp/>(d<sp/>==<sp/>0)<sp/>requires<sp/>immediate<sp/>copying</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="360"><highlight class="normal"></highlight></codeline>
<codeline lineno="361"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>for<sp/>LAO</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="362"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().space()<sp/>!=<sp/>NULL)<sp/>&amp;&amp;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().rightmost())<sp/>{</highlight></codeline>
<codeline lineno="363"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().space();</highlight></codeline>
<codeline lineno="364"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>s-&gt;<ref refid="classGecode_1_1Space_1af6c5acd20d04168a04b0025da458882a" kindref="member">commit</ref>(*<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().choice(),<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().alt());</highlight></codeline>
<codeline lineno="365"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()-1<sp/>==<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" kindref="member">lc</ref>());</highlight></codeline>
<codeline lineno="366"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(mark<sp/>&gt;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()-1)<sp/>{</highlight></codeline>
<codeline lineno="367"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mark<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()-1;</highlight></codeline>
<codeline lineno="368"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s-&gt;<ref refid="classGecode_1_1Space_1ad3e536fadd835f0f58d4f8b80c36f31a" kindref="member">constrain</ref>(*best);</highlight></codeline>
<codeline lineno="369"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="370"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().space(NULL);</highlight></codeline>
<codeline lineno="371"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Mark<sp/>as<sp/>reusable</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="372"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries()<sp/>&gt;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a320ce0476f3971d23380f27ab38a0ce7" kindref="member">ngdl</ref>())</highlight></codeline>
<codeline lineno="373"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.top().next();</highlight></codeline>
<codeline lineno="374"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>d<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="375"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>s;</highlight></codeline>
<codeline lineno="376"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="377"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>General<sp/>case<sp/>for<sp/>recomputation</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a38eed51e46902ce428bc9c3bd5ce20e2" kindref="member">lc</ref>();<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Position<sp/>of<sp/>last<sp/>clone</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="379"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref><sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>.entries();<sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Number<sp/>of<sp/>stack<sp/>entries</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="380"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>New<sp/>distance,<sp/>if<sp/>no<sp/>adaptive<sp/>recomputation</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="381"><highlight class="normal"><sp/><sp/><sp/><sp/>d<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(n<sp/>-<sp/>l);</highlight></codeline>
<codeline lineno="382"><highlight class="normal"></highlight></codeline>
<codeline lineno="383"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[l].space();<sp/></highlight><highlight class="comment">//<sp/>Last<sp/>clone</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="384"><highlight class="normal"></highlight></codeline>
<codeline lineno="385"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(l<sp/>&lt;<sp/>mark)<sp/>{</highlight></codeline>
<codeline lineno="386"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>mark<sp/>=<sp/>l;</highlight></codeline>
<codeline lineno="387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>s-&gt;<ref refid="classGecode_1_1Space_1ad3e536fadd835f0f58d4f8b80c36f31a" kindref="member">constrain</ref>(*best);</highlight></codeline>
<codeline lineno="388"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>The<sp/>space<sp/>on<sp/>the<sp/>stack<sp/>could<sp/>be<sp/>failed<sp/>now<sp/>as<sp/>an<sp/>additional</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="389"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>constraint<sp/>might<sp/>have<sp/>been<sp/>added.</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="390"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(s-&gt;<ref refid="classGecode_1_1Space_1a3812fd0a475b63341694c44faa5e8b36" kindref="member">status</ref>(stat)<sp/>==<sp/><ref refid="namespaceGecode_1af2c31e4405deb7f40175130957c30585ad86f84f8e703789baf93668526a38ae0" kindref="member">SS_FAILED</ref>)<sp/>{</highlight></codeline>
<codeline lineno="391"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>s<sp/>does<sp/>not<sp/>need<sp/>deletion<sp/>as<sp/>it<sp/>is<sp/>on<sp/>the<sp/>stack<sp/>(unwind<sp/>does<sp/>this)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="392"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stat.<ref refid="classGecode_1_1Search_1_1Statistics_1abd709acc7f8a83851f063987ceb87731" kindref="member">fail</ref>++;</highlight></codeline>
<codeline lineno="393"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a2a159b56eac57e080aa79a1a95aafedf" kindref="member">unwind</ref>(l);</highlight></codeline>
<codeline lineno="394"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="395"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="396"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>It<sp/>is<sp/>important<sp/>to<sp/>replace<sp/>the<sp/>space<sp/>on<sp/>the<sp/>stack<sp/>with<sp/>the</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="397"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>copy:<sp/>a<sp/>copy<sp/>might<sp/>be<sp/>much<sp/>smaller<sp/>due<sp/>to<sp/>flushed<sp/>caches</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="398"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>of<sp/>propagators</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="399"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>*<sp/>c<sp/>=<sp/>s-&gt;<ref refid="classGecode_1_1Space_1a54f69f4d73d434c2dcea056a7e678d23" kindref="member">clone</ref>();</highlight></codeline>
<codeline lineno="400"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[l].space(c);</highlight></codeline>
<codeline lineno="401"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="402"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>s<sp/>=<sp/>s-&gt;<ref refid="classGecode_1_1Space_1a54f69f4d73d434c2dcea056a7e678d23" kindref="member">clone</ref>();</highlight></codeline>
<codeline lineno="403"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="404"><highlight class="normal"></highlight></codeline>
<codeline lineno="405"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d<sp/>&lt;<sp/>a_d)<sp/>{</highlight></codeline>
<codeline lineno="406"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>No<sp/>adaptive<sp/>recomputation</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="407"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=l;<sp/>i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>;<sp/>i++)</highlight></codeline>
<codeline lineno="408"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="409"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="410"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>m<sp/>=<sp/>l<sp/>+<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(d<sp/>&gt;&gt;<sp/>1);<sp/></highlight><highlight class="comment">//<sp/>Middle<sp/>between<sp/>copy<sp/>and<sp/>top</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="411"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>l;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>To<sp/>iterate<sp/>over<sp/>all<sp/>entries</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="412"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Recompute<sp/>up<sp/>to<sp/>middle</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="413"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>i&lt;m;<sp/>i++<sp/>)</highlight></codeline>
<codeline lineno="414"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="415"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Skip<sp/>over<sp/>all<sp/>rightmost<sp/>branches</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="416"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>(i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>)<sp/>&amp;&amp;<sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[i].rightmost();<sp/>i++)</highlight></codeline>
<codeline lineno="417"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="418"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Is<sp/>there<sp/>any<sp/>point<sp/>to<sp/>make<sp/>a<sp/>copy?</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="419"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i&lt;n-1)<sp/>{</highlight></codeline>
<codeline lineno="420"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Propagate<sp/>to<sp/>fixpoint</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="421"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1af2c31e4405deb7f40175130957c30585" kindref="member">SpaceStatus</ref><sp/>ss<sp/>=<sp/>s-&gt;<ref refid="classGecode_1_1Space_1a3812fd0a475b63341694c44faa5e8b36" kindref="member">status</ref>(stat);</highlight></codeline>
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="423"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>Again,<sp/>the<sp/>space<sp/>might<sp/>already<sp/>propagate<sp/>to<sp/>failure</highlight></codeline>
<codeline lineno="424"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="425"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>This<sp/>can<sp/>be<sp/>for<sp/>two<sp/>reasons:</highlight></codeline>
<codeline lineno="426"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/><sp/>-<sp/>constrain<sp/>is<sp/>true,<sp/>so<sp/>we<sp/>fail</highlight></codeline>
<codeline lineno="427"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/><sp/>-<sp/>the<sp/>space<sp/>has<sp/>weakly<sp/>monotonic<sp/>propagators</highlight></codeline>
<codeline lineno="428"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="429"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ss<sp/>==<sp/><ref refid="namespaceGecode_1af2c31e4405deb7f40175130957c30585ad86f84f8e703789baf93668526a38ae0" kindref="member">SS_FAILED</ref>)<sp/>{</highlight></codeline>
<codeline lineno="430"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>s<sp/>must<sp/>be<sp/>deleted<sp/>as<sp/>it<sp/>is<sp/>not<sp/>on<sp/>the<sp/>stack</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="431"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/>s;</highlight></codeline>
<codeline lineno="432"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stat.<ref refid="classGecode_1_1Search_1_1Statistics_1abd709acc7f8a83851f063987ceb87731" kindref="member">fail</ref>++;</highlight></codeline>
<codeline lineno="433"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a2a159b56eac57e080aa79a1a95aafedf" kindref="member">unwind</ref>(i);</highlight></codeline>
<codeline lineno="434"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NULL;</highlight></codeline>
<codeline lineno="435"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="436"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a70e8e03b116b1583713a5f7067c6db55" kindref="member">ds</ref>[i].space(s-&gt;<ref refid="classGecode_1_1Space_1a54f69f4d73d434c2dcea056a7e678d23" kindref="member">clone</ref>());</highlight></codeline>
<codeline lineno="437"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>d<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(n-i);</highlight></codeline>
<codeline lineno="438"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="439"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Finally<sp/>do<sp/>the<sp/>remaining<sp/>commits</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="440"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>i&lt;<ref refid="classGecode_1_1NoGoods_1ad8a81d61de70c5bf047ecf203c5c86de" kindref="member">n</ref>;<sp/>i++)</highlight></codeline>
<codeline lineno="441"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Search_1_1Sequential_1_1Path_1a9baa2a7e6549e638de590f9ca4c77834" kindref="member">commit</ref>(s,i);</highlight></codeline>
<codeline lineno="442"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="443"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>s;</highlight></codeline>
<codeline lineno="444"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="445"><highlight class="normal"></highlight></codeline>
<codeline lineno="446"><highlight class="normal">}}}</highlight></codeline>
<codeline lineno="447"><highlight class="normal"></highlight></codeline>
<codeline lineno="448"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="449"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="450"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>search-sequential</highlight><highlight class="normal"></highlight></codeline>
</programlisting>
<location file="/usr/include/gecode/search/sequential/path.hh"/>
</compounddef>
</doxygen>