Skip to content

Insturment if statements with control flow logger #14

Description

@bestchai

#Overview
all if statements must be instrumented with calls to the cflogger. The root of each if statement should be matched with a call to setFalse(), and the internal of each statement should be matched with setTrue().

During the code injection phase of instrumentation, only variables affected by data flow of true marked if statements should be logged.

#Example
This example involves file source.go in package main

##Before

#!go
    0   if ( conditional ) {
    1       doIt()
    2    } else {
    3         doItAnyways()
    4    }

After

#!go
   0   instrumenter.Cflogger.setFalse("main_source_ifstatement_L0")
   1   if ( conditional ) {
   2       instrumenter.Cflogger.setTrue("main_source_if_L0")
   3       doIt()
   4   }  else {
   5       instrumenter.Cflogger.setTrue("main_source_else_L2")
   6       doItAnyways()
   7   }

[Issue created by wantonsolutions: 2015-08-21]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions