MCPcopy Create free account
hub / github.com/cseagle/blc / checkForLegalCode

Method checkForLegalCode

emulateutil.cc:327–355  ·  view source on GitHub ↗

\brief Check for p-code that is deemed illegal for a \e snippet This method facilitates enforcement of the formal rules for snippet code. - Branches must use p-code relative addressing. - Snippets can only read/write from temporary registers - Snippets cannot use BRANCHIND, CALL, CALLIND, CALLOTHER, STORE, SEGMENTOP, CPOOLREF, NEW, MULTIEQUAL, or INDIRECT \return \b true if the current snippet i

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

buildMethod · 0.80

Calls 6

sizeMethod · 0.80
getOpcodeMethod · 0.45
getInputMethod · 0.45
getTypeMethod · 0.45
getOutputMethod · 0.45
numInputMethod · 0.45

Tested by

no test coverage detected