// SPDX-License-Identifier: LicenseRef-Verum-Proprietary
// SPDX-FileCopyrightText: 2023 Verum Software Tools B.V.
// Proprietary and confidential. See LICENSE for terms.
//
#ifndef LIST_HH
#define LIST_HH

struct list: public skel::list
{
  int count;
  list(const dzn::locator& locator)
    : skel::list(locator)
    , count(0)
  {
    i.dzn_share_p = false; // disable sharing state for this port
  }
  void i_step()
  {
    if (count++ < 2) i.out.next ();
    else
      {
        count = 0;
        i.out.end ();
      }
  }
};

#endif
