Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

feat: provide IR for debugging upon failure #48

Merged
merged 19 commits into from
Apr 24, 2024
Merged

Conversation

vladimir-trifonov
Copy link
Contributor

Provide IR for debugging upon failure

Issue: #11

Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

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

Thanks @vladimir-trifonov! Dropping a few inline comments, but overall looks good.

ops/Cargo.toml Outdated Show resolved Hide resolved
ops/src/lib.rs Outdated Show resolved Hide resolved
common/src/prover_state/mod.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

common/src/debug_utils.rs Outdated Show resolved Hide resolved
fs::create_dir(DEBUG_FOLDER)?;
}

let mut file = File::create(input_file_path)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want create over open if the file exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, create opens the file if it exists

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that's not what I meant. They have different default behaviour

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you mean we would like to append content instead of overwrite?

common/src/debug_utils.rs Outdated Show resolved Hide resolved
common/src/debug_utils.rs Outdated Show resolved Hide resolved
common/src/debug_utils.rs Outdated Show resolved Hide resolved
ops/src/lib.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
ops/src/lib.rs Outdated Show resolved Hide resolved
ops/src/lib.rs Outdated Show resolved Hide resolved
ops/src/lib.rs Outdated Show resolved Hide resolved
ops/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@cpubot cpubot left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@Nashtare Nashtare linked an issue Apr 24, 2024 that may be closed by this pull request
@muursh muursh merged commit e18dbd5 into develop Apr 24, 2024
3 checks passed
@muursh muursh deleted the ir_for_debugging branch April 24, 2024 17:07
0xaatif pushed a commit that referenced this pull request May 23, 2024
* feat: provide IR for debugging upon failure

* fix: fix clippy issues

* fix: fix pr comments

* fix: make evm_arithmetization non optional for ops

* fix: fix pr comments

* fix: fix clippy issues

* fix: fix clippy issue

* fix: fix pr comment

* fix: fix clippy issue

* fix: fix cargo lock

* fix: fix pr comments

* fix: fix format issues

* fix: fix save input on error for test-only

* fix: fix pr comments

* fix: fix

* fix: fix clippy issue

* fix: fmt fix

---------

Co-authored-by: Vladimir Trifonov <trifonov.vp@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Provide txn IR for debugging upon failure
5 participants