-
Notifications
You must be signed in to change notification settings - Fork 35
Composition for subtyping #95
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
Composition for subtyping #95
Conversation
…iableComposition # Conflicts: # VSharp.SILI.Core/API.fs # VSharp.SILI.Core/API.fsi # VSharp.SILI.Core/Memory.fs
d3d507b to
d909167
Compare
VSharp.SILI/MetadataTypes.fs
Outdated
| | _ -> __notImplemented__() | ||
|
|
||
| let rec metadataToDotNetType (arg : IMetadataType) = | ||
| let rec metadataToDotNetType (arg : IMetadataType) = //Type.GetType(arg.AssemblyQualifiedName) |
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.
закомментированный код в мастере не нужен
VSharp.SILI.Core/TypeCasting.fs
Outdated
| | Error _ -> k (term, state) | ||
| | Nop -> internalfailf "casting void to %O!" targetType | ||
| | _ when Terms.isNull term -> k (Terms.makeNullRef targetType mtd, state) | ||
| // | _ when Terms.isNull term -> k (Terms.makeNullRef targetType mtd, state) |
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.
закомментированный код
VSharp.SILI.Core/State.fs
Outdated
|
|
||
| let nameOfLocation = term >> function | ||
| | HeapRef(((_, t), []), _, _, _) -> toString t | ||
| // | HeapRef(((x, _), []), _, _, _) -> toString x |
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.
закомменитрованный код
VSharp.SILI.Core/Explorer.fs
Outdated
| let functionApplicationResult mtd (funcId : IFunctionIdentifier) name state time k = | ||
| let typ = funcId.ReturnType | ||
| let source = {id = funcId; state = state; name = {v=name}; typ = typ; location = None; extractor = IdTermExtractor(); typeExtractor = IdTypeExtractor()} | ||
| let functionTerm = Memory.makeSymbolicInstance mtd time source source name typ |
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.
давай лучше просто Memory.makeSymbolicInstance mtd time source source name typ |> k
d909167 to
ef6d495
Compare
Improve HigherOrderApply. Fixed typecast for null.
ef6d495 to
e8e382b
Compare
No description provided.