{"name": "mtd_erase", "code": "int mtd_erase ( ) { int @@v1@@ [ Number ] ; char @@v2@@ [ Number ] ; unsigned int @@v3@@ ; int @@v4@@ ; fd = open ( mtd_d , Number ) ; if ( fd < Number ) { fprintf ( stderr , String , mtd_d ) ; exit ( Number ) ; } if ( ioctl ( fd , Number , @@v2@@ ) ) { fprintf ( stderr , String , mtd_d ) ; close ( fd ) ; exit ( Number ) ; } @@v1@@ [ Number ] = @@v4@@ ; for ( @@v1@@ [ Number ] = Number ; @@v1@@ [ Number ] < @@v3@@ ; @@v1@@ [ Number ] += @@v4@@ ) { ioctl ( fd , Number , @@v1@@ ) ; if ( ioctl ( fd , Number , @@v1@@ ) ) { fprintf ( stderr , String , mtd_d , ( unsigned int ) @@v1@@ [ Number ] ) ; close ( fd ) ; exit ( Number ) ; } } return close ( fd ) ; }", "source": [{"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s24"}, {"n": "v2", "t": {"T": 2, "n": 8, "s": 1, "t": "char"}, "location": "s32"}, {"n": "v1", "t": {"T": 2, "n": 2, "s": 4, "t": "int"}, "location": "s40"}]}