From 8e7d4d775944624dfb7a9cf8a622631350c51916 Mon Sep 17 00:00:00 2001 From: Jim Carciofini Date: Tue, 21 Jan 2025 15:11:19 -0600 Subject: [PATCH] GUI: Enable 'extract' simplification when argument is complex (not just an id). --- pate_binja/pate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pate_binja/pate.py b/pate_binja/pate.py index e06c9167..c89a28ef 100644 --- a/pate_binja/pate.py +++ b/pate_binja/pate.py @@ -1735,7 +1735,7 @@ def simplify_sexp(sexp, env=None): # ('_', 'extract', s, e)(n) => n if (isinstance(op, list) and len(op) == 4 and op[0] == '_' and op[1] == 'extract' - and len(arg) == 1 and isinstance(arg[0], str)): + and len(arg) == 1): return f'{arg[0]}<{op[2]}:{op[3]}>' # Simplify call(F, args...) => F(args...)