From ec826c31b27d809cd1e5904015df168ff2983017 Mon Sep 17 00:00:00 2001 From: IgorCielniak Date: Mon, 2 Feb 2026 12:22:22 +0100 Subject: [PATCH] changed the label generation logick to avoid the word_ prefix --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e69a7a9..c99c16a 100644 --- a/main.py +++ b/main.py @@ -1687,7 +1687,9 @@ def sanitize_label(name: str) -> str: else: parts.append(f"_{ord(ch):02x}") safe = "".join(parts) or "anon" - return f"word_{safe}" + if safe[0].isdigit(): + safe = "_" + safe + return f"{safe}" def _is_identifier(text: str) -> bool: @@ -2304,7 +2306,7 @@ class Assembler: " lea r12, [rel dstack_top]", " mov r15, r12", " lea r13, [rel rstack_top]", - " call word_main", + " call main", " mov rax, 0", " cmp r12, r15", " je .no_exit_value",