This backend focuses on implementing arithmetic ZK and adds plugins to the IR’s core functionality. Although the sample does demonstrate multiple fields and conversion (field switching), it should be simple enough to just remove converter related stuff.
link:/docs/6_sample_backends/simple_plugins.cpp[role=include]
Download the C++ in case the above does not display or you wish to modify the example.