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

Update for lastest miri and improve it a bit #3

Merged
merged 36 commits into from
May 9, 2018

Conversation

bjorn3
Copy link
Collaborator

@bjorn3 bjorn3 commented Jan 20, 2018

screenshot-2018-4-7 example rs

  • edges are now colored
  • all numeric types, bools and &str are now nicely formatted
  • using next while inside a call doesnt step to inside the next function call when on a return terminator
  • boxes are only as high as their contents (except for the mir graph)
  • stepping over StorageLive, StorageDead, Validate, EndRegion and Nop by default
  • add restart button
  • show the source code
  • breakpoints
  • migrate to rocket
  • time traveling support ↺

TODO

Source of the example:

#![feature(termination_trait)]

fn return_42() -> u64 {
    42
}

fn main() -> Result<(), std::io::Error> {
    let abc = Box::new(0);
    return_42();
    let f = 1.4f64;
    let sum = 1f64
    +
    f;
    let s = "ieeoe";
    let bcd: Box<[u8]> = Box::new([0, 1]);
    let d = true;
    format!("ewioio: {}", abc);
    Ok(())
}

Several edits: updated example, screenshot and feature list

@oli-obk
Copy link
Owner

oli-obk commented Jan 24, 2018

I haven't forgotten about this. I'm trying to get miri working again atm :)

@bjorn3
Copy link
Collaborator Author

bjorn3 commented Jan 26, 2018

No problem

@bjorn3
Copy link
Collaborator Author

bjorn3 commented Apr 7, 2018

I added breakpoint support 🎊

@bjorn3
Copy link
Collaborator Author

bjorn3 commented May 8, 2018

Added time traveling support ↺

You can now step backwards in time.

@oli-obk
Copy link
Owner

oli-obk commented May 8, 2018

Haha nice. We should probably add a tooltip mentioning that it's a very expensive operation ^^

@bjorn3
Copy link
Collaborator Author

bjorn3 commented May 9, 2018

Yeah!

@bjorn3
Copy link
Collaborator Author

bjorn3 commented May 9, 2018

Miri is updated to master.

@oli-obk oli-obk merged commit 87c5e2b into oli-obk:master May 9, 2018
@oli-obk
Copy link
Owner

oli-obk commented May 9, 2018

So much awesomeness today.

Thanks for all your cleanup and improvement work here. It's way more than "a bit"!

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