]> git.ipfire.org Git - thirdparty/linux.git/commit
verification/rvgen: Fix ltl2k writing True as a literal
authorGabriele Monaco <gmonaco@redhat.com>
Thu, 14 May 2026 15:20:48 +0000 (17:20 +0200)
committerGabriele Monaco <gmonaco@redhat.com>
Thu, 4 Jun 2026 14:44:25 +0000 (16:44 +0200)
commitdf996599cc69a9b74ff437c67751cf8a61f62e39
tree8225f1f3f825d5c3a5c7057d987be74ad5c40c68
parent5f845ad706c0b394ae274e9a930044f78bef782e
verification/rvgen: Fix ltl2k writing True as a literal

The rvgen parser for LTL stores literal true values in the python
representation (capitalised True), this doesn't build in C.
The Literal class should already handle this case but ASTNode skips its
strigification method and converts the value (true/false) directly.

Fix by delegating ASTNode stringification to the Literal and Variable
classes instead of bypassing them.

Fixes: 97ffa4ce6ab32 ("verification/rvgen: Add support for linear temporal logic")
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260514152055.229162-8-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
tools/verification/rvgen/rvgen/ltl2ba.py