From 17580f73a7919cff527c5839b37f9e9006b5f64d Mon Sep 17 00:00:00 2001 From: mikebarnett Date: Sun, 6 Jun 2010 03:53:24 +0000 Subject: Updated the project to .NET v4.0. Added helper methods to the statement traverser. Handle ILocalDeclarationStatement, IAssertStatement, IAssumeStatement in StatementTraverser. Handle simple logical-and and logical-or expressions in ExpressionTraverser. Inject assertion that divisor is non-zero for IDivision in ExpressionTraverser. Added static variable BCT.Host so all parts of translation can access the CCI Metadata host. --- BCT/BytecodeTranslator/BytecodeTranslator.csproj | 16 ++++-- BCT/BytecodeTranslator/ExpressionTraverser.cs | 39 ++++++++++++- BCT/BytecodeTranslator/Prelude.cs | 2 +- BCT/BytecodeTranslator/Program.cs | 5 +- BCT/BytecodeTranslator/StatementTraverser.cs | 73 ++++++++++++++++++++---- BCT/BytecodeTranslator/TranslationHelper.cs | 2 +- 6 files changed, 117 insertions(+), 20 deletions(-) (limited to 'BCT') diff --git a/BCT/BytecodeTranslator/BytecodeTranslator.csproj b/BCT/BytecodeTranslator/BytecodeTranslator.csproj index 9af26786..60479a27 100644 --- a/BCT/BytecodeTranslator/BytecodeTranslator.csproj +++ b/BCT/BytecodeTranslator/BytecodeTranslator.csproj @@ -3,14 +3,14 @@ Debug AnyCPU - 9.0.21022 + 9.0.30729 2.0 {9C8E4D74-0251-479D-ADAC-A9A469977301} Exe Properties BytecodeTranslator BytecodeTranslator - v3.5 + v4.0 512 @@ -31,6 +31,7 @@ false false true + true @@ -77,19 +78,19 @@ AllRules.ruleset - + False ..\..\Binaries\AbsInt.dll - + False ..\..\Binaries\AIFramework.dll - + False ..\..\Binaries\Basetypes.dll - + False ..\..\Binaries\Core.dll @@ -178,6 +179,9 @@ true + + +