// Control Flow Graph determination pass

#ifndef CFGPASS_H
#define CFGPASS_H

#include "ast.h"
#include <set>
#include <iostream>
#include "clasplayer.h"

class CFGPass
{
public:
    CFGPass(const AST& entity);
    void run(ClaspLayer& clasp);

private:
    const AST& __root;
    CFGraph __graph;

    void process(const Expression& entity, const FID funcId);
    void process(const FID funcId);
};

#endif // CFGPASS_H
