Skip to content

multiple exits in extenteded blocks #145

Description

@KatGarmash

get_extended_block_slices from program_slicing.decomposition.block.extension.slicing gives slice in range (3-14) (return exit and continuation of program flow)

1public String[] mapFileName(String sourceFileName) {
2       String modName = modifyName(sourceFileName);
3        if (fromPrefix == null
4            || (sourceFileName.length() < (prefixLength + postfixLength))
5            || (!fromContainsStar
6                && !modName.equals(modifyName(fromPrefix))
7                )
8            || (fromContainsStar
9                && (!modName.startsWith(modifyName(fromPrefix))
10                    || !modName.endsWith(modifyName(fromPostfix)))
11               )
12            ) {
 13           return null;
14        }
15        return new String[] {toPrefix
16                             + (toContainsStar
17                                ? extractVariablePart(sourceFileName)
18                                  + toPostfix
19                                : "")};
20    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions