Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ydah
Copy link
Member

@ydah ydah commented Mar 1, 2025

No description provided.

if @counterexamples
cex = Counterexamples.new(states)
end
cex = Counterexamples.new(states) if @counterexamples
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can move this instance creation into #report_counterexamples.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, it's wrong. #report_counterexamples is called for each state then cex is needed to allocate outside of the loop.

cex = Counterexamples.new(states) if @counterexamples

states.states.each do |state|
# Report State
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment is for io << "State #{state.id}\n\n" then can remove now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you! remove in: bfa5801

@ydah ydah merged commit 338f13d into ruby:master Mar 2, 2025
22 checks passed
@ydah ydah deleted the refactor-reporter branch March 2, 2025 09:40
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