Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic unreachable code detection #123

Merged
merged 9 commits into from
Mar 4, 2020

Conversation

spookydonut
Copy link
Collaborator

@spookydonut spookydonut commented Dec 6, 2019

Has some simple evaluation

@spookydonut
Copy link
Collaborator Author

This needs work, I'm making progress but I just realised a mistake I made in truthy evaluation and what I can do to fix it

optimumtact pushed a commit to tgstation/tgstation that referenced this pull request Dec 10, 2019
MCterra10 pushed a commit to austation/austation that referenced this pull request Dec 10, 2019
MCterra10 pushed a commit to austation/austation that referenced this pull request Dec 11, 2019
* Removes unreachable code (#48143)

About The Pull Request

As detected by SpaceManiac/SpacemanDMM#123

* Removes unreachable code
self.returns = true;
}
if other.fuzzy {
self.returns = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

loops basically

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you can't (yet) determine if a loop ran, so it's "fuzzy" if it can actually return and terminate the proc leaving the code below the loop unreachable.

@spookydonut
Copy link
Collaborator Author

I'm pretty happy with the state of this

@SpaceManiac SpaceManiac changed the title Adds basic unreachable code detection Add basic unreachable code detection Jan 21, 2020
…nto brancheval

# Conflicts:
#	src/dreamchecker/lib.rs
@spookydonut spookydonut merged commit f45b8c3 into SpaceManiac:master Mar 4, 2020
alexkar598 pushed a commit to yogstation13/Yogstation that referenced this pull request Apr 29, 2020
alexkar598 pushed a commit to yogstation13/Yogstation that referenced this pull request Apr 29, 2020
monster860 pushed a commit to yogstation13/Yogstation that referenced this pull request May 2, 2020
…2 in the process and updates dreamchecker(turdis) and casually fixes about 90 bugs in the codebase (#8324)

* Cherry picks the unicode part 2 PR from TG

* Things

* drop 512 support

* TAN --> tan

* Manually does the things that was in renamed files

* CLAMP --> clamp

* ismovableatom -> ismovable

* bugfixes, tg is bad

* Ports sanitize_name

* Bumps checks

* Fixes new linter errors (#48126)

About The Pull Request

This fixes the errors raised by the new feature I'm adding to the linter: SpaceManiac/SpacemanDMM#119

* Update SpacemanDMM suite to 1.2 (#48785)

* Update SpacemanDMM suite to 1.2

* Fix new lint errors

* Removes unreachable code (#48143)

About The Pull Request

As detected by SpaceManiac/SpacemanDMM#123

* casually fixes 50 bugs

* stoopid evil dreamchecker

* stoopid evil dreamchecker

* stoopid evil dreamchecker

* almost the same thing

* Makes all UIs UTF-8

* Fixes bugs

* Fixes runtimes, some related to 513, some not

* Fixes agent ids

Co-authored-by: MrPerson <spamtaffic@gmail.com>
Co-authored-by: alexkar598 <>
Co-authored-by: spookydonut <github@spooksoftware.com>
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