Class TestBaseQueryCreator


  • public final class TestBaseQueryCreator
    extends java.lang.Object
    The TestBaseQueryCreator class forms a query for test data that will be sent to TestBase. It dumps the following information:
    1. Name of the microprocessor being tested.
    2. Information about the test situation (its name and attributes).
    3. Name of the operation the situation is linked to.
    4. All arguments of the operation including immediate values, addressing modes with their arguments and all arguments of nested operations.
    Arguments are treated in the following way:
    • All immediate arguments that have values are constants (see NodeValue) of type DataType.bitVector(int).
    • All unknown immediate arguments (see UnknownImmediateValue) that have not been assigned values are unknown variables (see NodeVariable) of type DataType.bitVector(int).
    • All addressing modes are unknown variables (see NodeVariable) of type DataType.bitVector(int).

    N.B. If nested operations have linked test situations, these situations are ignored and no information about them is included in the query. These situations are processed separately. If they have been previously processed, unknown immediate arguments that received values are treated as known immediate values.

    N.B. The above text describes the current behavior that may be changed in the future.

    • Method Detail

      • getQuery

        public ru.ispras.testbase.TestBaseQuery getQuery()
      • getUnknownImmValues

        public java.util.Map<java.lang.String,​Argument> getUnknownImmValues()
      • getTargetModes

        public java.util.Map<java.lang.String,​Primitive> getTargetModes()