trafgen: inline constant expression calculator

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>