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

TS symbolic machine expansion #200

Closed
wants to merge 1 commit into from
Closed

TS symbolic machine expansion #200

wants to merge 1 commit into from

Conversation

zishkaz
Copy link
Collaborator

@zishkaz zishkaz commented Jul 29, 2024

  • TSExprResolver skeleton with TSSimpleValueResolver
  • TSTypeSystem
  • TSInterpreter skeleton

@zishkaz zishkaz requested a review from CaelmBleidd July 29, 2024 08:52
@zishkaz zishkaz marked this pull request as draft July 29, 2024 09:42
@zishkaz zishkaz closed this Jul 29, 2024
@zishkaz zishkaz removed the request for review from CaelmBleidd July 29, 2024 10:01
@zishkaz zishkaz deleted the sergeyl/ts_arch branch July 29, 2024 10:01
Copy link
Member

@CaelmBleidd CaelmBleidd left a comment

Choose a reason for hiding this comment

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

There are no tests in the request, you need to provide them

Copy link
Member

Choose a reason for hiding this comment

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

What are these changes?

@@ -44,3 +45,30 @@ class TSComponents(
closeableResources.forEach(AutoCloseable::close)
}
}

class TSFpSortSizeExprProvider(
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this class? It is just a copy of UBVSizeProvider. Moreover, why is it called "fp"?

Comment on lines +22 to +30
fun typeToSort(type: EtsType): USort = when (type) {
is EtsAnyType -> addressSort
is EtsVoidType -> voidSort
is EtsUndefinedType -> undefinedSort
is EtsRefType -> addressSort
is EtsBooleanType -> boolSort
is EtsNumberType -> fp64Sort
is EtsStringType -> stringSort
else -> error("Unknown type: $type")
Copy link
Member

Choose a reason for hiding this comment

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

Thius This contain less types than actual hierarchy

Comment on lines +74 to +76
// stmt.nextStmt?.let { nextStmt ->
// scope.doWithState { newStmt(nextStmt) }
// }
Copy link
Member

Choose a reason for hiding this comment

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

What is it?

Copy link
Member

Choose a reason for hiding this comment

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

These are too complicated changes to be made like this. I expect to have a separate PR with lot of tests for this

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