Пример #1
0
        public void Generate()
        {
            foreach (ContractDefinition contract in context.ContractDefinitions)
            {
                if (contract.ContractKind == EnumContractKind.LIBRARY &&
                    contract.Name.Equals("VeriSol"))
                {
                    continue;
                }

                Dictionary <int, BoogieExpr> houdiniVarMap = HoudiniHelper.GenerateHoudiniVarMapping(contract, context);
                GenerateHoudiniVarsForContract(contract, houdiniVarMap);
                GenerateBoogieHarnessForContract(contract, houdiniVarMap);
            }

            GenerateModifiers();

            foreach (ContractDefinition contract in context.ContractDefinitions)
            {
                if (contract.ContractKind == EnumContractKind.LIBRARY &&
                    contract.Name.Equals("VeriSol"))
                {
                    continue;
                }

                GenerateCorralChoiceProcForContract(contract);
                GenerateCorralHarnessForContract(contract);
            }
        }
Пример #2
0
        public void Generate()
        {
            foreach (ContractDefinition contract in context.ContractDefinitions)
            {
                Dictionary <int, BoogieExpr> houdiniVarMap = HoudiniHelper.GenerateHoudiniVarMapping(contract, context);
                GenerateHoudiniVarsForContract(contract, houdiniVarMap);
                GenerateBoogieHarnessForContract(contract, houdiniVarMap);
            }

            GenerateModifiers();

            foreach (ContractDefinition contract in context.ContractDefinitions)
            {
                GenerateCorralChoiceProcForContract(contract);
                GenerateCorralHarnessForContract(contract);
            }
        }