let tc_engine_opt             = ref APInv_bwd