--- layout: fc_discuss_archives title: Message 7 from Frama-C-discuss on July 2010 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] *p and p[0]



Hello Pascal,

some suggestions:
- use self-evident names for variables. Ie, p_length instead of n.
- use int p[] instead of int* p to make it clear that an array is
processed.
- in the specification, use integer instead of int.

> I didn't even know that it was possible to distinguish
> between *p and p[0] after normalization by CIL.

That's astonishing indeed. There shouldn't be a difference between the
two forms.

-- 
Regards,
Boris