init_state_set Subroutine

public pure subroutine init_state_set(state_set, ntop)

Arguments

Type IntentOptional Attributes Name
type(nfa_state_set_t), intent(inout) :: state_set
integer(kind=int32), intent(in) :: ntop

Source Code

   pure subroutine init_state_set(state_set, ntop)
      implicit none
      type(nfa_state_set_t), intent(inout) :: state_set
      integer(int32), intent(in) :: ntop

      if (.not. allocated(state_set%vec)) then
         allocate(state_set%vec(ntop))
         state_set%vec(:) = .false.
      end if

   end subroutine init_state_set