mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
In 3.11 a return inside an if/else may fall straight into a sibling branch. The old code unconditionally consumed the next instruction to skip a redundant jump; when that instruction was the LOAD_CONST of a code object feeding a MAKE_FUNCTION (e.g. a list comprehension after 'if not x: return []'), dropping it left MAKE_FUNCTION without its operand and crashed with std::bad_cast. Now peek the next instruction and keep it only when it is a LOAD_CONST of a code object; otherwise preserve the original skip behavior. Added PycBuffer::pos()/setPos() for safe peeking. decompilation target: 234/239 files, corpus 40/95 (+1, 0 regressions). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
345 B
Makefile
12 lines
345 B
Makefile
# CMAKE generated file: DO NOT EDIT!
|
|
# Generated by "Unix Makefiles" Generator, CMake Version 4.3
|
|
|
|
# compile CXX with /usr/bin/c++
|
|
CXX_DEFINES =
|
|
|
|
CXX_INCLUDES = -I/tmp/pycdc
|
|
|
|
CXX_FLAGSarm64 = -Wall -Wextra -Wno-error=shadow -Werror -g -std=gnu++11 -arch arm64
|
|
|
|
CXX_FLAGS = -Wall -Wextra -Wno-error=shadow -Werror -g -std=gnu++11 -arch arm64
|
|
|