Skip to content

Conversation

@misonijnik
Copy link
Contributor

No description provided.

…iableComposition

# Conflicts:
#	VSharp.SILI.Core/API.fs
#	VSharp.SILI.Core/API.fsi
#	VSharp.SILI.Core/Memory.fs
@misonijnik misonijnik changed the title Composition for subtyping. Composition for subtyping Jun 14, 2018
@misonijnik misonijnik force-pushed the implicitTypeVariableComposition branch 2 times, most recently from d3d507b to d909167 Compare June 14, 2018 13:53
| _ -> __notImplemented__()

let rec metadataToDotNetType (arg : IMetadataType) =
let rec metadataToDotNetType (arg : IMetadataType) = //Type.GetType(arg.AssemblyQualifiedName)
Copy link
Member

Choose a reason for hiding this comment

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

закомментированный код в мастере не нужен

| 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)
Copy link
Member

Choose a reason for hiding this comment

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

закомментированный код


let nameOfLocation = term >> function
| HeapRef(((_, t), []), _, _, _) -> toString t
// | HeapRef(((x, _), []), _, _, _) -> toString x
Copy link
Member

Choose a reason for hiding this comment

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

закомменитрованный код

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
Copy link
Member

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

@misonijnik misonijnik force-pushed the implicitTypeVariableComposition branch from d909167 to ef6d495 Compare June 25, 2018 16:35
Improve HigherOrderApply.
Fixed typecast for null.
@misonijnik misonijnik force-pushed the implicitTypeVariableComposition branch from ef6d495 to e8e382b Compare June 25, 2018 16:37
@dvvrd dvvrd merged commit 6268572 into VSharp-team:master Jun 25, 2018
@misonijnik misonijnik deleted the implicitTypeVariableComposition branch July 11, 2019 15:51
@misonijnik misonijnik restored the implicitTypeVariableComposition branch July 11, 2019 15:51
@misonijnik misonijnik deleted the implicitTypeVariableComposition branch July 11, 2019 15:52
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