From 98d81b780952c2c91fe686c55bb867d193472749 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Thu, 22 May 2025 18:06:32 -0600 Subject: Add UI action and API to control expression folding --- function.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index cc9a8e13..756c9629 100644 --- a/function.cpp +++ b/function.cpp @@ -2813,6 +2813,18 @@ void Function::SetVariableDeadStoreElimination(const Variable& var, BNDeadStoreE } +BNExprFolding Function::GetExprFolding(uint64_t addr) +{ + return BNGetExprFolding(m_object, addr); +} + + +void Function::SetExprFolding(uint64_t addr, BNExprFolding mode) +{ + BNSetExprFolding(m_object, addr, mode); +} + + std::map> Function::GetMergedVariables() { size_t count; -- cgit v1.3.1