Ejemplo n.º 1
0
 public static IFormalValue BitArrayBinaryOp(string operation, IFormalValue formalLeftSubValue, IFormalValue formalRightSubValue) => new BitArrayBinaryOpValue(operation, formalLeftSubValue, formalRightSubValue);
Ejemplo n.º 2
0
 public BitArrayBinaryOpValue(string operation, IFormalValue leftSubValue, IFormalValue rightSubValue)
 {
     _operation = operation;
     _leftSubValue = leftSubValue;
     _rightSubValue = rightSubValue;
 }
Ejemplo n.º 3
0
 public static IFormalValue RefPlus(IFormalValue formalSubValue, int right) => formalSubValue.RefPlus(right);
Ejemplo n.º 4
0
 public static IFormalValue Dereference(IFormalValue formalSubValue) => new DereferenceValue(formalSubValue);
Ejemplo n.º 5
0
 public static IFormalValue Call(IFormalValue[] formalSubValues, FunctionId functionId) => new CallValue(formalSubValues, functionId);
Ejemplo n.º 6
0
 public static IFormalValue BitCast(IFormalValue formalSubValue, int castedBits) => new BitCastValue(formalSubValue, castedBits);
Ejemplo n.º 7
0
 public FormalValueAccess(IFormalValue formalValue, int index, int size)
 {
     _formalValue = formalValue;
     _size = size;
     _index = index;
 }
Ejemplo n.º 8
0
 public BitCastValue(IFormalValue formalSubValue, int castedBits)
 {
     _formalSubValue = formalSubValue;
     _castedBits = castedBits;
 }
Ejemplo n.º 9
0
 public CallValue(IFormalValue[] formalSubValues, FunctionId functionId)
 {
     _formalSubValues = formalSubValues;
     _functionId = functionId;
 }
Ejemplo n.º 10
0
 public DereferenceValue(IFormalValue formalSubValue) { _formalSubValue = formalSubValue; }
Ejemplo n.º 11
0
 void SetFormalValues(IFormalValue element, int startAddress, Size size)
 {
     var size1 = size.ToInt();
     for(var i = 0; i < size1; i++)
         _data[i + startAddress] = new FormalValueAccess(element, i, size1);
 }