Example #1
0
 public static IFormalValue BitArrayBinaryOp(string operation, IFormalValue formalLeftSubValue, IFormalValue formalRightSubValue) => new BitArrayBinaryOpValue(operation, formalLeftSubValue, formalRightSubValue);
Example #2
0
 public BitArrayBinaryOpValue(string operation, IFormalValue leftSubValue, IFormalValue rightSubValue)
 {
     _operation = operation;
     _leftSubValue = leftSubValue;
     _rightSubValue = rightSubValue;
 }
Example #3
0
 public static IFormalValue RefPlus(IFormalValue formalSubValue, int right) => formalSubValue.RefPlus(right);
Example #4
0
 public static IFormalValue Dereference(IFormalValue formalSubValue) => new DereferenceValue(formalSubValue);
Example #5
0
 public static IFormalValue Call(IFormalValue[] formalSubValues, FunctionId functionId) => new CallValue(formalSubValues, functionId);
Example #6
0
 public static IFormalValue BitCast(IFormalValue formalSubValue, int castedBits) => new BitCastValue(formalSubValue, castedBits);
Example #7
0
 public FormalValueAccess(IFormalValue formalValue, int index, int size)
 {
     _formalValue = formalValue;
     _size = size;
     _index = index;
 }
Example #8
0
 public BitCastValue(IFormalValue formalSubValue, int castedBits)
 {
     _formalSubValue = formalSubValue;
     _castedBits = castedBits;
 }
Example #9
0
 public CallValue(IFormalValue[] formalSubValues, FunctionId functionId)
 {
     _formalSubValues = formalSubValues;
     _functionId = functionId;
 }
Example #10
0
 public DereferenceValue(IFormalValue formalSubValue) { _formalSubValue = formalSubValue; }
Example #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);
 }