Core: Review nits on the signedness branch

- A global's descriptor is built from the loaded value, not from None.
- get_operand_value, the [0] wrapper over get_typed_operand, had no
  callers left; removed with its export.
- infer_int_type's map branch names the map's declared value type for
  what it is (value_ctype), says that the key argument plays no part,
  and applies only to lookup: update and delete return a status, not a
  value of the map's type.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Pragyansh Chaturvedi
2026-09-24 19:29:07 +05:30
parent 532dc0f808
commit 9cd8e1037a
4 changed files with 17 additions and 19 deletions

View File

@ -1,4 +1,4 @@
from .expr_pass import eval_expr, handle_expr, get_operand_value, get_typed_operand
from .expr_pass import eval_expr, handle_expr, get_typed_operand
from .type_normalization import (
convert_to_bool,
get_base_type_and_depth,
@ -25,7 +25,6 @@ __all__ = [
"deref_to_depth",
"apply_binop",
"access_struct_field",
"get_operand_value",
"CallHandlerRegistry",
"VmlinuxHandlerRegistry",
]