projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
790028f72ea0a428fa6d7602a98170619a8ebfff
[libfirm]
/
ir
/
be
/
test
/
fehler142.c
1
#include <assert.h>
2
3
void foo(float zNear, float zFar)
4
{
5
float v;
6
float depth = zFar - zNear;
7
8
v = -2 * zFar * zNear / depth;
9
assert(v < 0);
10
}
11
12
int main(void) {
13
foo(4, 2048);
14
return 0;
15
}