private bool VerifyLine(Line line)
        {
            InstructionList instructions = new InstructionList();

            instructions.InsertAllWithClearBefore(line.Outputs);
            if (instructions.Count > 0)
            {
                if (!(instructions.Contains(OperationCode.OutputCoil) ||
                      instructions.Contains(OperationCode.Timer) ||
                      instructions.Contains(OperationCode.Counter) ||
                      instructions.Contains(OperationCode.Reset)))
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }


            if (!instructions.ContainsAllOperandos())
            {
                return(false);
            }

            if (!instructions.HasDuplicatedTimers(usedTimers))
            {
                return(false);
            }

            if (!instructions.HasDuplicatedCounters(usedCounters))
            {
                return(false);
            }

            instructions.InsertAllWithClearBefore(line.Instructions);

            if (instructions.Count > 0)
            {
                if (instructions.Contains(OperationCode.OutputCoil) ||
                    instructions.Contains(OperationCode.Timer) ||
                    instructions.Contains(OperationCode.Counter) ||
                    instructions.Contains(OperationCode.Reset))
                {
                    return(false);
                }
            }

            return(true);
        }