From nobody Sun Feb 8 17:36:35 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B40F2DF6F6 for ; Mon, 19 Jan 2026 21:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768856666; cv=none; b=FTPqQ/6R493quN9sHO4gA40XXJcCQWRA8ipHfU5makCK9q0I1zlkpF6dDeN5Udj7wo1jCRVq/mVem5zpk7Ri1PnXpilUfv7hgPqB02tnymkWyyoV+njaeQh4rWgl2dl/n2YN/gOhHMoom7V3WnnGV53MDR3uhMMDvOpXma4GjJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768856666; c=relaxed/simple; bh=m9SgkT9h440yDgM1IFR3W05ovIC3RTHv6DSomoxtF6c=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ADJu/jJKwiLLSsuWvPT/pSmaA1gLS1Lv+Axcaq7a8v0Hk5jr0N5sg9NJ01JZc73m5xMJPLwgsvQhQKrYQvLc/eIPYLdhRIIZoJqCCqDq+aYUWKgEYhg7IdHVzz5OW3XR/F7ZdHSYP5CTei5jMbTz5P5CKJaKkO97IA5vCJR2gaY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=RW+AJNr8; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RW+AJNr8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768856664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=30iPcyx/O8od5igxVL7D4WfM9SXUj78edNZ/Hh8l0iU=; b=RW+AJNr8gJ7INq8wnh/emlHDOEh4YVOxqQjQeZ4SlnjqJRrYsvPTnMiavYVzxGfiJmul0p tA35r6L4KcDP2xbBuR7lyO3idJpMTg8VvmTyBDxirQQc8LTz3N03edOulM9x/xN1dhUaJ+ cstB1RIF7DVr+92UIQ64kDZmO/o6jfQ= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-592-YVv8qnjTOS6Z50DaGdaPMw-1; Mon, 19 Jan 2026 16:04:21 -0500 X-MC-Unique: YVv8qnjTOS6Z50DaGdaPMw-1 X-Mimecast-MFC-AGG-ID: YVv8qnjTOS6Z50DaGdaPMw_1768856660 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id ECCD11954B06; Mon, 19 Jan 2026 21:04:19 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.80.137]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6E34B19560AB; Mon, 19 Jan 2026 21:04:17 +0000 (UTC) From: Wander Lairson Costa To: Steven Rostedt , Gabriele Monaco , Nam Cao , Wander Lairson Costa , linux-kernel@vger.kernel.org (open list), linux-trace-kernel@vger.kernel.org (open list:RUNTIME VERIFICATION (RV)) Subject: [PATCH 14/26] rv/rvgen: remove redundant initial_state removal Date: Mon, 19 Jan 2026 17:45:50 -0300 Message-ID: <20260119205601.105821-15-wander@redhat.com> In-Reply-To: <20260119205601.105821-1-wander@redhat.com> References: <20260119205601.105821-1-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" Remove an unnecessary and incorrect list removal operation in the automata state variable processing. The code attempted to remove initial_state from the states list, but this element was never added to the list in the first place. States with the __init_ prefix are explicitly excluded from the states list during the parsing loop, with only the initial_state variable being set from them. Calling remove() on an element that does not exist in a list raises a ValueError. This code would have failed during execution when processing any DOT file containing an initial state marker. The subsequent insert operation at index 0 correctly adds the initial_state to the beginning of the states list, making the removal operation both incorrect and redundant. Signed-off-by: Wander Lairson Costa --- tools/verification/rvgen/rvgen/automata.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/verification/rvgen/rvgen/automata.py b/tools/verificatio= n/rvgen/rvgen/automata.py index 7841a6e70bad2..b302af3e5133e 100644 --- a/tools/verification/rvgen/rvgen/automata.py +++ b/tools/verification/rvgen/rvgen/automata.py @@ -111,7 +111,6 @@ class Automata: cursor +=3D 1 =20 states =3D sorted(set(states)) - states.remove(initial_state) =20 # Insert the initial state at the beginning of the states states.insert(0, initial_state) --=20 2.52.0