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

Arrays support in type solver #316

Merged
merged 5 commits into from
Mar 12, 2024
Merged

Conversation

ch3zych3z
Copy link
Collaborator

No description provided.

ch3zych3z and others added 2 commits March 8, 2024 23:37
- Fixed jagged array rendering
- Fixed safeContextWrite checking
- Fixed array variance according to its element type
@@ -770,7 +802,7 @@ and genericCandidate private (
if success then Some constraints
else None
else
success <- List.isEmpty sbtInterfaces
success <- success && List.isEmpty sbtInterfaces
Copy link
Member

Choose a reason for hiding this comment

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

Добавь проверку на success

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

В остальных местах не нужно, ибо там if success then, то есть success && ничего не сделает

Copy link
Member

Choose a reason for hiding this comment

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

Это больше оптимизация эффективности, ничего семантически не изменится

Comment on lines 920 to 1104
publicBuiltIn : seq<candidate>
publicUser : seq<candidate>
privateUser : seq<candidate>
rest : seq<candidate>
publicBuiltIn : candidate list
publicUser : candidate list
privateUser : candidate list
rest : candidate list
Copy link
Member

Choose a reason for hiding this comment

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

Оставим ленивость

@@ -758,7 +790,7 @@ and genericCandidate private (
success <- propagateEqual constraints typedef equalType

if typedef.IsInterface then
Copy link
Member

Choose a reason for hiding this comment

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

Вот тут можно добавить проверку, иначе будем бегать по циклам впустую

@@ -770,7 +802,7 @@ and genericCandidate private (
if success then Some constraints
else None
else
success <- List.isEmpty sbtInterfaces
success <- success && List.isEmpty sbtInterfaces
Copy link
Member

Choose a reason for hiding this comment

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

Это больше оптимизация эффективности, ничего семантически не изменится

@MchKosticyn MchKosticyn merged commit f8cc1f9 into VSharp-team:master Mar 12, 2024
3 checks passed
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