<commit_before>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#include "il/Push.hpp"

#include "il/Operand.hpp"
#include "AssemblyFileWriter.hpp"

using namespace eddic;

Push::Push(std::shared_ptr<Operand> operand) : m_operand(operand) {}

void Push::write(AssemblyFileWriter& writer){
    //We can always put an immediate value everywhere
    writer.stream() << "pushl " << m_operand->getValue() << std::endl;

    //TODO Improve ?
}<commit_msg>No way to improve push<commit_after>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#include "il/Push.hpp"

#include "il/Operand.hpp"
#include "AssemblyFileWriter.hpp"

using namespace eddic;

Push::Push(std::shared_ptr<Operand> operand) : m_operand(operand) {}

void Push::write(AssemblyFileWriter& writer){
    //We can always put an immediate value everywhere
    writer.stream() << "pushl " << m_operand->getValue() << std::endl;
}
{'fraction_non_alphanumeric': 0.31633356305995863, 'fraction_numerical': 0.013783597518952447, 'mean_word_length': 5.570135746606335, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1150011', 'n_tokens_mistral': 422, 'n_tokens_neox': 392, 'n_words': 100}