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/layered-graph_8hpp.xml

1014 lines
279 KiB
XML
Raw Normal View History

2014-01-22 09:41:47 +00:00
<?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="layered-graph_8hpp" kind="file">
<compoundname>layered-graph.hpp</compoundname>
<includes local="no">climits</includes>
<includes local="no">algorithm</includes>
<includedby refid="extensional_8hh" local="no">/usr/include/gecode/int/extensional.hh</includedby>
<incdepgraph>
<node id="15419">
<label>climits</label>
</node>
<node id="15418">
<label>/usr/include/gecode/int/extensional/layered-graph.hpp</label>
<link refid="layered-graph.hpp"/>
<childnode refid="15419" relation="include">
</childnode>
<childnode refid="15420" relation="include">
</childnode>
</node>
<node id="15420">
<label>algorithm</label>
</node>
</incdepgraph>
<invincdepgraph>
<node id="15422">
<label>/usr/include/gecode/int/extensional.hh</label>
<link refid="extensional_8hh_source"/>
</node>
<node id="15421">
<label>/usr/include/gecode/int/extensional/layered-graph.hpp</label>
<link refid="layered-graph.hpp"/>
<childnode refid="15422" relation="include">
</childnode>
</node>
</invincdepgraph>
<innerclass refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" prot="public">Gecode::Int::Extensional::VarTraits</innerclass>
<innerclass refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01IntVar_01_4" prot="public">Gecode::Int::Extensional::VarTraits&lt; IntVar &gt;</innerclass>
<innerclass refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01BoolVar_01_4" prot="public">Gecode::Int::Extensional::VarTraits&lt; BoolVar &gt;</innerclass>
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
<innernamespace refid="namespaceGecode_1_1Int">Gecode::Int</innernamespace>
<innernamespace refid="namespaceGecode_1_1Int_1_1Extensional">Gecode::Int::Extensional</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/>2004</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/>2012-09-07<sp/>17:31:22<sp/>+0200<sp/>(Fri,<sp/>07<sp/>Sep<sp/>2012)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13068<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">#include<sp/>&lt;climits&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;algorithm&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><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">Int<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Extensional<sp/>{</highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Var&gt;</highlight></codeline>
<codeline lineno="50" refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits</ref><sp/>{};</highlight></codeline>
<codeline lineno="51"><highlight class="normal"></highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;&gt;</highlight></codeline>
<codeline lineno="58" refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01IntVar_01_4" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits</ref>&lt;<ref refid="classGecode_1_1IntVar" kindref="compound">IntVar</ref>&gt;<sp/>{</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="61" refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01IntVar_01_4_1a1879517046af53fd0366b0fb3c6fef50" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1IntView" kindref="compound">Int::IntView</ref><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01IntVar_01_4_1a1879517046af53fd0366b0fb3c6fef50" kindref="member">View</ref>;</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="63"><highlight class="normal"></highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;&gt;</highlight></codeline>
<codeline lineno="70" refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01BoolVar_01_4" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits</ref>&lt;<ref refid="classGecode_1_1BoolVar" kindref="compound">BoolVar</ref>&gt;<sp/>{</highlight></codeline>
<codeline lineno="71"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="73" refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01BoolVar_01_4_1a09b6403ff45d82aca25044e8975e201e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1BoolView" kindref="compound">Int::BoolView</ref><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits_3_01BoolVar_01_4_1a09b6403ff45d82aca25044e8975e201e" kindref="member">View</ref>;</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="75"><highlight class="normal"></highlight></codeline>
<codeline lineno="76"><highlight class="normal"></highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="78"><highlight class="comment"><sp/><sp/><sp/>*<sp/>States</highlight></codeline>
<codeline lineno="79"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="82" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1ac97367fcae5136f51062fbe4a490da78" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1ac97367fcae5136f51062fbe4a490da78" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::State::init</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref>=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref>=0;<sp/></highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="88"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::State</ref>&amp;<sp/></highlight></codeline>
<codeline lineno="89" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::i_state</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/>StateIdx<sp/>is)<sp/>{</highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[is];</highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::State</ref>&amp;<sp/></highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::i_state</ref></highlight></codeline>
<codeline lineno="95"><highlight class="normal"><sp/><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::Edge</ref>&amp;<sp/>e)<sp/>{</highlight></codeline>
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(i,e.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a50e897f0a2f9e32ec161603b89628fde" kindref="member">i_state</ref>);</highlight></codeline>
<codeline lineno="97"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="100"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::i_dec</ref></highlight></codeline>
<codeline lineno="101" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" refkind="member"><highlight class="normal"><sp/><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::Edge</ref>&amp;<sp/>e)<sp/>{</highlight></codeline>
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>--<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(i,e).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref><sp/>==<sp/>0;</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="104"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="105"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::State</ref>&amp;<sp/></highlight></codeline>
<codeline lineno="106" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::o_state</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/>StateIdx<sp/>os)<sp/>{</highlight></codeline>
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i+1].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[os];</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="110"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::State</ref>&amp;<sp/></highlight></codeline>
<codeline lineno="111"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::o_state</ref></highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::Edge</ref>&amp;<sp/>e)<sp/>{</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(i,e.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a039b08f5d0fcc009846dd69373ad8b6a" kindref="member">o_state</ref>);</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="115"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::o_dec</ref></highlight></codeline>
<codeline lineno="118" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" refkind="member"><highlight class="normal"><sp/><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::Edge</ref>&amp;<sp/>e)<sp/>{</highlight></codeline>
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>--<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(i,e).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>==<sp/>0;</highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="121"><highlight class="normal"></highlight></codeline>
<codeline lineno="122"><highlight class="normal"></highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="124"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Value<sp/>iterator</highlight></codeline>
<codeline lineno="125"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="128" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1afd23cba6ef7d3d78f2ca9c9bcf9731ad" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1afd23cba6ef7d3d78f2ca9c9bcf9731ad" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayerValues::LayerValues</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{}</highlight></codeline>
<codeline lineno="129"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="131"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1afd23cba6ef7d3d78f2ca9c9bcf9731ad" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayerValues</ref></highlight></codeline>
<codeline lineno="132"><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1afd23cba6ef7d3d78f2ca9c9bcf9731ad" kindref="member"> ::LayerValues</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer" kindref="compound">Layer</ref>&amp;<sp/>l)</highlight></codeline>
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>s1(l.support),<sp/>s2(l.support+l.<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>)<sp/>{}</highlight></codeline>
<codeline lineno="134"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="136" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a7681351e58a5ced1ad7500d73efd65e0" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a7681351e58a5ced1ad7500d73efd65e0" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayerValues::init</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer" kindref="compound">Layer</ref>&amp;<sp/>l)<sp/>{</highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/>s1=l.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>;<sp/>s2=l.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>+l.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="140"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="141"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a7914a60855f0457d876c75e79c8ea49f" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayerValues</ref></highlight></codeline>
<codeline lineno="142" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a7914a60855f0457d876c75e79c8ea49f" refkind="member"><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a7914a60855f0457d876c75e79c8ea49f" kindref="member"> ::operator ()</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="143"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>s1&lt;s2;</highlight></codeline>
<codeline lineno="144"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="145"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="146"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="147" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a50da2b6549caad9f96f62cf20408701e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a50da2b6549caad9f96f62cf20408701e" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayerValues::operator ++</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/>s1++;</highlight></codeline>
<codeline lineno="149"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="150"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="151"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="152" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a433891de7086fa8e5a7def8ac5a8e647" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1LayerValues_1a433891de7086fa8e5a7def8ac5a8e647" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayerValues::val</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="153"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>s1-&gt;val;</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="155"><highlight class="normal"></highlight></codeline>
<codeline lineno="156"><highlight class="normal"></highlight></codeline>
<codeline lineno="157"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="158"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Index<sp/>advisors</highlight></codeline>
<codeline lineno="159"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="160"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="163"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Index_1aa04381a0f7400154b0cfc0d13eff02df" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::Index::Index</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&amp;<sp/>p,</highlight></codeline>
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Council" kindref="compound">Council&lt;Index&gt;</ref>&amp;<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>,</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i0)</highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Advisor" kindref="compound">Advisor</ref>(home,p,c),<sp/>i(i0)<sp/>{}</highlight></codeline>
<codeline lineno="167"><highlight class="normal"></highlight></codeline>
<codeline lineno="168"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="170"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Index_1aa04381a0f7400154b0cfc0d13eff02df" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::Index::Index</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,</highlight></codeline>
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Index&amp;<sp/>a)</highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Advisor" kindref="compound">Advisor</ref>(home,share,a),<sp/>i(a.i)<sp/>{}</highlight></codeline>
<codeline lineno="173"><highlight class="normal"></highlight></codeline>
<codeline lineno="174"><highlight class="normal"></highlight></codeline>
<codeline lineno="175"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="176"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Index<sp/>ranges</highlight></codeline>
<codeline lineno="177"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="178"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="179"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="180"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="181" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5f9d4f48b58257237c68b694fd415b4e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5f9d4f48b58257237c68b694fd415b4e" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::IndexRange</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/>_fst(INT_MAX),<sp/>_lst(INT_MIN)<sp/>{}</highlight></codeline>
<codeline lineno="183"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</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_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5dbda5620d281be899986fde8c57b19b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5dbda5620d281be899986fde8c57b19b" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::reset</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/>_fst=INT_MAX;<sp/>_lst=INT_MIN;</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="188"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="189"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="190" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::add</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i)<sp/>{</highlight></codeline>
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/>_fst=<ref refid="group__TaskModelFloatArith_1ga121700708772a60191be6256c3c0d151" kindref="member">std::min</ref>(_fst,i);<sp/>_lst=<ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(_lst,i);</highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="193"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</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"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::add</ref></highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange</ref>&amp;<sp/>ir)<sp/>{</highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/>_fst=<ref refid="group__TaskModelFloatArith_1ga121700708772a60191be6256c3c0d151" kindref="member">std::min</ref>(_fst,ir._fst);<sp/>_lst=<ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(_lst,ir._lst);</highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="199"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="200"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="201" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a8ebd4ec83c7ead3724552a98a4e8eb60" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a8ebd4ec83c7ead3724552a98a4e8eb60" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::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="202"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_fst&gt;_lst;</highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="204"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="205"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="206" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a8e2f4eccc50d7e6047f5603972732ca8" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a8e2f4eccc50d7e6047f5603972732ca8" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::lshift</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>)<sp/>{</highlight></codeline>
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1ActorLink_1a925e990fc90855238801f5f96d3a240f" kindref="member">empty</ref>())</highlight></codeline>
<codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(n<sp/>&gt;<sp/>_lst)<sp/>{</highlight></codeline>
<codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>reset();</highlight></codeline>
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>_fst<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(0,_fst-n);</highlight></codeline>
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>_lst<sp/>-=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>;</highlight></codeline>
<codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="215"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="216"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="217"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="218" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1aa8af3f8de0e43913cc0cbd5439efb40e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1aa8af3f8de0e43913cc0cbd5439efb40e" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::fst</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="219"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_fst;</highlight></codeline>
<codeline lineno="220"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="221"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="222"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="223" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a4d83098ad60ee771641c20a987726da6" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a4d83098ad60ee771641c20a987726da6" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::IndexRange::lst</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="224"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>_lst;</highlight></codeline>
<codeline lineno="225"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="226"><highlight class="normal"></highlight></codeline>
<codeline lineno="227"><highlight class="normal"></highlight></codeline>
<codeline lineno="228"><highlight class="normal"></highlight></codeline>
<codeline lineno="229"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="230"><highlight class="comment"><sp/><sp/><sp/>*<sp/>The<sp/>layered<sp/>graph</highlight></codeline>
<codeline lineno="231"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
<codeline lineno="232"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="233"><highlight class="normal"></highlight></codeline>
<codeline lineno="234"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="235"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Var&gt;</highlight></codeline>
<codeline lineno="236"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="237"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aecc6fa1eaaf4eccfd826ffeddd0f8c6d" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::LayeredGraph</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,</highlight></codeline>
<codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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_1VarArgArray" kindref="compound">VarArgArray&lt;Var&gt;</ref>&amp;<sp/>x,<sp/></highlight></codeline>
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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_1DFA" kindref="compound">DFA</ref>&amp;<sp/>dfa)</highlight></codeline>
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>(home),<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>(home),<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>(x.<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>()),<sp/></highlight></codeline>
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>(static_cast&lt;StateIdx&gt;(dfa.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>()))<sp/>{</highlight></codeline>
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref><sp/>&gt;<sp/>0);</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/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="246"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="247" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::audit</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="248"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>GECODE_AUDIT</highlight></codeline>
<codeline lineno="249"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>states<sp/>and<sp/>edge<sp/>information<sp/>to<sp/>be<sp/>consistent</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n_e<sp/>=<sp/>0;<sp/></highlight><highlight class="comment">//<sp/>Number<sp/>of<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n_s<sp/>=<sp/>0;<sp/></highlight><highlight class="comment">//<sp/>Number<sp/>of<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/>StateIdx<sp/>m_s<sp/>=<sp/>0;<sp/></highlight><highlight class="comment">//<sp/>Maximal<sp/>number<sp/>of<sp/>states<sp/>per<sp/>layer</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="253"><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=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>n_s<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>m_s<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(m_s,<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>);</highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)</highlight></codeline>
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_e<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].support[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/>n_s<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/>m_s<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(m_s,<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>);</highlight></codeline>
<codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(n_e<sp/>==<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>);</highlight></codeline>
<codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(n_s<sp/>&lt;=<sp/>n_states);</highlight></codeline>
<codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(m_s<sp/>&lt;=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>);</highlight></codeline>
<codeline lineno="264"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="265"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="266"><highlight class="normal"></highlight></codeline>
<codeline lineno="267"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="268"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Var&gt;</highlight></codeline>
<codeline lineno="269"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
<codeline lineno="270"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a09450fd1e2bdad4852b63975b3b58086" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::initialize</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,</highlight></codeline>
<codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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_1VarArgArray" kindref="compound">VarArgArray&lt;Var&gt;</ref>&amp;<sp/>x,<sp/></highlight></codeline>
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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_1DFA" kindref="compound">DFA</ref>&amp;<sp/>dfa)<sp/>{</highlight></codeline>
<codeline lineno="273"><highlight class="normal"></highlight></codeline>
<codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Region" kindref="compound">Region</ref><sp/>r(home);</highlight></codeline>
<codeline lineno="275"><highlight class="normal"></highlight></codeline>
<codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Allocate<sp/>memory<sp/>for<sp/>layers</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref><sp/>=<sp/>home.<ref refid="group__FuncMemSpace_1gacf6b71739fd13f46d8d27052d714265e" kindref="member">alloc</ref>&lt;Layer&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>+1);</highlight></codeline>
<codeline lineno="278"><highlight class="normal"></highlight></codeline>
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Allocate<sp/>temporary<sp/>memory<sp/>for<sp/>all<sp/>possible<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/>State*<sp/>states<sp/>=<sp/>r.alloc&lt;State&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>*(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>+1));</highlight></codeline>
<codeline lineno="281"><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=static_cast&lt;int&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>)*(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>+1);<sp/>i--;<sp/>)</highlight></codeline>
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>states[i].<ref refid="classGecode_1_1ActorLink_1a2a85f4b580dce95d9e53f9ea154ac43f" kindref="member">init</ref>();</highlight></codeline>
<codeline lineno="283"><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=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>+1;<sp/>i--;<sp/>)</highlight></codeline>
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].states<sp/>=<sp/>states<sp/>+<sp/>i*<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>;</highlight></codeline>
<codeline lineno="285"><highlight class="normal"></highlight></codeline>
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Allocate<sp/>temporary<sp/>memory<sp/>for<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/>Edge*<sp/>edges<sp/>=<sp/>r.alloc&lt;Edge&gt;(dfa.max_degree());</highlight></codeline>
<codeline lineno="288"><highlight class="normal"></highlight></codeline>
<codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Mark<sp/>initial<sp/>state<sp/>as<sp/>being<sp/>reachable</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(0,0).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="291"><highlight class="normal"></highlight></codeline>
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Forward<sp/>pass:<sp/>add<sp/>transitions</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="293"><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=0;<sp/>i&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref><sp/>=<sp/>x[i];</highlight></codeline>
<codeline lineno="295"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref><sp/>=<sp/>home.alloc&lt;Support&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref>.size());</highlight></codeline>
<codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;</highlight></codeline>
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Enter<sp/>links<sp/>leaving<sp/>reachable<sp/>states<sp/>(indegree<sp/>!=<sp/>0)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ViewValues" kindref="compound">ViewValues&lt;View&gt;</ref><sp/>nx(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x);<sp/>nx();<sp/>++nx)<sp/>{</highlight></codeline>
<codeline lineno="299"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Degree<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>=0;</highlight></codeline>
<codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1DFA_1_1Transitions" kindref="compound">DFA::Transitions</ref><sp/>t(dfa,nx.val());<sp/>t();<sp/>++t)</highlight></codeline>
<codeline lineno="301"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(i,static_cast&lt;StateIdx&gt;(t.i_state())).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>!=<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(i,static_cast&lt;StateIdx&gt;(t.i_state())).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref>++;</highlight></codeline>
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(i,static_cast&lt;StateIdx&gt;(t.o_state())).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref>++;</highlight></codeline>
<codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>edges[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>].i_state<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">StateIdx</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(t.i_state());</highlight></codeline>
<codeline lineno="305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>edges[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>].o_state<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">StateIdx</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(t.o_state());</highlight></codeline>
<codeline lineno="306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges++;</highlight></codeline>
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>assert(n_edges<sp/>&lt;=<sp/>dfa.max_degree());</highlight></codeline>
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Found<sp/>support<sp/>for<sp/>value</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(n_edges<sp/>&gt;<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Support&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref><sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">Val</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(nx.val());</highlight></codeline>
<codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.n_edges<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.edges<sp/>=<sp/><ref refid="classGecode_1_1Heap_1ac020483db8d961c48453f1686e64f63b" kindref="member">Heap::copy</ref>(home.alloc&lt;Edge&gt;(n_edges),edges,n_edges);</highlight></codeline>
<codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>j++;</highlight></codeline>
<codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="318"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref><sp/>=<sp/>j)<sp/>==<sp/>0)</highlight></codeline>
<codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a839b40c2e7ccebb2e61e92e274833089" kindref="member">ES_FAILED</ref>;</highlight></codeline>
<codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="321"><highlight class="normal"></highlight></codeline>
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Mark<sp/>final<sp/>states<sp/>as<sp/>reachable</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="323"><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/>s=dfa.final_fst();<sp/>s&lt;dfa.final_lst();<sp/>s++)</highlight></codeline>
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(n-1,static_cast&lt;StateIdx&gt;(s)).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>!=<sp/>0)</highlight></codeline>
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(n-1,static_cast&lt;StateIdx&gt;(s)).o_deg<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="326"><highlight class="normal"></highlight></codeline>
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Backward<sp/>pass:<sp/>prune<sp/>all<sp/>transitions<sp/>that<sp/>do<sp/>not<sp/>lead<sp/>to<sp/>final<sp/>state</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="328"><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=n;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>k=0;</highlight></codeline>
<codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;<sp/>j&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;<sp/>j++)<sp/>{</highlight></codeline>
<codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Support&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.n_edges;<sp/>d--;<sp/>)</highlight></codeline>
<codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(i,s.edges[d]).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref><sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.edges[d]);<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.edges[d]);</highlight></codeline>
<codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Prune<sp/>edge</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.edges[d]<sp/>=<sp/>s.edges[--s.n_edges];</highlight></codeline>
<codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Value<sp/>has<sp/>support,<sp/>copy<sp/>the<sp/>support<sp/>information</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(s.n_edges<sp/>&gt;<sp/>0)</highlight></codeline>
<codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[k++]=s;</highlight></codeline>
<codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="343"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref><sp/>=<sp/>k)<sp/>==<sp/>0)</highlight></codeline>
<codeline lineno="344"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a839b40c2e7ccebb2e61e92e274833089" kindref="member">ES_FAILED</ref>;</highlight></codeline>
<codeline lineno="345"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>LayerValues<sp/>lv(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i]);</highlight></codeline>
<codeline lineno="346"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.narrow_v(home,lv,</highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
<codeline lineno="347"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.assigned())</highlight></codeline>
<codeline lineno="348"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.subscribe(home,<sp/>*new<sp/>(home)<sp/>Index(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>,i));</highlight></codeline>
<codeline lineno="349"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="350"><highlight class="normal"></highlight></codeline>
<codeline lineno="351"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Copy<sp/>and<sp/>compress<sp/>states,<sp/>setup<sp/>other<sp/>information</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="352"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline lineno="353"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>State<sp/>map<sp/>for<sp/>in-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="354"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx*<sp/>i_map<sp/>=<sp/>r.alloc&lt;StateIdx&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>);</highlight></codeline>
<codeline lineno="355"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>State<sp/>map<sp/>for<sp/>out-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="356"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx*<sp/>o_map<sp/>=<sp/>r.alloc&lt;StateIdx&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>);</highlight></codeline>
<codeline lineno="357"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Number<sp/>of<sp/>in-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx<sp/>i_n<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="359"><highlight class="normal"></highlight></codeline>
<codeline lineno="360"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>map<sp/>for<sp/>in-states<sp/>(special<sp/>for<sp/>last<sp/>layer)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="361"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Degree<sp/>for<sp/>single<sp/>final<sp/>state</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="362"><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/>d<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="363"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>;<sp/>j--;<sp/>)</highlight></codeline>
<codeline lineno="364"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>d<sp/>+=<sp/>static_cast&lt;unsigned<sp/>int&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[n].states[j].i_deg);</highlight></codeline>
<codeline lineno="365"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>whether<sp/>all<sp/>final<sp/>states<sp/>can<sp/>be<sp/>joined<sp/>to<sp/>a<sp/>single<sp/>state</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="366"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d<sp/>&gt;<sp/></highlight></codeline>
<codeline lineno="367"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>static_cast&lt;unsigned<sp/>int&gt;</highlight></codeline>
<codeline lineno="368"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(<ref refid="classGecode_1_1Support_1_1IntTypeTraits" kindref="compound">Gecode::Support::IntTypeTraits&lt;Degree&gt;::max</ref>))<sp/>{</highlight></codeline>
<codeline lineno="369"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>map<sp/>for<sp/>in-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="370"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>;<sp/>j--;<sp/>)</highlight></codeline>
<codeline lineno="371"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[n].states[j].o_deg<sp/>!=<sp/>0)<sp/>||</highlight></codeline>
<codeline lineno="372"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>!=<sp/>0))</highlight></codeline>
<codeline lineno="373"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_map[j]=i_n++;</highlight></codeline>
<codeline lineno="374"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="375"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_n<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="376"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="377"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1ac97367fcae5136f51062fbe4a490da78" kindref="member">init</ref>();</highlight></codeline>
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_map[j]<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="379"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="380"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[0].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">Degree</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(d);</highlight></codeline>
<codeline lineno="381"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[0].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref><sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="382"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="383"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref><sp/>=<sp/>i_n;</highlight></codeline>
<codeline lineno="384"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="385"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Total<sp/>number<sp/>of<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="386"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>=<sp/>i_n;</highlight></codeline>
<codeline lineno="387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Total<sp/>number<sp/>of<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="388"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="389"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>New<sp/>maximal<sp/>number<sp/>of<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="390"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx<sp/>max_s<sp/>=<sp/>i_n;</highlight></codeline>
<codeline lineno="391"><highlight class="normal"></highlight></codeline>
<codeline lineno="392"><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=n;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="393"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>In-states<sp/>become<sp/>out-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="394"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(o_map,i_map);<sp/>i_n=0;</highlight></codeline>
<codeline lineno="395"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>map<sp/>for<sp/>in-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="396"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>;<sp/>j--;<sp/>)</highlight></codeline>
<codeline lineno="397"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].states[j].o_deg<sp/>!=<sp/>0)<sp/>||</highlight></codeline>
<codeline lineno="398"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].states[j].i_deg<sp/>!=<sp/>0))</highlight></codeline>
<codeline lineno="399"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_map[j]=i_n++;</highlight></codeline>
<codeline lineno="400"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref><sp/>=<sp/>i_n;</highlight></codeline>
<codeline lineno="401"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>+=<sp/>i_n;</highlight></codeline>
<codeline lineno="402"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>max_s<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(max_s,i_n);</highlight></codeline>
<codeline lineno="403"><highlight class="normal"></highlight></codeline>
<codeline lineno="404"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>states<sp/>in<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="405"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="406"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Support&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="407"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>+=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="408"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.n_edges;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="409"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.edges[d].i_state<sp/>=<sp/>i_map[s.edges[d].i_state];</highlight></codeline>
<codeline lineno="410"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.edges[d].o_state<sp/>=<sp/>o_map[s.edges[d].o_state];</highlight></codeline>
<codeline lineno="411"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="412"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="413"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="414"><highlight class="normal"></highlight></codeline>
<codeline lineno="415"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Allocate<sp/>and<sp/>copy<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="416"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>State*<sp/>a_states<sp/>=<sp/>home.alloc&lt;State&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>);</highlight></codeline>
<codeline lineno="417"><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=n+1;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="418"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx<sp/>k=0;</highlight></codeline>
<codeline lineno="419"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>;<sp/>j--;<sp/>)</highlight></codeline>
<codeline lineno="420"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].states[j].o_deg<sp/>!=<sp/>0)<sp/>||</highlight></codeline>
<codeline lineno="421"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>!=<sp/>0))</highlight></codeline>
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>a_states[k++]<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j];</highlight></codeline>
<codeline lineno="423"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>assert(k<sp/>==<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>);</highlight></codeline>
<codeline lineno="424"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref><sp/>=<sp/>a_states;</highlight></codeline>
<codeline lineno="425"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>a_states<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="426"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="427"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="428"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>maximal<sp/>number<sp/>of<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="429"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref><sp/>=<sp/>max_s;</highlight></codeline>
<codeline lineno="430"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="431"><highlight class="normal"></highlight></codeline>
<codeline lineno="432"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Schedule<sp/>if<sp/>subsumption<sp/>is<sp/>needed</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="433"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>.empty())</highlight></codeline>
<codeline lineno="434"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>View::schedule(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,ME_INT_VAL);</highlight></codeline>
<codeline lineno="435"><highlight class="normal"></highlight></codeline>
<codeline lineno="436"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">audit</ref>();</highlight></codeline>
<codeline lineno="437"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
<codeline lineno="438"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="439"><highlight class="normal"></highlight></codeline>
<codeline lineno="440"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="441"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
<codeline lineno="442" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10314b5ab6d417e5fd241990b363f769" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10314b5ab6d417e5fd241990b363f769" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::advise</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,</highlight></codeline>
<codeline lineno="443"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Advisor" kindref="compound">Advisor</ref>&amp;<sp/>_a,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Delta" kindref="compound">Delta</ref>&amp;<sp/>d)<sp/>{</highlight></codeline>
<codeline lineno="444"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>whether<sp/>state<sp/>information<sp/>has<sp/>already<sp/>been<sp/>created</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="445"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[0].states<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="446"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State" kindref="compound">State</ref>*<sp/>states<sp/>=<sp/>home.<ref refid="group__FuncMemSpace_1gacf6b71739fd13f46d8d27052d714265e" kindref="member">alloc</ref>&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State" kindref="compound">State</ref>&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>);</highlight></codeline>
<codeline lineno="447"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>;<sp/>i--;<sp/>)</highlight></codeline>
<codeline lineno="448"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>states[i].<ref refid="classGecode_1_1ActorLink_1a2a85f4b580dce95d9e53f9ea154ac43f" kindref="member">init</ref>();</highlight></codeline>
<codeline lineno="449"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref><sp/>=<sp/>states;</highlight></codeline>
<codeline lineno="450"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>states<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="451"><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=n;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="452"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref><sp/>=<sp/>states;</highlight></codeline>
<codeline lineno="453"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>states<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="454"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="455"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="456"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="457"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref>++;</highlight></codeline>
<codeline lineno="458"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref>++;</highlight></codeline>
<codeline lineno="459"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="460"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="461"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="462"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="463"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="464"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Index" kindref="compound">Index</ref>&amp;<sp/>a<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Index" kindref="compound">Index</ref>&amp;</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(_a);</highlight></codeline>
<codeline lineno="465"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>a.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Index_1ade231c04ffebaa7075b302d7706e9d8b" kindref="member">i</ref>;</highlight></codeline>
<codeline lineno="466"><highlight class="normal"></highlight></codeline>
<codeline lineno="467"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref><sp/>&lt;=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>())<sp/>{</highlight></codeline>
<codeline lineno="468"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Propagator<sp/>has<sp/>already<sp/>done<sp/>everything</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="469"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(View::modevent(d)<sp/>==<sp/>ME_INT_VAL)<sp/>{</highlight></codeline>
<codeline lineno="470"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>a.<ref refid="classGecode_1_1Advisor_1a8f3ca0c2e3fade8318a3a00d558b7b53" kindref="member">dispose</ref>(home,<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>);</highlight></codeline>
<codeline lineno="471"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>.empty()<sp/>?<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5ac32341b682bca52b8617a8ad004023ef" kindref="member">ES_NOFIX</ref><sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
<codeline lineno="472"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="473"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
<codeline lineno="474"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="475"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="476"><highlight class="normal"></highlight></codeline>
<codeline lineno="477"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>i_mod<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="478"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>o_mod<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="479"><highlight class="normal"></highlight></codeline>
<codeline lineno="480"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(View::modevent(d)<sp/>==<sp/>ME_INT_VAL)<sp/>{</highlight></codeline>
<codeline lineno="481"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Val<sp/>n<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">Val</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref>.val());</highlight></codeline>
<codeline lineno="482"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;</highlight></codeline>
<codeline lineno="483"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref><sp/>&lt;<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>;<sp/>j++)<sp/>{</highlight></codeline>
<codeline lineno="484"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="485"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="486"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Supported<sp/>value<sp/>not<sp/>any<sp/>longer<sp/>in<sp/>view</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="487"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="488"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="489"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="490"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="491"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="492"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="493"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].support[j].val<sp/>==<sp/>n);</highlight></codeline>
<codeline lineno="494"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[0]<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j++];</highlight></codeline>
<codeline lineno="495"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="496"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref><sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="497"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>j&lt;s;<sp/>j++)<sp/>{</highlight></codeline>
<codeline lineno="498"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="499"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="500"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="501"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="502"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="503"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="504"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="505"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="506"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.any(d))<sp/>{</highlight></codeline>
<codeline lineno="507"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;</highlight></codeline>
<codeline lineno="508"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>k=0;</highlight></codeline>
<codeline lineno="509"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="510"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1ViewRanges" kindref="compound">ViewRanges&lt;View&gt;</ref><sp/>rx(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x);<sp/>rx()<sp/>&amp;&amp;<sp/>(j&lt;s);)<sp/>{</highlight></codeline>
<codeline lineno="511"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="512"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref><sp/>&lt;<sp/>static_cast&lt;Val&gt;(rx.min()))<sp/>{</highlight></codeline>
<codeline lineno="513"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Supported<sp/>value<sp/>not<sp/>any<sp/>longer<sp/>in<sp/>view</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="514"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="515"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="516"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="517"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="518"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="519"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="520"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>++j;</highlight></codeline>
<codeline lineno="521"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref><sp/>&gt;<sp/>static_cast&lt;Val&gt;(rx.max()))<sp/>{</highlight></codeline>
<codeline lineno="522"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>++rx;</highlight></codeline>
<codeline lineno="523"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="524"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[k++]=s;</highlight></codeline>
<codeline lineno="525"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>++j;</highlight></codeline>
<codeline lineno="526"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="527"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="528"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(k<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="529"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref><sp/>=<sp/>k;</highlight></codeline>
<codeline lineno="530"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Remove<sp/>remaining<sp/>values</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="531"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>j&lt;s;<sp/>j++)<sp/>{</highlight></codeline>
<codeline lineno="532"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="533"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="534"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="535"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="536"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="537"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="538"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="539"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="540"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="541"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Val<sp/>min<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">Val</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref>.min(d));</highlight></codeline>
<codeline lineno="542"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;</highlight></codeline>
<codeline lineno="543"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Skip<sp/>values<sp/>smaller<sp/>than<sp/>min<sp/>(to<sp/>keep)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="544"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref><sp/>&lt;<sp/>min;<sp/>j++)<sp/>{}</highlight></codeline>
<codeline lineno="545"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Val<sp/>max<sp/>=<sp/></highlight><highlight class="keyword">static_cast&lt;</highlight><highlight class="normal">Val</highlight><highlight class="keyword">&gt;</highlight><highlight class="normal">(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref>.max(d));</highlight></codeline>
<codeline lineno="546"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>k=j;</highlight></codeline>
<codeline lineno="547"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="548"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Remove<sp/>pruned<sp/>values</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="549"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;<sp/>(j&lt;s)<sp/>&amp;&amp;<sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].support[j].val<sp/>&lt;=<sp/>max);<sp/>j++)<sp/>{</highlight></codeline>
<codeline lineno="550"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="551"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="552"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="553"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="554"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="555"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="556"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="557"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="558"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Keep<sp/>remaining<sp/>values</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="559"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(j&lt;s)</highlight></codeline>
<codeline lineno="560"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[k++]=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j++];</highlight></codeline>
<codeline lineno="561"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref><sp/>=k;</highlight></codeline>
<codeline lineno="562"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(k<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="563"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="564"><highlight class="normal"></highlight></codeline>
<codeline lineno="565"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">audit</ref>();</highlight></codeline>
<codeline lineno="566"><highlight class="normal"></highlight></codeline>
<codeline lineno="567"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>fix<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="568"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(o_mod<sp/>&amp;&amp;<sp/>(i<sp/>&gt;<sp/>0))<sp/>{</highlight></codeline>
<codeline lineno="569"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(i-1);<sp/>fix<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="570"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="571"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i_mod<sp/>&amp;&amp;<sp/>(i+1<sp/>&lt;<sp/>n))<sp/>{</highlight></codeline>
<codeline lineno="572"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a8c6f798cc3b0358c1b7d46bf09f95e2d" kindref="member">i_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(i+1);<sp/>fix<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="573"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="574"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fix)<sp/>{</highlight></codeline>
<codeline lineno="575"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(View::modevent(d)<sp/>==<sp/>ME_INT_VAL)<sp/>{</highlight></codeline>
<codeline lineno="576"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>a.<ref refid="classGecode_1_1Advisor_1a8f3ca0c2e3fade8318a3a00d558b7b53" kindref="member">dispose</ref>(home,<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>);</highlight></codeline>
<codeline lineno="577"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>.empty()<sp/>?<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5ac32341b682bca52b8617a8ad004023ef" kindref="member">ES_NOFIX</ref><sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
<codeline lineno="578"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="579"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
<codeline lineno="580"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="581"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(View::modevent(d)<sp/>==<sp/>ME_INT_VAL)</highlight></codeline>
<codeline lineno="582"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>?<sp/>home.<ref refid="group__TaskActorStatus_1gad408b8bdc896a14b069994b1249454c7" kindref="member">ES_NOFIX_DISPOSE</ref>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>,a)<sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5ac32341b682bca52b8617a8ad004023ef" kindref="member">ES_NOFIX</ref>;</highlight></codeline>
<codeline lineno="583"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="584"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="585"><highlight class="normal"></highlight></codeline>
<codeline lineno="586"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="587"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="588" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa873cd0a025dad8e397b1363da2f2a94" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa873cd0a025dad8e397b1363da2f2a94" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::dispose</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home)<sp/>{</highlight></codeline>
<codeline lineno="589"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>.dispose(home);</highlight></codeline>
<codeline lineno="590"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/><ref refid="classGecode_1_1Actor_1a143253b3eceda40f36834e38c8ac05d9" kindref="member">Propagator::dispose</ref>(home);</highlight></codeline>
<codeline lineno="591"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(*this);</highlight></codeline>
<codeline lineno="592"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="593"><highlight class="normal"></highlight></codeline>
<codeline lineno="594"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="595"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
<codeline lineno="596" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a27d298d2f8f3ef2802e23abc01fabca7" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a27d298d2f8f3ef2802e23abc01fabca7" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::propagate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,</highlight></codeline>
<codeline lineno="597"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&amp;)<sp/>{</highlight></codeline>
<codeline lineno="598"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Forward<sp/>pass</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="599"><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=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a8c6f798cc3b0358c1b7d46bf09f95e2d" kindref="member">i_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1aa8af3f8de0e43913cc0cbd5439efb40e" kindref="member">fst</ref>();<sp/>i&lt;=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a8c6f798cc3b0358c1b7d46bf09f95e2d" kindref="member">i_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a4d83098ad60ee771641c20a987726da6" kindref="member">lst</ref>();<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="600"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>i_mod<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="601"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>o_mod<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="602"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;</highlight></codeline>
<codeline lineno="603"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>k=0;</highlight></codeline>
<codeline lineno="604"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="605"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">do</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="606"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="607"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="608"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)</highlight></codeline>
<codeline lineno="609"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a14ff9d9d4eeff3e7765ca983d2053313" kindref="member">i_state</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a717d6fcc5e6f51a8f9f14a00f54d5887" kindref="member">i_deg</ref><sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="610"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="611"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="612"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="613"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Remove<sp/>edge</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="614"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]<sp/>=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[--s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>];</highlight></codeline>
<codeline lineno="615"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="616"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>+=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="617"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>whether<sp/>value<sp/>is<sp/>still<sp/>supported</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="618"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref><sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="619"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>--;</highlight></codeline>
<codeline lineno="620"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.nq(home,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref>));</highlight></codeline>
<codeline lineno="621"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="622"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[k++]=s;</highlight></codeline>
<codeline lineno="623"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="624"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(++j&lt;s);</highlight></codeline>
<codeline lineno="625"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(k<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="626"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>modification<sp/>information</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="627"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(o_mod<sp/>&amp;&amp;<sp/>(i<sp/>&gt;<sp/>0))</highlight></codeline>
<codeline lineno="628"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(i-1);</highlight></codeline>
<codeline lineno="629"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i_mod<sp/>&amp;&amp;<sp/>(i+1<sp/>&lt;<sp/>n))</highlight></codeline>
<codeline lineno="630"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a8c6f798cc3b0358c1b7d46bf09f95e2d" kindref="member">i_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(i+1);</highlight></codeline>
<codeline lineno="631"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="632"><highlight class="normal"></highlight></codeline>
<codeline lineno="633"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Backward<sp/>pass</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="634"><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=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a4d83098ad60ee771641c20a987726da6" kindref="member">lst</ref>();<sp/>i&gt;=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1aa8af3f8de0e43913cc0cbd5439efb40e" kindref="member">fst</ref>();<sp/>i--)<sp/>{</highlight></codeline>
<codeline lineno="635"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>o_mod<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="636"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=0;</highlight></codeline>
<codeline lineno="637"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>k=0;</highlight></codeline>
<codeline lineno="638"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="639"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">do</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="640"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="641"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>-=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="642"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)</highlight></codeline>
<codeline lineno="643"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ae89d01dd329d06bca48382fc068eaf9c" kindref="member">o_state</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]).<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref><sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="644"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Adapt<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="645"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>o_mod<sp/>|=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a6e1e6096577738e5b2a123fe0dcff375" kindref="member">i_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="646"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(void)<sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a19aed150ceb222c958f998088b573788" kindref="member">o_dec</ref>(i,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]);</highlight></codeline>
<codeline lineno="647"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Remove<sp/>edge</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="648"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d]<sp/>=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[--s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>];</highlight></codeline>
<codeline lineno="649"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="650"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<sp/>+=<sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="651"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>whether<sp/>value<sp/>is<sp/>still<sp/>supported</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="652"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref><sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="653"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>--;</highlight></codeline>
<codeline lineno="654"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.nq(home,s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref>));</highlight></codeline>
<codeline lineno="655"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="656"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[k++]=s;</highlight></codeline>
<codeline lineno="657"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="658"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(++j&lt;s);</highlight></codeline>
<codeline lineno="659"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(k<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="660"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>modification<sp/>information</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="661"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(o_mod<sp/>&amp;&amp;<sp/>(i<sp/>&gt;<sp/>0))</highlight></codeline>
<codeline lineno="662"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(i-1);</highlight></codeline>
<codeline lineno="663"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="664"><highlight class="normal"></highlight></codeline>
<codeline lineno="665"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a8c6f798cc3b0358c1b7d46bf09f95e2d" kindref="member">i_ch</ref>);<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a8c6f798cc3b0358c1b7d46bf09f95e2d" kindref="member">i_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5dbda5620d281be899986fde8c57b19b" kindref="member">reset</ref>();</highlight></codeline>
<codeline lineno="666"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a0c4c2b33b13517a228112c78b3aeca3b" kindref="member">add</ref>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>);<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5e0e22d061e66e532a090de300171681" kindref="member">o_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5dbda5620d281be899986fde8c57b19b" kindref="member">reset</ref>();</highlight></codeline>
<codeline lineno="667"><highlight class="normal"></highlight></codeline>
<codeline lineno="668"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">audit</ref>();</highlight></codeline>
<codeline lineno="669"><highlight class="normal"></highlight></codeline>
<codeline lineno="670"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>subsumption</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="671"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>.empty())</highlight></codeline>
<codeline lineno="672"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="673"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="674"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
<codeline lineno="675"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="676"><highlight class="normal"></highlight></codeline>
<codeline lineno="677"><highlight class="normal"></highlight></codeline>
<codeline lineno="678"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="679"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Var&gt;</highlight></codeline>
<codeline lineno="680"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
<codeline lineno="681" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::post</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/></highlight></codeline>
<codeline lineno="682"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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_1VarArgArray" kindref="compound">VarArgArray&lt;Var&gt;</ref>&amp;<sp/>x,</highlight></codeline>
<codeline lineno="683"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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_1DFA" kindref="compound">DFA</ref>&amp;<sp/>dfa)<sp/>{</highlight></codeline>
<codeline lineno="684"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.<ref refid="classGecode_1_1ArgArrayBase_1a5cd6f91808d5560f28f05b75be65ab1d" kindref="member">size</ref>()<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="685"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>whether<sp/>the<sp/>start<sp/>state<sp/>0<sp/>is<sp/>also<sp/>a<sp/>final<sp/>state</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="686"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((dfa.<ref refid="classGecode_1_1DFA_1a4969795a3a6a36a1e9e2015409f7575b" kindref="member">final_fst</ref>()<sp/>&lt;=<sp/>0)<sp/>&amp;&amp;<sp/>(dfa.<ref refid="classGecode_1_1DFA_1a82339116e940c76001c589a54cd043c3" kindref="member">final_lst</ref>()<sp/>&gt;=<sp/>0))</highlight></codeline>
<codeline lineno="687"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
<codeline lineno="688"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a839b40c2e7ccebb2e61e92e274833089" kindref="member">ES_FAILED</ref>;</highlight></codeline>
<codeline lineno="689"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="690"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(x.<ref refid="classGecode_1_1ArgArrayBase_1a5cd6f91808d5560f28f05b75be65ab1d" kindref="member">size</ref>()<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="691"><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=x.<ref refid="classGecode_1_1ArgArrayBase_1a5cd6f91808d5560f28f05b75be65ab1d" kindref="member">size</ref>();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="692"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1DFA_1_1Symbols" kindref="compound">DFA::Symbols</ref><sp/>s(dfa);</highlight></codeline>
<codeline lineno="693"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref><sp/>xi(x[i]);</highlight></codeline>
<codeline lineno="694"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(xi.inter_v(home,s,</highlight><highlight class="keyword">false</highlight><highlight class="normal">));</highlight></codeline>
<codeline lineno="695"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="696"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;</ref>*<sp/>p<sp/>=</highlight></codeline>
<codeline lineno="697"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="698"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>p-&gt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a09450fd1e2bdad4852b63975b3b58086" kindref="member">initialize</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="699"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="700"><highlight class="normal"></highlight></codeline>
<codeline lineno="701"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="702"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
<codeline lineno="703"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aecc6fa1eaaf4eccfd826ffeddd0f8c6d" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;</ref></highlight></codeline>
<codeline lineno="704" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aecc6fa1eaaf4eccfd826ffeddd0f8c6d" refkind="member"><highlight class="normal"><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aecc6fa1eaaf4eccfd826ffeddd0f8c6d" kindref="member"> ::LayeredGraph</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,</highlight></codeline>
<codeline lineno="705"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;</ref>&amp;<sp/>p)</highlight></codeline>
<codeline lineno="706"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>(home,share,p),<sp/></highlight></codeline>
<codeline lineno="707"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>n(p.n),<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>(home.alloc&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer" kindref="compound">Layer</ref>&gt;(n+1)),</highlight></codeline>
<codeline lineno="708"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>(p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>),<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>(p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref>),<sp/>n_edges(p.n_edges)<sp/>{</highlight></codeline>
<codeline lineno="709"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>.update(home,share,p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>);</highlight></codeline>
<codeline lineno="710"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Do<sp/>not<sp/>allocate<sp/>states,<sp/>postpone<sp/>to<sp/>advise!</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="711"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref><sp/>=<sp/>p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="712"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a4a920d3ca602e6df07a109fd92231de1" kindref="member">n</ref>].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref><sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="713"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Allocate<sp/>memory<sp/>for<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="714"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge" kindref="compound">Edge</ref>*<sp/>edges<sp/>=<sp/>home.<ref refid="group__FuncMemSpace_1gacf6b71739fd13f46d8d27052d714265e" kindref="member">alloc</ref>&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge" kindref="compound">Edge</ref>&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a10bd62c709cd80ff54f978ef7293d023" kindref="member">n_edges</ref>);</highlight></codeline>
<codeline lineno="715"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Copy<sp/>layers</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="716"><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=n;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="717"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref>.update(home,share,p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a9a79c8facba00c5e5df916ddc8bec1cc" kindref="member">x</ref>);</highlight></codeline>
<codeline lineno="718"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].x.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>()<sp/>==<sp/>p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>);</highlight></codeline>
<codeline lineno="719"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref><sp/>=<sp/>p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="720"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref><sp/>=<sp/>home.<ref refid="group__FuncMemSpace_1gacf6b71739fd13f46d8d27052d714265e" kindref="member">alloc</ref>&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae53259c25990e1f9bdba7257256cb8a9" kindref="member">size</ref>);</highlight></codeline>
<codeline lineno="721"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="722"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref><sp/>=<sp/>p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a5e9839e4733bfaa7f22b3049b78ae6b3" kindref="member">val</ref>;</highlight></codeline>
<codeline lineno="723"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref><sp/>=<sp/>p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="724"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].support[j].n_edges<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="725"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref><sp/>=<sp/></highlight></codeline>
<codeline lineno="726"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Heap_1ac020483db8d961c48453f1686e64f63b" kindref="member">Heap::copy</ref>(edges,p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>,</highlight></codeline>
<codeline lineno="727"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>);</highlight></codeline>
<codeline lineno="728"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>edges<sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;</highlight></codeline>
<codeline lineno="729"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="730"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref><sp/>=<sp/>p.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="731"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref><sp/>=<sp/>NULL;</highlight></codeline>
<codeline lineno="732"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="733"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">audit</ref>();</highlight></codeline>
<codeline lineno="734"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="735"><highlight class="normal"></highlight></codeline>
<codeline lineno="736"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="737"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1PropCost" kindref="compound">PropCost</ref></highlight></codeline>
<codeline lineno="738" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a82cf4d5d1a9a27b26838e9e7da86bc86" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a82cf4d5d1a9a27b26838e9e7da86bc86" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::cost</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;,</highlight></codeline>
<codeline lineno="739"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><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="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&amp;)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="740"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1PropCost_1a4a383a3772df2c1e49341813edc19b34" kindref="member">PropCost::linear</ref>(<ref refid="classGecode_1_1PropCost_1ad1bebae59ea373495c5bf51ffc249dcdada52d4d3b08e9888c5063df5140e12e2" kindref="member">PropCost::HI</ref>,n);</highlight></codeline>
<codeline lineno="741"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="742"><highlight class="normal"></highlight></codeline>
<codeline lineno="743"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Val,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Degree,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>StateIdx&gt;</highlight></codeline>
<codeline lineno="744"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Actor" kindref="compound">Actor</ref>*</highlight></codeline>
<codeline lineno="745" refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1abf11ab9af04a56f5ec8192ac82b5edaa" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1abf11ab9af04a56f5ec8192ac82b5edaa" kindref="member">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;::copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&amp;<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share)<sp/>{</highlight></codeline>
<codeline lineno="746"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Eliminate<sp/>an<sp/>assigned<sp/>prefix</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="747"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline lineno="748"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>k=0;</highlight></codeline>
<codeline lineno="749"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[k].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref><sp/>==<sp/>1)<sp/>{</highlight></codeline>
<codeline lineno="750"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>assert(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[k].support[0].n_edges<sp/>==<sp/>1);</highlight></codeline>
<codeline lineno="751"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>-=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[k].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="752"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>k++;</highlight></codeline>
<codeline lineno="753"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="754"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(k<sp/>&gt;<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="755"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="756"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>The<sp/>state<sp/>information<sp/>is<sp/>always<sp/>available:<sp/>either<sp/>the<sp/>propagator</highlight></codeline>
<codeline lineno="757"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>has<sp/>been<sp/>created<sp/>(hence,<sp/>also<sp/>the<sp/>state<sp/>information<sp/>has<sp/>been</highlight></codeline>
<codeline lineno="758"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>created),<sp/>or<sp/>the<sp/>first<sp/>variable<sp/>become<sp/>assigned<sp/>and<sp/>hence</highlight></codeline>
<codeline lineno="759"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>an<sp/>advisor<sp/>must<sp/>have<sp/>been<sp/>run<sp/>(which<sp/>then<sp/>has<sp/>created<sp/>the<sp/>state</highlight></codeline>
<codeline lineno="760"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>information).</highlight></codeline>
<codeline lineno="761"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="762"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Eliminate<sp/>assigned<sp/>layers</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="763"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n<sp/>-=<sp/>k;<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref><sp/>+=<sp/>k;</highlight></codeline>
<codeline lineno="764"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Eliminate<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="765"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>n_edges<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">(k);</highlight></codeline>
<codeline lineno="766"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>advisor<sp/>indices</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="767"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Advisors" kindref="compound">Advisors&lt;Index&gt;</ref><sp/>as(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a99385e34b8df18df5d1463ab77bc9cbf" kindref="member">c</ref>);<sp/>as();<sp/>++as)</highlight></codeline>
<codeline lineno="768"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>as.advisor().i<sp/>-=<sp/>k;</highlight></codeline>
<codeline lineno="769"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>all<sp/>change<sp/>information</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="770"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a8e2f4eccc50d7e6047f5603972732ca8" kindref="member">lshift</ref>(k);</highlight></codeline>
<codeline lineno="771"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="772"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="773"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">audit</ref>();</highlight></codeline>
<codeline lineno="774"><highlight class="normal"></highlight></codeline>
<codeline lineno="775"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Compress<sp/>states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="776"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a8ebd4ec83c7ead3724552a98a4e8eb60" kindref="member">empty</ref>())<sp/>{</highlight></codeline>
<codeline lineno="777"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>f<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1aa8af3f8de0e43913cc0cbd5439efb40e" kindref="member">fst</ref>();</highlight></codeline>
<codeline lineno="778"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>l<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a4d83098ad60ee771641c20a987726da6" kindref="member">lst</ref>();</highlight></codeline>
<codeline lineno="779"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert((f<sp/>&gt;=<sp/>0)<sp/>&amp;&amp;<sp/>(l<sp/>&lt;=<sp/>n));</highlight></codeline>
<codeline lineno="780"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Region" kindref="compound">Region</ref><sp/>r(home);</highlight></codeline>
<codeline lineno="781"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>State<sp/>map<sp/>for<sp/>in-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="782"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx*<sp/>i_map<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref>&lt;StateIdx&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>);</highlight></codeline>
<codeline lineno="783"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>State<sp/>map<sp/>for<sp/>out-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="784"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx*<sp/>o_map<sp/>=<sp/>r.<ref refid="classGecode_1_1Region_1a167cff2d16f08d890fff11f80e519233" kindref="member">alloc</ref>&lt;StateIdx&gt;(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a37aaa0c60346da4a5db2d088abd03f17" kindref="member">max_states</ref>);</highlight></codeline>
<codeline lineno="785"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Number<sp/>of<sp/>in-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="786"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>StateIdx<sp/>i_n<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="787"><highlight class="normal"></highlight></codeline>
<codeline lineno="788"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>-=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="789"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>map<sp/>for<sp/>in-states<sp/>and<sp/>compress</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="790"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=0;<sp/>j&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;<sp/>j++)</highlight></codeline>
<codeline lineno="791"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].states[j].i_deg<sp/>!=<sp/>0)<sp/>||</highlight></codeline>
<codeline lineno="792"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1State_1a4b0d1e666f293704c426d5e162ca85d9" kindref="member">o_deg</ref><sp/>!=<sp/>0))<sp/>{</highlight></codeline>
<codeline lineno="793"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[i_n]=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j];</highlight></codeline>
<codeline lineno="794"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_map[j]=i_n++;</highlight></codeline>
<codeline lineno="795"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="796"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref><sp/>=<sp/>i_n;</highlight></codeline>
<codeline lineno="797"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="798"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>assert(i_n<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="799"><highlight class="normal"></highlight></codeline>
<codeline lineno="800"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>in-states<sp/>in<sp/>edges<sp/>for<sp/>last<sp/>layer,<sp/>if<sp/>any</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="801"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(l<sp/>&lt;<sp/>n)</highlight></codeline>
<codeline lineno="802"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="803"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[l].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="804"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)</highlight></codeline>
<codeline lineno="805"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a50e897f0a2f9e32ec161603b89628fde" kindref="member">i_state</ref><sp/>=<sp/>i_map[s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a50e897f0a2f9e32ec161603b89628fde" kindref="member">i_state</ref>];</highlight></codeline>
<codeline lineno="806"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="807"><highlight class="normal"></highlight></codeline>
<codeline lineno="808"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>all<sp/>changed<sp/>layers</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="809"><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-1;<sp/>i&gt;=f;<sp/>i--)<sp/>{</highlight></codeline>
<codeline lineno="810"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>In-states<sp/>become<sp/>out-states</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="811"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::swap(o_map,i_map);<sp/>i_n=0;</highlight></codeline>
<codeline lineno="812"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Initialize<sp/>map<sp/>for<sp/>in-states<sp/>and<sp/>compress</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="813"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>-=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="814"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(StateIdx<sp/>j=0;<sp/>j&lt;<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;<sp/>j++)</highlight></codeline>
<codeline lineno="815"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].states[j].o_deg<sp/>!=<sp/>0)<sp/>||</highlight></codeline>
<codeline lineno="816"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].states[j].i_deg<sp/>!=<sp/>0))<sp/>{</highlight></codeline>
<codeline lineno="817"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[i_n]=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1ae036fd23f13c7aac51f2317acade6c54" kindref="member">states</ref>[j];</highlight></codeline>
<codeline lineno="818"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i_map[j]=i_n++;</highlight></codeline>
<codeline lineno="819"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="820"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref><sp/>=<sp/>i_n;</highlight></codeline>
<codeline lineno="821"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a3cfed3cfc8f09c20c6d80d58ef560cb7" kindref="member">n_states</ref><sp/>+=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1af6b771d7d4856c1a5cff6b5922c30f0f" kindref="member">n_states</ref>;</highlight></codeline>
<codeline lineno="822"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>assert(i_n<sp/>&gt;<sp/>0);</highlight></codeline>
<codeline lineno="823"><highlight class="normal"></highlight></codeline>
<codeline lineno="824"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>states<sp/>in<sp/>edges</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="825"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="826"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[i].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="827"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="828"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a50e897f0a2f9e32ec161603b89628fde" kindref="member">i_state</ref><sp/>=<sp/>i_map[s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a50e897f0a2f9e32ec161603b89628fde" kindref="member">i_state</ref>];</highlight></codeline>
<codeline lineno="829"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a039b08f5d0fcc009846dd69373ad8b6a" kindref="member">o_state</ref><sp/>=<sp/>o_map[s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a039b08f5d0fcc009846dd69373ad8b6a" kindref="member">o_state</ref>];</highlight></codeline>
<codeline lineno="830"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="831"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="832"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="833"><highlight class="normal"></highlight></codeline>
<codeline lineno="834"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Update<sp/>out-states<sp/>in<sp/>edges<sp/>for<sp/>previous<sp/>layer,<sp/>if<sp/>any</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="835"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(f<sp/>&gt;<sp/>0)</highlight></codeline>
<codeline lineno="836"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a2ee95e8c4b2c30c85b3388af6da97289" kindref="member">ValSize</ref><sp/>j=<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[f-1].<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>;<sp/>j--;<sp/>)<sp/>{</highlight></codeline>
<codeline lineno="837"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support" kindref="compound">Support</ref>&amp;<sp/>s<sp/>=<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1af69c92c1bfce788d9670a3484ac0f212" kindref="member">layers</ref>[f-1].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Layer_1a53791d8c1f5f18501a30689674c70eb6" kindref="member">support</ref>[j];</highlight></codeline>
<codeline lineno="838"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(Degree<sp/>d=s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a554a77f1ec586a438726e3726b9b5a23" kindref="member">n_edges</ref>;<sp/>d--;<sp/>)</highlight></codeline>
<codeline lineno="839"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a039b08f5d0fcc009846dd69373ad8b6a" kindref="member">o_state</ref><sp/>=<sp/>i_map[s.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Support_1a17f70c592143823402a91c6d464f98b7" kindref="member">edges</ref>[d].<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1Edge_1a039b08f5d0fcc009846dd69373ad8b6a" kindref="member">o_state</ref>];</highlight></codeline>
<codeline lineno="840"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="841"><highlight class="normal"></highlight></codeline>
<codeline lineno="842"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1a5f48d31b72f68923fc5d7accb64b12e6" kindref="member">a_ch</ref>.<ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1_1IndexRange_1a5dbda5620d281be899986fde8c57b19b" kindref="member">reset</ref>();</highlight></codeline>
<codeline lineno="843"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="844"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1ab3edc0dfd7ca5fe93c6a8742a23273bf" kindref="member">audit</ref>();</highlight></codeline>
<codeline lineno="845"><highlight class="normal"></highlight></codeline>
<codeline lineno="846"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">LayeredGraph&lt;View,Val,Degree,StateIdx&gt;</ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="847"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="848"><highlight class="normal"></highlight></codeline>
<codeline lineno="850"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal">&lt;</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Var&gt;</highlight></codeline>
<codeline lineno="851"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
<codeline lineno="852" refid="namespaceGecode_1_1Int_1_1Extensional_1a91ab02f5e36580e783e8b22cc3d7ebef" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1_1Int_1_1Extensional_1ab49a45e8b828f31d8eeb9440e9e7c1dd" kindref="member">post_lgp</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1VarArgArray" kindref="compound">VarArgArray&lt;Var&gt;</ref>&amp;<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1DFA" kindref="compound">DFA</ref>&amp;<sp/>dfa)<sp/>{</highlight></codeline>
<codeline lineno="853"><highlight class="normal"><sp/><sp/><sp/><sp/>Gecode::Support::IntType<sp/>t_state_idx<sp/>=</highlight></codeline>
<codeline lineno="854"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Gecode::Support::u_type(static_cast&lt;unsigned<sp/>int&gt;(dfa.<ref refid="classGecode_1_1DFA_1ae5c1b94c0fa595447b0f3ffb1452fa91" kindref="member">n_states</ref>()));</highlight></codeline>
<codeline lineno="855"><highlight class="normal"><sp/><sp/><sp/><sp/>Gecode::Support::IntType<sp/>t_degree<sp/>=</highlight></codeline>
<codeline lineno="856"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Gecode::Support::u_type(dfa.<ref refid="classGecode_1_1DFA_1a23fac135eafb75a4848518aaced156d3" kindref="member">max_degree</ref>());</highlight></codeline>
<codeline lineno="857"><highlight class="normal"><sp/><sp/><sp/><sp/>Gecode::Support::IntType<sp/>t_val<sp/>=<sp/></highlight></codeline>
<codeline lineno="858"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(Support::s_type(dfa.<ref refid="classGecode_1_1DFA_1aa086b433e158f8767a243001c19038ab" kindref="member">symbol_min</ref>()),</highlight></codeline>
<codeline lineno="859"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Support::s_type(dfa.<ref refid="classGecode_1_1DFA_1a0100d3308b398b48465e53f6810f4fcb" kindref="member">symbol_max</ref>()));</highlight></codeline>
<codeline lineno="860"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_val)<sp/>{</highlight></codeline>
<codeline lineno="861"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="862"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="863"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_state_idx)<sp/>{</highlight></codeline>
<codeline lineno="864"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="865"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_degree)<sp/>{</highlight></codeline>
<codeline lineno="866"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="867"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="868"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref>,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>char,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="869"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="870"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="871"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="872"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="873"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="874"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="875"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="876"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="877"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="878"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="879"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="880"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="881"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="882"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_degree)<sp/>{</highlight></codeline>
<codeline lineno="883"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="884"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="885"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref>,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>char,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="886"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="887"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="888"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="889"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="890"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="891"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="892"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="893"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="894"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="895"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="896"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="897"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="898"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="899"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_degree)<sp/>{</highlight></codeline>
<codeline lineno="900"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="901"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="902"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref>,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>char,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="903"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="904"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="905"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="906"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="907"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="908"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="909"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="910"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="911"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="912"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="913"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="914"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="915"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="916"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="917"><highlight class="normal"></highlight></codeline>
<codeline lineno="918"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="919"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_state_idx)<sp/>{</highlight></codeline>
<codeline lineno="920"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="921"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_degree)<sp/>{</highlight></codeline>
<codeline lineno="922"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="923"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="924"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref>,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>char,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="925"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="926"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="927"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="928"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="929"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="930"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="931"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="932"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="933"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="934"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="935"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="936"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="937"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="938"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_degree)<sp/>{</highlight></codeline>
<codeline lineno="939"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="940"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="941"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref>,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>char,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="942"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="943"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="944"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="945"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="946"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="947"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="948"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="949"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="950"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="951"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="952"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="953"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="954"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="955"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(t_degree)<sp/>{</highlight></codeline>
<codeline lineno="956"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_CHAR:</highlight></codeline>
<codeline lineno="957"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="958"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1VarTraits" kindref="compound">VarTraits&lt;Var&gt;::View</ref>,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>char,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="959"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="960"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_SHRT:</highlight></codeline>
<codeline lineno="961"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="962"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="963"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="964"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>Gecode::Support::IT_INT:</highlight></codeline>
<codeline lineno="965"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph" kindref="compound">Extensional::LayeredGraph</ref></highlight></codeline>
<codeline lineno="966"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&lt;</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>VarTraits&lt;Var&gt;::View,int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&gt;</highlight></codeline>
<codeline lineno="967"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Int_1_1Extensional_1_1LayeredGraph_1aa1c95f50276c2c2bb145cb53c905b9b7" kindref="member">::post</ref>(home,x,dfa);</highlight></codeline>
<codeline lineno="968"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="969"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="970"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="971"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="972"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="973"><highlight class="normal"></highlight></codeline>
<codeline lineno="974"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/>GECODE_NEVER;</highlight></codeline>
<codeline lineno="975"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="976"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
<codeline lineno="977"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="978"><highlight class="normal"></highlight></codeline>
<codeline lineno="979"><highlight class="normal">}}}</highlight></codeline>
<codeline lineno="980"><highlight class="normal"></highlight></codeline>
<codeline lineno="981"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>int-prop</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="982"><highlight class="normal"></highlight></codeline>
</programlisting>
<location file="/usr/include/gecode/int/extensional/layered-graph.hpp"/>
</compounddef>
</doxygen>