Skip to content

Alias experiment#1

Open
PavelAndrianov wants to merge 13 commits into
CPALockator-combat-modefrom
alias_experiment
Open

Alias experiment#1
PavelAndrianov wants to merge 13 commits into
CPALockator-combat-modefrom
alias_experiment

Conversation

@PavelAndrianov

Copy link
Copy Markdown
Collaborator

PR just for discussion

Comment thread src/org/sosy_lab/cpachecker/cpa/usage/UsageState.java
return new UsageState(pWrappedState, this);
}

private UsageState createState(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protected? Не понадобилось переопределять?

Comment thread src/org/sosy_lab/cpachecker/cpa/usage/UsageState.java

if (variableBindingRelation.containsKey(entry.getKey())) {
if (!variableBindingRelation.get(entry.getKey()).equals(entry.getValue())) {
throw new Error("Cannot handle it yet");

@PavelAndrianov PavelAndrianov Mar 11, 2021

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UnsupportedOperationException. И сообщение нужно поприличнее, то есть явно написать, что не поддерживается. Это вы видите, что за if, а пользователь не должен искать место в коде, а по сообщению понять, что не поддерживаетс.

} else if (statement instanceof CFunctionCallStatement) {
fcExpression = ((CFunctionCallStatement) statement).getFunctionCallExpression();
} else {
return ImmutableSet.of();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это правильно? Раньше не возвращались только ссылки. Сейчас это уже состояния.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants