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

Resolved issues related to column type changes #1417

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

OlivierBBB
Copy link
Collaborator

No description provided.

@OlivierBBB OlivierBBB linked an issue Oct 15, 2024 that may be closed by this pull request
@OlivierBBB OlivierBBB self-assigned this Oct 15, 2024
@OlivierBBB OlivierBBB marked this pull request as ready for review October 15, 2024 10:27
@@ -167,7 +167,7 @@ private void traceModexpResult(Trace trace, final UnsignedByte stamp) {

private void commonTrace(Trace trace, UnsignedByte stamp, int index, Bytes input, int indexMax) {
trace
.stamp(stamp)
.stamp(stamp.toInteger())
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure this is the right way to do this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

looking at UnsignedByte.java it seems ok to me. It's used to convert to BigInt to

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ras

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ras

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ras

@@ -185,14 +185,14 @@ public Trace trace(Trace trace) {
trace::pStackStackItemPop3,
trace::pStackStackItemPop4);

final List<Function<Bytes, Trace>> heightTracers =
final List<Function<Short, Trace>> heightTracers =
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Short was suggested by Intellij

.heightNew(
commonFragmentValues.hubProcessingPhase == HubProcessingPhase.TX_EXEC
? commonFragmentValues.heightNew
: 0)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

HEIGHT and HEIGHT_NEW vanish outside of execution rows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ras

@OlivierBBB OlivierBBB added the build Regards the build system label Oct 15, 2024
@OlivierBBB
Copy link
Collaborator Author

What I'm most worried about is the change of the constraints commit 🤔

Copy link
Collaborator

@letypequividelespoubelles letypequividelespoubelles left a comment

Choose a reason for hiding this comment

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

only minor comment

@@ -167,7 +167,7 @@ private void traceModexpResult(Trace trace, final UnsignedByte stamp) {

private void commonTrace(Trace trace, UnsignedByte stamp, int index, Bytes input, int indexMax) {
trace
.stamp(stamp)
.stamp(stamp.toInteger())
Copy link
Collaborator

Choose a reason for hiding this comment

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

looking at UnsignedByte.java it seems ok to me. It's used to convert to BigInt to

.ct(Bytes.of(i))
.inst(Bytes.of(this.opCode.byteValue()))
.ct(i)
.inst(UnsignedByte.of(this.opCode.byteValue()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

you could use opCode.unsignedByteValue()

@@ -135,7 +134,7 @@ public void traceLog(final Log log, final int absLogNum, final int absLogNumMax,
.logsData(true)
.sizeTotal(log.getData().size())
.sizeAcc(index == indexMax ? log.getData().size() : 16L * (index + 1))
.sizeLimb(index == indexMax ? UnsignedByte.of(lastLimbSize) : UnsignedByte.of(16))
.sizeLimb(index == indexMax ? lastLimbSize : 16)
Copy link
Collaborator

Choose a reason for hiding this comment

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

use LLARGE

@@ -111,7 +113,8 @@ public int lineCount() {

@Override
public List<ColumnHeader> columnsHeaders() {
return Trace.headers(this.lineCount());
return headers(this.lineCount());
// return Trace.headers(this.lineCount());
Copy link
Collaborator

Choose a reason for hiding this comment

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

why keeping the comment ?

@OlivierBBB OlivierBBB merged commit eef16eb into arith-dev Oct 15, 2024
5 checks passed
@OlivierBBB OlivierBBB deleted the 1416-trace-file-regeneration branch October 15, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Regards the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trace file regeneration
2 participants