Scalar variable abstraction library