CBMC
Loading...
Searching...
No Matches
Functions
validate_code.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

  Check that the given code statement is well-formed (shallow checks only, i.e., enclosed statements, subexpressions, etc.
 
  Check that the given code statement is well-formed, assuming that all its enclosed statements, subexpressions, etc.
 
  Check that the given code statement is well-formed (full check, including checks of all subexpressions)
 

Function Documentation

◆  check_code()

void check_code ( const codetcode,
)

Check that the given code statement is well-formed (shallow checks only, i.e., enclosed statements, subexpressions, etc.

are not checked)

The function determines the type T of the statement code (by inspecting the id() field) and then calls T::check(code, vm).

The validation mode indicates whether well-formedness check failures are reported via DATA_INVARIANT violations or exceptions.

Definition at line 70 of file validate_code.cpp.

◆  validate_code()

void validate_code ( const codetcode,
const namespacetns,
)

Check that the given code statement is well-formed, assuming that all its enclosed statements, subexpressions, etc.

have already been checked for well-formedness.

The function determines the type T of the statement code (by inspecting the id() field) and then calls T::validate(code, ns, vm).

The validation mode indicates whether well-formedness check failures are reported via DATA_INVARIANT violations or exceptions.

Definition at line 84 of file validate_code.cpp.

◆  validate_full_code()

void validate_full_code ( const codetcode,
const namespacetns,
)

Check that the given code statement is well-formed (full check, including checks of all subexpressions)

The function determines the type T of the statement code (by inspecting the id() field) and then calls T::validate_full(code, ns, vm).

The validation mode indicates whether well-formedness check failures are reported via DATA_INVARIANT violations or exceptions.

Definition at line 100 of file validate_code.cpp.

AltStyle によって変換されたページ (->オリジナル) /