You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sT2fT.m
    path of file: ./repos/cocoSim-deprecated/src/utils
    
    the code of the file until where you have to start completion: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This file is part of CoCoSim.
% Copyright (C) 2014-2016  Carnegie Mellon University
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function 
    
function [ Lustre_type, initial_value ] = sT2fT( stateflow_Type, data_name )
    if strcmp(stateflow_Type, 'real') || strcmp(stateflow_Type, 'int') || strcmp(stateflow_Type, 'bool')
        Lustre_type = simulink_dt;
    else
        if strcmp(stateflow_Type, 'logical') || strcmp(stateflow_Type, 'boolean')
            Lustre_type = 'bool';
            initial_value = 'false';
        elseif strncmp(stateflow_Type, 'int', 3) || strncmp(stateflow_Type, 'uint', 4) || strncmp(stateflow_Type, 'fixdt(1,16,', 11) || strncmp(stateflow_Type, 'sfix64', 6)
            Lustre_type = 'int';
            initial_value = '0';
        elseif ~isempty(strfind(stateflow_Type,'Inherit'))
            try
                var = evalin('base',data_name);
                [ Lustre_type, initial_value ] = sT2fT( var.DataType, data_name );
            catch ME
                msg = ['Parameter :' data_name ' declared as type :"' stateflow_Type '" does not exit in workspace base.\n',...
                    'Make sure you set all model parameters in workspace before you run the tool.\n'];
                causeException = MException('simulinkParameter:UnknownData',msg);
                ME = addCause(ME,causeException);
                rethrow(ME)
            end