Skip to content

mdrafiqulrabin/CSharpTransformer

Repository files navigation

CSharpTransformer

A tool to apply program transformations on CSharp (*.cs) methods for generating semantic-preserving transformed programs.


Used Version(s):

  • TargetFrameworkVersion v4.7
  • Microsoft.CodeAnalysis 4.3.0

CSharpTransformer.csproj:

  • Given input and output path, execute csproj:
    # input_path  = Input directory to the original programs.
    # output_path = Output directory to the augmented programs.
    $ dotnet run --project=CSharpTransformer/CSharpTransformer.csproj "input_path" "output_path"
    

Transformations:

  • BooleanExchange
  • LogStatement
  • LoopExchange
  • PermuteStatement
  • ReorderCondition
  • SwitchToIf
  • TryCatch
  • UnusedStatement
  • VariableRenaming

References:

About

Program Transformation Tool for CSharp Methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages