89cf6dd70aa4cf37fbcece3917510dc1ac904cc6,brian2/codegen/generators/base.py,CodeGenerator,arrays_helper,#CodeGenerator#Any#,150
Before Change
"""
read, write, indices = self.array_read_write(statements)
conditional_write_vars = self.get_conditional_write_vars()
read = read.union(set((conditional_write_vars[var] for var in write
if var in conditional_write_vars)))
return read, write, indices, conditional_write_vars
def translate(self, code, dtype):
"""
After Change
"""
read, write, indices = self.array_read_write(statements)
conditional_write_vars = self.get_conditional_write_vars()
read |= set(var for var in write
if var in conditional_write_vars)
read |= set(conditional_write_vars[var] for var in write
if var in conditional_write_vars)
return read, write, indices, conditional_write_vars
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: brian-team/brian2
Commit Name: 89cf6dd70aa4cf37fbcece3917510dc1ac904cc6
Time: 2014-10-04
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/base.py
Class Name: CodeGenerator
Method Name: arrays_helper
Project Name: brian-team/brian2
Commit Name: 480dc2fafaf2358b2b9400711b346fd8d73f50d5
Time: 2014-10-04
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/base.py
Class Name: CodeGenerator
Method Name: arrays_helper
Project Name: brian-team/brian2
Commit Name: 724ad2c1d5f631d40b757766f5ae7dca308542e2
Time: 2014-02-25
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/base.py
Class Name: CodeGenerator
Method Name: arrays_helper