projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fehler142 (probably the quake3 client problem)
[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
}