summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/thread/TestThreadAPI.py
diff options
context:
space:
mode:
authorRyotaro Kasuga <kasuga.ryotaro@fujitsu.com>2025-10-31 01:06:30 +0900
committerGitHub <noreply@github.com>2025-10-30 16:06:30 +0000
commit916e8f74a8216e858699fc8533929c013fa3d018 (patch)
tree7c756232ac160d08e65f5bddb23d6e3b1dfa2e3f /lldb/test/API/python_api/thread/TestThreadAPI.py
parentcc1022ca0bba0564fbfa1e194414593640d28852 (diff)
[DA] Check nsw when extracting a constant operand of SCEVMul (#164408)
Given a `SCEVMulExpr` such as `5 * %m`, `gcdMIVtest` in DA assumes the value as a multiple of 5 in a mathematical sense. However, this is not necessarily true if `5 * %m` overflows, especially because an odd number has an inverse modulo `2^64`. Such incorrect assumptions can lead to invalid analysis results. This patch stops unconditionally extracting a constant operand from `SCEVMulExpr`. Instead, it only allows this when the `SCEVMulExpr` has the `nsw` flag.
Diffstat (limited to 'lldb/test/API/python_api/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions