/* The implementation should probably change to an array access.  */
static int atomdef(struct stmt *s)
/* The implementation should probably change to an array access.  */
static int atomdef(struct stmt *s)
{
	if (s->code == NOP)
		return -1;
	switch (BPF_CLASS(s->code)) {
	case BPF_LD:
	case BPF_ALU:
		return A_ATOM;
	case BPF_LDX:
		return X_ATOM;
	case BPF_ST:
	case BPF_STX:
		return s->k;
	case BPF_MISC:
		return BPF_MISCOP(s->code) == BPF_TAX ? X_ATOM : A_ATOM;
	}
	return -1;
}