-
Notifications
You must be signed in to change notification settings - Fork 32
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
Concrete memory and unsafe operations fixes #325
Conversation
VSharp.SILI.Core/MemoryRegion.fs
Outdated
list { | ||
let! g, accLbs, accUbs = acc | ||
let! gl, l = Merging.unguardGvs lb | ||
let! gu, u = Merging.unguardGvs ub | ||
return (g &&& gl &&& gu, l::accLbs, u::accUbs) | ||
}) | ||
} | ||
let boundsPairs = List.foldBack2 unGuard lowerBounds upperBounds [True(), [], []] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List.empty
для единообразия?
@@ -420,7 +427,7 @@ type stackBufferIndexKey = | |||
override x.Map mapTerm _ _ reg = | |||
reg, {index = mapTerm x.index} | |||
override x.IsUnion = | |||
match x.index.term with | |||
match x.index.term with // TODO: #Roma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вроде эту странную реализацию удалить хотели вообще...
@@ -631,14 +638,13 @@ module private UpdateTree = | |||
PersistentDict.append modifiedTree disjoint |> Node | |||
List.foldBack writeOneKey disjointUnguardedKey tree | |||
|
|||
|
|||
let map (mapKey : 'reg -> 'key -> 'reg * 'key) mapValue (tree : updateTree<'key, 'value, 'reg>) predicate = | |||
let map (mapKey : 'reg -> 'key -> 'reg * 'key) mapValue (tree : updateTree<'key, term, 'reg>) predicate = | |||
let mapper reg {key=k; value=v; guard = g; time = t} = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пробелы тоже
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Какие?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let mapper reg {key=k; value=v; guard = g; time = t} = | |
let mapper reg {key = k; value = v; guard = g; time = t} = |
- fixed unsafe operations - added style fixes
No description provided.