Caffe2 - C++ API
A deep learning, cross platform ML framework
lib2.c
1 #include <TH/TH.h>
2 
3 void bad_func(THFloatTensor *tensor, int a, float b)
4 {
5  THFloatTensor_mul(tensor, tensor, a);
6  THFloatTensor_add(tensor, tensor, b);
7  THFloatTensor_addbmm(tensor, 1, tensor, 1, tensor, tensor);
8 }