# C, <s> 210 </s> 192 bytes

*Thanks to @l4m2 for saving 17 bytes!*

    i,k,t,s;f(char*g){char*p=g,l[strlen(g)];for(s=t=0;*p;*p>35&&(t?l[i++]=*p:1)?*p=32:0,*p++-35&t&&++s)t^=*p==35;for(k=i;i;t&*p==32?*p=l[--i]:0)t^=*--p==35;printf("%s\n%d",g,k?k-s?k*2<s?1:2:3:0);}

Outputs 0 for empty glass, 1 for mostly empty, 2 for mostly full, and 3 for full.

First loops through the input string counting the space inside the glass, marking down letters that are inside the glass, and changing all letters to spaces. Then loops through the string backwards placing all the letters that were in the glass at the bottom of the glass.

[Try it online!](https://tio.run/##nVLbbqMwEH3PV4ywirhKCTR9gGX5kCQrAQmEhVIvuFGTqt@ePWNIykr7lBHJ2DPjOWeOXfhVUVyvtdd4yhvi0iqOWe9U9qf2Mqm8djOovj10VmXv4vKtt4ZEJcvYkfh@hmvTtFTabmrX3SWOjFZ2ilNhEC09R7qujwJlmq472OoX8kkSrnWTJqnjOlamDgV8pt34fr2LlrrQ98dS2dedKi3jadh2T3vDq7wmbfwhbZzgx5CuoiAKcSL@uqKMXrO6s@zF54JgzJ/AfLXZUUIGTSbozC7HQlu97fD/gd9JSKI/WLScajmeTUfYX35jgQqq9Al4ZKQsKsYSOvY@VlMP12mAfqrl@N2MWBMsLWZnx/JdDZax7fz/27Yz7Hjxz0jBfSRgqAuojPgkzpTlBaJ77LMTXcTbBw1cpccBTy5QR0G53otTBTn6V6aaTS0mw@5AWoGcCqL9nHTwCOlwJD3Jjv5CSwhyJbCAWB@ZKJhnxCPgOyCRj5Tm8OEj8M8TfJYzdLEXBAejeefnRzqvb7chvt/YcZT3PisLKcbU@HzyaaeHL@iWpOm96PH1/FCEFZizXD/C8uUmPwTNLqzBmV8GX/R44aQYrcUrnmO9oM/X9S8)

**Unrolled:**

    i,k,t,s;
    f(char*g)
    {
        char l[strlen(g)], *p=g;
        for (s=t=0; *p; *p>35&&(t?l[i++]=*p:1)?*p=32:0, *p++-35&t&&++s)
            t ^= *p==35;
        for (k=i; i; t&*p==32 && (*p=l[--i]))
            t ^= *--p==35;
        printf("%s\n%d", g, k?k-s?k*2<s?1:2:3:0);
    }