introduction of ensure-llvm-representation function